1 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
3 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
5 2000-01-13 Tom Tromey <tromey@cygnus.com>
7 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
8 not system loader, as initiating loader.
10 2000-01-11 Tom Tromey <tromey@cygnus.com>
12 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
13 HP/UX. From David Scott Urban.
15 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
17 * java/lang/natMath.cc (pow): Cast args to `double', not
20 (IEEEremainder): Likewise.
21 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
22 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
24 2000-01-09 Anthony Green <green@cygnus.com>
26 * java/lang/natString.cc (init): Test for overflow condition
27 during out of bounds check.
28 (getChars): Throw StringIndexOutOfBoundsException, not
29 ArrayIndexOutOfBoundsException.
31 (regionMatches): Obey case option during string comparison.
33 * configure.host (ligcj_interpreter): New variable. Enable
34 interpreter by default on IA-32.
35 * configure.in: Examine libgcj_interpreter.
38 2000-01-07 Tom Tromey <tromey@cygnus.com>
40 * mauve-libgcj: Don't disable ClassTest.
42 * java/lang/natClass.cc (getClasses): Wrote.
44 2000-01-06 Tom Tromey <tromey@cygnus.com>
46 * java/lang/natClass.cc (_getConstructors): Correctly check
47 whether method name is the init name.
48 (getMethod): Look at accflags on method in `klass', not `this'.
50 2000-01-05 Tom Tromey <tromey@cygnus.com>
52 * java/lang/natClass.cc (getMethod): Compute offset relative to
53 `klass's methods table, not `this's table.
55 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
56 In unwrapping/widening case, check whether `k' is null, not
57 whether it is primitive. Initialize `num' from `argelts', not
58 `paramelts'. Correct create and pass arguments to ffi_call.
59 Don't let presence of `this' argument affect index used to look in
61 (COPY): Set appropriate element in `values' vector.
63 * java/lang/natClass.cc: Include <gcj/method.h>.
65 * java/lang/Class.h (_getMethods): Correctly declare as private,
68 * java/lang/Class.h (_getMethods): Declare.
69 * java/lang/Class.java (_getMethods): Declare.
70 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
71 (getDeclaredClasses): Always return empty array.
72 (_getMethods): New method.
74 (getDeclaredMethod): Return `rmethod'.
75 (finit_name): New global.
76 (getDeclaredMethods): Check for finit_name.
77 (_getMethods): Likewise.
78 (getMethod): Only return public methods.
80 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
81 jboolean and select correct ffi type on that basis.
82 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
83 Constructor call always has `void' return type.
85 2000-01-04 Tom Tromey <tromey@cygnus.com>
87 * java/lang/Class.h (getSignature): Updated.
88 * java/lang/Class.java (getSignature): Updated.
89 * java/lang/natClass.cc (getSignature): Added `is_constructor'
91 (getConstructor): Ensure constructor is public.
92 (_getConstructors): Check for public-ness of constructor when
93 `declared' is false, not when it is true.
95 2000-01-04 Warren Levy <warrenl@cygnus.com>
97 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
99 (receive): Set the sender's address in the DatagramPacket.
101 2000-01-04 Tom Tromey <tromey@cygnus.com>
103 * java/lang/reflect/natConstructor.cc (newInstance): Pass
104 declaring class as return_type argument to
105 _Jv_CallNonvirtualMethodA.
106 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
107 constructor case, create object and use it as `this' argument.
108 * java/lang/Class.h (_getConstructors): Declare.
109 (_getFields): Declare.
110 * java/lang/Class.java (getConstructors): Wrote.
111 (_getConstructors): New native method.
112 (getDeclaredConstructors): Wrote.
113 (_getFields): Declare new native method.
114 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
116 (getMethod): Work correctly when class is primitive.
117 (getDeclaredMethods): Likewise. Compute offset using `method',
119 (getDeclaredMethod): Likewise.
120 (getConstructor): Wrote.
121 (ConstructorClass): New define.
122 (getDeclaredConstructor): Wrote.
123 (_getConstructors): New method.
124 (_getFields): New method.
127 * Makefile.in: Rebuilt.
128 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
130 * prims.cc: Remove `#pragma implementation'.
131 * gcj/array.h: Remove `#pragma interface'.
133 * prims.cc (_Jv_equaln): New function.
134 * java/lang/Class.java (getSignature): Declare.
135 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
136 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
138 (getSignature): New method.
139 (getDeclaredMethod): Wrote.
141 Include StringBuffer.h.
142 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
143 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
145 (getSignature): Declare.
146 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
147 (_Jv_equaln): Declare.
148 (_Jv_CallNonvirtualMethodA): Declare.
149 * Makefile.in: Rebuilt.
150 * Makefile.am (nat_source_files): Added natConstructor.cc.
151 (java/lang/reflect/Constructor.h): New target.
152 * java/lang/reflect/natConstructor.cc: New file.
153 * java/lang/reflect/Constructor.java (newInstance): Now native.
154 (declaringClass): Renamed from decl_class.
155 (offset): Renamed from index.
156 (getType): New native method.
157 (getModifiers): Now native.
158 (getParameterTypes): Call getType if required.
159 (hashCode): Include hash code from declaring class.
160 (modifiers): Removed.
161 (toString): Call getType if required.
162 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
163 * java/lang/reflect/natMethod.cc (hack_call): New method.
164 Removed `#if 0' around FFI code.
165 Include <gnu/gcj/RawData.h>.
166 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
167 IllegalArgumentException when argument object and class disagree.
168 (_Jv_GetTypesFromSignature): New function.
170 (ObjectClass): New define.
171 (_Jv_CallNonvirtualMethodA): New function.
172 * java/lang/reflect/Method.java (hack_trampoline): New method.
173 (hack_call): New native method.
175 1999-12-21 Per Bothner <per@bothner.com>
177 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
178 offset in new Method.
180 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
182 * java/lang/natObject.cc (notify): Throw message with
183 IllegalMonitorStateException.
186 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
187 (isInterrupted_): New function, which does clear interrupt_flag.
188 (interrupt): Use `isInterrupted_'.
189 * java/lang/natThread.cc (interrupt): Add comment.
190 (join): Set `prev' in joiner loop.
191 Change various calls to `isInterrupted' to use `isInterrupted_'.
192 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
193 on linux. Set result to 0 on an interrupt. Test interrupted status
194 of java Thread object directly.
195 FLAG_INTERRUPTED: removed.
196 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
197 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
198 (_Jv_InitThreads): Don't block SIGINT.
199 (_Jv_ThreadWait): Don't configure SIGINT handler.
201 1999-12-21 Tom Tromey <tromey@cygnus.com>
203 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
205 1999-12-20 Tom Tromey <tromey@cygnus.com>
207 * java/lang/reflect/Modifier.java (STRICT): New constant.
208 (isStrict): New method.
209 (toString): Added `strict'.
211 1999-12-23 Anthony Green <green@cygnus.com>
213 * configure: Rebuilt.
214 * configure.in (LIBDATASTARTSPEC): Force data_start in with
217 1999-12-19 Anthony Green <green@cygnus.com>
219 * libgcjdata.c: New file.
220 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
221 * configure: Rebuilt.
222 * configure.in (LIBDATASTARTSPEC): Force data with a known name
224 * Makefile.in: Rebuilt.
225 * Makefile.am: Build libgcjdata.a.
227 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
228 * configure: Rebuilt.
229 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
232 1999-12-17 Tom Tromey <tromey@cygnus.com>
234 * java/lang/reflect/Method.java (toString): Call getType if
235 required. Partial fix for PR libgcj/111. From Per Bothner.
237 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
239 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
241 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
242 null String constructor parameter.
243 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
244 for exception messages.
245 BooleanClass: declare.
246 (setOption): Use BooleanClass instead of Class.forName() for
248 (bind): Cast 4th parameter of setsockopt to `char *' for
249 compatibility with older Solaris headers.
250 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
251 sprintf calls for exception messages.
252 BooleanClass, IntegerClass: declare.
253 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
256 1999-12-15 Tom Tromey <tromey@cygnus.com>
258 * java/lang/natSystem.cc (init_properties): Don't set user.name or
259 user.home if NO_GETUID defined. Only set user.dir if getcwd
262 * include/config.h.in: Rebuilt.
263 * acconfig.h (NO_GETUID): New define.
264 * configure.in: Rebuilt.
265 * configure.in: Define NO_GETUID in cross case. Check for getcwd
268 1999-12-08 Tom Tromey <tromey@cygnus.com>
270 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
271 where no recursive mutexes exist. Fixes PR libgcj/117.
273 1999-12-05 Anthony Green <green@cygnus.com>
275 * include/jvm.h: Declare many functions with
276 __attribute__((__malloc__)).
277 * gcj/javaprims.h: Ditto.
279 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
281 * THANKS: Giving credit where credit is due.
283 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
285 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
287 * java/lang/natString.cc (equalsIgnoreCase): return false if
288 anotherString is null.
289 * java/lang/Boolean.java (valueOf): return FALSE if argument is
292 1999-11-30 Tom Tromey <tromey@cygnus.com>
294 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
295 mutex to initialize. Initialize `count' if required.
298 1999-11-27 Per Bothner <per@bothner.com>
300 * exception.cc: Remove prototype declarations for malloc and free.
301 These clash with recent versions of glibc, which specifies `throws ()'
302 when __cplusplus is defined. Instead, #include <stdlib.h>.
304 1999-11-24 Tom Tromey <tromey@cygnus.com>
306 * prims.cc (_Jv_NewObjectArray): Use
307 _Jv_GetArrayElementFromElementType.
308 (_Jv_NewPrimArray): Likewise.
309 * java/lang/natObject.cc (clone): Use
310 _Jv_GetArrayElementFromElementType instead of sizeof.
311 * java/lang/natSystem.cc (arraycopy): Use
312 _Jv_GetArrayElementFromElementType.
313 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
316 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
318 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
319 Exception messages. PR java.net/57.
320 (bind): set SO_REUSEADDR before bind.
321 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
322 overruns. PR java.net/57.
324 1999-11-19 Tom Tromey <tromey@cygnus.com>
326 * Makefile.am (DIVIDESPEC): Removed.
327 (EXCEPTIONSPEC): Removed.
329 1999-11-19 Andrew Haley <aph@cygnus.com>
331 * Makefile.am (JCFLAGS): Add -L$(here)
333 * Makefile.in: Rebuild.
335 1999-11-18 Tom Tromey <tromey@cygnus.com>
337 * java/lang/natDouble.cc: Include <config.h>.
339 * include/config.h.in: Rebuilt.
340 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
341 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
343 * configure: Rebuilt.
344 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
345 requested by configure.host. Don't put `-D' option into
346 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
348 * configure: Rebuilt.
349 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
352 1999-11-18 Andrew Haley <aph@cygnus.com>
354 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
355 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
357 * Makefile.in: Rebuild
358 * acconfig.h: remove SJLJ_EXCEPTIONS
359 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
360 Do not AC_DEFINE SJLJ_EXCEPTIONS.
361 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
362 * gcj/Makefile.in, include/Makefile.in: rebuild.
363 * include/config.h.in: remove SJLJ_EXCEPTIONS.
365 1999-11-18 Andrew Haley <aph@cygnus.com>
367 * gij.cc (main): Rename label to prevent conflict.
369 * exception.cc (_Jv_type_matcher): Don't check the table if we're
370 using setjmp/longjmp exceptions: there isn't one.
372 1999-11-17 Andrew Haley <aph@cygnus.com>
374 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
375 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
376 (__sjthrow): Add declaration.
377 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
381 * Makefile.in: Rebuild
382 * acconfig.h: Add SJLJ_EXCEPTIONS
383 * configure.in: Add SJLJ_EXCEPTIONS
384 * configure: Rebuild.
385 * gcj/Makefile.in: Rebuild.
386 * gcj/cni.h: Add support for sjlj-exceptions.
387 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
388 * include/Makefile.in: Rebuild.
389 * include/default-signal.h: Add support for sjlj-exceptions.
391 1999-11-18 Tom Tromey <tromey@cygnus.com>
393 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
395 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
397 (method_cache): Made larger.
399 1999-11-11 Tom Tromey <tromey@cygnus.com>
401 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
402 initializing mutex. Initialize `count' when required.
404 1999-11-07 Anthony Green <green@trip.cygnus.com>
406 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
409 1999-11-05 Tom Tromey <tromey@cygnus.com>
411 * java/lang/natThread.cc (destroy): Removed incorrect comment.
413 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
415 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
416 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
419 1999-11-05 Tom Tromey <tromey@cygnus.com>
421 * java/lang/natThread.cc (stop): Removed argument name.
423 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
424 `private'; now has default access.
425 * Makefile.in: Rebuilt.
426 * Makefile.am (java/lang/ThreadGroup.h): Removed.
428 1999-11-04 Tom Tromey <tromey@cygnus.com>
430 * java/lang/natClass.cc (method_cache_count): Removed.
431 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
432 (_Jv_AddMethodToCache): Don't loop.
434 * configure.in: Removed `qt' threads case.
435 * include/quick-threads.h: Removed.
436 * quick-threads.cc: Removed.
438 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
439 (_Jv_ThreadDestroy): Likewise.
440 * include/no-threads.h (_Jv_ThreadCancel): Removed.
441 (_Jv_ThreadDestroy): Likewise.
442 * include/posix-threads.h (struct _Jv_Thread_t): Removed
444 (_Jv_ThreadCancel): Removed decl.
445 (_Jv_ThreadDestroy): Removed.
446 * posix-threads.cc (_Jv_ThreadCancel): Removed.
447 (throw_cleanup): Removed.
448 (really_start): Don't push or pop cleanup.
449 (_Jv_ThreadInitData): Don't initialize `exception' field.
450 * java/lang/Thread.java (stop): Officially unimplemented.
451 * java/lang/natThread.cc (stop): Officially unimplemented.
453 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
455 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
458 1999-11-02 Tom Tromey <tromey@cygnus.com>
460 * boehm.cc: Don't include boehm-config.h.
462 1999-11-01 Tom Tromey <tromey@cygnus.com>
464 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
465 (sum_blocks): Removed.
466 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
468 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
470 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
472 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
473 * java/io/InputStreamReader (InputStreamReader): ditto.
475 1999-10-22 Tom Tromey <tromey@cygnus.com>
477 * Makefile.in: Rebuilt.
478 * Makefile.am (java/lang/ClassLoader.h): New target.
479 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
482 * include/java-props.h (_Jv_Compiler_Properties): Changed
484 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
485 * include/jvm.h (_Jv_GCSetInitialHeapSize,
486 _Jv_GCSetMaximumHeapSize): Declare.
487 (JvRunMain, _Jv_RunMain): Declare.
488 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
489 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
490 (_Jv_GCSetMaximumHeapSize): Likewise.
491 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
492 (_Jv_GCSetMaximumHeapSize): Likewise.
493 * prims.cc (parse_heap_size): New function.
494 (_Jv_SetInitialHeapSize): Likewise.
495 (_Jv_SetMaximumHeapSize): Likewise.
496 (_Jv_Compiler_Properties): New global.
497 * gij.cc (help): New function.
499 (heap_size): Likewise.
500 (heap_max_size): Likewise.
501 (main): Parse arguments. Set _Jv_Compiler_Properties.
502 Include <config.h>, <java-props.h>.
503 (_Jv_Compiler_Properties): Removed.
505 1999-10-18 Tom Tromey <tromey@cygnus.com>
507 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
509 (redirect): New static field.
510 * java/lang/ClassLoader.java (getSystemClassLoader): Now
512 (getVMClassLoader0): Removed.
513 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
515 (getSystemClassLoader): Implemented.
517 1999-10-16 Anthony Green <green@cygnus.com>
519 * java/lang/ClassLoader.java (getSystemResource): Use
520 getSystemClassLoader instead of ClassLoader.system.
521 (getSystemResourceAsStream): Ditto.
523 * java/lang/natClassLoader.cc (redirect): Make static and
524 remove #ifdef INTERPRETER so it is always defined.
525 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
526 returns a VMClassLoader.
528 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
529 PropertyResourceBundle if a properties file is found before a
530 ResourceBundle class.
532 1999-10-15 Tom Tromey <tromey@cygnus.com>
534 * gij.cc (main): Formatting fixes.
535 (_Jv_Compiler_Properties): Define.
536 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
538 (init_properties): Set properites from _Jv_Compiler_Properties.
539 * include/java-props.h (_Jv_Compiler_Properties,
540 _Jv_Environment_Properties): Declare.
542 * include/java-props.h: Added copyright.
544 1999-10-13 Anthony Green <green@cygnus.com>
546 * libtool-version: Catch up by incrementing current.
548 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
549 * configure, include/config.h.in: Rebuilt.
550 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
551 * configure.in: Added --disable-getenv-properties and new define
552 `DISABLE_GETENV_PROPERTIES'.
554 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
555 (next_property_key): New function.
556 (next_property_value): New function.
557 (process_gcj_properties): New function.
558 (JvRunMain): Call process_gcj_properties.
561 * java/lang/natSystem.cc (init_properties): Set properties defined
564 * include/java-props.h: New file.
566 * java/lang/natSystem.cc (init_properties): Add new properties to
567 conform with Java Product Versioning Specification.
569 1999-10-12 Tom Tromey <tromey@cygnus.com>
571 * configure: Rebuilt.
572 * configure.in: Fixed test for --disable-java-net.
574 1999-10-06 Tom Tromey <tromey@cygnus.com>
576 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
577 when building Canadian cross.
578 (NATIVE): Don't define when cross-compiling.
580 1999-10-04 Tom Tromey <tromey@cygnus.com>
582 * java/net/natPlainSocketImpl.cc: Don't include headers if
583 java.net is disabled.
585 * Makefile.in: Rebuilt.
586 * Makefile.am (ZINCS): Removed. This is defined in configure.in
587 when needed, and must be left empty when not needed.
589 1999-10-01 Anthony Green <green@cygnus.com>
591 * THANKS: Refreshed from htdocs version.
593 1999-10-01 Steve Chamberlain <sac@pobox.com>
595 * Makefile.in: Rebuilt.
596 * Makefile.am (ZINCS): Define
598 * configure: Rebuilt.
599 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
601 * java/lang/ieeefp.h: Add definitions for picoJava.
603 1999-10-01 Tom Tromey <tromey@cygnus.com>
605 * configure: Rebuilt.
606 * configure.in: Set classpath when invoking gcj. Use changequote
607 around sed invocation.
609 * java/net/natPlainSocketImpl.cc: Stub native functions if
610 DISABLE_JAVA_NET is defined.
611 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
612 typo in exception string.
613 (getTimeToLive): Likewise.
614 Stub native functions if DISABLE_JAVA_NET is defined.
615 * java/net/natInetAddress.cc: Stub native functions if
616 DISABLE_JAVA_NET is defined.
617 * configure.host: Disable java.net for mips-tx39.
618 * configure, include/config.h.in: Rebuilt.
619 * acconfig.h (DISABLE_JAVA_NET): Undefine.
620 * configure.in: Added --disable-java-net and new define
623 1999-09-30 Tom Tromey <tromey@cygnus.com>
625 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
627 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
631 1999-09-28 Tom Tromey <tromey@cygnus.com>
633 * configure: Rebuilt.
634 * configure.in (PROCESS): In POSIX case, only set if not already
636 * configure.host (PROCESS): Set in mips-tx39 case.
638 * aclocal.m4, configure: Rebuilt.
639 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
640 appropriate AC_PROG_ symbol.
642 1999-09-24 Tom Tromey <tromey@cygnus.com>
644 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
646 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
648 Fix for PR java.util/47:
649 * configure, include/config.h: Rebuilt.
650 * configure.in: Don't look for ctime or ctime_r.
651 * Makefile.in: Rebuilt.
652 * Makefile.am (nat_source_files): Don't mention natDate.cc.
653 * java/util/natDate.cc: Removed.
654 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
656 (getAvailableIDs): Rewrote.
657 (getTimeZone): Rewrote.
658 * java/util/Date.java (toGMTString): New method.
659 (toLocaleString): New method.
662 1999-09-23 Tom Tromey <tromey@cygnus.com>
664 * configure: Rebuilt.
665 * configure.in: Print message when checking to see if gcj can
666 handle -fuse-divide-subroutine.
668 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
670 * java/lang/FirstThread.java (run0): Renamed to `run'.
673 * prims.cc (main_init): New function.
674 (JvRunMain): Call it.
675 (_Jv_RunMain): Likewise.
677 (main_init): Ignore SIGPIPE. Fixes PR 51.
679 1999-09-22 Tom Tromey <tromey@cygnus.com>
681 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
683 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
685 * java/text/MessageFormat.java (MessageFormat(String)): Set the
687 * java/text/NumberFormat.java: Check that object is a Number. If
688 not, throw IllegialArgumentException.
690 1999-09-21 Tom Tromey <tromey@cygnus.com>
692 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
693 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
695 * include/posix-threads.h (_Jv_MutexDestroy): Use
697 (_Jv_MutexLock): Likewise.
698 (_Jv_MutexUnlock): Likewise.
700 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
701 previous patch; it too was incorrect.
702 * java/io/PrintStream.java (PrintStream): Likewise.
704 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
705 refer to `this' before calling superclass constructor.
706 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
707 before calling superclass constructor.
709 1999-09-20 Tom Tromey <tromey@cygnus.com>
711 * configure: Rebuilt.
712 * configure.in: Send output of `-fuse-divide-subroutine' test
713 compilation to /dev/null.
715 1999-09-14 Tom Tromey <tromey@cygnus.com>
717 * include/java-insns.h: Turned constants into an enum. Added
718 multiple-inclusion protection.
720 1999-09-10 Tom Tromey <tromey@cygnus.com>
722 * configure: Rebuilt.
723 * configure.in: Build include/Makefile.
724 * Makefile.in: Rebuilt.
725 * Makefile.am (SUBDIRS): Added gcj and include.
726 (install-data-local): New target.
727 (extra_headers): New macro.
728 * include/Makefile.in: New file.
729 * include/Makefile.am: New file.
731 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
732 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
734 * boehm.cc: Don't include java-threads.h or gcj/field.h.
735 * resolve.cc: Include config.h.
736 * defineclass.cc: Include config.h.
737 * include/java-interp.h: Don't include config.h.
738 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
741 * gcj/javaprims.h: Regenerated namespace decls.
742 * classes.pl (scan): Don't put `;' after closing brace.
744 * Makefile.in: Rebuilt.
745 * Makefile.am (INCLUDES): Added -I for top_srcdir.
746 * configure.in: Create gcj/Makefile.
747 * gcj/Makefile.in: New file.
748 * gcj/Makefile.am: New file.
749 * java/lang/Object.h: Don't include any other headers.
750 * gcj/array.h: Renamed from include/java-array.h.
751 * gcj/field.h: Renamed from include/java-field.h.
752 * gcj/method.h: Renamed from include/java-method.h.
753 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
754 Updated all files to reflect new include structure.
756 1999-09-09 Tom Tromey <tromey@cygnus.com>
758 * configure: Rebuilt.
759 * configure.in: Fixed typo; variable is THREADSPEC and not
762 1999-09-08 Tom Tromey <tromey@cygnus.com>
764 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
765 previous change and implemented a correct test in the __m_count
768 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
771 1999-09-07 Tom Tromey <tromey@cygnus.com>
773 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
774 code and don't set errno.
776 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
777 not `r'. Changed `done_sleeping' to a `bool'.
779 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
781 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
782 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
783 by another thread, rather than by the GC.
784 (_Jv_CondWait): Prevent premature thread wakeup by GC.
785 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
786 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
789 1999-09-03 Tom Tromey <tromey@cygnus.com>
791 * configure: Rebuilt.
792 * configure.in: Check for fstat function.
793 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
796 1999-09-02 Tom Tromey <tromey@cygnus.com>
798 * include/java-array.h (jobjectArrayjchar): Removed unused
801 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
802 _Jv_PrepareCompiledClass while holding class mutex.
804 1999-09-01 Tom Tromey <tromey@cygnus.com>
806 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
807 (_Jv_PthreadGetMutex): Use it.
808 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
809 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
810 (_Jv_MutexLock): Likewise.
811 (_Jv_MutexUnlock): Likewise.
812 * include/config.h.in: Rebuilt.
813 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
814 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
815 * configure: Rebuilt.
816 * libgcj.spec.in: Don't mention INTERPSPEC.
817 * configure.in (INTERPSPEC): Removed.
818 Only run pthreads-related checks when using POSIX threads. Check
819 for m_count and __m_count in mutex structure.
821 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
823 * java/lang/natClass.cc: Fixed notification of threads
824 when class initialization is complete.
826 1999-09-01 Tom Tromey <tromey@cygnus.com>
828 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
829 * resolve.cc: Removed constants defined by
830 java.lang.reflect.Modifier.
831 Include <java/lang/reflect/Modifier.h>.
832 (_Jv_ResolvePoolEntry): Use values from Modifier.
833 (_Jv_DetermineVTableIndex): Likewise.
834 (_Jv_PrepareClass): Likewise.
836 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
837 java.lang.reflect.Modifier.
838 Include <java/lang/reflect/Modifier.h>.
839 (checkExtends): Use values from Modifier.
840 (checkImplements): Likewise.
841 (handleField): Likewise.
842 (handleConstantValueAttribute): Likewise.
843 (handleFieldsEnd): Likewise.
844 (handleMethod ): Likewise.
845 (handleMethodsEnd): Likewise.
846 (handleClassBegin): Likewise.
847 * interpret.cc: Removed constants defined by
848 java.lang.reflect.Modifier.
849 (continue1): Use values from Modifier.
850 * java/lang/natClassLoader.cc: Removed constants defined by
851 java.lang.reflect.Modifier.
853 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
854 JV_STATE_NOTHING, not `0'.
855 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
857 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
858 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
860 (_Jv_PthreadGetMutex): New function.
861 (_Jv_PthreadCheckMonitor): Use it.
862 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
863 (_Jv_MutexLock): Update `count'.
864 (_Jv_MutexUnlock): Likewise.
865 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
868 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
870 * Makefile.am (.java.lo): Add rule.
872 * Makefile.in: Rebuilt.
874 1999-09-01 Tom Tromey <tromey@cygnus.com>
876 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
877 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
879 (_Jv_CondNotify): Use it.
880 (_Jv_CondNotifyAll): Likewise.
882 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
884 1999-08-31 Tom Tromey <tromey@cygnus.com>
886 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
889 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
891 * posix-threads.cc: Include <errno.h>.
893 1999-08-23 Tom Tromey <tromey@cygnus.com>
895 * boehm.cc: Undefine TRUE and FALSE.
897 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
899 1999-08-21 Tom Tromey <tromey@cygnus.com>
901 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
904 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
906 * configure.in: Check for in_addr_t in netinet/in.h too. Check
908 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
909 (HAVE_STRUCT_IP_MREQ): Added.
910 * configure, include/config.h.in: Rebuilt.
911 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
913 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
914 Disable if ip_mreq is not available.
916 * configure.in: Check types ssize_t and in_addr_t.
917 * acconfig.h: Undefine them.
918 * configure, include/config.h.in: Rebuilt.
920 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
921 function that detects the signature of getpwuid_r.
922 (init_properties): Use it.
923 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
926 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
928 * interpret.cc (continue1): Implement explicit dispatch table.
929 insn_target: Explicit interpreter switch table.
930 SAVE_PC: New macro, moves pc saving code into instructions that
932 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
933 PC_REGISTER_ASM: New macro.
934 INLINE_SWITCH: New macro. Constrols dispatching strategy.
935 opcode: Remove local variable.
936 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
937 (POKEI): Use _Jv_word.
938 (iinc): Use _Jv_word.
939 (dupx): Change reference argument (sp) to pointer.
942 * interpret.cc: Remove instruction timing instrumentation.
944 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
945 comment. Don't use _Jv_ClassNameSamePackage.
947 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
948 URLPathEntry, CacheEntry}: Removed.
950 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
952 (.java.lo): Rule removed.
954 * Makefile.in: Rebuilt.
956 1999-08-19 Tom Tromey <tromey@cygnus.com>
958 * java/lang/natThread.cc (class locker): New class.
959 (join): Use a locker around _Jv_CondWait.
962 1999-08-18 Tom Tromey <tromey@cygnus.com>
964 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
965 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
967 1999-08-18 Tom Tromey <tromey@cygnus.com>
969 * include/javaprims.h ("Java"): Regenerated namespace decls.
971 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
973 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
974 from _Jv_InternClassStrings.
976 * prims.cc (_Jv_RunMain): New function.
977 (JvRunMain): Remove gij-support.
979 * gij.cc (main): Use _Jv_RunMain.
981 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
983 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
984 argument in temp variable.
985 (continue1): For all op_x2y insns, use temp variable for
986 intermediate value. Also remove some comments.
988 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
989 (forName): Don't call _Jv_InitClass.
991 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
993 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
995 * java/util/jar/JarInputStream.java: New file.
997 * java/util/jar/JarEntry.java: New file.
999 * java/util/jar/JarFile.java: New file.
1001 * java/net/URLClassLoader.java: New file.
1003 * java/net/JarURLConnection.java: New file.
1005 * gnu/gcj/protocol/jar/Handler.java: New file.
1007 * gnu/gcj/protocol/jar/Connection.java: New file.
1009 * java/security/SecureClassLoader.java: New file.
1011 * java/lang/ClassLoader.java (parent): New variable.
1012 (ClassLoader (ClassLoader)): new constructor.
1013 (findClass): New method.
1014 (loadClass): Add default 1.2 implementation.
1015 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1016 (readfully): Removed.
1018 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1019 (findSystemClass): New method.
1020 (VMClassLoader): Constructor rewritten.
1022 All other methods removed.
1024 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1025 to gnu::gcj::runtime::VMClassLoader.
1026 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1028 (VMClassLoader::findSystemClass): renamed from findBootClass.
1030 * Makefile.am: Add new files.
1031 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1033 * Makefile.in: Rebuilt.
1035 1999-08-17 Tom Tromey <tromey@cygnus.com>
1037 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1039 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1042 1999-08-16 Tom Tromey <tromey@cygnus.com>
1044 * configure: Rebuilt.
1045 * configure.in: Set DIVIDESPEC to empty string if compiler does
1046 not support -fuse-divide-subroutine.
1048 1999-08-14 Per Bothner <per@bothner.com>
1050 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1051 * java/lang/natClass.cc (initializeClass): Likewise.
1052 * java/lang/ClassLoader.java (resolveClass0): New static method.
1053 (resolveClass): Call resolveClass0.
1054 (findSystemClass): No longer static.
1056 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1058 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1060 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1062 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1065 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1067 * Makefile: Rebuilt.
1068 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1071 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1074 * configure: Rebuilt.
1075 * configure.in: Properly align --help output, fix capitalization
1077 * acinclude.m4: Likewise.
1079 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1081 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1083 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1084 (_Jv_callInterpretedMethod): Unused. Remove.
1085 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1087 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1088 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1089 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1090 * interpret.cc: use _Jv_word.
1091 * defineclass.cc: use_Jv_word.
1092 * resolve.cc: Use _Jv_word.
1093 (_Jv_ResolvePoolEntry): Return _Jv_word.
1094 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1095 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1097 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1100 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1102 * configure: Rebuilt.
1103 * configure.in (sched_yield): Try librt first, then libposix4.
1104 Add -lrt, -lposix4 to THREADSPEC.
1106 1999-08-08 Anthony Green <green@cygnus.com>
1108 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1110 1999-08-08 Anthony Green <green@cygnus.com>
1112 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1115 1999-08-08 Anthony Green <green@cygnus.com>
1119 * include/config.h.in: Rebuilt.
1120 * acconfig.h: Add INTERPRETER.
1122 * Makefile.in: Rebuilt.
1123 * Makefile.am (libffi_files): Identify the libffi object files for
1124 inclusion in libgcj.
1125 (LIBFFIINCS): Define.
1127 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1128 Dummy definition for configurations without an interpreter.
1130 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1131 java::lang::Boolean constructor.
1133 * include/java-interp.h: Always include java-cpool.h.
1135 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1136 when INTERPRETER not defined.
1138 * java/lang/Class.h (finalize): Define.
1140 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1141 IOException from File.getCanonicalPath.
1142 (getStream): Likewise.
1145 * THANKS: More thanks.
1147 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1149 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1151 (_Jv_PrepareClass): Allow non-abstract classes to
1152 have abstract subclasses.
1153 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1155 * interpret.cc (continue1/perform_invoke): Don't sign extend
1157 (continue1/lshl,lshr): Push long, not int.
1158 (continue1/ulshr): Use UINT64, not long long.
1159 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1161 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1162 * java/lang/FirstThread.java (run): Add top-level exception
1164 (run0): Renamed from run.
1166 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1168 * configure.in (--with-interpreter): Added.
1169 * include/config.h.in (INTERPRETER): Added.
1171 * java/lang/ClassLoader.java: File replaced.
1172 * java/lang/VMClassLoader.java: New file.
1173 * java/lang/natClassLoader.cc: New file.
1174 * gnu/gcj/runtime/MethodInvocation.java: New file.
1175 * gnu/gcj/util/path/SearchPath.java: New file.
1176 * gnu/gcj/util/path/PathEntry.java: New file.
1177 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1178 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1179 * gnu/gcj/util/path/URLPathEntry.java: New file.
1180 * gnu/gcj/util/path/CacheEntry.java: New file.
1181 * include/java-interp.h: New file.
1182 * include/java-cpool.h: New file.
1183 * include/java-insns.h: New file.
1184 * defineclass.cc: New file.
1185 * interpret.cc: New file.
1186 * resolve.cc: New file.
1188 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1189 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1190 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1192 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1193 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1195 (initializeClass): Use new JV_ prefixed names. Also, call
1196 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1198 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1199 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1200 JV_STATE_LINKED): New.
1201 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1202 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1203 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1204 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1205 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1206 _Jv_InterpMethodInvocation): New friends for interpreter.
1208 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1209 include/java-cpool.h and renamed with JV_ prefix.
1211 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1213 (_Jv_UnregisterClass): New decl.
1215 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1216 class loader argument.
1217 (_Jv_FindClass): Use class loader.
1219 * prims.cc (_Jv_makeUtf8Const): New function.
1220 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1221 (_Jv_NewPrimArray): Ditto.
1222 (_Jv_FindClassFromSignature): Ditto.
1223 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1224 * java/lang/reflect/natMethod.cc (getType): Ditto.
1226 * include/java-field.h (_Jv_Field::isRef): Make robust for
1227 non-resolved contexts.
1229 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1230 Also, don't mark class->next field.
1232 * java/lang/VirtualMachineError.java: Added FIXME note.
1234 * configure.in (INTERPSPEC): New spec.
1235 * libgcj.spec.in: Added INTERPSPEC.
1236 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1237 gnu/gcj/runtime/MethodInvocation.
1238 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1239 (ordinary_java_source_files): Added above mentioned java classes.
1241 * configure: Rebuilt.
1242 * Makefile.in: Rebuilt.
1244 1999-08-06 Tom Tromey <tromey@cygnus.com>
1246 * configure: Rebuilt.
1247 * configure.in: Look for sched_yield in -lrt.
1249 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1251 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1252 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1253 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1255 (toString): Print correctly when `country' is empty.
1257 1999-08-04 Per Bothner <per@bothner.com>
1259 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1261 1999-08-02 Tom Tromey <tromey@cygnus.com>
1263 * aclocal.m4, configure: Rebuilt for new libtool.
1265 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1267 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1268 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1269 * java/net/ServerSocket.java: Define ANY_IF.
1270 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1271 all network interfaces.
1272 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1273 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1275 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1277 * java/io/natFile.cc (performMkdir): Remove FIXME.
1278 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1280 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1282 * configure.in: Check for bstring.h.
1283 * configure, include/config.h.in: Rebuilt.
1284 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1285 * java/net/natPlainSocketImpl.cc: Likewise.
1287 1999-07-31 Tom Tromey <tromey@cygnus.com>
1292 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1294 * configure.in: Check for struct hostent_data and need for
1295 -D_REENTRANT for gethostbyname_r declaration.
1296 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1297 (lookup): Use hostent_data for fixed_buffer.
1298 * configure, include/config.h.in: Rebuilt.
1300 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1302 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1303 available. Don't cast memmove args to (void*).
1304 * configure.in: Do not abort if memmove is not available.
1306 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1308 * java/lang/natString.cc (substring): optimize where substring is
1310 * java/io/File.java (getName): don't return separator with file name.
1311 * java/io/natFile.cc (attr): fix overflow.
1313 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1315 * mauve-libgcj: Disable Object Serialization tests.
1317 1999-07-20 Warren Levy <warrenl@cygnus.com>
1319 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1320 Default to using PlainDatagramSocketImpl.
1321 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1323 1999-07-19 Tom Tromey <tromey@cygnus.com>
1325 * include/stamp-h.in: New file.
1327 1999-07-12 Tom Tromey <tromey@cygnus.com>
1329 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1332 1999-07-07 Andrew Haley <aph@cygnus.com>
1334 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1335 bytes to make it point after the instruction where the trap
1337 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1339 1999-07-07 Tom Tromey <tromey@cygnus.com>
1341 * mauve-libgcj: Explicitly enable formerly disabled java.text
1344 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1347 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1349 * java/net/URL.java (equals): Compare strings using String.equals.
1350 * java/net/URL.java (sameFile): Ditto.
1352 1999-07-02 Warren Levy <warrenl@cygnus.com>
1354 * configure: Rebuilt.
1355 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1356 * include/config.h.in: Rebuilt.
1357 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1358 (mcastGrp): Updated FIXME comments.
1359 (setOption): Fixed typo.
1360 (getOption):Implemented IP_MULTICAST_IF.
1362 1999-07-02 Warren Levy <warrenl@cygnus.com>
1364 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1365 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1366 (getTimeToLive): Implemented.
1367 (setOption): Implemented IP_MULTICAST_IF.
1369 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1371 * java/lang/String.java (toString): Check for this == null and throw
1372 NullPointerException.
1374 1999-07-01 Warren Levy <warrenl@cygnus.com>
1376 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1377 to count and revised comments to match.
1378 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1379 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1380 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1381 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1382 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1383 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1385 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1387 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1388 properly as count rather than outlength.
1389 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1390 output on overflow rather than buffer fill.
1391 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1392 if markPos is 0 and there is still room in the buffer.
1394 1999-07-01 Andrew Haley <aph@cygnus.com>
1396 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1397 This is a workaround for a bug in glibc's pthreads package which
1398 doesn't deliver any sigcontext information to a signal handler.
1400 1999-06-24 Tom Tromey <tromey@cygnus.com>
1402 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1403 * java/lang/fdlibm.h (HUGE): Conditionally define.
1405 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1407 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1408 * java/lang/e_log.c: Don't use __uint32_t.
1410 1999-05-27 Eric Christopher <echristo@cygnus.com>
1412 * configure: Rebuilt
1413 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1414 * acconfig.h: Rebuilt
1415 * include/config.h.in: Rebuilt
1417 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1418 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1419 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1420 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1421 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1422 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1423 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1424 and namespace collision with __uint32_t
1426 1999-06-23 Tom Tromey <tromey@cygnus.com>
1428 * java/util/zip/InflaterInputStream.java (read): Throw
1429 ZipException if inflater throws a DataFormatException.
1431 1999-06-23 Warren Levy <warrenl@cygnus.com>
1433 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1434 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1435 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1436 is not final per JDK.
1437 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1439 * java/util/zip/DataFormatException.java: Class extends Exception.
1440 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1441 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1442 * java/util/zip/ZipInputStream.java: ditto.
1443 (closeEntry): Changed method name to match JDK spec.
1445 1999-06-21 Tom Tromey <tromey@cygnus.com>
1447 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1450 * Makefile.in: Rebuilt.
1451 * Makefile.am (toolexeclibdir): Define as libdir when
1453 * configure: Rebuilt.
1454 * configure.in (USE_LIBDIR): New conditional.
1456 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1458 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1459 hostname in returned InetAddress objects.
1460 (getLocalHostname): Fix typo.
1461 * java/net/InetAddress.java (getByName): Set hostname on return
1463 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1466 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1468 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1469 interfaces if host==NULL.
1470 (accept): Throw message with InterruptedIOException.
1471 (getOption): Cache localAddress.
1472 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1473 'address' for DatagramSocket.
1474 (setTimeToLive): Fix compiler warnings.
1475 (getOption): Cache localAddress.
1476 * java/net/Socket.java (getLocalAddress): Don't need local
1477 InetAddress object. Add FIXME comment about calling checkConnect().
1478 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1479 connection queue to 50 as per JDK 1.2 docs.
1480 (ServerSocket(int,int)): Listen on all network interfaces by
1481 default, per JDK 1.2 docs.
1482 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1483 Add localAddress caching.
1485 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1487 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1489 (write(byte[],int,int)): ditto.
1491 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1493 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1495 1999-06-11 Warren Levy <warrenl@cygnus.com>
1497 * mauve-libgcj: Activated java.net Mauve tests.
1499 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1501 * java/net/natInetAddress.cc (aton): Fix typos.
1502 (lookup): Use a bigger buffer size for gethostbyname_r on all
1503 versions of glibc. Updated FIXME comment explaining this.
1504 Modified while loops to not set herr = ERANGE to work around glibc
1505 problems. Use user specified hostname in InetAddress result when
1506 available (consistent with JDK).
1508 1999-06-10 Warren Levy <warrenl@cygnus.com>
1510 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1511 Throw FileNotFoundException instead of IOException.
1513 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1515 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1516 in static field name.
1517 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1518 throughout rather than ParseException.
1520 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1522 * java/lang/Runtime.java (exec): Convert prog name and arguments
1524 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1525 environment array conversion. Preserve current environment if envp
1526 not passed. Preserve PATH unless explicitly specified.
1527 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1528 followed by EOF. Set a flag when a line is terminated by '\r' and
1529 ignore following '\n' if set.
1531 1999-06-02 Warren Levy <warrenl@cygnus.com>
1533 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1534 Ignore context if spec is an absolute URL. Fix braindead
1536 (hashCode): Use JDK 1.2 style algorithm.
1537 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1538 context URL properly.
1540 1999-05-30 Anthony Green <green@cygnus.com>
1542 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1543 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1545 1999-05-28 Warren Levy <warrenl@cygnus.com>
1547 * java/net/DatagramSocket.java (laddr): Removed.
1548 (DatagramSocket): Removed attempts to get or set laddr if null.
1549 (getLocalAddress): Reimplemented per spec.
1550 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1552 (joinGroup): Throw NullPointerException if any argument is null.
1553 (leaveGroup): ditto.
1554 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1555 * java/net/PlainSocketImpl.java (timeout): Added.
1556 (getInputStream): Added FIXME comment on how to support timeouts
1558 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1559 * java/net/Socket.java: Added FIXME comments to identify
1560 conflicting specs between the JCL and JDK 1.2 documents.
1561 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1562 if host is null. Get localport value resolved by kernel if bind
1564 (receive): Implemented support for timeouts in UDP.
1565 (setOption): Implemented based on natPlainSocketImpl version.
1567 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1568 resolved by kernel if bind lport is 0.
1569 (connect): Get localport value resolved by kernel if bind wasn't
1570 done to set localport.
1571 (accept): Implemented support for timeouts for ServerSocket.
1572 (setOption): Save value for SO_TIMEOUT.
1573 (getOption): Return timeout for SO_TIMEOUT.
1575 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1577 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1578 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1579 (setOption): Made abstract.
1580 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1581 to avoid cpp conflicts in native code.
1582 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1583 cpp conflicts in native code.
1584 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1585 * java/net/Socket.java (getLocalAddress): Implemented.
1586 (setTcpNoDelay): Implemented.
1587 (getTcpNoDelay): Implemented.
1588 (setSoLinger): Implemented.
1589 (getSoLinger): Implemented.
1590 (getSoTimeout): Verify class type.
1591 (setSendBufferSize): Implemented.
1592 (getSendBufferSize): Implemented.
1593 (setReceiveBufferSize): Implemented.
1594 (getReceiveBufferSize): Implemented.
1595 (toString): Prepended "Socket".
1596 * java/net/SocketImpl.java (toString): Rewritten.
1597 (getOption): Made abstract.
1598 (setOption): Made abstract.
1599 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1600 (setOption): Implemented.
1601 (getOption): Implemented.
1603 1999-05-26 Warren Levy <warrenl@cygnus.com>
1605 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1606 address when null. Set SO_REUSEADDR for multicasts.
1607 (getSoTimeout): Implemented.
1608 (setSoTimeout): Implemented.
1609 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1610 * java/net/MulticastSocket.java (getInterface): Implemented.
1611 (setInterface): Implemented.
1612 (setTimeToLive): Check for invalid ttl.
1613 (joinGroup): Verify multicast address and security.
1614 (leaveGroup): Verify multicast address and security.
1615 (send): Implemented.
1616 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1622 (getTTL): Implemented as non-native.
1626 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1627 (getSoTimeout): Implemented.
1628 (setSocketFactory): Made synchronized.
1629 * java/net/Socket.java (setSoTimeout): Implemented.
1630 (getSoTimeout): Implemented.
1631 (close): Made synchronized.
1632 (setSocketImplFactory): Made synchronized.
1633 * java/net/SocketImpl.java: Implement SocketOptions interface.
1634 * java/net/natInetAddress.cc: Corrected module name at top of file.
1635 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1636 (bind): Added FIXME.
1637 (peek): Implemented.
1643 (setOption): Implemented for SO_REUSEADDR.
1644 (getOption): Implemented for SO_REUSEADDR.
1646 1999-05-24 Tom Tromey <tromey@cygnus.com>
1648 * java/util/ResourceBundle.java (getBundle): Throw
1649 NullPointerException if baseName is null.
1651 1999-05-22 Tom Tromey <tromey@cygnus.com>
1653 * java/util/zip/ZipInputStream.java (fill): New method.
1654 (compressed_len): New instance variable.
1655 (getNextStream): Set it.
1656 (read): Reset inflater on EOF. Only read via `super' if entry is
1658 (skip): Only skip via `super' if entry is deflated.
1659 * java/util/zip/Deflater.java (last_input_count): Removed.
1660 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1662 (needsInput): Don't use last_input_count.
1663 (setInput): Don't set last_input_count.
1664 * java/util/zip/natInflater.cc (getRemaining): Return correct
1666 (inflate): Return 0 if input array is length 0.
1667 (setInput): Don't set last_input_count.
1668 * java/util/zip/Inflater.java (last_input_count): Removed.
1670 1999-05-21 Tom Tromey <tromey@cygnus.com>
1672 * Makefile.in: Rebuilt.
1673 * Makefile.am (INCLUDES): Added $(ZINCS).
1674 * configure: Rebuilt.
1675 * configure.in (ZINCS): New subst.
1677 1999-05-21 Andrew Haley <aph@cygnus.com>
1679 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1680 to signal options to allow the same exceptions to be rethrown
1683 1999-05-20 Andrew Haley <aph@cygnus.com>
1685 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1687 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1688 (INIT_FPE): Exception string made more informative.
1689 * include/sparc-signal.h (INIT_FPE): Exception string made more
1691 * testsuite/libjava.lang/Divide_1.java: New file.
1692 * testsuite/libjava.lang/Divide_1.out: New file.
1694 1999-05-19 Tom Tromey <tromey@cygnus.com>
1696 * aclocal.m4, configure: Rebuilt.
1697 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1699 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1702 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1704 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1706 (update): Fail in default case. Always initialize `strat'.
1708 * mauve-libgcj: Enable java.util.zip.
1710 1999-05-18 Warren Levy <warrenl@cygnus.com>
1712 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1713 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1714 PlainDatagramSocketImpl.java, and SocketOptions.java.
1715 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1716 * Makefile.in: Rebuilt.
1718 * java/net/DatagramPacket.java: New file.
1719 * java/net/DatagramSocket.java: New file.
1720 * java/net/DatagramSocketImpl.java: New file.
1721 * java/net/MulticastSocket.java: New file.
1722 * java/net/PlainDatagramSocketImpl.java: New file.
1723 * java/net/SocketOptions.java: New file.
1724 * java/net/natPlainDatagramSocketImpl.cc: New file.
1726 1999-05-18 Tom Tromey <tromey@cygnus.com>
1728 * java/util/zip/ZipOutputStream.java (level): Initial value is
1729 Deflater.DEFAULT_COMPRESSION.
1730 (close): New method.
1731 (closeEntry): Likewise.
1733 (put_version): Likewise.
1734 (write_entry): Likewise.
1735 (put2, put4): Now return `int'.
1736 (comment): Default to empty string.
1737 (bytes_written): New instance variable.
1739 * java/util/zip/ZipEntry.java (setComment): Limit length of
1741 (setCrc): Check CRC validity.
1742 (setExtra): Check argument validity.
1743 (setMethod): Likewise.
1744 (setSize): Likewise.
1745 (ZipEntry): Likewise.
1746 * include/javaprims.h: Updated namespace declarations.
1747 * Makefile.in: Rebuilt.
1748 * Makefile.am (ordinary_java_source_files): Mention new files.
1749 (nat_source_files): Likewise.
1750 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1753 (getInputStream): Handle compressed entries.
1754 * java/util/zip/GZIPOutputStream.java: New file.
1755 * java/util/zip/GZIPInputStream.java: New file.
1756 * java/util/zip/DataFormatException.java: New file.
1757 * java/util/zip/CheckedInputStream.java: New file.
1758 * java/util/zip/CheckedOutputStream.java: New file.
1759 * java/util/zip/InflaterInputStream.java: Implemented.
1760 * java/util/zip/natInflater.cc: New file.
1761 * java/util/zip/Deflater.java: Implemented.
1762 * java/util/zip/natDeflater.cc: New file.
1763 * java/util/zip/DeflaterOutputStream.java: Implemented.
1765 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1766 ZipException, not IOException.
1767 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1770 1999-05-17 Tom Tromey <tromey@cygnus.com>
1772 * java/lang/natSystem.cc (init_properties): URL now points to
1775 1999-05-12 Per Bothner <bothner@cygnus.com>
1777 * java/util/Calendar.java (set): First call computeFields if needed.
1778 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1780 1999-05-12 Tom Tromey <tromey@cygnus.com>
1782 * configure: Rebuilt.
1783 * configure.in: Look for -ldl when using the Boehm collector.
1784 Look for sched_yield in -lposix4.
1786 1999-05-12 Per Bothner <bothner@cygnus.com>
1788 * java/io/File.java (mkdirs): Handle a null parent directory.
1790 1999-05-12 Tom Tromey <tromey@cygnus.com>
1792 * include/javaprims.h: Updated namespace declarations.
1793 * classes.pl (scan): Uniquify class list.
1794 * Makefile.in, configure: Rebuilt.
1795 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1796 (built_java_source_files): New macro.
1797 (nat_headers): Added built_java_source_files.
1798 (javao_files): Likewise.
1799 (EXTRA_libgcj_la_SOURCES): Likewise.
1800 (libgcj.zip): Create built class files.
1801 ($(built_java_source_files:.java=.class)): New target.
1802 (jv_convert_LDADD): Added -L$(here)/.libs.
1803 * configure.in: Create links for ConcreteProcess.java and
1804 natConcreteProcess.cc.
1805 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1806 * java/lang/natEcosProcess.cc: New file.
1807 * java/lang/EcosProcess.java: New file.
1808 * java/lang/PosixProcess.java: New file.
1809 * java/lang/natPosixProcess.cc: New file.
1811 1999-05-12 Warren Levy <warrenl@cygnus.com>
1813 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1814 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1815 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1816 (connect): Throw ConnectException.
1818 1999-05-11 Tom Tromey <tromey@cygnus.com>
1820 * Makefile.in: Rebuilt.
1821 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1822 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1825 * Makefile.in: Rebuilt.
1826 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1827 and it causes problems with libtool.
1829 * Makefile.in, configure: Rebuilt.
1830 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1831 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1832 (jv_convert_DEPENDENCIES): Added ZDEPS.
1833 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1835 (THREADSPEC): Added `-L' to point to qthreads build directory.
1839 * configure, Makefile.in: Rebuilt.
1840 * Makefile.am (toolexeclib_DATA): New macro.
1841 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1842 Recognize --with-system-zlib.
1843 (GCSPEC): New subst.
1844 (THREADSPEC): New subst.
1845 (SYSTEMSPEC): New subst.
1846 (ZLIBSPEC): New subst.
1847 * libgcj.spec.in: New file.
1849 1999-05-10 Tom Tromey <tromey@cygnus.com>
1851 * java/io/InputStreamReader.java (read): If length is 0, return
1852 0. Reset `wpos' and `wcount' when buffer has been filled and
1855 * java/util/Properties.java (save): Removed `FIXME' comment.
1856 (load): Invalid characters in \u now treated as terminators.
1857 Make sure to append character resulting from `\' handling.
1858 Cast to `char' when appending to key or value.
1859 (skip_ws): Inverted test for whitespace.
1861 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1863 (readLine): Likewise.
1864 (readFully): Implemented.
1866 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1868 * java/awt/natToolkit.cc: Added copyright header.
1869 * java/util/zip/InflaterInputStream.java: Added copyright header.
1871 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1873 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1875 (getNextStream): Likewise.
1877 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1879 (getBundle): Don't explicitly throw null pointer exception.
1881 * gnu/gcj/RawData.java: Added copyright header.
1883 * include/jni.h (_Jv_va_list): Always define as va_list.
1885 1999-05-9 Anthony Green <green@cygnus.com>
1887 * java/text/DateFormat.java (computeInstance): Separate time
1889 (getDateTimeInstance): Ditto.
1890 (getDateTimeInstance(int,int)): New method.
1892 * Makefile.in: Rebuilt.
1893 * Makefile.am (ordinary_java_source_files): Add new classes.
1895 * java/util/PropertyResourceBundle.java: New file.
1896 * gnu/gcj/util/EnumerationChain.java: New file.
1898 1999-05-07 Tom Tromey <tromey@cygnus.com>
1900 * acconfig.h (GCJVERSION): New undef.
1901 * java/lang/natSystem.cc (init_properties): Define java.version,
1902 java.class.version, os.name, os.arch, os.version.
1903 Include <sys/utsname.h> if required.
1904 * configure: Rebuilt.
1905 * configure.in: Compute and define GCJVERSION.
1907 * java/lang/natSystem.cc (default_file_encoding): Now static.
1909 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1911 * libtool-version: New file.
1912 * Makefile.in: Rebuilt.
1913 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1916 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1917 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1920 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1921 (we pick those up already).
1923 1999-05-05 Per Bothner <bothner@cygnus.com>
1925 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1926 stub classes. (This is enough to get Kawa to compile against libgcj.)
1928 * gnu/gcj/RawData.java: New class.
1929 * doc/cni.sgml: Document RawData.
1931 * java/util/zip/InflaterInputStream.java: New stub class.
1932 * java/util/zip/ZipInputStream.java: New class. Partly works.
1933 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1934 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1935 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1936 * java/util/zip/ZipOutputStream.java: Start implementation.
1938 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1939 (default_file_encoding): New global, initial value is above macro.
1940 (init_properties): Default file.encoding to default_file_encoding.
1942 * Makefile.am: Add new classes.
1944 1999-05-05 Tom Tromey <tromey@cygnus.com>
1946 * Makefile.in: Rebuilt.
1947 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1948 (clean-local): New target
1950 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1951 (load, loadLibrary): Now native.
1953 * java/lang/Runtime.java (load, loadLibrary): Now native.
1954 (init): New native method.
1955 (Runtime): Use init.
1956 * prims.cc: Include <ltdl.h> if required.
1957 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1959 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1961 * configure.in: Switch from irix threads to posix threads
1962 * configure: Regenerate.
1964 1999-04-30 Tom Tromey <tromey@cygnus.com>
1966 * Makefile.in: Rebuilt.
1967 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1969 1999-04-29 Tom Tromey <tromey@cygnus.com>
1971 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1974 * java/util/Locale.java (Locale(String,String)): Implement in
1975 terms of 3-argument version; variant now defaults to empty
1977 (toString): Assume variant is not null.
1978 (equals): Assume all strings are not null.
1979 (Locale): Throw NullPointerException if any argument is null.
1981 * java/util/ResourceBundle.java (getBundle): Don't try the base
1982 name; now implicit in partialGetBundle call.
1983 (trySomeGetBundle): Search for parent bundles and call setParent
1985 (partialGetBundle): Added `langStop' argument. Use
1986 `Locale.toString' to compute bundleName.
1987 (resource_cache): New static field.
1988 (partialGetBundle): Cache the returned resource bundle. Now
1991 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1994 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1995 * java/text/natCollator.cc (decomposeCharacter): `base' now
1997 * Makefile.in: Rebuilt.
1998 * Makefile.am (ordinary_java_source_files): Added
1999 CollationElementIterator, CollationKey, Collator,
2001 (nat_source_files): Added natCollator.cc.
2002 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2003 (compare): Pass `this' to CollationElementIterator constructor.
2004 (getCollationElementIterator): Likewise.
2005 (ceiNext): Fix off-by-one error when finding initial substring.
2006 (next): Correctly mask off bits when computing return value.
2007 Fixed return values when one string is shorter than the other.
2008 * java/text/CollationElementIterator.java (collator): New field.
2009 (CollationElementIterator): Added collator argument.
2010 (next): Call ceiNext on collator object.
2012 1999-04-26 Tom Tromey <tromey@cygnus.com>
2014 * natCollator.cc: New file.
2016 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2017 (GregorianCalendar): Use it in all constructors.
2018 * java/util/Calendar.java (Calendar): Changed argument name to
2019 `zone' to match code.
2021 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2022 * java/text/CollationKey.java: New file.
2023 * java/text/CollationElementIterator.java: New file.
2024 * java/text/Collator.java: New file.
2025 * java/text/RuleBasedCollator.java: New file.
2027 * Makefile.in: Rebuilt.
2028 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2029 (jv_convert_LDADD): Explicltly add -lm -lc.
2031 1999-04-26 Tom Tromey <tromey@cygnus.com>
2033 * configure, Makefile.in: Rebuilt.
2034 * configure.in: Added AM_PROG_LIBTOOL.
2035 (GCOBJS): Use `.lo' form of files.
2036 (THREADOBJS): Likewise.
2037 (GCDEPS): Use `.la' form of library.
2038 (GCLIBS): Set to be the same as GCDEPS.
2039 (THREADDEPS): Use `.la' form of library.
2040 (THREADLIBS): Set to be the same as THREADDEPS.
2041 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2042 toolexeclib_LIBRARIES.
2043 (libgcj_la_SOURCES): Renamed for libtoolization.
2044 (EXTRA_libgcj_la_SOURCES): Likewise.
2045 (libgcj_la_DEPENDENCIES): Likewise.
2046 (libgcj_la_LIBADD): Likewise.
2047 ($(nat_files)): Use LTCXXCOMPILE.
2048 ($(c_files)): Use LTCOMPILE.
2049 (GCJCOMPILE): New macro.
2051 (.java.o): Likewise.
2052 ($(javao_files)): Likewise.
2053 (jv_convert_LINK): Use LIBTOOL.
2054 (nat_files): Use `.lo' files.
2055 (c_files): Likewise.
2056 (javao_files): Likewise.
2057 (.class.lo): Renamed.
2058 (.java.lo): Likewise.
2059 ($(nat_files)): Depend on %.lo.
2060 ($(c_files)): Likewise.
2061 ($(javao_files)): Likewise.
2062 (jv_convert_LDADD): Link against .lo files.
2063 (jv_convert_DEPENDENCIES): Depend on .lo files.
2064 (maintainer-check): Depend on libgcj.la, but examine .a file.
2065 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2066 (libgcj_la_LDFLAGS): New macro.
2068 1999-04-23 Warren Levy <warrenl@cygnus.com>
2070 * Makefile.am: Added URLDecoder and URLEncoder.
2071 * Makefile.in: Rebuilt.
2073 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2074 setSocketImplFactory to match spec.
2075 * java/net/Socket.java (getSoLinger): Changed return type to
2078 * java/net/URLDecoder.java: New file.
2079 * java/net/URLEncoder.java: New file.
2081 1999-04-21 Tom Tromey <tromey@cygnus.com>
2083 * java/lang/natString.cc (getBytes): Reverted earlier change and
2084 applied correct fix from Per Bothner.
2086 * java/lang/String.java: Don't throw
2087 UnsupportedEncodingException.
2089 * java/lang/natString.cc (getBytes): Correctly size result
2090 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2092 1999-04-20 Andrew Haley <aph@cygnus.com>
2094 * include/sparc-signal.h: new file.
2095 * configure.in: include/sparc-signal.h added.
2096 * configure: regenerated.
2097 * prims.cc (JvRunMain): signal handling code rewritten to be more
2099 (catch_segv): ditto.
2101 * include/i386-signal.h: reorganized.
2102 * include/default-signal.h: reorganized.
2104 1999-04-19 Tom Tromey <tromey@cygnus.com>
2106 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2107 once. From Anthony Green.
2109 1999-04-19 Andrew Haley <aph@cygnus.com>
2111 * Makefile.in: Processed with new automake.
2113 1999-04-19 Tom Tromey <tromey@cygnus.com>
2115 * include/javaprims.h: Removed security namespace.
2117 1999-04-20 Anthony Green <green@cygnus.com>
2119 * java/io/PrintStream.java (println): Remove extra println.
2121 1999-04-19 Anthony Green <green@cygnus.com>
2123 * Makefile.in: Rebuilt.
2124 * Makefile.am (ordinary_java_source_files): Add new security files.
2126 * java/security/NoSuchAlgorithmException.java,
2127 java/security/MessageDigest.java: New files.
2129 * include/javaprims.h: Add security namespace.
2131 1999-04-16 Per Bothner <bothner@cygnus.com>
2133 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2134 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2135 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2136 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2137 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2138 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2139 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2140 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2141 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2142 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2143 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2144 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2145 * Makefile.am: Various changes for new files and conversions.
2147 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2148 New overloading, allows greater efficiency.
2149 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2150 New overloading (for efficiency - avoids copying).
2152 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2153 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2155 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2156 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2157 (writeChars): Don't be quite so eager to flush.
2158 * java/io/PrintStream.java: Rewrite. Now more similar to
2159 OutputStreamWriter, using explicit UnicodeToBytes converter.
2160 Also, autoflush does not need to flush so often.
2161 * java/lang/natString.cc (getBytes): More efficient algorithm.
2162 (init(jbyteArray,jint,jint,jstring)): More efficient.
2164 1999-04-15 Warren Levy <warrenl@cygnus.com>
2166 * Makefile.am (ordinary_java_source_files): Added new Connection
2167 and Handler classes in gnu.gcj.protocol.file package.
2168 * Makefile.in: Rebuilt.
2170 * gnu/gcj/protocol/file/Connection.java: New file.
2171 * gnu/gcj/protocol/file/Handler.java: New file.
2172 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2173 if doInput allows input.
2174 (getOutputStream): Check if doOutput allows output.
2175 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2177 1999-04-14 Tom Tromey <tromey@cygnus.com>
2179 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2180 buffer larger to work around bug.
2181 From Bryce McKinlay <bryce@albatross.co.nz>.
2183 1999-04-14 Andrew Haley <aph@cygnus.com>
2185 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2186 NaNs are always converted to the same long value.
2187 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2190 1999-04-13 Tom Tromey <tromey@cygnus.com>
2192 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2193 instead switch on actual element type.
2195 * Makefile.in: Rebuilt.
2196 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2198 1999-04-13 Andrew Haley <aph@cygnus.com>
2200 * include/i386-signal.h, include/default-signal.h: New files.
2201 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2203 (catch_fpe): New function.
2204 * configure.in: Make link to appropriate include/java-signal.h.
2205 * configure: Rebuilt.
2206 * Makefile.am: include/java-signal.h added to dependency list.
2207 * Makefile.in: Rebuilt.
2209 1999-04-12 Urban Widmark <urban@svenskatest.se>
2211 * java/io/DataInputStream.java (readLine): Corrected handling of
2212 empty lines, from null to "".
2214 1999-04-12 Tom Tromey <tromey@cygnus.com>
2216 * Makefile.in: Rebuilt.
2217 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2219 * java/lang/natSystem.cc (SystemClass): New define.
2220 (init_properties): Synchronize.
2222 1999-04-08 Geoff Berry <gcb@gnu.org>
2224 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2225 * natPlainSocketImpl.cc (accept): Add missing else if check
2228 1999-04-08 Tom Tromey <tromey@cygnus.com>
2230 * java/lang/Long.java (parseLong): Corrected overflow detection
2232 * java/lang/Integer.java (parseInt): Corrected overflow detection
2235 * java/io/PrintStream.java (print): Handle null string argument.
2236 (println): Likewise.
2238 1999-04-07 Warren Levy <warrenl@cygnus.com>
2240 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2241 Set count to 0 when InputStreamReader returns -1 for EOF.
2243 1999-04-07 Tom Tromey <tromey@cygnus.com>
2245 * mauve-libgcj: Omit java.text.Collator,
2246 java.text.RuleBasedCollator.
2248 1999-04-06 Tom Tromey <tromey@cygnus.com>
2250 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2251 IOException from getHttpHeaders().
2252 (getHeaderFieldKey): Likewise.
2254 * include/javaprims.h: Regenerated declarations.
2256 * Makefile.in: Rebuilt.
2257 * Makefile.am (ordinary_java_source_files): Updated for removed
2260 1999-04-06 Per Bothner <bothner@cygnus.com>
2262 * java/util/zip/Adler32.java: New class.
2263 * java/util/zip/CRC32.java: Add working method bodies.
2264 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2265 * Makefile.in: Re-generate.
2267 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2269 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2270 from version in removed www hierarchy.
2271 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2272 version in removed www hierarchy.
2274 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2275 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2276 * gnu/gcj/www/protocol/http: Removed dir.
2277 * gnu/gcj/www/protocol: Removed dir.
2278 * gnu/gcj/www: Removed dir.
2280 * java/net/HttpURLConnection.java: Revised comments to indicate
2281 missing JDK 1.2 methods.
2283 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2284 hierarchy rather than the gnu/gcj/www/protocol one.
2285 * java/net/URLConnection.java: Updated status comments.
2286 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2287 the gnu/gcj/www/content one.
2289 1999-04-06 Per Bothner <bothner@cygnus.com>
2291 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2292 The gen-from-JIS program is in $(CONVERT_DIR).
2294 1999-04-06 Tom Tromey <tromey@cygnus.com>
2296 * mauve-libgcj: Renamed from mauve-libjava.
2298 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2300 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2301 (getResponseMessage): Implemented.
2302 (getResponseVals): New private method.
2304 * java/net/URLConnection.java (getContent): Implemented.
2305 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2307 1999-04-05 Tom Tromey <tromey@cygnus.com>
2309 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2310 (jv_convert_SOURCES): Renamed.
2311 (EXTRA_jv_convert_SOURCES): Likewise.
2312 (jv_convert_LDFLAGS): Likewise.
2313 (jv_convert_LINK): Likewise.
2314 (jv_convert_LDADD): Likewise.
2315 (jv_convert_DEPENDENCIES): Likewise.
2317 * Makefile.in: Rebuilt.
2318 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2321 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2323 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2324 method for comparison.
2326 * java/net/URLConnection.java (getContentLength): Implemented.
2327 (getContentType): Implemented.
2328 (getContentEncoding): Implemented.
2329 (getExpiration): Implemented.
2330 (getDate): Implemented.
2331 (getLastModified): Implemented.
2332 (getHeaderFieldInt): Implemented.
2333 (getHeaderFieldDate): Implemented.
2335 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2337 * java/net/URLConnection.java (toString): Implemented.
2338 (setContentHandlerFactory): Implemented.
2339 (setContentHandler): Wrote new private helper method.
2341 1999-04-01 Tom Tromey <tromey@cygnus.com>
2343 * Makefile.in: Rebuilt.
2344 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2345 of 1999-03-31; we always want to build all the .class files.
2346 Depend on java_source_files, not libgcj.zip.
2347 (nat_headers): Define in terms of ordinary_java_source_files.
2349 1999-03-31 Tom Tromey <tromey@cygnus.com>
2351 * Makefile.in: Rebuilt.
2352 * Makefile.am (special_java_source_files): New macro.
2353 (java_source_files): Use it.
2354 (ordinary_java_source_files): New macro.
2355 (java_source_files): Use it.
2356 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2357 creating headers for those files with hand-maintained headers.
2359 * include/javaprims.h: Regenerated namespace declarations.
2360 * classes.pl (scan): Include [0-9] in regexp for matching class
2361 names; for java.util.zip.CRC32.
2363 * Makefile.in: Rebuilt.
2364 * Makefile.am (nat_headers): Redefined to generate all possible
2367 * java/util/zip/ZipException.java: In package java.util.zip, not
2370 1999-03-30 Tom Tromey <tromey@cygnus.com>
2372 * configure: Rebuilt.
2373 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2374 eh-common.h when not building in tree with gcc.
2376 * Makefile.in: Rebuilt.
2377 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2378 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2380 ($(java_source_files:.java=.class)): New target.
2382 * Makefile.in: Rebuilt.
2383 * Makefile.am (java_source_files): Added
2384 java/net/HttpURLConnection.java and
2385 gnu/gcj/www/protocol/http/Connection.java.
2387 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2389 * gnu/gcj/www/protocol/http/Connection.java: New file.
2390 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2391 * java/net/HttpURLConnection.java: New file.
2392 * java/net/URLConnection.java (getHeaderField): Implemented default.
2393 (getHeaderFieldKey): Implemented default method.
2395 1999-03-30 Tom Tromey <tromey@cygnus.com>
2397 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2399 * java/util/zip/Deflater.java: Added copyright header.
2400 * java/util/zip/CRC32.java: Added copyright header.
2402 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2403 that it is automatically generated.
2404 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2406 * gnu/gcj/convert/BytesToUnicode.java,
2407 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2408 gnu/gcj/convert/Input_EUCJIS.java,
2409 gnu/gcj/convert/Input_UTF8.java,
2410 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2411 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2412 gnu/gcj/convert/Output_8859_1.java,
2413 gnu/gcj/convert/Output_JavaSrc.java,
2414 gnu/gcj/convert/Output_UTF8.java,
2415 gnu/gcj/convert/UnicodeToBytes.java,
2416 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2418 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2420 * Makefile.in, configure: Rebuilt.
2421 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2422 not if test subdir exists.
2423 (--enable-gcj-classes): Removed; gcj always used to generate
2425 (JAVA, JAVAC): Removed.
2426 (--enable-single-compilation, --enable-source-compilation):
2429 (NATIVE): New conditional.
2430 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2431 `install-exec' to work.
2432 (toolexeclibdir): Likewise.
2433 (toollib_LIBRARIES): Likewise.
2434 (AM_MAKEFLAGS): Don't pass tooldir.
2436 (javao_files): Redefined.
2437 (java_source_files): New macro.
2438 (c_source_files): New macro.
2439 (c_files): Redefined in terms of c_source_files.
2440 (java_io_files, java_lang_files, java_net_files, java_text_files,
2441 java_util_files, gnu_files, java_files): Removed.
2442 (class_io_files, class_lang_files, class_net_files,
2443 class_text_files, class_util_files, class_gnu_files, class_files):
2445 (nat_source_files): New macro.
2446 (nat_files): Redefined in terms of nat_source_files.
2447 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2448 java_source_files. Removed no-such-file.c.
2450 (ETAGS_ARGS): Removed.
2451 (TAGS_DEPENDENCIES): Likewise.
2452 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2454 (src_io_files, src_lang_files, src_text_files, src_util_files,
2455 src_gnu_files): Removed.
2456 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2457 (BUILT_SOURCES): Removed.
2458 (header-check): New target.
2460 (noinst_PROGRAMS): New macro.
2461 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2463 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2464 (gen-from-JIS): Build in top directory.
2465 (convert_source_files): New macro.
2466 (convert_SOURCES): New macro.
2467 (convert_LDFLAGS): Likewise.
2468 (convert_LINK): Likewise.
2469 (convert_LDADD): Likewise.
2470 (convert_DEPENDENCIES): Likewise.
2472 (gen-from-JIS): Removed.
2473 (gen_from_JIS_SOURCES): New macro.
2474 (gen_from_JIS_LDADD): Likewise.
2475 (gen_from_JIS_DEPENDENCIES): Likewise.
2477 * configure: Rebuilt.
2478 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2479 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2480 when defining conditional.
2482 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2484 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2485 The Unicode Consortium does not permit their re-distribution.
2486 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2487 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2489 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2491 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2493 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2495 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2496 from Unicode Consortium.
2497 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2498 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2499 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2500 New tables, generated using gen-from-JIS.
2501 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2502 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2503 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2504 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2506 * gnu/gcj/convert/Convert.java: New application.
2507 * Makefile.am, Makefile.in (convert): New program, using Convert.
2508 Build the various JIS conversion tables (in maintainer mode).
2510 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2512 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2514 * java/net/URL.java (URL): Deal with null property value. Use "."
2515 as separator in building class name.
2516 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2517 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2518 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2519 beginning of the substring rather than 'start'.
2521 1999-03-26 Tom Tromey <tromey@cygnus.com>
2523 * include/java-chartables.h: Rebuilt.
2524 * include/java-chardecomp.h: New file.
2525 * chartables.pl: Generate output files directly. Added support
2526 for generating decomposition header.
2527 (canonical_decomposition, full_decomposition): New globals.
2528 (DECOMPOSITION): New constant.
2529 (process_char): Call add_decomposition.
2530 (add_decomposition): New sub.
2531 (write_decompositions): New sub.
2533 1999-03-25 Tom Tromey <tromey@cygnus.com>
2535 * java/text/CollationElementIterator.java: New file.
2537 * mauve-libjava: Omit StringTest.
2539 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2541 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2542 without a '/' when parsing protocol. Handle ref outside of parseURL.
2543 (hashCode): Implemented.
2544 (set): Don't expand -1 to default port.
2545 (getDefaultPort): Removed.
2547 * java/net/URLStreamHandler.java (parseURL): Implemented.
2548 (toExternalForm): Implemented.
2550 1999-03-23 Tom Tromey <tromey@cygnus.com>
2552 * java/text/BreakIterator.java (getSentenceInstance):
2554 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2556 * Makefile.in: Rebuilt.
2557 * Makefile.am (nat_headers): Added IllegalAccessException.
2558 * java/lang/natClass.cc (newInstance): Throw
2559 IllegalAccessException, not IllegalAccessError.
2560 Include IllegalAccessException.h.
2562 1999-03-22 Tom Tromey <tromey@cygnus.com>
2564 * gnu/gcj/text/LineBreakIterator.java: New file.
2565 * java/text/BreakIterator.java (getLineInstance): Implemented.
2567 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2568 copy constructor private.
2569 (previous, next): Removed erroneous comment about line
2571 (previous): Correctly recognize break between non-letter on the
2572 left and letter on the right. Handle apostrophes correctly.
2574 * java/text/BreakIterator.java (getWordInstance): Implemented.
2575 * gnu/gcj/text/WordBreakIterator.java: New file.
2576 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2578 * gnu/gcj/text/BaseBreakIterator.java: New file.
2580 1999-03-19 Tom Tromey <tromey@cygnus.com>
2582 * java/text/BreakIterator.java: New file (partially stubbed out).
2583 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2585 * include/config.h.in: Rebuilt.
2586 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2587 (HAVE_TIMEZONE): Likewise.
2588 * configure: Rebuilt.
2589 * configure.in: Added timezone checks.
2590 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2593 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2595 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2596 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2597 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2598 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2599 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2600 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2601 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2602 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2604 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2605 (BSD_COMP): Kludge needed for Solaris2.
2607 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2609 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2610 URL(java.net.URL, string, URLStreamHandler) and call it with a
2611 null handler. In latter constructor, added SecurityManager check.
2612 (set): Expect null handler on bad protocol rather than an exception.
2613 (setURLStreamHandler): Simplified exception handling; return null
2614 on invalid protocol.
2616 1999-03-18 Tom Tromey <tromey@cygnus.com>
2618 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2620 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2622 Include PrintStream.h, InputStream.h.
2623 * java/lang/System.java (ForwardingInputStream,
2624 ForwardingOutputStream): Removed.
2625 (setErr, setIn, setOut): Now native.
2627 Reverted patch from 1999-02-12 to work around problem in
2629 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2630 (_Jv_eh_free): Use free.
2632 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2633 for path name. Minor formatting fixes.
2635 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2637 * prims.cc (fail_on_finalization): New function.
2638 (_Jv_GCWatch): Likewise.
2640 * prims.cc (JvRunMain): Initialize `nullp'.
2641 (nullp): New global.
2642 (catch_segv): Throw nullp.
2644 * Makefile.in: Rebuilt.
2645 * Makefile.am (ZIP): In "null target" case, zip is found in the
2648 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2652 * java/lang/StringBuffer.java (StringBuffer): Don't use
2653 ensureCapacity to set initial capacity.
2654 (capacity): Subtract `length' from return result.
2656 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2658 * java/io/natFileDescriptorPosix.cc (open): Throw
2659 FileNotFoundException, but with filename and errno in msg.
2661 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2663 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2664 functionality folded into java/net/URL.java per spec.
2666 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2667 than EEXIST for throwing FileNotFoundException.
2669 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2670 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2672 * java/net/URLStreamHandler.java (parseURL): Added stub.
2674 1999-03-15 Andrew Haley <aph@cygnus.com>
2676 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2679 1999-03-15 Andrew Haley <aph@cygnus.com>
2681 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2684 1999-03-12 Tom Tromey <tromey@cygnus.com>
2686 * prims.cc (catch_segv): New function.
2687 Include <signal.h> if HANDLE_SEGV defined. Include
2688 NullPointerException.h.
2689 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2692 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2693 a SimpleDateFormat, not just a DateFormat.
2694 (defaultCenturyStart, formatData, pattern): Now private.
2695 (append): Now `final'. Use `NumberFormat.format'.
2697 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2699 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2702 * java/text/MessageFormat.java (format): Use default MessageFormat
2704 (parse, parseObject): Wrote.
2706 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2709 1999-03-12 Andrew Haley <aph@cygnus.com>
2711 * java/lang/String.java (indexOf): Replace with native method for
2713 * java/lang/natString.cc (IndexOf): As above.
2715 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2716 Argument check corrected.
2717 (init(jbyteArray,jint,jint,jstring)): Likewise.
2719 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2720 1.2 compliant method.
2722 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2724 * java/lang/Float.java (byteValue, shortValue): Likewise.
2726 1999-03-11 Tom Tromey <tromey@cygnus.com>
2728 * java/text/DecimalFormat.java (parse): Wrote.
2730 * java/text/ChoiceFormat.java (parse): Set error index on
2731 ParsePosition object.
2733 * java/lang/Integer.java (parseInt): Throw exception on overflow
2734 when intermediate result is most negative number. Changed
2735 overflow detection as well.
2736 * java/lang/Long.java (parseLong): Likewise.
2738 * configure, Makefile.in: Rebuilt.
2739 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2740 CANADIAN when building in source tree that doesn't include gcc.
2741 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2744 * java/text/ChoiceFormat.java (nextDouble): Correct some
2745 off-by-one errors when masking or adding.
2747 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2748 parameter, if given. Use `%', not IEEEremainder.
2749 (scanFix): Throw error if multiplier already set.
2750 (computePattern): Wrote.
2752 1999-03-11 Andrew Haley <aph@cygnus.com>
2754 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2756 (nextDouble): Corrected masking logic. Handle interaction between
2757 `next' and negative numbers.
2759 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2761 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2762 * java/net/URL.java: Added general comments.
2764 1999-03-10 Tom Tromey <tromey@cygnus.com>
2766 * java/text/ChoiceFormat.java (parse): Wrote.
2768 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2770 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2771 Create ChoiceFormat objects.
2772 (format): Special-case ChoiceFormat.
2773 (scanFormatElement): Include { and } in generated style string.
2775 1999-03-09 Tom Tromey <tromey@cygnus.com>
2777 * java/text/ChoiceFormat.java: New file.
2779 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2781 * java/net/BindException.java: Created.
2782 * java/net/ConnectException.java: Created.
2783 * java/net/ContentHandler.java: Created.
2784 * java/net/ContentHandlerFactory.java: Created.
2785 * java/net/FileNameMap.java: Created.
2786 * java/net/MalformedURLException.java: Created.
2787 * java/net/NoRouteToHostException.java: Created.
2788 * java/net/ProtocolException.java: Created.
2789 * java/net/ServerSocket.java (@author): Fixed typo.
2790 * java/net/Socket.java (@author): Fixed typo.
2791 * java/net/SocketImpl.java (@author): Fixed typo.
2792 * java/net/SocketImplFactory.java (@author): Fixed typo.
2793 * java/net/URL.java: Created - nearly complete.
2794 * java/net/URLConnection.java: Created - near-empty stub.
2795 * java/net/URLStreamHandler.java: Created - incomplete stub.
2796 * java/net/URLStreamHandlerFactory.java: Created.
2797 * java/net/UnknownServiceException.java: Created.
2799 1999-03-09 Tom Tromey <tromey@cygnus.com>
2801 * java/lang/System.java (ForwardingInputStream): New class.
2802 (ForwardingOutputStream): Likewise.
2803 (in, out, err): Now `final' forwarding streams.
2804 (setIn, setOut, setErr): Use appropriate method on forwarding
2807 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2810 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2812 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2813 * java/util/zip/Checksum.java: New interface (complete).
2814 * java/util/zip/Deflater.java: New class (near-empty stub).
2815 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2816 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2817 * java/util/zip/ZipEntry.java: New class (complete).
2818 * java/util/zip/ZipException.java: New class (complete).
2819 * java/util/zip/ZipFile.java: New class (incomplete stub).
2820 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2822 1999-03-09 Tom Tromey <tromey@cygnus.com>
2824 * java/text/MessageFormat.java (MessageFormatElement): Removed
2825 `public' specifiers.
2827 * java/text/DecimalFormat.java (scanFormat): Increment index
2828 before processing exponential format. Fixed a couple typos in
2830 (format): Correct normalization of exponent.
2832 1999-03-08 Tom Tromey <tromey@cygnus.com>
2834 * java/text/SimpleDateFormat.java (parse): Throw
2835 IllegalArgumentException, not ParseException.
2837 1999-03-05 Tom Tromey <tromey@cygnus.com>
2839 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2840 when constructing DateFormatSymbols. Initialize numberFormat
2841 field of superclass.
2843 * java/text/DateFormat.java (equals): Rewrote.
2844 (getAvailableLocales): New method.
2845 (getDateInstance): New methods.
2846 (getDateTimeInstance): Likewise.
2847 (getTimeInstance): Likewise.
2848 (getInstance): New method.
2849 (computeInstance): New method.
2851 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2853 (safeGetResource): New method.
2854 (DateFormatSymbols): Use Locale paramater.
2855 (equals): Now protected.
2856 Made instance variables private.
2858 1999-03-04 Tom Tromey <tromey@cygnus.com>
2860 * java/text/DecimalFormat.java: New file.
2862 * java/text/NumberFormat.java (groupingUsed,
2863 maximumFractionDigits, maximumIntegerDigits,
2864 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2866 (setDecimalSeparatorAlwaysShown, setMultiplier,
2867 setPositivePrefix): Removed.
2868 (setMinimumFractionDigits, setMaximumFractionDigits):
2870 (format): Now final.
2871 Added many new methods.
2873 * Makefile.in: Rebuilt.
2874 * Makefile.am (gnu_files): New macro.
2875 (java_files): Added gnu_files.
2876 (class_gnu_files): New macro.
2877 (class_files): Use it.
2878 (src_gnu_files): New macro.
2879 (gnu.o): New target.
2880 (javao_files): Added gnu.o.
2882 * gnu/gcj/text/LocaleData_en_US.java: New file.
2883 * gnu/gcj/text/LocaleData_en.java: New file.
2884 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2885 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2886 (safeGetString): New method.
2887 (safeGetChar): Likewise.
2889 1999-03-03 Tom Tromey <tromey@cygnus.com>
2891 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2894 * java/text/FieldPosition.java (equals): Don't check for null
2895 object; instanceof does this.
2897 * java/util/Locale.java (clone): New method.
2900 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2902 * doc/cni.sgml: New file.
2904 1999-03-03 Tom Tromey <tromey@cygnus.com>
2906 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2908 * java/text/DecimalFormatSymbols.java: New file.
2910 1999-03-02 Tom Tromey <tromey@cygnus.com>
2912 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2914 * configure: Rebuilt.
2915 * configure.in: Check for sys/filio.h.
2917 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2919 (load): Always throw UnsatisfiedLinkError.
2920 (loadLibrary): Likewise.
2922 1999-03-02 Anthony Green <green@cygnus.com>
2924 * LIBGCJ_LICENSE: New file.
2925 * LIBJAVA_LICENSE: Removed.
2926 * Many files: libjava now libgcj.
2928 1999-03-02 Tom Tromey <tromey@cygnus.com>
2930 * include/java-chartables.h: Rebuilt.
2931 * chartables.pl (print_block): Make table `const'.
2932 (print_numerics): Likewise.
2933 (print_single_map): Likewise.
2934 (print_all_block): Likewise.
2935 (print_case_table): Likewise.
2936 (print_fast_tables): Likewise.
2937 * java/lang/natCharacter.cc (table_search): `table' argument now
2940 1999-03-01 Tom Tromey <tromey@cygnus.com>
2942 * java/util/Date.java (before, after): Inverted logic.
2944 * java/util/Date.java (parse): Handle case where first character
2945 in string is open parenthesis.
2946 (skipParens): Rewrote.
2948 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2949 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2951 * java/util/Date.java (parse): Correctly compute beginning of
2954 * java/util/Hashtable.java (get): Throw NullPointerException if
2956 (containsKey): Likewise.
2958 * java/util/Properties.java (list): Truncate value to 37
2959 characters and add `...'.
2961 * java/lang/Byte.java (parseByte): Pass `radix' to
2964 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2966 Include System.h, PrintStream.h.
2968 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2971 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2973 * configure: Rebuilt.
2974 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2977 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2979 * java/lang/SecurityManager.java: Import java.net.*.
2980 (checkMulticast): New methods.
2982 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2984 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2985 (nat_files): Add java/lang/reflect/natArray.o.
2986 (nat_headers): Add Field.h and NoSuchFieldException.h.
2988 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2989 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2990 (_Jv_FromReflectedField): Fix buglet.
2991 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2992 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2993 * prims.cc (_Jv_Abort): Include message in print-out.
2995 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2996 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2997 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2999 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3000 * include/config.h.in (HAVE_PWD_H): New feature macro.
3001 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3002 user.name, user.home, user.dir.
3004 * java/lang/reflect/Array.java: New class.
3005 * java/lang/reflect/natArray.cc: New native methods.
3006 * include/javaprims.h: Declare java::lang::reflect::Array.
3008 * java/lang/Class.h (getField): New private method. Add friends.
3009 * java/lang/Class.java (getField): Add private overload.
3010 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3011 getDeclaredMethods): Add working implementations.
3012 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3013 Finish implementation, except for access control.
3015 * java/lang/reflect/Modifier.java (toString): New overload.
3016 * include/java-method.h: New file.
3017 * java/lang/reflect/Method.java (index): Replaced by offset field.
3018 Remove various private fields - get them from _Jv_Field instead.
3019 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3020 New method implementations.
3022 * java/text/NumberFormat.java: Add a bunch of methods.
3024 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3026 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3028 1999-02-26 Tom Tromey <tromey@cygnus.com>
3030 * include/config.h.in: Rebuilt.
3031 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3032 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3033 HAVE_GETHOSTBYADDR_R): New defines.
3034 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3035 gethostbyaddr_r if available.
3037 * configure: Rebuilt.
3038 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3040 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3044 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3045 * prims.cc (_Jv_AllocBytesChecked): New function.
3047 * Makefile.in: Rebuilt.
3048 * Makefile.am (SUBDIRS): Removed `test'.
3049 * configure: Rebuilt.
3050 * configure.in: Don't build test/Makefile.
3051 * test/*: Removed all files.
3053 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3055 * java/lang/reflect/Constructor.java: Make class final to match spec.
3056 * java/lang/reflect/Method.java: Ditto.
3058 1999-02-25 Tom Tromey <tromey@cygnus.com>
3060 * java/net/natInetAddress.cc: Include <sys/types.h> before
3062 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3065 * java/net/natInetAddress.cc: Declare gethostname if required.
3066 * include/config.h.in: Rebuilt.
3067 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3068 * configure: Rebuilt.
3069 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3070 declared in unistd.h.
3072 1999-02-24 Tom Tromey <tromey@cygnus.com>
3074 * Makefile.in: Rebuilt.
3075 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3076 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3077 from private to "none".
3079 * include/javaprims.h: Regenerated class declarations with new
3081 * classes.pl (scan): Only generate decls for java.lang, java.io,
3084 1999-02-24 Tom Tromey <tromey@cygnus.com>
3086 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3087 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3089 1999-02-23 Tom Tromey <tromey@cygnus.com>
3091 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3092 not already defined.
3093 * java/io/natFile.cc (_REENTRANT): Only define if not already
3095 * include/config.h.in: Rebuilt.
3096 * acconfig.h (HAVE_BOEHM_GC): New define.
3097 * configure: Rebuilt.
3098 * configure.in: Define HAVE_BOEHM_GC if using it.
3099 * posix-threads.cc: Include boehm-config.h and gc.h if
3101 * include/posix-threads.h: Added explanatory note about Boehm GC.
3103 * java/io/BufferedReader.java (readLine): Only return null when
3104 EOF seen before any characters read. (In particular, an empty
3105 line should not return null.)
3107 * java/io/BufferedInputStream.java (read): Only refill once per
3110 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3111 java.lang.Character.classify12, java.lang.String.hash,
3112 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3113 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3115 * java/text/StringCharacterIterator.java (setIndex): No error if
3117 (next): Check for `pos == end', not `end - 1'.
3118 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3119 for null text in each constructor.
3120 (clone): Fixed order of arguments to constructor.
3122 1999-02-22 Tom Tromey <tromey@cygnus.com>
3124 * include/config.h.in: Rebuilt.
3125 * acconfig.h (HAVE_INET6): New define.
3126 (HAVE_SOCKLEN_T): Likewise.
3127 * java/net/PlainSocketImpl.java: Added copyright header.
3128 * java/net/natPlainSocketImpl.cc: Added copyright header.
3129 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3131 (connect): Likewise.
3133 (socklen_t): New typedef.
3134 (accept): Use socklen_t.
3135 * java/net/natInetAddress.cc: Added copyright header.
3136 (HAVE_GETHOSTNAME): Don't define.
3137 (HAVE_INET_ADDR): Likewise.
3138 (lookup): Fixed typo.
3139 (aton): Don't use `address' as name of local variable.
3140 (lookup): Use HAVE_INET6, not AF_INET6.
3142 * configure: Rebuilt.
3143 * configure.in: Look for functions inet_aton, inet_addr,
3144 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3145 Check for socklen_t typedef.
3147 * exception.cc (__throw): Declare as __noreturn__.
3149 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3151 * Makefile.am, Makefile.in: Also build java/net.
3152 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3154 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3155 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3157 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3158 * include/cni.h (JvMalloc, JvFree): New inline functions.
3159 (JvThrow): Add __noreturn__ attribute.
3160 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3161 (_Jv_Throw): Add __noreturn__ attribute.
3163 * java/net/PlainSocketImpl.java: Init fnum to -1.
3164 * java/net/ServerSocket.java: Add missing throws clauses.
3165 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3166 don't call create on the latter. Instead, other constructors
3167 have to explicitly call SocketImpl.create.
3168 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3169 from size_t to int, to match ::accept prototype.
3170 * java/net/natInetAddress.cc: Use JvFree rather than free.
3173 1999-02-22 Tom Tromey <tromey@cygnus.com>
3175 * include/javaprims.h: Added new classes.
3176 * java/text/StringCharacterIterator.java: New file.
3177 * java/text/CharacterIterator.java: New file.
3179 * java/text/ParseException.java (errorOffset): Now private.
3181 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3183 * java/net: New package.
3184 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3185 Socket.java,SocketException.java,SocketImpl.java,
3186 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3187 natPlainSocketImpl.cc}: New classes.
3189 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3190 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3191 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3192 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3194 * classes.pl: Translate package into "namespace", not "class".
3195 * include/javaprims.h: Update class list, using "namespace".
3197 1999-02-21 Tom Tromey <tromey@cygnus.com>
3199 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3200 Define when appropriate.
3202 1999-02-20 Tom Tromey <tromey@cygnus.com>
3204 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3205 as a single byte and \u07ff as two bytes.
3206 (_Jv_GetStringUTFLength): Likewise.
3207 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3208 with 0x0f, not 0x1f.
3210 1999-02-19 Tom Tromey <tromey@cygnus.com>
3212 * java/io/DataOutputStream.java (writeUTF): When encoding
3213 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3214 * java/io/DataInputStream.java (readUTF): Mask second byte of
3215 3-byte character with 0x3f, not 0x1f.
3217 * java/io/DataInputStream.java (readLong): Cast result of
3218 readUnsignedByte to long before using.
3220 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3223 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3224 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3225 argument to avoid warning.
3226 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3227 argument to avoid warning.
3229 1999-02-18 Tom Tromey <tromey@cygnus.com>
3231 * mauve-libjava: Omit java.io.DataInputOutput and
3232 java.io.Utf8Encoding.
3234 1999-02-17 Tom Tromey <tromey@cygnus.com>
3236 * Makefile.in: Rebuilt.
3237 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3238 * java/io/natFileDescriptorPosix.cc: Include
3239 InterruptedIOException.h, Thread.h.
3240 (write): Throw InterruptedIOException when required.
3242 * posix-threads.cc: Include <signal.h>.
3243 (_Jv_ThreadInterrupt): New function.
3245 (handle_intr): New function.
3246 (_Jv_InitThreads): Register handle_intr via sigaction.
3247 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3248 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3249 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3250 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3252 1999-02-19 Andrew Haley <aph@cygnus.com>
3254 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3256 (ThreadGroup (int)): Set the maximum priority of the initial
3259 1999-02-18 Andrew Haley <aph@cygnus.com>
3261 * java/lang/natClass.cc (forName): Check for the case where a
3262 classname is the name of an array and call FindClassFromSignature
3265 1999-02-18 Andrew Haley <aph@cygnus.com>
3267 * java/lang/StringBuffer (insert (int, String)): Move up any
3268 characters above the insert position and increase the length of
3269 the string buffer by the length of the argument.
3270 (insert (int, char[])): Likewise.
3271 (insert (int, char)): Likewise.
3272 (StringBuffer (String)): The initial capacity of the string buffer
3273 is 16 plus the length of the argument.
3274 (getChars): Add a JDK 1.2 FIXME.
3276 1999-02-18 Andrew Haley <aph@cygnus.com>
3278 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3281 1999-02-18 Andrew Haley <aph@cygnus.com>
3283 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3284 instead of floating-point equality. This is necessary for
3285 correct floating-point Hashtables.
3286 * java/lang/Float.java (equals): Ditto.
3288 1999-02-16 Tom Tromey <tromey@cygnus.com>
3290 * java/util/Properties.java (list): Truncate value to 37
3291 characters and add "...".
3293 1999-02-16 Tom Tromey <tromey@cygnus.com>
3295 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3296 if initCap is negative.
3297 (contains): Implement JDK1.2-style handling of null argument.
3298 (removeElement): Likewise.
3299 (indexOf): Likewise. Also, correctly handle case where idx is
3301 (lastIndexOf): Likewise.
3303 1999-02-16 Tom Tromey <tromey@cygnus.com>
3305 * java/lang/natString.cc (init): Increment source pointer in
3308 1999-02-16 Tom Tromey <tromey@cygnus.com>
3310 * exception.cc: Include NullPointerException.h.
3311 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3313 1999-02-16 Tom Tromey <tromey@cygnus.com>
3315 * Makefile.in: Rebuilt.
3316 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3318 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3320 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3321 we're compiling canadian.
3322 * configure: Regenerated.
3324 1999-02-12 Andrew Haley <aph@cygnus.com>
3326 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3327 deleted from libgcj.
3329 1999-02-12 Tom Tromey <tromey@cygnus.com>
3331 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3332 (_Jv_eh_free): Don't call free.
3333 Don't declare malloc or free.
3335 1999-02-11 Tom Tromey <tromey@cygnus.com>
3337 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3339 1999-02-11 Andrew Haley <aph@cygnus.com>
3341 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3342 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3343 needed by java.lang.*.
3344 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3345 wf_fmod.o: Removed from libjava.a.
3347 1999-02-11 Tom Tromey <tromey@cygnus.com>
3349 * include/javaprims.h: Reverted previous change; with it
3350 exception.cc can't compile.
3352 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3354 * include/config.h.in: Rebuilt.
3355 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3357 * configure: Rebuilt.
3358 * configure.in: Check for sched_yield. Look in thread library for
3359 all thread functions.
3361 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3362 no recursive mutexes.
3363 (_Jv_MutexDestroy): Define when required.
3364 (_Jv_MutexLock): Likewise.
3365 (_Jv_MutexUnlock): Likewise.
3366 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3367 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3368 (_Jv_Mutex_t): New structure.
3369 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3370 (_Jv_MutexLock): Likewise.
3371 (_Jv_MutexUnlock): Likewise.
3373 1999-02-10 Tom Tromey <tromey@cygnus.com>
3375 * aclocal.m4, configure, Makefile.in: Rebuilt.
3376 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3378 * configure.in: Changed to track library changes.
3379 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3380 (AM_CXXFLAGS): Likewise.
3381 (data_DATA): Likewise.
3382 (AM_CFLAGS): Likewise.
3383 (JC1FLAGS): Likewise.
3384 (libgcj_a_SOURCES): Likewise.
3385 (EXTRA_libgcj_a_SOURCES): Likewise.
3386 (libgcj_a_DEPENDENCIES): Likewise.
3387 (libgcj_a_LIBADD): Likewise.
3388 (libgcj.zip): Likewise.
3389 (CLEANFILES): Likewise.
3390 ($(nat_headers)): Likewise.
3391 (java/lang/FirstThread.h): Likewise.
3392 (java/lang/ThreadGroup.h): Likewise.
3393 (java/lang/String.h): Likewise.
3394 (java/lang/reflect/Field.h): Likewise.
3395 (BUILT_SOURCES): Likewise.
3396 (maintainer-check): Likewise.
3397 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3398 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3400 * java/util/natGregorianCalendar.cc (computeFields): Only use
3401 gmtime_r and localtime_r when configured for posix threads.
3403 * java/io/natFile.cc (get_entry): Only use readdir_r when
3404 configured for posix threads.
3406 * java/util/natGregorianCalendar.cc: Update copyright notice.
3407 * java/util/TimeZone.java: Ditto.
3408 * java/util/SimpleTimeZone.java: Ditto.
3410 1999-02-08 Tom Tromey <tromey@cygnus.com>
3412 * java/io/PrintStream.java (line_separator): New constant.
3413 (print): Use line_separator, not `file.separator' property.
3414 (println): Use line_separator.
3416 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3417 when trying to instantiate Class.
3419 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3420 NullPointerException if argument is null.
3422 * java/lang/Thread.java (setName): Throw NullPointerException, not
3423 IllegalArgumentException.
3426 1999-02-08 Andrew Haley <aph@cygnus.com>
3428 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3429 create new Classes with Class.newInstance().
3431 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3432 semiciolon to end of an array Class's signature if the elements of
3433 the array aren't themselves arrays.
3435 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3436 array of objects is always sizeof(jobject), not the size of the
3437 object to which the reference points.
3439 1999-02-08 Tom Tromey <tromey@cygnus.com>
3441 * java/util/BitSet.java (and): Throw NullPointerException when
3446 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3447 if argument is negative.
3448 (clear): Correctly compute `offset'. Throw
3449 IndexOutOfBoundsException when required.
3451 (get): Likewise. Also, return correct value.
3452 (ensure): Changed meaning of argument.
3453 (toString): Wrap contents in `{}'; put spaces after commas.
3454 (hashCode): Don't try to examine elements off the end of array.
3455 (or): Correctly include bits past the end of this bit set.
3458 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3460 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3461 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3463 1999-02-04 Andrew Haley <aph@cygnus.com>
3465 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3466 '/' in signatures to '.'
3467 (Class::getName): Likewise,
3468 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3470 * java/lang/natFirstThread.cc (run): Change '/' in main's
3473 1999-02-03 Andrew Haley <aph@cygnus.com>
3475 * configure.host: -ffloat-store added when compiling libjava on
3476 x86. fdlibm apparently relies on this.
3478 * java/lang/ThreadGroup.java (add): throw an exception if the
3479 ThreadGroup has been destroyed.
3481 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3484 1999-01-27 Tom Tromey <tromey@cygnus.com>
3486 * java/lang/StringBuffer.java (StringBuffer): Handle null
3489 1999-01-21 Tom Tromey <tromey@cygnus.com>
3491 * java/lang/natFirstThread.cc (run): Don't require main to be
3494 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3496 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3498 1999-01-20 Tom Tromey <tromey@cygnus.com>
3500 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3504 (unintern): Likewise.
3505 (_Jv_NewStringUtf8Const): Likewise.
3507 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3508 Character.isLetter, to see if character is self-quoting. Also,
3509 correctly handle quoted characters.
3510 (parse): Fixed typo. Also now throws ParseException.
3512 1999-01-15 Tom Tromey <tromey@cygnus.com>
3514 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3516 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3517 _Jv_SyncInfo has `init' member.
3519 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3522 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3523 IllegalMonitorStateException if unlock fails.
3525 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3527 (_Jv_NewObjectArray): Likewise.
3529 1999-01-14 Tom Tromey <tromey@cygnus.com>
3531 * java/lang/Character.java (isJavaIdentifierPart): Allow
3532 LETTER_NUMBER characters.
3534 * chartables.pl (process_char): Fixed error messages.
3536 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3537 * chartables.pl: Updated comments. Changed detection of non-digit
3538 numeric values (no longer miss \u00b2 and friends).
3540 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3541 currency symbols and connector punctuation.
3542 (isIdentifierIgnorable): Make 7f-9f ignorable.
3544 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3545 (_Jv_NewPrimArray): Likewise.
3546 (SIZE_T_MAX): New define.
3548 * java/lang/ClassLoader.java (system): Now private and final.
3550 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3553 * configure: Rebuilt.
3554 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3556 * exception.cc: Include gansidecl.h.
3558 1999-01-14 Andrew Haley <aph@cygnus.com>
3560 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3561 corrected: they didn't treat -0.0 and NaNs correctly.
3563 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3565 * nogc.cc: Use calloc to zero out memory.
3567 1999-01-11 Tom Tromey <tromey@cygnus.com>
3569 * java/lang/natClass.cc (isInstance): Return false if this class
3570 is primitive, not if class of `obj' is primitive.
3571 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3573 * java/io/SequenceInputStream.java (close): Handle case where `in'
3576 * java/text/DateFormat.java (format): New method.
3578 * mauve-libjava: Omit java.text.DateFormat.
3580 1999-01-08 Tom Tromey <tromey@cygnus.com>
3582 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3584 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3586 (_Jv_CondNotifyAll): Likewise.
3588 * configure: Rebuilt.
3589 * configure.in: Change --enable-source-compilation logic to work
3592 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3594 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3595 and RUNTESTFLAGS from AM_MAKEFLAGS.
3596 * configure.in: AM_RUNTESTFLAGS added.
3597 * configure.host: AM_RUNTESTFLAGS added.
3598 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3599 * configure: rebuilt.
3600 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3602 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3603 argv[] made conditional because embedded targets may not have
3605 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3606 explanatory comments added in call to super.
3608 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3609 exception thrown in the test harness itself added.
3610 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3612 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3614 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3616 1999-01-06 Tom Tromey <tromey@cygnus.com>
3618 * java/io/natFile.cc (get_entry): New function.
3619 (performList): Use get_entry.
3620 * include/config.h.in: Rebuilt.
3621 * acconfig.h (HAVE_READDIR_R): New define.
3622 * configure: Rebuilt.
3623 * configure.in: Look for readdir_r.
3625 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3627 * java/util/natDate.cc: Added copyright header.
3629 1999-01-05 Tom Tromey <tromey@cygnus.com>
3631 * include/config.h.in: Rebuilt.
3632 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3633 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3634 * configure: Rebuilt.
3635 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3636 unlink, and realpath.
3637 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3638 (stat): Conditionalize on HAVE_STAT.
3640 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3641 (performMkdir): Conditionalize on HAVE_MKDIR.
3642 (performRenameTo): Conditionalize on HAVE_RENAME.
3643 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3645 * include/config.h.in: Rebuilt.
3646 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3647 * configure: Rebuilt.
3648 * configure.in: Check for gmtime_r and localtime_r. For cross
3649 builds, assume they exist.
3651 * mauve-libjava: Include java.text.DateFormatSymbols again.
3652 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3653 from setAmPmStrings.
3655 * mauve-libjava: Omit java.text.DateFormatSymbols.
3657 1999-01-04 Tom Tromey <tromey@cygnus.com>
3659 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3661 * java/io/LineNumberReader.java (read): Decrement `count' in
3664 * java/io/BufferedWriter.java (write): Correctly determine when
3665 incoming data would overrun buffer. Flush buffer if write causes
3668 * java/io/BufferedOutputStream.java (write): Increment `count'
3669 after copying data into buffer.
3671 * java/io/FilterOutputStream.java (close): Call flush first.
3673 * java/io/PipedReader.java (read): If read causes `out' to catch
3674 up with `in', then set `in' to -1.
3676 * java/io/LineNumberInputStream.java (read): If no bytes read,
3677 return -1. If no bytes requested, return 0.
3679 * java/lang/StringBuffer.java (insert): If `str' is null, use
3682 1998-12-30 Anthony Green <green@cygnus.com>
3685 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3687 1998-12-23 Tom Tromey <tromey@cygnus.com>
3689 * java/io/PushbackInputStream.java (read): `off' already includes
3692 1998-12-17 Tom Tromey <tromey@cygnus.com>
3694 * Makefile.in: Rebuilt.
3695 * Makefile.am (GCJ_canadian): Include target_alias.
3697 * java/lang/natFirstThread.cc (run): Require main's class to be
3700 1998-12-16 Tom Tromey <tromey@cygnus.com>
3702 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3704 * java/util/ResourceBundle.java (getBundle): Throw
3705 NullPointerException if locale argument is null.
3707 * java/lang/natClass.cc (forName): Throw NullPointerException if
3709 Include NullPointerException.h.
3711 1998-12-14 Tom Tromey <tromey@cygnus.com>
3713 * java/lang/Character.java (Character): Implement Comparable.
3714 (compareTo): New methods.
3716 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3717 correct country and language codes.
3718 (UK, US): New constants.
3719 (setDefault): Language codes are lower-case.
3721 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3722 (getDeclaredConstructors): Likewise.
3723 (getDeclaredField): Likewise.
3724 (getDeclaredFields): Likewise.
3725 (getDeclaredMethod): Likewise.
3726 (getDeclaredMethods): Likewise.
3727 (getField): Likewise.
3728 (getFields): Likewise.
3729 (getMethod): Likewise.
3730 (getMethods): Likewise.
3731 * java/lang/Class.java: Declare new methods.
3732 * java/lang/Class.h: Declare new methods.
3734 * java/lang/natString.cc: Removed `#pragma implementation'.
3735 * include/cni.h (_Jv_GetStringChars): New function.
3736 * Makefile.in: Rebuilt.
3737 * Makefile.am (java/lang/String.h): Don't generate definition for
3740 * java/lang/natString.cc: Added `#pragma implementation'.
3742 * Makefile.in: Rebuilt.
3743 * Makefile.am (libjava.zip): Put build directory first in class
3744 path to avoid bug in compiler.
3746 1998-12-14 Anthony Green <green@cygnus.com>
3748 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3750 * include/javaprims.h: Add EventObject, ListResourceBundle and
3753 1998-12-13 Anthony Green <green@cygnus.com>
3755 * mauve-libjava: Run the ResourceBundle tests.
3757 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3760 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3762 * configure.in, configure: Make --enable-gcj-classes and
3763 --enable-source-compilation the default. (Nervously...) Yeah!
3764 Based on a patch from Tom Tromey.
3766 1998-12-13 Tom Tromey <tromey@cygnus.com>
3768 * java/util/EventObject.java: New file.
3769 * java/util/EventListener.java: New file.
3771 * include/javaprims.h: Updated class declarations.
3772 * Makefile.in: Rebuilt.
3773 * Makefile.am (nat_headers): Added Constructor.h.
3774 (java/lang/String.h): Don't inline String::length().
3775 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3776 * java/lang/Class.java (initializeClass, hackRunInitializers,
3777 hackTrampoline): No need to mark `final'.
3778 (getConstructor, getConstructors): Declare.
3779 * java/lang/reflect/Field.java (equals): New method.
3780 * java/lang/natClass.cc (getConstructor): New method.
3781 (getConstructors): Likewise.
3782 Include Method.h, Field.h, Constructor.h.
3783 * java/lang/reflect/Constructor.java: New file.
3784 * java/lang/reflect/Method.java (toString): No space before open
3786 (equals): Simplified.
3788 1998-12-13 Anthony Green <green@cygnus.com>
3790 * java/util/ResourceBundle.java: New file.
3791 * java/util/ListResourceBundle.java: New file.
3793 1998-12-12 Tom Tromey <tromey@cygnus.com>
3795 * java/lang/System.java (in, out, err): Now buffered streams by
3798 * include/javaprims.h: Updated class declarations.
3799 * Makefile.in: Rebuilt.
3800 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3801 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3803 (nat_files): Added natMethod.o.
3804 * java/lang/reflect/natMethod.cc: New file.
3805 * java/lang/reflect/Field.java (Field): Now extends
3807 * java/lang/reflect/AccessibleObject.java: New file.
3808 * java/lang/reflect/InvocationTargetException.java: New file.
3810 1998-12-11 Tom Tromey <tromey@cygnus.com>
3812 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3813 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3814 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3816 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3818 1998-12-09 Tom Tromey <tromey@cygnus.com>
3820 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3823 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3824 character is already titlecase.
3826 * java/lang/Character.java (isJavaLetter): Follow spec.
3827 (isJavaLetterOrDigit): Likewise.
3829 * java/util/GregorianCalendar.java (gregorianCutover): Append
3832 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3834 1998-12-08 Tom Tromey <tromey@cygnus.com>
3836 * java/lang/reflect/Modifier.java (toString): Replace second
3837 `static' with `synchronized'.
3839 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3840 * java/lang/Object.h (Object::hack12_6): Declare.
3841 * java/lang/Object.java (hack12_6): New function.
3843 1998-12-07 Tom Tromey <tromey@cygnus.com>
3845 * include/java-array.h (__JArray::clone): Removed decl.
3846 * prims.cc (__JArray::clone): Removed.
3847 * java/lang/natObject.cc (clone): Incorporate code to clone an
3850 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3851 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3852 Correctly use dtable_method_count.
3854 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3856 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3859 1998-12-06 Anthony Green <green@cygnus.com>
3861 * mauve-libjava: Don't test ResourceBundle.
3863 1998-12-04 Tom Tromey <tromey@cygnus.com>
3865 More JDK 1.2 spec fixes:
3866 * java/util/Date.java (millis): Now private.
3867 * java/text/DateFormat.java (DateFormat): Constructor now
3869 * java/lang/Void.java (Void): New private constructor.
3870 * java/lang/System.java (System): New private constructor.
3871 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3873 (currentClassLoader): New method.
3874 (currentLoadedClass): New method.
3875 * java/lang/Math.java (Math): New private constructor.
3876 * java/lang/Compiler.java (Compiler): New private constructor.
3877 * java/lang/Class.java (Class): New private constructor.
3878 * java/lang/Double.java (toString): Removed access specifier from
3879 two-argument `toString' method.
3881 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3883 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3884 causes it to be flushed from an fp register (where it may be
3885 longer than double precision) to a double in memory. This is
3886 essential to ensure correct rounding behaviour.
3888 1998-12-04 Tom Tromey <tromey@cygnus.com>
3890 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3893 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3894 explaining apparent divergence from JDK 1.2.
3896 1998-12-04 Per Bothner <bothner@cygnus.com>
3898 * include/no-threads.h: Remove unused parameter names.
3899 This silences a bunch of warnings.
3901 1998-12-04 Tom Tromey <tromey@cygnus.com>
3903 * include/config.h.in: Rebuilt.
3904 * acconfig.h (HAVE_CTIME_R): New symbol.
3906 1998-12-03 Tom Tromey <tromey@cygnus.com>
3908 * mauve-libjava: Added many more categories to reject.
3910 Changes to follow JDK1.2 spec:
3911 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3912 setErr, setIn, setOut): No need to be `final'.
3913 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3914 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3915 * java/lang/Object.java (wait): `nanos' argument is an int.
3916 * java/lang/VirtualMachineError.java: Class is abstract.
3917 * java/lang/ThreadDeath.java: Made constructors public.
3918 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3921 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3923 * java/text/DateFormatSymbols.java (getAmPmStrings,
3924 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3926 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3928 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3929 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3930 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3933 * java/lang/IllegalThreadStateException.java
3934 (IllegalThreadStateException): Changed extending class to match spec.
3936 * java/lang/NumberFormatException.java
3937 (java/lang/NumberFormatException): Changed extending class to match
3940 * java/util/Observer.java (Observer): Changed sig to match JCL.
3942 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3944 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3945 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3946 signature to match JDK 1.1 and 1.2.
3948 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3950 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3951 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3952 * Makefile.in, configure: Rebuilt.
3954 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3957 1998-12-02 Tom Tromey <tromey@cygnus.com>
3959 * mauve-libjava: New file.
3961 The remaining `-W -Wall' fixes:
3962 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3964 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3966 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3968 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3970 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3972 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3974 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3976 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3978 * java/lang/mprec.c (Balloc): Removed unused variable.
3979 (mult): Added parentheses per gcc suggestion.
3980 (pow5mult): Likewise.
3985 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3986 suggestion. Added cast to `int' to avoid signed/unsigned
3988 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3990 (IsAssignableFrom): Likewise.
3991 (_Jv_JNI_GetObjectField): Likewise.
3992 (_Jv_JNI_GetByteField): Likewise.
3993 (_Jv_JNI_GetShortField): Likewise.
3994 (_Jv_JNI_GetIntField): Likewise.
3995 (_Jv_JNI_GetLongField): Likewise.
3996 (_Jv_JNI_GetStringLength): Likewise.
3997 (_Jv_JNI_ToReflectedField): Likewise.
3998 (_Jv_JNI_FromReflectedField): Likewise.
3999 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4001 * Makefile.in: Rebuilt.
4002 * Makefile.am (AM_CFLAGS): Define conditionally.
4003 (WARNINGS): New macro.
4004 (AM_CXXFLAGS): Include WARNINGS.
4005 * configure: Rebuilt.
4006 * configure.in (USING_GCC): New conditional.
4008 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4010 * java/lang/Character.java: Changed classification constants to
4011 type `byte' to match JDK 1.2 docs.
4013 1998-12-01 Tom Tromey <tromey@cygnus.com>
4015 Some fixes to be `-W -Wall' clean:
4016 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4017 (_Jv_MarkArray): Likewise.
4018 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4019 (to_upper_title): Likewise.
4020 (isTitleCase): Likewise.
4021 (toTitleCase): Likewise.
4022 (getNumericValue): Likewise.
4023 (isLowerCase): Likewise.
4024 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4025 (avoids compiler warning).
4026 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4028 (getDeclaringClass): Likewise.
4029 (_Jv_LookupInterfaceMethod): Likewise.
4030 (_Jv_NewClass): Removed name of unused parameter.
4031 * exception.cc (_Jv_type_matcher): Removed unused variable.
4032 (_Jv_setup_eh_info): Removed name of unused parameter.
4033 * prims.cc (_Jv_NewArray): Always return a value.
4034 (_Jv_FindClassFromSignature): Likewise.
4035 * include/java-field.h (getNameUtf8Const): Removed name of unused
4037 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4039 (_Jv_ThreadSetPriority): Likewise.
4041 * java/lang/natString.cc (hashChars): Now static.
4043 * java/lang/FirstThread.java (FirstThread): Now final.
4045 * java/io/File.java (performMkdir, performRenameTo): Now private.
4047 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4048 if no time function defined.
4050 * configure: Rebuilt.
4051 * configure.in: Look for ctime_r, ctime.
4052 * java/util/Date.java (toString): Now native.
4053 * java/util/natDate.cc (toString): Rewrote.
4055 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4057 * Add LDFLAGS line to allow TX39 test cases to link when cross
4060 1998-11-23 Anthony Green <green@cygnus.com>
4062 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4063 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4064 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4065 include/java-array.h, include/java-assert.h, include/java-field.h,
4066 include/javaprims.h, include/jni.h, include/jvm.h,
4067 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4068 include/quick-threads.h, java/io/BufferedInputStream.java,
4069 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4070 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4071 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4072 java/io/CharArrayWriter.java,
4073 java/io/CharConversionException.java, java/io/DataInput.java,
4074 java/io/DataInputStream.java, java/io/DataOutput.java,
4075 java/io/DataOutputStream.java, java/io/EOFException.java,
4076 java/io/File.java, java/io/FileDescriptor.java,
4077 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4078 java/io/FileOutputStream.java, java/io/FileReader.java,
4079 java/io/FileWriter.java, java/io/FilenameFilter.java,
4080 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4081 java/io/FilterReader.java, java/io/FilterWriter.java,
4082 java/io/IOException.java, java/io/InputStream.java,
4083 java/io/InputStreamReader.java,
4084 java/io/InterruptedIOException.java,
4085 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4086 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4087 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4088 java/io/PipedReader.java, java/io/PipedWriter.java,
4089 java/io/PrintStream.java, java/io/PrintWriter.java,
4090 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4091 java/io/RandomAccessFile.java, java/io/Reader.java,
4092 java/io/SequenceInputStream.java, java/io/Serializable.java,
4093 java/io/StreamTokenizer.java,
4094 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4095 java/io/StringWriter.java, java/io/SyncFailedException.java,
4096 java/io/UTFDataFormatException.java,
4097 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4098 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4099 java/io/natFileDescriptorPosix.cc,
4100 java/lang/AbstractMethodError.java,
4101 java/lang/ArithmeticException.java,
4102 java/lang/ArrayIndexOutOfBoundsException.java,
4103 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4104 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4105 java/lang/Class.java, java/lang/ClassCastException.java,
4106 java/lang/ClassCircularityError.java,
4107 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4108 java/lang/ClassNotFoundException.java,
4109 java/lang/CloneNotSupportedException.java,
4110 java/lang/Cloneable.java, java/lang/Comparable.java,
4111 java/lang/Compiler.java, java/lang/Double.java,
4112 java/lang/Error.java, java/lang/Exception.java,
4113 java/lang/ExceptionInInitializerError.java,
4114 java/lang/FirstThread.java, java/lang/Float.java,
4115 java/lang/IllegalAccessError.java,
4116 java/lang/IllegalAccessException.java,
4117 java/lang/IllegalArgumentException.java,
4118 java/lang/IllegalMonitorStateException.java,
4119 java/lang/IllegalStateException.java,
4120 java/lang/IllegalThreadStateException.java,
4121 java/lang/IncompatibleClassChangeError.java,
4122 java/lang/IndexOutOfBoundsException.java,
4123 java/lang/InstantiationError.java,
4124 java/lang/InstantiationException.java, java/lang/Integer.java,
4125 java/lang/InternalError.java, java/lang/InterruptedException.java,
4126 java/lang/LinkageError.java, java/lang/Long.java,
4127 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4128 java/lang/NoClassDefFoundError.java,
4129 java/lang/NoSuchFieldError.java,
4130 java/lang/NoSuchFieldException.java,
4131 java/lang/NoSuchMethodError.java,
4132 java/lang/NoSuchMethodException.java,
4133 java/lang/NullPointerException.java, java/lang/Number.java,
4134 java/lang/NumberFormatException.java, java/lang/Object.h,
4135 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4136 java/lang/Process.java, java/lang/Runnable.java,
4137 java/lang/Runtime.java, java/lang/RuntimeException.java,
4138 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4139 java/lang/Short.java, java/lang/StackOverflowError.java,
4140 java/lang/String.java, java/lang/StringBuffer.java,
4141 java/lang/StringIndexOutOfBoundsException.java,
4142 java/lang/System.java, java/lang/Thread.java,
4143 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4144 java/lang/Throwable.java, java/lang/UnknownError.java,
4145 java/lang/UnsatisfiedLinkError.java,
4146 java/lang/UnsupportedOperationException.java,
4147 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4148 java/lang/Void.java, java/lang/natCharacter.cc,
4149 java/lang/natClass.cc, java/lang/natDouble.cc,
4150 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4151 java/lang/natMath.cc, java/lang/natObject.cc,
4152 java/lang/natRuntime.cc, java/lang/natString.cc,
4153 java/lang/natSystem.cc, java/lang/natThread.cc,
4154 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4155 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4156 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4157 java/text/FieldPosition.java, java/text/Format.java,
4158 java/text/NumberFormat.java, java/text/ParseException.java,
4159 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4160 java/util/BitSet.java, java/util/Calendar.java,
4161 java/util/ConcurrentModificationException.java,
4162 java/util/Date.java, java/util/Dictionary.java,
4163 java/util/EmptyStackException.java, java/util/Enumeration.java,
4164 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4165 java/util/Locale.java, java/util/MissingResourceException.java,
4166 java/util/NoSuchElementException.java, java/util/Observable.java,
4167 java/util/Observer.java, java/util/Properties.java,
4168 java/util/Random.java, java/util/SimpleTimeZone.java,
4169 java/util/Stack.java, java/util/StringTokenizer.java,
4170 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4171 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4174 * exception.cc: Include eh-common.h instead of duplicating
4177 1998-11-23 Tom Tromey <tromey@cygnus.com>
4179 * configure.host: Don't add `-O2' to libjava_flags. Only add
4180 `-Os' to libjava_flags once.
4182 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4184 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4185 * Makefile.in: likewise
4186 * acconfig.h: add ECOS conditional for configure.h
4187 * config.h.in: likewise
4188 * configure: add test for --with-ecos
4189 * configure.in: likewise
4190 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4191 rename call to avoid name clash.
4192 * java/lang/natSystem.cc: add eCos clock support.
4193 * java/util/natGregorianCalendar.cc: add eCos support.
4195 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4197 * Makefile.am, Makefile.in, configure.host: tx39 build option
4200 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4202 * java/io/BufferedReader.java: Added more comments for clarity.
4203 (mark): Used more mnemonic name for local var extraBuffSpace.
4205 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4206 confusion with private method of same name in superclass.
4207 (skipRedundantLF): Set fields in special case to avoid infinite
4208 recursion. Check if markPos has been invalidated in special case.
4209 (readLine): Rewritten to use readLine method of superclass.
4210 (skip): Incorporated code from lineEnd.
4212 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4214 * java/io/BufferedReader.java (readLine): New method.
4215 (lineEnd): new private method.
4216 (mark): Track special case for readLine of getting '\r' at the
4223 * java/io/InputStreamReader.java (read): Return number chars skipped
4224 rather than requested.
4226 * java/lang/StringBuffer.java (append): Update count and differentiate
4227 between field and local variable.
4229 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4230 seconds. Deal with military style time.
4231 (parse): Consistently treat all timezones in minutes until final
4232 calculation. Flag as non-local timezone. Return value in milliseconds.
4233 (setTime): Adjust for year offset from 1900.
4234 (UTC): Adjust for year offset from 1900.
4236 1998-11-17 Tom Tromey <tromey@cygnus.com>
4238 * configure: Rebuilt.
4239 * configure.in: Switch on host, not target.
4241 * Makefile.in: Rebuilt.
4242 * Makefile.am (GCJ_no): New macro.
4243 (GCJ): Use @CANADIAN@.
4244 (GCJH_no): New macro
4245 (GCJH_canadian): New macro.
4246 (GCJH): Use @CANADIAN@.
4247 (ZIP_no): New macro.
4248 (ZIP_canadian): New macro.
4249 (ZIP): Use @CANADIAN@.
4250 * aclocal.m4, configure: Rebuilt.
4251 * configure.in (CANADIAN): Compute and subst.
4253 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4255 * java/io/FileDescriptor.java (finalize): Only close file
4256 descriptor if valid.
4258 1998-11-17 Tom Tromey <tromey@cygnus.com>
4260 * prims.cc (_Jv_InitRuntime): Removed.
4262 1998-11-16 Tom Tromey <tromey@cygnus.com>
4264 * java/io/FileOutputStream.java (close): Only close file
4265 descriptor if valid.
4266 (finalize): New method.
4268 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4269 (_Jv_NewPrimArray): Likewise.
4270 * boehm.cc (_Jv_RegisterFinalizer): Use
4271 GC_REGISTER_FINALIZER_NO_ORDER.
4272 (GC_GENERIC_MALLOC): New define.
4273 (_Jv_AllocObj): Use it.
4274 (_Jv_AllocArray): Likewise.
4275 (_Jv_AllocBytes): Likewise.
4276 (_Jv_MarkObj): Just return if vtbl not set.
4277 (_Jv_MarkArray): Likewise.
4278 (MAYBE_MARK): New macro; use everywhere.
4279 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4281 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4283 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4284 to a jlong before calculation to prevent overflow.
4286 1998-11-16 Tom Tromey <tromey@cygnus.com>
4288 * Makefile.in: Rebuilt.
4289 * Makefile.am (nat_headers): Fixed typo.
4291 1998-11-15 Tom Tromey <tromey@cygnus.com>
4293 * java/lang/Class.h (Class::getName): Removed definition.
4294 * Makefile.in: Rebuilt.
4295 * Makefile.am (nat_headers): Added InstantiationException.h,
4296 NoSuchMethodException.h.
4297 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4298 (init_name): New global.
4299 (hackRunInitializers): Use clinit_name.
4300 Include InstantiationException.h, NoSuchMethodException.h.
4301 (newInstance): Do some error checking (but not all). Call
4303 (forName): Throw exception if class not found.
4304 (getName): New method.
4305 (forName): Transform class name from external format to internal
4306 format before lookup.
4308 1998-11-15 Anthony Green <green@cygnus.com>
4310 * java/lang/Class.h (Class::forName): Method is static.
4312 * java/lang/natClass.cc (newInstance): Add simple implementation.
4315 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4317 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4318 int), for compatibility with jc1.
4320 1998-11-14 Tom Tromey <tromey@cygnus.com>
4322 * include/config.h.in: Rebuilt.
4323 * acconfig.h (LINUX_THREADS): New define.
4324 * configure: Rebuilt.
4325 * configure.in: Define LINUX_THREADS if using POSIX threads on
4326 Linux. Look for pthread_mutexattr_setkind_np function.
4327 * posix-threads.cc (throw_cleanup): New function.
4328 (really_start): Push cleanup function.
4329 (_Jv_ThreadCancel): New function.
4330 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4331 (_Jv_ThreadInitData): Set `exception' field in new structure.
4332 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4334 (_Jv_ThreadWait): New function.
4335 (_Jv_InitThreads): Initialize daemon globals.
4336 (FLAG_DAEMON): New macro.
4337 (really_start): Notify daemon_cond when non-daemon thread exits.
4338 Include <java/lang/System.h>.
4339 (struct starter): `object' field now a thread.
4340 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4341 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4342 (_Jv_ThreadWait): Removed definition.
4343 (_Jv_Thread_t): Added `exception' field.
4344 (_Jv_ThreadCancel): Removed definition.
4346 1998-11-13 Tom Tromey <tromey@cygnus.com>
4348 * Makefile.in: Rebuilt.
4349 * Makefile.am (libjava.zip): Compute javac before changing
4352 * Makefile.in: Rebuilt.
4353 * Makefile.am (libjava.zip): Include directory entries.
4355 * Makefile.in: Rebuilt.
4356 * Makefile.am (expanded): New macro.
4359 1998-11-12 Tom Tromey <tromey@cygnus.com>
4361 * prims.cc (clone): New function.
4362 * include/java-array.h (__JArray::clone): Removed definition.
4364 * java/lang/natObject.cc (clone): Don't assert that class is not
4365 an array; array's `clone' method just calls this one.
4367 * Makefile.in: Rebuilt.
4368 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4369 Now creates zip file. Changed all users.
4371 (data_DATA): New macro.
4373 1998-11-11 Tom Tromey <tromey@cygnus.com>
4375 * configure: Rebuilt.
4376 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4378 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4380 * java/io/InputStream.java (reset): Add msg to thrown exception.
4382 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4384 * java/io/LineNumberInputStream.java: Rewritten.
4386 * java/io/StringBufferInputStream.java: Removed extraneous import.
4388 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4390 * java/io/StringBufferInputStream.java: Rewritten.
4392 * java/util/Date.java (parseMonth): Optimize.
4393 (parseDayOfWeek): Created.
4394 (parse): Optimize to use parseDayOfWeek.
4396 1998-11-11 Tom Tromey <tromey@cygnus.com>
4398 * java/lang/StringBuffer.java (append): Handle case where STR is
4401 * include/javaprims.h: Regenerated class declarations.
4403 * configure: Rebuilt.
4404 * configure.in: Added --enable-gcj-classes,
4405 --enable-single-compilation, --enable-source-compilation flags.
4406 * Makefile.in: Rebuilt.
4407 * Makefile.am (java_io_files): New macro.
4408 (java_lang_files): Likewise.
4409 (java_text_files): Likewise.
4410 (java_util_files): Likewise.
4411 (java_files): Use new macros.
4412 (java-io.o): New target.
4413 (java-lang.o): Likewise.
4414 (java-text.o): Likewise.
4415 (java-util.o): Likewise.
4416 (src_io_files): New macro.
4417 (src_lang_files): Likewise.
4418 (src_text_files): Likewise.
4419 (src_util_files): Likewise.
4420 (class_io_files): New macro.
4421 (class_lang_files): Likewise.
4422 (class_text_files): Likewise.
4423 (class_util_files): Likewise.
4424 (class_files): Use new macros.
4425 (javao_files): Define conditionally.
4426 (.java.o): New target.
4427 ($(javao_files)): New target.
4429 (GCJH): Added $(EXEEXT).
4430 (CLASSPATH_ENV): Removed.
4431 (GCJCOMPILE): New macro.
4433 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4435 * java/util/Date.java (parse): Written from scratch.
4437 1998-11-11 Tom Tromey <tromey@cygnus.com>
4439 * java/lang/Throwable.java (toString): Correct sense of test for
4440 determining when to include detail message in result.
4442 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4445 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4447 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4449 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4450 (_Jv_RegisterClass): Use it.
4451 * include/jvm.h (_Jv_RegisterClasses): Declare.
4452 * java/lang/natObject.cc (init): Removed.
4453 (sync_init): Never call _Jv_InitializeSyncMutex.
4454 (_Jv_InitializeSyncMutex): Don't set `init'.
4455 * prims.cc (JvRunMain): Don't run init functions.
4457 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4459 * java/lang/natClass.cc (initializeClass): Set state before
4460 resolving constants.
4462 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4463 (STATE_RESOLVED): New macro.
4464 (initializeClass): Call resolveConstants.
4465 (hackRunInitializers): Don't call resolveConstants.
4466 (_Jv_FindArrayClass): Move short-circuit return for primitive
4467 element types earlier in function.
4469 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4471 * prims.cc (no_memory): New global.
4472 (_Jv_makeUtf8Const): Throw no_memory.
4473 (_Jv_AllocObject): Likewise.
4474 (_Jv_NewObjectArray): Likewise.
4475 (_Jv_NewPrimArray): Likewise.
4476 (JvRunMain): Initialize no_memory.
4478 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4480 * java/io/FileInputStream.java: Corrected date comment.
4481 * java/io/SequenceInputStream.java: Rewritten.
4483 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4485 * java/lang/FirstThread.java (die): New method.
4486 * java/lang/natFirstThread.cc (die): Removed.
4488 (run): Use `DIE', not `die'.
4490 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4492 * java/io/CharArrayReader.java (read): Move check into synchronized
4493 block to prevent a close while in progress.
4496 * java/io/PushbackReader.java (read): Ditto.
4499 * java/io/StringReader.java (mark): Ditto.
4504 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4506 * java/io/PipedInputStream.java: Updated status.
4507 (connect): Added code to prevent infinite recursion and to
4508 differentiate exception causes.
4509 (read): Added code to differentiate exception causes.
4510 (receive): Made exception pass string with the cause.
4512 * java/io/PipedOutputStream.java: Updated status.
4513 (connect): Added code to call connect at the other end of the pipe.
4515 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4517 * java/io/PipedInputStream.java (connect): Throw exception if
4518 already connected to the same output stream.
4519 (read): Do bounds checking first.
4521 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4523 * java/io/PipedInputStream.java: Added private boolean outClosed.
4524 (available): Removed check if output stream is open.
4525 (close): Mark the buffer as empty so available returns 0.
4526 (read): Check if the output stream was closed and then return EOF
4527 when the buffer is empty.
4528 (receive): Mark the output stream as closed when passed a -1.
4530 * java/io/PipedOutputStream.java (close): Notify the input stream
4531 that there's no more data coming.
4532 (connect): Added a FIXME comment to note more coordination needed
4533 with PipedInputStream.
4534 (flush): Added a FIXME comment to mark what this method might do
4537 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4539 * java/io/PipedInputStream.java: Rewritten.
4541 1998-10-30 Tom Tromey <tromey@cygnus.com>
4543 * java/lang/Throwable.java: Rewrote from scratch.
4545 * java/lang/Class.h (Class): Don't mention newMultiArray.
4546 * prims.cc (newMultiArray): Removed.
4547 (_Jv_NewMultiArray): Removed.
4548 (newArray): Removed.
4549 (new_multi_array): New function.
4550 (_Jv_NewMultiArray): Rewrote from scratch.
4552 * include/javaprims.h: Regenerated class declarations.
4553 * classes.pl (scan): Don't declare PrimClass.
4554 * include/cni.h (JvPrimClass): Use new names for classes.
4555 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4556 added _Jv_PrimClass.
4557 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4558 (_Jv_initPrimClass): Removed.
4559 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4560 (_Jv_AllocObject): Added comment.
4561 (_Jv_NewObjectArray): Likewise.
4562 (_Jv_NewPrimArray): Likewise.
4564 1998-10-29 Tom Tromey <tromey@cygnus.com>
4566 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4567 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4569 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4571 * java/lang/natObject.cc (init): New global.
4572 (sync_init): Call _Jv_InitializeSyncMutex if required.
4574 * Makefile.in: Rebuilt.
4575 * Makefile.am (nat_headers): Added ClassLoader.h.
4576 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4577 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4578 internalAddClass, lookupArray no longer friends.
4579 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4580 _Jv_FindArrayClass now friends.
4581 * java/lang/natClass.cc (HASH_LEN): New macro.
4582 (HASH_UTF): Likewise.
4583 (loaded_classes): New global.
4584 (_Jv_FindClass): New function.
4585 (ClassClass): New define.
4586 (_Jv_FindClassInCache): New function.
4587 (_Jv_RegisterClass): Likewise.
4588 (_Jv_NewClass): Likewise.
4590 (ObjectClass): New define.
4591 (CloneableClass): New define.
4592 * prims.cc (_Jv_FindClass): Removed.
4593 (simpleLookupClass): Removed.
4594 (insertClass): Removed.
4595 (CLASSHASHSZ): Removed.
4596 (classPool): Removed.
4597 (_Jv_RegisterClass): Removed.
4598 (internalAddClass): Removed.
4599 (ClassClass): Removed.
4600 (RuntimeClass): Removed.
4601 (lookupArray): Removed.
4602 (CloneableClass): Removed.
4603 (CLASSMAXSIG): Removed.
4604 Rearranged file to group related functions together.
4605 (_Jv_IsInstanceOf): Moved to natClass.cc.
4606 (abort_final): Removed.
4607 Removed some unused includes.
4608 (classFromSig): Removed.
4609 (_Jv_FindClassFromSignature): New function.
4610 (_Jv_initPrimClass): Renamed.
4611 (getClass): Removed.
4613 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4615 * java/io/FileDescriptor.java (finalize): Throws IOException
4616 instead of Throwable.
4618 * java/io/FileInputStream.java: Rewritten.
4620 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4621 at the end of a comment.
4623 1998-10-29 Tom Tromey <tromey@cygnus.com>
4625 * include/javaprims.h: Regenerated class declarations.
4626 * classes.pl (scan): Don't special-case ClassLoader.
4628 * prims.cc (processClass): Removed.
4629 (_Jv_InitClass): Removed.
4630 Removed all CSTATE_ macros.
4631 (resolveConstants): Removed.
4633 (_Jv_NewMultiArray): Cleaned up.
4634 * Makefile.in: Rebuilt.
4635 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4636 * java/lang/Class.h (Class): Declare new methods. processClass no
4638 * java/lang/Class.java (hackTrampoline): New method.
4639 (initializeClass): Declare.
4640 (hackRunInitializers): Declare.
4641 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4642 (initializeClass): New method.
4643 (hackRunInitializers): New method.
4644 (init_name, void_signature): Moved from prims.cc.
4645 (_Jv_InitClass): New function.
4646 (isAssignableFrom): Don't call processClass.
4647 (STATE_NOTHING): New macro.
4648 (resolveConstants): New function.
4650 (ErrorClass): New define.
4652 * java/lang/Class.java (getClassLoader): Declare.
4653 * java/lang/ClassLoader.java: Rewrote from scratch.
4655 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4656 AbstractMethodError.h, IllegalAccessError.h,
4657 NoClassDefFoundError.h.
4658 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4659 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4660 longer static. Changed return type.
4661 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4662 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4663 * prims.cc (findMethodLocal): Removed.
4664 (processClass): Use _Jv_GetMethodLocal.
4666 1998-10-28 Tom Tromey <tromey@cygnus.com>
4668 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4669 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4671 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4672 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4674 * include/jni.h: Added copyright header.
4675 * include/javaprims.h: Added copyright header.
4676 * include/java-field.h: Added copyright header.
4677 * include/java-array.h: Added copyright header.
4678 * include/cni.h: Added copyright header.
4680 * include/javaprims.h: Regenerated class declarations using
4681 classes.pl; now they are complete.
4682 * classes.pl: New file.
4684 * java/lang/natMath.cc: Include <config.h>.
4685 * java/lang/reflect/natField.cc: Include <config.h>.
4686 * java/util/NativeUtil.java: Removed.
4687 * Makefile.in: Rebuilt.
4688 * Makefile.am (nat_headers): Added Math.h.
4689 * java/lang/Math.h: Removed.
4690 * java/util/natGregorianCalendar.cc: Added copyright header.
4692 * java/lang/natFloat.cc: Added copyright header.
4693 * java/lang/Byte.java: Added copyright header.
4694 * java/lang/Void.java: Added copyright header.
4695 * java/lang/Short.java: Added copyright header.
4697 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4699 * include/javaprims.h (java::io): Added bunch of missing classes.
4701 * java/io/DataInputStream.java (readLine): Added a special case
4702 for handling BufferedInputStream data to reduce the likelihood
4703 of a pushback error.
4704 (skipBytes): Added code to handle negative number of skip bytes.
4706 * java/io/StreamTokenizer.java: Rewritten.
4708 1998-10-28 Tom Tromey <tromey@cygnus.com>
4710 * java/util/natGregorianCalendar.cc (computeFields): Call
4711 getRawOffset as a method.
4713 * include/javaprims.h (java::io): Added FilterOutputStream.
4714 * Makefile.in: Rebuilt.
4715 * Makefile.am (nat_headers): Added PrintStream.h,
4716 FilterOutputStream.h.
4717 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4719 (die): New function.
4720 (run): Die if `main' not found, is not public, or is not static.
4722 * boehm.cc (_Jv_MarkObj): Use new field names.
4723 * include/java-field.h (JvGetFirstInstanceField): Use new field
4725 (JvNumInstanceFields): Likewise.
4726 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4727 (getInterfaces): Likewise.
4728 * prims.cc (CLASS_CONSTANTS): Removed.
4729 (CLASS_CONST_SIZE): Likewise.
4730 (CLASS_CONST_TAG): Likewise.
4731 (CLASS_CONST_DATA): Likewise.
4732 (CLASS_CONST_UTF8): Likewise.
4733 (WORD2UTF): Likewise.
4734 (CLASS_CLASS): Likewise.
4735 (CLASS_PRIM_SIG): Likewise.
4736 (CLASS_ARRAY_CACHE): Likewise.
4737 (HASH_CHARS): Likewise.
4738 (hashClassName): Likewise.
4739 Many changes to use new field names.
4740 * java/lang/Class.h (Class): Renamed fields to track compiler.
4742 1998-10-27 Tom Tromey <tromey@cygnus.com>
4744 * java/lang/natClass.cc: Use #pragma implementation.
4745 (getComponentType): Moved into header.
4746 (getModifiers): Likewise.
4747 (getName): Likewise.
4748 (getSuperclass): Likewise.
4749 (isArray): Likewise.
4750 (isPrimitive): Likewise.
4751 * include/jvm.h (_Jv_FindClass): Declare.
4752 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4753 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4754 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4755 * java/lang/Class.h: Rewrote from scratch.
4756 * prims.cc: Many changes to work with new Class.h.
4757 * include/java-field.h (CLASS_FIELDS): Removed.
4758 (CLASS_SFIELDS): Likewise.
4759 (CLASS_IFIELDS): Likewise.
4760 (CLASS_NFIELDS): Likewise.
4761 (CLASS_NIFIELDS): Likewise.
4762 (CLASS_NSFIELDS): Likewise.
4763 (CLASS_FSIZE): Likewise.
4764 (JvGetFirstInstanceField): Rewrote.
4765 (JvNumInstanceFields): Likewise.
4767 * java/lang/Object.h: Added copyright comment.
4769 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4771 * java/text: New package directory.
4772 * java/text/FieldPosition.java: New class.
4773 * java/text/ParsePosition.java: New class.
4774 * java/text/ParseException.java: New Exception class.
4775 * java/text/Format.java: New class.
4776 * java/text/NumberFormat.java: New (empty placeholder) class.
4777 * java/text/DateFormatSymbols.java: New class (no Locales support).
4778 * java/text/DateFormat.java: New Format class (incomplete).
4779 * java/text/SimpleDateFormat.java: New DateFormat class.
4781 * include/javaprims.h (java::test): Added new package and classes.
4782 * java/util/Calendar.java (clone): New method.
4783 * java/util/Date.java (toString): Added non-native implementation.
4784 (parse): Made public instead of synchronized.
4785 * java/util/natDate.cc (toString): Removed.
4786 * java/util/natGregorianCalendar.cc (computeFields):
4787 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4789 1998-10-27 Tom Tromey <tromey@cygnus.com>
4791 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4793 * prims.cc (lookupArray): Added explanatory comment.
4794 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4795 class. Mark the class of each object.
4796 (_Jv_MarkArray): Mark the object's class.
4798 * configure: Rebuilt.
4799 * configure.in: Create java-gc.h.
4800 * include/boehm-gc.h: New file.
4801 * include/no-gc.h: New file.
4802 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4804 * java/lang/Object.h: Include java-gc.h.
4805 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4806 friends, if defined.
4807 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4809 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4811 1998-10-26 Tom Tromey <tromey@cygnus.com>
4813 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4814 paragraph separators, not numbers.
4816 * java/io/Writer.java (write): Removed write(char) to avoid
4818 * java/util/Properties.java: Rewrote from scratch.
4819 * include/javaprims.h (java::io): Added PrintWriter,
4820 BufferedWriter, PushbackReader.
4822 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4824 * java/lang/System.java: exit() is a static method.
4826 1998-10-26 Tom Tromey <tromey@cygnus.com>
4828 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4830 (_Jv_NewStringUtf8Const): Likewise.
4831 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4832 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4834 * java/lang/Object.h (Object): Add mark_array as friend function.
4835 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4836 _Jv_AllocBytes, to ensure that header is marked.
4837 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4839 (mark_array): Push sync_info field for array.
4841 1998-10-24 Tom Tromey <tromey@cygnus.com>
4843 * java/lang/String.java (String): Updated for StringBuffer
4845 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4847 * java/lang/StringBuffer.java: Renamed fields to conform to
4848 serialization spec: buffer->value, next->count, copy->shared.
4850 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4852 * java/util/TimeZone.java: New class.
4853 * java/util/SimpleTimeZone.java: New class.
4854 * java/util/Locale.java: New file.
4855 * java/util/Calendar.java: Make almost complete.
4856 * java/util/GregorianCalendar.java
4857 * java/util/natGregorianCalendar.cc: New file.
4858 * java/util/Date.java: Re-written from scratch.
4859 * java/util/natDate.cc (setTime): Removed - no longer native.
4860 * include/javaprims.h (java::util): Add new classes.
4861 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4862 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4864 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4866 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4867 returning it as a jint.
4869 1998-10-23 Tom Tromey <tromey@cygnus.com>
4871 * prims.cc (arg_vec, main_group, main_thread): New globals.
4872 (JvRunMain): Use them.
4874 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4876 * java/io/DataInputStream.java: Rewritten.
4878 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4879 tertiary bytes with 0x80 per spec.
4881 1998-10-23 Tom Tromey <tromey@cygnus.com>
4883 * java/lang/String.java (init): Changed name of `copy' argument.
4884 * java/lang/natString.cc (init): Inverted sense of `copy'
4887 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4888 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4889 * boehm.cc (ObjectClass): New define.
4890 (ClassClass): Likewise.
4891 (mark_obj): Special-case Object and Class.
4893 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4895 * java/util/BitSet.java: Rewrote from scratch.
4897 * prims.cc (lookupArray): Removed useless cast.
4899 * java/lang/natObject.cc: Use `#pragma implementation'.
4901 * java/lang/String.java (init): Added `copy' argument.
4902 (String): Look in StringBuffer to find char array.
4903 * java/lang/natString.cc (init): Added `copy' argument.
4904 * java/lang/StringBuffer.java: Rewrote from scratch.
4906 * java/lang/Compiler.java: Rewrote from scratch.
4907 * java/lang/Throwable.java: Don't use NativeLang.
4908 * include/javaprims.h (java::lang): Don't mention NativeLang.
4909 * java/lang/Process.java: Rewrote from scratch.
4910 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4912 (currentClassLoader): Likewise.
4913 (currentLoadedClass): Likewise.
4914 * java/lang/natClass.cc (getClassLoader): Commented out.
4915 * java/lang/Class.java (getClassLoader): Commented out.
4916 * java/lang/Compiler.java: Removed.
4917 * java/lang/NativeLang.java: Removed.
4919 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4920 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4921 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4922 (_Jv_hashUtf8String): Now static.
4923 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4924 name of return type.
4926 * java/lang/Class.h (Class): Declare checkMemberAccess.
4927 * Makefile.in: Rebuilt.
4928 * Makefile.am (nat_headers): Added Member.h.
4929 * java/lang/natClass.cc: Include Member.h.
4930 (getDeclaredClasses): Call checkMemberAccess.
4931 * java/lang/Class.java (checkMemberAccess): Call
4932 SecurityManager.checkMemberAccess.
4934 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4936 * java/lang/SecurityManager.java: Rewritten.
4938 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4940 * java/applet/Applet.java, java/applet/AppletContext.java,
4941 java/applet/AppletStub.java, java/applet/AudioClip.java,
4942 java/awt/AWTError.java, java/awt/AWTException.java,
4943 java/awt/BorderLayout.java, java/awt/Button.java,
4944 java/awt/Canvas.java, java/awt/CardLayout.java,
4945 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4946 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4947 java/awt/Color.java, java/awt/Component.java,
4948 java/awt/Container.java, java/awt/Dialog.java,
4949 java/awt/Dimension.java, java/awt/Event.java,
4950 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4951 java/awt/Font.java, java/awt/FontMetrics.java,
4952 java/awt/Frame.java, java/awt/Graphics.java,
4953 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4954 java/awt/GridLayout.java, java/awt/Image.java,
4955 java/awt/Insets.java, java/awt/Label.java,
4956 java/awt/LayoutManager.java, java/awt/List.java,
4957 java/awt/MediaTracker.java, java/awt/Menu.java,
4958 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4959 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4960 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4961 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4962 java/awt/TextArea.java, java/awt/TextComponent.java,
4963 java/awt/TextField.java, java/awt/Toolkit.java,
4964 java/awt/Window.java, java/awt/image/ColorModel.java,
4965 java/awt/image/CropImageFilter.java,
4966 java/awt/image/DirectColorModel.java,
4967 java/awt/image/FilteredImageSource.java,
4968 java/awt/image/ImageConsumer.java,
4969 java/awt/image/ImageFilter.java,
4970 java/awt/image/ImageObserver.java,
4971 java/awt/image/ImageProducer.java,
4972 java/awt/image/IndexColorModel.java,
4973 java/awt/image/MemoryImageSource.java,
4974 java/awt/image/PixelGrabber.java,
4975 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4976 java/awt/peer/CanvasPeer.java,
4977 java/awt/peer/CheckboxMenuItemPeer.java,
4978 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4979 java/awt/peer/ComponentPeer.java,
4980 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4981 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4982 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4983 java/awt/peer/MenuBarPeer.java,
4984 java/awt/peer/MenuComponentPeer.java,
4985 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4986 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4987 java/awt/peer/TextAreaPeer.java,
4988 java/awt/peer/TextComponentPeer.java,
4989 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4990 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4991 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4992 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4993 java/net/MalformedURLException.java, java/net/NativeNet.java,
4994 java/net/ProtocolException.java, java/net/ServerSocket.java,
4995 java/net/Socket.java, java/net/SocketException.java,
4996 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4997 java/net/URL.java, java/net/URLConnection.java,
4998 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4999 java/net/URLStreamHandlerFactory.java,
5000 java/net/UnknownHostException.java,
5001 java/net/UnknownServiceException.java: Removed.
5003 1998-10-22 Tom Tromey <tromey@cygnus.com>
5005 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5006 finalizer is not Object.finalize.
5007 (internalAddClass): Don't set `final' member of class.
5008 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5009 other places that know about finalize() location.
5010 * java/lang/Class.h (Class): Removed `final' field.
5012 * aclocal.m4, configure: Rebuilt.
5013 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5014 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5016 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5017 * Makefile.in: Rebuilt.
5018 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5020 1998-10-21 Tom Tromey <tromey@cygnus.com>
5022 * java/lang/Object.java (finalize): Move to be first method in
5025 * configure: Rebuilt.
5026 * configure.in (GCINCS): Include contents of boehm-cflags file.
5028 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5030 * java/lang/ArrayIndexOutOfBoundsException.java
5031 (ArrayIndexOutOfBoundsException): Fixed string literal.
5032 * java/lang/StringIndexOutOfBoundsException.java
5033 (StringIndexOutOfBoundsException): Fixed string literal.
5035 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5037 * natFileDescriptorEcos.cc added.
5038 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5040 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5042 * acconfig.h: test for __int32_t and __uint32_t added.
5043 * include/config.h.in: test for __int32_t and __uint32_t added.
5044 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5045 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5046 * configure.in: test for __int32_t and __uint32_t added.
5047 * configure: test for __int32_t and __uint32_t added.
5049 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5051 * configure.in: Test for --enable ecos and link
5052 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5053 natFileDescriptorPosix.cc
5055 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5057 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5059 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5062 * java/io/CharArrayReader.java (close): Synchronize on lock
5063 object per Reader contract.
5064 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5065 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5066 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5067 Ensure that arg passed in isn't negative.
5069 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5070 constructing the superclass.
5072 * java/io/PushbackReader.java (close): Synchronize on lock
5073 object per Reader contract.
5074 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5075 (ready): Synchronize on lock obj. Throw IOException if reader
5077 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5078 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5079 Ensure that arg passed in isn't negative.
5080 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5082 * java/io/StringReader.java: Created.
5084 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5086 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5088 (read): Removed synchronized modifier to match JCL.
5089 (reset): Removed synchronized modifier to match JCL.
5090 (skip): Removed synchronized modifier to match JCL.
5092 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5094 * java/io/PushbackReader.java (PushbackReader): Made
5095 constructors public.
5097 1998-10-17 Tom Tromey <tromey@cygnus.com>
5099 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5100 constructors public.
5102 1998-10-16 Anthony Green <green@cygnus.com>
5104 * aclocal.m4, configure: Rebuilt.
5105 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5107 * configure.host: Rewrote.
5108 * Makefile.in: Rebuilt.
5109 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5110 (AM_CFLAGS): New macro.
5111 ($(c_files)): Use COMPILE macro.
5112 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5113 automake problem(s).
5115 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5117 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5119 * java/io/CharArrayReader.java: Created.
5121 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5123 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5124 size check to allow 0 per JCL.
5126 * java/io/PushbackReader.java: Created.
5128 1998-10-16 Tom Tromey <tromey@cygnus.com>
5130 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5131 <sys/time.h> includes.
5132 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5133 * include/no-threads.h: Conditionalize <unistd.h> include on
5136 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5138 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5141 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5143 * java/io/FilterReader.java: Created.
5145 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5147 * java/io/PushbackInputStream.java: Rewritten.
5149 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5150 that size passed to constructor is legal.
5151 (read): Check that args passed in are legal.
5152 (skip): Rewritten to get rid of the temporary buffer.
5153 (refill): Added marklimit check to grow the buffer.
5155 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5157 (bytesAvail): Removed.
5158 (read): Changed bytesAvail to Math.min.
5159 (skip): Changed bytesAvail to Math.min.
5161 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5162 from the throws clause.
5163 (skip): Rewritten to use a temporary buffer.
5165 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5167 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5170 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5172 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5173 to write the double one word at a time.
5175 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5177 * java/io/BufferedInputStream.java: Rewritten.
5179 1998-10-12 Tom Tromey <tromey@cygnus.com>
5181 * jni.cc: Include config.h and stddef.h.
5183 * java/lang/Class.h (_dispatchTable): Removed again.
5184 Removed all ACC_* defines again.
5186 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5188 * Makefile.am (nat_files): Add netField.o.
5189 (libjava_a_SOURCES): Add jni.cc.
5190 (java/lang/reflect/Field.h): New rule.
5191 * Makefile.in: Re-generated.
5192 * include/javaprims.h: Add some extra class and typedefs.
5193 * include/jni.h: New file.
5196 * include/java-field.h: New file.
5197 * include/jvm.h: #include <java-field.h>.
5198 * boehm.cc: #include <java-field.h>.
5199 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5200 * java/lang/reflect/Member.java: New class.
5201 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5202 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5204 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5206 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5207 testsuite/Makefile.in: Rebuilt.
5208 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5209 * configure.host: Created.
5211 1998-10-10 Tom Tromey <tromey@cygnus.com>
5213 * java/lang/natObject.cc (sync_init): Always allocate a new
5216 1998-10-09 Tom Tromey <tromey@cygnus.com>
5218 * java/io/ByteArrayInputStream.java (mark): Renamed from
5221 * java/io/FileOutputStream.java (finalize): Removed.
5222 * java/io/FileDescriptor.java (finalize): New method.
5224 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5226 * ByteArrayInputStream.java: Corrected status comment.
5228 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5230 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5232 1998-10-08 Tom Tromey <tromey@cygnus.com>
5234 * prims.cc (lookupArray): Use static array to initialize list of
5237 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5239 * prims.cc (lookupArray): Initialize the msize for new
5242 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5244 * configure: Rebuilt.
5245 * configure.in: Check for fsync and sleep.
5246 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5248 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5249 HAVE_SLEEP. Include config.h.
5251 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5252 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5255 1998-10-08 Tom Tromey <tromey@cygnus.com>
5257 * java/io/natFile.cc: Don't include SecurityManager.h.
5258 (performList): Renamed.
5259 (performMkdir): Likewise.
5260 (performRenameTo): Likewise.
5261 (performDelete): Likewise.
5263 * java/io/File.java (performDelete): Renamed from natDelete.
5264 (list): Now written in Java.
5265 (performList): New method.
5266 (performMkdir): New method.
5267 (mkdir): Now written in Java.
5268 (performRenameTo): New method.
5269 (renameTo): Now written in Java.
5271 1998-10-06 Tom Tromey <tromey@cygnus.com>
5273 * Makefile.in: Rebuilt.
5274 * Makefile.am (ETAGS_ARGS): New macro.
5275 (TAGS_DEPENDENCIES): Likewise.
5277 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5279 * Makefile.in: Rebuilt.
5280 * Makefile.am: Use -classpath option with javac.
5282 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5284 * java/io/FileOutputStream.java (finalize): Call
5287 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5289 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5291 * java/lang/mprec.c: Ditto.
5293 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5296 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5298 * java/io/InputStream.java (skip): Make local var i a long.
5300 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5302 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5303 * prims.cc (lookupArray): Use memcpy, not memmove.
5304 * include/config.h.in: Rebuilt.
5305 * acconfig.h (HAVE_MEMCPY): Added.
5306 * configure: Rebuilt.
5307 * configure.in: Check for memcpy again.
5309 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5310 String.compareTo, not ==.
5312 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5313 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5314 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5315 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5316 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5317 into new array's dtable.
5318 (_Jv_AllocObject): Use _Jv_DispatchTable.
5319 (_Jv_NewPrimArray): Likewise.
5320 (_Jv_NewObjectArray): Likewise.
5322 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5324 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5325 offending index value.
5326 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5328 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5329 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5331 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5333 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5335 * java/io/OutputStream.java (write): Use off and len parameters to
5336 output partial byte array.
5338 * java/io/BufferedReader.java, java/io/FileReader.java,
5339 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5340 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5341 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5342 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5344 * include/javaprims.h (java::lang): Added
5345 ExceptionInInitializerError, IllegalStateException,
5346 NoSuchFieldException, and UnsupportedOperationException.
5348 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5350 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5353 * include/java-array.h (__JArray): Added clone method.
5354 * prims.cc (CloneableClass): New define.
5355 (lookupArray): Initialize array class to indicate that it
5356 implements Cloneable.
5358 * java/lang/Class.h: Removed all ACC_* defines.
5359 * prims.cc: Include Modifier.h.
5360 (_Jv_LookupInterfaceMethod): Use methods in
5361 java.lang.reflect.Modifier, not ACC_ defines.
5363 * java/lang/Class.h (Class): Declare getClasses,
5364 getDeclaredClasses, getDeclaringClass, getModifiers,
5365 * java/lang/Class.java: Rewrote from scratch.
5367 * include/javaprims.h (java::lang): Added reflect and
5369 * Makefile.in: Rebuilt.
5370 * Makefile.am (nat_headers): Added Modifier.h.
5372 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5375 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5377 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5378 instead of test and abort.
5380 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5381 remove compiler warning.
5383 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5385 * java/lang/natDouble.cc: zero terminate string.
5386 * strtod.c: Set errno if no digits are found in fraction.
5388 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5390 * java/lang/reflect/Modifier.java: New file.
5392 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5393 * java/lang/VerifyError.java: Rewrote from scratch.
5394 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5395 * java/lang/UnknownError.java: Rewrote from scratch.
5396 * java/lang/StackOverflowError.java: Rewrote from scratch.
5397 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5398 * java/lang/InternalError.java: Rewrote from scratch.
5399 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5400 * java/lang/ExceptionInInitializerError.java: New file.
5401 * java/lang/Error.java: Rewrote from scratch.
5402 * java/lang/ClassFormatError.java: Rewrote from scratch.
5403 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5404 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5405 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5406 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5407 * java/lang/LinkageError.java: Rewrote from scratch.
5408 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5410 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5412 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5413 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5415 * include/cni.h (JvAllocObject): Moved from prims.cc.
5417 * prims.cc (JvAllocObject): Moved to cni.h.
5418 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5419 (finalize_name): Removed.
5421 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5423 * java/lang/Class.h (Class): Added size() method.
5424 * prims.cc (_Jv_MonitorEnter): Removed.
5425 (_Jv_MonitorExit): Removed.
5426 * java/lang/Object.h (JvSyncInfo): Removed.
5427 * Makefile.in: Rebuilt.
5428 * Makefile.am (nat_headers): Added Cloneable.h,
5429 CloneNotSupportedException.h.
5430 * java/lang/Object.h: Rewrote.
5431 * java/lang/natObject.cc: Rewrote from scratch.
5432 * java/lang/Object.java: Rewrote from scratch.
5434 * java/io/natFile.cc: Conditionally include <dirent.h>.
5435 (list): If no <dirent.h>, always return NULL.
5436 * configure: Rebuilt.
5437 * configure.in: Check for dirent.h.
5439 * prims.cc (lookupArray): Don't use sprintf.
5441 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5448 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5449 name conflict with method.
5451 * include/javaprims.h (java::util): Added HashtableEntry.
5453 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5455 * java/util/Hashtable.java: Rewritten.
5457 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5459 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5463 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5466 * posix-threads.cc (_Jv_CondWait): Now returns int.
5467 * include/javaprims.h (java::lang): Added
5468 IllegalMonitorStateException.
5469 * Makefile.in: Rebuilt.
5470 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5471 * include/no-threads.h (_Jv_CondDestroy): Removed.
5472 (_Jv_MutexDestroy): Removed.
5473 (_Jv_CondWait): Now returns int.
5474 (_Jv_CondNotify): Likewise. Added mutex argument.
5475 (_Jv_CondNotifyAll): Likewise.
5476 (_Jv_MutexLock): Always succeed.
5477 (_Jv_MutexUnlock): Likewise.
5478 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5479 (_Jv_HaveMutexDestroy): Define.
5480 (_Jv_CondNotify): Now returns int. Added mutex argument.
5481 (_Jv_CondNotifyAll): Likewise.
5482 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5483 (_Jv_MutexDestroy): Removed.
5484 (_Jv_CondWait): Now returns int.
5485 (_Jv_CondNotify): Likewise. Added mutex argument.
5486 (_Jv_CondNotifyAll): Likewise.
5487 * java/lang/natObject.cc (finalize_sync_info): New function.
5488 (init_mutex): Initialize `init' and register finalizer if
5491 (init_mutex): Use it.
5493 (notifyAll): Use it.
5495 (notify): Throw IllegalMonitorStateException on failure.
5496 (notifyAll): Likewise.
5497 (wait): Likewise. Also, throw InterruptedException if
5499 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5500 InterruptedException.h, IllegalArgumentException.h.
5501 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5503 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5504 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5505 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5506 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5507 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5508 * quick-threads.cc: Renamed all `JvPriv' functions.
5509 * prims.cc: Renamed all `JvPriv' functions.
5510 * posix-threads.cc: Renamed all `JvPriv' functions.
5511 * nogc.cc: Renamed all `JvPriv' functions.
5512 * no-threads.cc: Renamed all `JvPriv' functions.
5513 * boehm.cc: Renamed all `JvPriv' functions.
5514 * include/quick-threads.h: Renamed all `JvPriv' functions.
5515 * include/posix-threads.h: Renamed all `JvPriv' functions.
5516 * include/no-threads.h: Renamed all `JvPriv' functions.
5517 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5519 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5521 (JvPrivCondNotify): Do nothing.
5522 (JvPrivCondNotifyAll): Do nothing.
5524 * prims.cc (processClass): Handle case where state is
5527 * java/lang/natFirstThread.cc: Include <stdlib.h>
5529 * configure: Rebuilt.
5530 * configure.in: Fixed sense of --enable-libjava-debug.
5532 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5533 it can be used afterward by the assertion.
5535 * configure: Rebuilt.
5536 * configure.in: When cross-compiling, assume alloca.
5538 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5539 __builtin_alloca (autoconf docs are wrong here).
5541 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5543 (available): Use `FD_ZERO' (typo fix).
5545 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5547 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5548 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5550 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5551 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5554 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5556 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5558 * java/lang/natDouble.cc: Declare alloca safely.
5560 * configure, include/config.h.in: Rebuilt.
5561 * configure.in: Add alloca check.
5563 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5565 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5566 condition while calling notify.
5567 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5568 (interrupt): Hold mutex for interrupt condition while calling
5571 * java/lang/natString.cc (init): Allocate and try to read `count'
5572 characters, not `count - offset' characters.
5574 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5575 Correctly compute `count'.
5577 * java/lang/Boolean.java (getBoolean): Return false if property
5580 * java/lang/System.java (setProperties): Set prop_init.
5582 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5584 * java/io/PrintStream.java (println): Use line.separator, not
5586 * java/lang/System.java (out, err): Make both autoflush streams.
5587 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5589 * include/config.h.in: Rebuilt.
5590 * acconfig.h (HAVE_MEMCPY): Removed.
5591 * configure: Rebuilt.
5592 * configure.in: Never define HAVE_MEMCPY.
5594 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5596 (_Jv_AllocString): Use JvAllocObject again.
5597 * java/lang/Class.h (thread): New field.
5598 (_Jv_AllocString): No longer a friend.
5599 * prims.cc (processClass): Removed dead code. Changed to more
5600 closely follow the Java Language Specification.
5601 (processClass): Return early if already at the right state.
5603 * prims.cc (JvNewStringUTF): Removed.
5604 * include/cni.h (JvNewStringUTF): New function.
5605 (_Jv_NewStringUTF): Declare as `extern "C"'.
5606 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5608 * java/lang/natDouble.cc: Added copyright info and header
5609 comment. Include <stdlib.h>.
5610 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5611 bytes as are chars in string.
5613 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5615 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5619 * java/lang/System.java (init_properties): Now native.
5620 * java/lang/natSystem.cc (init_properties): New method.
5621 Include java/util/Properties.h.
5623 * Makefile.in: Rebuilt.
5624 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5625 OutputStreamWriter.h, ByteArrayInputStream.h,
5626 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5627 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5628 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5629 Properties.h, Hashtable.h, Dictionary.h.
5632 * include/javaprims.h (java::io): Added Reader, Writer,
5633 InputStreamReader, OutputStreamWriter,
5634 UnsupportedEncodingException, ByteArrayInputStream,
5635 ByteArrayOutputStream, EOFException, SyncFailedException,
5636 PushbackInputStream.
5637 (java::lang): Added Cloneable.
5638 (java::util): Added NoSuchElementException, VectorEnumeration,
5639 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5641 * java/io/PipedReader.java: New file.
5643 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5645 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5648 * java/io/io-defs.h: Removed.
5650 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5651 (FileInputStream): Use new constructor. Can throw IOException.
5653 * java/lang/System.java (getProperty): Don't throw
5654 NullPointerException.
5656 * java/io/RandomAccessFile.java: Rewrote from scratch.
5658 * java/io/natFileDescriptor.cc: Include EOFException.h.
5660 (length): New method.
5661 (getFilePointer): New method.
5663 (available): New method.
5664 * java/io/FileDescriptor.java (SET, CUR): New constants.
5665 (seek, length, getFilePointer, read, available): New decls.
5667 * java/io/PipedWriter.java: New file.
5668 * java/io/StringWriter.java: New file.
5669 * java/io/CharArrayWriter.java: New file.
5670 * java/io/CharConversionException.java: New file.
5671 * java/io/BufferedWriter.java: New file.
5672 * java/io/FilterWriter.java: New file.
5673 * java/io/FileWriter.java: New file.
5675 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5676 OutputStreamWriter.h, NullPointerException.h,
5677 ByteArrayInputStream.h, InputStreamReader.h.
5678 (getBytes): New method.
5679 (init): Throw NullPointerException.
5680 (init): New function.
5681 * java/lang/String.java (getBytes): Added missing decl.
5682 (getBytes): New method.
5683 (String): Added byte[]-based constructors.
5684 (copyValueOf): Wrote.
5685 (init): Declare variant which takes byte array and encoding.
5686 Import java.io.UnsupportedEncodingException.
5688 * java/io/File.java: Rewrote from scratch.
5689 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5690 * java/io/FileDescriptor.java: Rewrote from scratch.
5691 * java/io/FilenameFilter.java: Rewrote from scratch.
5693 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5695 * java/io/SyncFailedException.java: New file.
5696 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5697 * java/io/InterruptedIOException.java: Rewrote from scratch.
5698 * java/io/FileNotFoundException.java: Rewrote from scratch.
5699 * java/io/EOFException.java: Rewrote from scratch.
5700 * java/io/IOException.java: Rewrote from scratch.
5701 * java/io/PrintStream.java: Rewrote from scratch.
5702 * java/io/DataOutputStream.java: Rewrote from scratch.
5703 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5704 * java/io/FilterOutputStream.java: Rewrote from scratch.
5705 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5706 * java/io/PipedOutputStream.java: Rewrote from scratch.
5707 * java/io/FileOutputStream.java: Rewrote from scratch.
5708 * java/io/OutputStream.java: Rewrote from scratch.
5709 * java/io/DataOutput.java: Rewrote from scratch.
5711 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5713 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5715 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5717 * configure.in: Add --enable-libjava-debug
5719 * Makefile.am (nat_headers): Add java/lang/Float.h and
5722 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5724 * Makefile.in, configure, include/config.h.in: Rebuilt.
5726 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5728 * java/lang/Float.java: Rewritten
5729 * java/lang/Double.java: Rewritten
5730 * java/lang/natFloat.cc: toString() added.
5731 * java/lang/natDouble.cc: toString() added.
5732 * java/lang/natDouble.cc: doubleValueOf() added.
5733 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5734 java/lang/strtod.c: added.
5735 * ieeefp.h: __sparc added.
5736 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5738 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5740 * include/javaprims.h (java::lang): Added
5741 CloneNotSupportedException.
5743 * java/lang/Object.java (clone): No longer native. Implemented.
5744 * java/lang/natObject.cc (clone): Removed.
5746 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5748 * prims.cc: Don't make definitions `extern "C"'.
5749 (_Jv_RegisterClass): Renamed from registerClass.
5750 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5751 (_Jv_NewArray): Likewise.
5752 (_Jv_NewMultiArray): Likewise.
5753 (_Jv_CheckCast): Likewise.
5754 (_Jv_LookupInterfaceMethod): Likewise.
5755 (_Jv_CheckArrayStore): Likewise.
5756 (_Jv_RegisterClass): Likewise.
5758 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5759 * configure: Rebuilt.
5760 * configure.in: Don't check for fmod; it is provided by the fdlibm
5762 * prims.cc (fmod): Removed.
5764 * java/lang/natString.cc (charAt): Use _Jv_uint.
5765 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5766 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5767 (equalUtf8Consts): Likewise.
5768 (internalAddClass): Use _Jv_uint.
5769 (processClass): Likewise.
5770 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5771 (_Jv_uint): Renamed from uint32.
5772 (struct _Jv_Utf8Const): Changed members to use new type names.
5774 * configure: Rebuilt.
5775 * configure.in: Don't check for memcpy. Require memmove and a way
5777 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5779 (currentTimeMillis): Don't use #error.
5781 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5783 * java/lang/Math.java: static member random renamed to random_ to
5784 avoid conflict with member function of the same name.
5785 * include/javaprims.h: java.util.Random added.
5787 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5789 * include/java-chartables.h: Regenerated.
5790 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5793 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5795 * java/lang/Math.java: Rewritten.
5796 * java/lang/natMath.cc: New file.
5797 * Files added from fdlibm:
5798 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5799 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5800 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5801 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5802 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5803 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5804 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5805 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5806 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5807 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5808 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5809 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5810 java/lang/k_cos.c, java/lang/sf_ceil.c,
5811 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5812 java/lang/ieeefp.h, java/lang/fdlibm.h
5813 * Makefile.am: rules added for compiling C files from fdlibm.
5815 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5817 * chartables.pl: Minor documentation fixes.
5819 * configure: Rebuilt.
5820 * configure.in: Fixed --help output for --enable-fast-character.
5822 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5824 * configure: Rebuilt.
5825 * configure.in: Recognize --enable-fast-character.
5826 * acconfig.h (COMPACT_CHARACTER): New define.
5827 * include/config.h.in: Rebuilt.
5828 * include/java-chartables.h: New file.
5829 * Makefile.in: Rebuilt.
5830 * Makefile.am (nat_files): Added natCharacter.o.
5831 * java/lang/natCharacter.cc: New file.
5832 * chartables.pl (set_attribute): New function.
5833 (@attributes, @second_attributes): New globals.
5834 ($ROMAN_START, $ROMAN_END): Likewise.
5835 (process_char): Call set_attribute when required.
5836 (print_char): Just print hex value.
5837 (print_block): Generate C++ syntax.
5838 (print_numerics): Likewise.
5839 (print_single_map): Likewise.
5840 (print_all_block): Likewise.
5841 (print_case_table): Likewise.
5842 (print_fast_tables): New function.
5843 Generate C++ code suitable for a header file.
5844 * java/lang/Character.java (table_search): Removed.
5845 (digit_value): Now native.
5846 (getNumericValue): Likewise.
5847 (getType): Likewise.
5848 Removed all automatically-generated tables.
5849 (Tamil_Digit_One): Removed.
5850 (isSpaceChar): Now native.
5851 (isTitleCase): Likewise.
5852 (isLowerCase): Likewise.
5853 (isUpperCase): Likewise.
5854 (toLowerCase): Likewise.
5855 (toTitleCase): Likewise.
5856 (toUpperCase): Likewise.
5857 (isDefined): Fixed sense of test.
5859 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5861 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5863 (regionMatches): Likewise.
5865 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5867 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5869 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5871 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5874 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5877 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5879 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5881 * prims.cc (instanceof_class): Removed.
5882 (instanceof_array): Likewise.
5883 (instanceof): Likewise.
5884 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5885 (_Jv_CheckCast): Likewise.
5886 * java/lang/natClass.cc (isAssignableFrom): New method.
5887 * java/lang/Class.java (isAssignableFrom): Now native.
5889 * include/cni.h (JvThrow): Use `extern inline'.
5890 (JvAllocObject): Likewise.
5891 (JvInitClass): Likewise.
5893 * java/lang/natSystem.cc (arraycopy): Only check class of source
5896 * prims.cc (_Jv_CheckArrayStore): Wrote.
5897 (_Jv_MonitorEnter): Prefer `JvThrow'.
5898 Include ArrayStoreException.h.
5899 (_Jv_CheckCast): Indentation cleanup.
5901 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5903 * chartables.pl: New file.
5904 * java/lang/Character.java: Rewrote from scratch.
5906 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5908 * java/lang/ArithmeticException.java,
5909 java/lang/ArrayIndexOutOfBoundsException.java,
5910 java/lang/ArrayStoreException.java,
5911 java/lang/ClassCastException.java,
5912 java/lang/ClassNotFoundException.java,
5913 java/lang/CloneNotSupportedException.java,
5914 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5915 java/lang/IllegalArgumentException.java,
5916 java/lang/IllegalMonitorStateException.java,
5917 java/lang/IllegalThreadStateException.java,
5918 java/lang/IndexOutOfBoundsException.java,
5919 java/lang/InstantiationException.java,
5920 java/lang/InterruptedException.java,
5921 java/lang/NegativeArraySizeException.java,
5922 java/lang/NoSuchMethodException.java,
5923 java/lang/NullPointerException.java,
5924 java/lang/NumberFormatException.java,
5925 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5926 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5928 * java/lang/IllegalStateException.java,
5929 java/lang/NoSuchFieldException.java,
5930 java/lang/UnsupportedOperationException.java: Created.
5932 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5934 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5935 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5937 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5939 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5941 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5943 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5945 * Makefile.in: Rebuilt.
5947 * include/javaprims.h (java::lang): Added
5948 StringIndexOutOfBoundsException.
5950 * java/lang/String.java: Added header comment and FIXME comment for
5951 missing constructors/methods.
5952 (endsWith): Adjusted offset into string to look at just the last chars.
5953 Commented out undocumented method.
5955 * java/lang/natString.cc: Added includes for
5956 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5957 (String::init): Throw StringIndexOutOfBoundsException.
5958 (String::charAt): Throw StringIndexOutOfBoundsException.
5959 (String::substring): Throw StringIndexOutOfBoundsException.
5960 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5961 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5962 (String::compareTo): Return difference/offset between chars/strings.
5964 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5966 * java/lang/Boolean.java (TYPE): Added comment.
5968 * java/lang/Byte.java (decode): Added - commented out until dependent
5969 code for Integer is written.
5970 (compareTo): JDK 1.2 methods written.
5971 (hashCode): Added comment to note that values have been verified.
5973 * java/lang/Short.java (decode): Added - commented out until dependent
5974 code for Integer is written.
5975 (compareTo): JDK 1.2 methods written.
5976 (hashCode): Added comment to note that values have been verified.
5978 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5980 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5982 * include/javaprims.h (java::lang): Added VirtualMachineError,
5984 * Makefile.in: Rebuilt.
5985 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5986 VirtualMachineError.h.
5987 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5988 (lookupArray): Likewise.
5989 (makeUtf8Const): Likewise.
5990 (_Jv_AllocObject): Likewise.
5991 (_Jv_NewObjectArray): Likewise.
5992 Include OutOfMemoryError.h.
5994 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5995 to use JvNewStringLatin1.
5997 * java/io/io-defs.h: Include java/lang/IOException.h.
5998 * Makefile.in: Rebuilt.
5999 * Makefile.am (nat_headers): Added
6000 ArrayIndexOutOfBoundsException.h,
6001 ClassFormatError.h,ClassNotFoundException.h,
6002 ClassCircularityError.h, ClassCastException.h,
6003 IncompatibleClassChangeError.h, AbstractMethodError.h,
6004 IllegalAccessError.h, LinkageError.h, Error.h,
6005 NegativeArraySizeException.h, IOException.h.
6006 * include/cni.h (SignalError): Removed declaration.
6007 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6008 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6009 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6010 (newInstance): Likewise.
6011 (forName): Likewise.
6012 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6014 (read): Use JvThrow, not SignalError.
6019 (open_read): Likewise.
6020 (open_write): Likewise.
6023 (newstr): New function.
6024 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6026 (lastModifiedUnchecked): Likewise.
6027 (lengthUnchecked): Likewise.
6028 * include/javaprims.h (sorry): Removed declaration.
6029 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6030 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6031 ClassCastException, IncompatibleClassChangeError,
6032 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6033 * prims.cc (instanceof_array): Use JvFail, not sorry.
6035 Include ArrayIndexOutOfBoundsException.h,
6036 ClassFormatError.h,ClassNotFoundException.h,
6037 ClassCircularityError.h, ClassCastException.h,
6038 IncompatibleClassChangeError.h, AbstractMethodError.h,
6039 IllegalAccessError.h, NegativeArraySizeException.h.
6040 (_Jv_ThrowBadArrayIndex): Implemented.
6041 (JvNewStringUTF): Use JvFail, not sorry.
6042 (_Jv_FindClass): Likewise.
6043 (_Jv_NewArray): Likewise.
6044 (throwException): Removed.
6045 (getClass): Use JvThrow.
6046 (processClass): Likewise.
6047 (_Jv_NewObjectArray): Likewise.
6048 (_Jv_NewMultiArray): Likewise.
6049 (_Jv_CheckCast): Likewise.
6050 (_Jv_LookupInterfaceMethod): Likewise.
6051 (SignalError): Removed.
6052 (getClass): Use _Jv_NewStringUtf8Const to create String.
6054 * java/lang/natSystem.cc (arraycopy): Throw
6055 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6057 * Makefile.in: Rebuilt.
6058 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6060 * include/java-array.h: Mention gcjh, not gjavah.
6062 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6063 (canReadUnchecked): Likewise.
6064 (canWriteUnchecked): Likewise.
6065 (isFileUnchecked): Likewise.
6066 * java/io/natFileDescriptor.cc: Don't include cni.h.
6068 * java/lang/Thread.java (run__): Declare.
6069 * java/lang/natThread.cc (run__): New method, to avoid compiler
6071 (start): Use run__, not run_.
6073 * java/io/io-defs.h: Include cni.h and jvm.h.
6075 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6077 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6078 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6079 to natString.cc (with suitable renaming, inlines etc).
6080 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6081 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6082 * java/lang/String.h: Removed - now generated using gjavah.
6083 * java/lang/String.java: Re-written from scratch. Many native methods.
6084 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6085 * java/lang/natString.cc: Many functions re-written for "compact
6086 strings" representation, or native java.lang.String methods added.
6087 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6088 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6089 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6090 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6091 * include/cni.h: Add inline method.
6092 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6093 * include/javaprims.h: Moved some stuff frm String.h.
6094 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6095 * Makefile.am (nat_header): Added Character.h and String.h.
6096 (String.h): Add new rule.
6098 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6100 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6102 * posix-threads.cc: Include cni.h, jvm.h.
6103 * quick-threads.cc: Include cni.h, jvm.h.
6104 * nogc.cc: Include cni.h, not javaprims.h.
6105 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6106 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6107 include java-assert.h.
6108 * java/lang/natSystem.cc: Include cni.h. Don't include
6110 * java/lang/natRuntime.cc: Include cni.h. Don't include
6112 * prims.cc: Rearranged #include ordering. Don't include
6113 java-array.h or java-assert.h.
6114 * boehm.cc: Include config.h, cni.h.
6115 * exception.cc: Include config.h, cni.h.
6116 * include/jvm.h: Include java-assert.h.
6117 * include/cni.h: Include java/lang/Object.h. Don't include
6118 java-threads.h or java-array.h.
6120 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6122 * java/lang/Boolean.java: Rewritten.
6124 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6126 * java/lang/natFirstThread.cc (main_func): New typedef.
6127 (run): Use main_func, not JvPrivThreadStartFunc.
6128 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6130 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6132 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6135 Can't throw Java exceptions with C++ `throw':
6136 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6137 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6138 (setPriority): Likewise.
6142 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6143 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6145 Can't catch Java exceptions from C++:
6146 * java/lang/natThread.cc (finish_): New method.
6148 * java/lang/Thread.java (run_): Rewrote in Java.
6149 (finish_): New native method.
6151 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6153 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6155 * include/javaprims.h (java::io): Added Serializable.
6157 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6159 * java/util/EmptyStackException.java,
6160 java/util/NoSuchElementException.java: Rewritten.
6162 * java/util/ConcurrentModificationException.java,
6163 java/util/MissingResourceException.java,
6164 java/util/TooManyListenersException.java: Created.
6166 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6168 * include/cni.h (JvThrow): New function.
6169 * include/javaprims.h (_Jv_Throw): Declare.
6171 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6173 * java/util/Observable.java: Rewritten.
6175 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6177 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6178 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6179 Include NullPointerException.h.
6181 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6183 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6184 assignability checks. Don't bother using memcpy.
6186 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6188 * include/quick-threads.h (JvPrivThreadWait): New function.
6189 * include/no-threads.h (JvPrivThreadWait): New function.
6190 * include/posix-threads.h (JvPrivThreadWait): New function.
6191 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6193 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6195 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6196 offsets by size of type that is being copied.
6198 * java/lang/natThread.cc (start): Don't pass `object' argument to
6200 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6201 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6203 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6204 always pass thread as object.
6205 * include/quick-threads.h, include/posix-threads.h,
6206 include/no-threads.h (JvPrivThreadStart): Removed `object'
6209 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6211 * java/util/Dictionary.java: Rewritten.
6213 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6215 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6216 (JvPrivThreadDestroy): Likewise.
6218 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6220 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6222 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6224 * java/lang/natSystem.cc: Rewrote from scratch.
6225 * java/lang/System.java: Rewrote from scratch.
6226 * java/lang/Class.h (Class): Declare isAssignableFrom.
6227 * include/javaprims.h (java::lang): Added ArrayStoreException,
6228 IndexOutOfBoundsException.
6229 * Makefile.in: Rebuilt.
6230 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6231 IndexOutOfBoundsException.h.
6232 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6233 * include/jvm.h (_Jv_HashCode): New function.
6235 * java/lang/natThread.cc (suspend): Call checkAccess.
6237 * java/lang/Thread.java (setDaemon): Call checkAccess.
6239 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6241 * java/lang/Runtime.java: Rewrote from scratch.
6242 * java/lang/natRuntime.cc: Rewrote from scratch.
6244 * nogc.cc (JvPrivGCTotalMemory): New function.
6245 (JvPrivGCFreeMemory): Likewise.
6246 (total): New global.
6247 (JvPrivAllocObj): Increment total.
6248 (JvPrivAllocArray): Likewise.
6249 (JvPrivAllocBytes): Likewise.
6250 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6251 * boehm.cc (JvPrivGCTotalMemory): New function.
6252 (sum_blocks): Likewise.
6253 (JvPrivGCFreeMemory): Likewise.
6255 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6257 * include/javaprims.h (java::lang): Added FirstThread.
6258 * java/lang/natFirstThread.cc: New file.
6259 * java/lang/FirstThread.java: New file.
6260 * prims.cc (main_signature): Removed.
6261 (main_name): Removed.
6262 #include FirstThread.h.
6263 * Makefile.in: Rebuilt.
6264 * Makefile.am (TFRIEND): Removed.
6265 (java/lang/Thread.h): Likewise.
6266 (FTFRIEND): New macro.
6267 (java/lang/FirstThread.h): New target.
6268 (nat_files): Added natFirstThread.o.
6269 (nat_headers): Added FirstThread.h.
6270 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6271 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6273 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6277 * java/lang/natThread.cc (start): Synchronize the thread.
6278 (stop): Synchronize the thread.
6280 * java/lang/ThreadDeath.java: Rewrote from scratch.
6282 * Makefile.in: Rebuilt.
6283 * Makefile.am (TGFRIEND): New macro.
6284 (java/lang/ThreadGroup.h): New target.
6285 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6287 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6289 * nogc.cc: Include config.h.
6291 * java/lang/ThreadGroup.java: Rewrote from scratch.
6293 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6295 * java/lang/Thread.java (checkAccess): Only call in to security
6296 manager if it exists.
6297 (Thread): Don't check access when creating the first thread. Add
6298 this thread to the appropriate ThreadGroup.
6300 * java/lang/natThread.cc (run_): Call uncaughtException method on
6303 * java/lang/Runnable.java: Rewrote from scratch.
6304 * java/lang/Thread.java: Updated copyright comment to correct
6307 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6309 * java/util/Random.java: Rewritten.
6311 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6313 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6314 trailing 0 in array[].
6316 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6318 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6319 and RUNTESTFLAGS from AM_MAKEFLAGS.
6320 (SUBDIRS): Conditionally include testsuite.
6321 * Makefile.in: Rebuilt.
6323 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6325 * java/lang/Object.h: Include java-assert.h.
6327 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6329 * Makefile.am: Add testsuite directory.
6330 * configure.in: Build testsuite/Makefile.
6331 * Makefile.in, configure: Rebuilt.
6333 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6335 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6336 * include/jvm.h (_Jv_StartFirstThread): Declare.
6338 * include/javaprims.h (java::lang): Added Exception,
6341 * Makefile.in: Rebuilt.
6342 * Makefile.am (nat_headers): Added NullPointerException.h,
6343 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6344 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6345 (java/lang/Thread.h): New target.
6346 (TFRIEND): New macro
6348 * include/java-assert.h (JvFail): Use 0 and not NULL.
6350 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6351 instead of assuming we are a friend of Thread.
6352 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6353 instead of assuming we are a friend of Thread.
6355 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6357 * java/lang/natThread.cc: Rewrote from scratch.
6358 * java/lang/Thread.java: Rewrote from scratch.
6359 * prims.cc (JvRunMain): Use new Thread constructor.
6360 * include/javaprims.h (java::lang): Added InterruptedException.
6361 * Makefile.in: Rebuilt.
6362 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6363 * java/lang/Thread.h: Removed.
6364 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6365 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6367 * posix-threads.cc (JvPrivThreadJoin): Removed.
6368 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6369 (really_start): Don't notify join_cond.
6370 (JvPrivThreadStart): Added `data' argument.
6371 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6372 (JvPrivThreadJoin): Likewise.
6373 Use JvFail instead of sorry.
6374 (JvPrivThreadSuspend): Removed.
6375 (JvPrivThreadResume): Removed.
6376 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6377 (JvPrivThreadJoin): Likewise.
6378 (JvPrivThreadSuspend): Use JvFail.
6379 (JvPrivThreadResume): Likewise.
6380 (JvPrivThreadSuspend): Removed.
6381 (JvPrivThreadResume): Likewise.
6382 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6383 (JvPrivThread_t): Removed join_mutex, join_cond.
6384 Use JvFail instead of sorry.
6385 (JvPrivThreadSuspend): Removed.
6386 (JvPrivThreadResume): Likewise.
6388 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6390 * java/util/Observer.java: Rewritten
6391 * java/util/Enumeration.java: Rewritten
6393 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6395 * java/util/StringTokenizer.java: Rewritten
6396 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6397 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6398 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6400 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6402 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6405 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6406 Include java-assert.h.
6407 * include/java-assert.h: New file.
6408 * prims.cc (_Jv_Abort): New function.
6409 Include java-assert.h, not assert.h.
6410 (_Jv_MonitorExit): Use JvAssert.
6411 (resolveConstants): Likewise.
6412 (processClass): Likewise.
6413 (JvRunMain): Assert that method is found.
6415 * configure: Rebuilt.
6416 * configure.in: Check for test subdir.
6417 * Makefile.in: Rebuilt.
6418 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6420 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6421 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6423 * prims.cc (resolveConstants): Removed unused variables.
6424 (processClass): Likewise.
6426 * include/quick-threads.h (JvPrivThreadCurrent): Use
6428 * quick-threads.cc (destroy_data): New function.
6429 (JvPrivInitThreads): Create key.
6430 (JvPrivThreadKey): New global.
6431 (JvPrivThreadStart): Use coop_setspecific.
6433 * include/quick-threads.h, include/posix-threads.h,
6434 include/no-threads.h, no-threads.cc, quick-threads.cc,
6435 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6437 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6439 * include/no-threads.h (JvPrivThreadInitData): Don't set
6442 * include/quick-threads.h (JvPrivCondWait): coop function now
6444 (JvPrivThreadJoin): Likewise.
6446 * java/lang/Thread.h (Thread): Updated declaration of
6448 * include/quick-threads.h, include/posix-threads.h: Updated
6449 declaration of JvPrivThreadStart.
6450 * include/no-threads.h (JvPrivThreadStart): Changed definition
6452 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6453 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6454 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6456 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6458 * quick-threads.cc (qthrow): New function.
6459 (JvPrivInitThreads): New function.
6460 (started): New global.
6461 (JvPrivThreadStart): Call coop_start if required.
6462 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6463 (JvPrivThreadDestroy): Likewise.
6464 (JvPrivInitThreads): Removed.
6465 * include/posix-threads.h (JvPrivThreadCancel): Added error
6467 * java/lang/natThread.cc (stop_): Pass exception to
6470 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6472 * include/javaprims.h (java::lang): Added
6473 IllegalArgumentException, IllegalThreadStateException, Math,
6474 NullPointerException, ThreadDeath.
6475 (java::util): Added Enumeration.
6477 * Makefile.in: Rebuilt.
6478 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6480 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6482 (threadsv): Renamed from threads to avoid clash in C++ header.
6483 (groupsv): Likewise.
6484 * include/no-threads.h (JvPrivThreadStart): Removed.
6485 * no-threads.cc (JvPrivThreadStart): New function.
6486 * java/lang/Thread.java (Thread): New constructor for internal use.
6487 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6488 (Thread): Declare constructor.
6489 * prims.cc (JvRunMain): Create the initial Thread and
6491 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6492 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6493 Removed `daemon' argument.
6495 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6496 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6498 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6500 * Makefile.in: Rebuilt.
6501 * Makefile.am (INCLUDES): Include THREADINCS.
6503 * configure: Rebuilt.
6504 * configure.in: Recognize `qt' as a threads package.
6506 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6508 * java/util/Stack.java (pop): Null out topmost node for robustness.
6510 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6512 * java/util/Stack.java: Rewritten.
6513 * java/util/Vector.java (isEmpty): Simplified expression.
6515 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6517 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6518 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6520 * include/java-array.h (JvNewObjectArray): Created inline to
6523 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6526 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6528 * java/util/Vector.java: Rewritten.
6529 * java/io/Serializable.java: Created.
6531 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6533 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6534 Infinity is 1/0, not 1/1.
6536 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6538 * configure: Rebuilt.
6539 * configure.in: Removed duplicate AC_ARG_WITH.
6541 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6543 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6545 (_Jv_InitClass): Renamed from soft_initialise_class.
6546 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6547 (_Jv_CheckCast): Renamed from soft_checkcast.
6548 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6549 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6550 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6551 * include/cni.h (JvInitClass): New function.
6552 (_Jv_InitClass): Renamed from soft_initialise_class.
6554 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6556 * configure: Rebuilt.
6557 * configure.in (CXX): Don't set.
6558 * Makefile.in: Rebuilt.
6559 * Makefile.am (AM_CXXFLAGS): New macro.
6561 * Makefile.in: Rebuilt.
6562 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6563 nogc.o): New target.
6565 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6567 (mark_array): Likewise.
6569 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6571 * java/lang/Class.h (JvMethod): Removed some unused fields.
6572 (JvField.info): Removed unused idx union variant.
6574 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6576 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6579 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6581 * configure.in, configure (CXX): Add -fvtable-thunks.
6583 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6585 * java/lang/Object.java (finalize): Move first.
6586 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6587 (Object): Re-arrange order to match Object.java.
6589 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6591 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6592 * java/lang/natString.cc (hashChars): Likewise.
6594 * prims.cc (RuntimeClass): New macro.
6595 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6597 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6599 * Makefile.in: Rebuilt.
6600 * Makefile.am (AM_MAKEFLAGS): New macro.
6602 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6604 * nogc.cc: Include <javaprims.h>.
6606 * Makefile.in: Rebuilt.
6607 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6609 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6611 * exception.cc (terminate): Removed.
6612 (unexpected): Removed.
6614 * configure: Rebuilt.
6615 * configure.in: Handle case where target subdir is ".".
6617 * configure: Rebuilt.
6618 * configure.in: Compute COMPPATH based on --with-target-subdir
6619 option. Added --with-target-subdir and --with-cross-host. Use
6620 --with-cross-host to determine when a cross compiler is in use.
6622 * Makefile.in: Rebuilt.
6623 * Makefile.am (GJAVAH): Include COMPPATH.
6624 * configure: Rebuilt.
6625 * configure.in: Subst COMPPATH.
6627 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6629 * prims.cc (lockMutex): Removed.
6630 (unlockMutex): Likewise.
6631 (processClass): Lock the class using a JvSynchronize object.
6633 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6635 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6636 (gc_free_fixed): Removed.
6637 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6638 freeing old value of strhash.
6640 * exception.cc (_Jv_type_matcher): Cast first argument to
6643 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6645 * include/java-array.h (jstringArray): New type.
6646 * java/lang/natSystem.cc (setProperty): Removed.
6647 (initProperties): Directly call JvNewStringLatin1 for arguments.
6648 * java/util/natDate.cc: Include java/util/Date.h, not
6651 * java/io/FileDescriptor.java (available): No longer static.
6652 * java/lang/natDouble.cc (Double): Removed class definition.
6653 * include/javaprims.h (java::lang::Number): Declare.
6654 (java::lang::NumberFormatException): Likewise.
6655 (java::io::FilenameFilter): Likewise.
6656 (java::lang::Character): Likewise.
6657 (java::lang::Error): Likewise.
6658 (java::lang::SecurityManager): Likewise.
6659 (java::util::Vector): Likewise.
6660 (java::io::FileNotFoundException): Likewise.
6661 (java::io::IOException): Likewise.
6662 (java::lang::NativeLang): Likewise.
6663 (java::lang::UnsatisfiedLinkError): Likewise.
6664 (java::util::StringTokenizer): Likewise.
6665 (java::io::InputStream, java::io::OutputStream): Likewise.
6666 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6667 (java::util::Hashtable): Likewise.
6668 * Makefile.in: Rebuilt.
6669 * Makefile.am (nat_headers): Added java/lang/Double.h,
6670 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6671 (MOSTLYCLEANFILES): Added nat_headers.
6672 * include/jvm.h: Moved many defines, declarations, and functions
6673 to java/lang/Class.h.
6674 (struct JvSyncInfo): Moved to java/lang/Object.h.
6675 (UTF8_GET): Moved to java/lang/String.h.
6677 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6679 * java/io/io-defs.h: Don't include java-io.h.
6680 * include/java-io.h: Removed.
6681 * include/javaprims.h: Include java::io.
6683 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6685 * include/java-io.h (File): Removed
6686 (FileDescriptor): Likewise.
6688 * java/io/io-defs.h: Include java/io/File.h and
6689 java/io/FileDescriptor.h.
6691 * Makefile.in: Rebuilt.
6692 * Makefile.am (GJAVAH): New macro.
6693 (.class.h): New rule.
6694 (SUFFIXES): Added .h.
6695 (nat_headers): New macro.
6696 ($(nat_headers)): New target.
6697 (BUILT_SOURCES): Added nat_headers.
6699 * include/java-util.h: Removed.
6701 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6703 * include/java-io.h: Changed to avoid java-lang.h.
6704 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6706 * java/lang/natSystem.cc: Include java/lang/System.h, not
6708 * java/lang/natString.cc: Include java/lang/String.h, not
6710 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6712 * java/lang/natClass.cc: Include java/lang/Class.h, not
6714 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6716 * java/lang/natObject.cc: Include java/lang/Object.h, not
6718 * exception.cc: Don't include java-lang.h.
6719 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6720 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6721 * nogc.cc: Don't include java-lang.h.
6722 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6723 * prims.cc (processClass): Don't use `init_type'; just cast to
6725 Include java/lang/Class.h and jvm.h, not java-lang.h.
6726 (JvAllocObject): Wrote single-argument version.
6727 (PrimClass): Inherit from Class.
6728 (initPrimClass): Removed.
6729 * include/java-lang.h: Removed.
6730 * include/jvm.h: Declare struct _dispatchTable.
6731 * include/cni.h: Don't declare _Jv_MonitorEnter,
6732 _Jv_MonitorExit, struct _dispatchTable.
6733 * include/javaprims.h: Moved all typedefs here, from cni.h.
6734 * java/lang/Class.h: New file.
6735 * include/java-array.h: New file.
6736 * java/lang/Object.h: New file.
6738 * prims.cc (classFromSig): Now static.
6740 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6742 * include/cni.h: Don't mention soft_new.
6743 * include/java-lang.h (Object): Don't mention soft_new. Mention
6744 _Jv_NewPrimArray, not newPrimArray.
6745 * prims.cc (soft_new): Removed.
6746 (_Jv_NewArray): Renamed from soft_newarray.
6747 (soft_anewarray): Use JvNewObjectArray.
6748 (newArray): Likewise.
6749 (newRefArray): Removed.
6750 (_Jv_NewPrimArray): Renamed from newPrimArray.
6751 (equalUtf8Consts): Now static.
6752 (soft_instanceof): Removed.
6753 * java/lang/natDouble.cc (doubleToString): Now static.
6755 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6756 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6759 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6761 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6763 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6765 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6766 (JvPrivMutexUnlock): Likewise.
6767 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6768 Return value now jint.
6769 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6772 * Makefile.in: Rebuilt.
6773 * Makefile.am: Don't allow `jV' names.
6774 (maintainer-check): Depend on libjava.a.
6775 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6777 * Makefile.in: Rebuilt.
6778 * Makefile.am (NM): New macro.
6779 (maintainer-check): New target.
6781 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6783 * configure: Rebuilt.
6784 * configure.in: Use --enable-threads, not --enable-gc. Fix
6785 documentation for --enable-threads. Changed option to work like
6786 identical option in gcc/configure.
6788 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6790 * boehm.cc (mark_array): Use JvGetArrayLength.
6792 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6794 * exception.cc: New file (mostly written by Andrew MacLeod),
6795 exception handling support.
6796 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6797 Remove -fexceptions - it is now the default.
6799 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6800 (JvAllocObject): Renamed to _Jv_AllocObject.
6801 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6802 (loadClass): Renamed to _Jv_FindClass.
6803 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6804 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6805 * include/java-lang.h (JvGetArrayLength): New CNI function.
6806 * include/jvm.h (_Jv_FindClass): Added declaration.
6808 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6810 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6812 * java/lang/natClass.cc (getName): Add implementation.
6813 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6815 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6817 * Makefile.in: Rebuilt.
6818 * Makefile.am (.class.o): Added -fexceptions.
6820 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6822 * configure: Rebuilt.
6823 * configure.in: Don't check for __nanosleep.
6824 * posix-threads.cc (nanosleep): Never define.
6826 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6828 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6831 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6833 * java/lang/natThread.cc (enumerate): Uncommented.
6834 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6835 (interrupt): Call it.
6837 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6839 * configure: Rebuilt.
6840 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6842 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6844 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6845 * include/java-lang.h (Thread): Added `interrupted_' method.
6846 * java/lang/Thread.java (interrupted_): New method.
6847 * java/lang/natThread.cc (join): Possibly throw interrupted
6848 exception after join finishes.
6849 (interrupted_): New method.
6850 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6852 (JvPrivThreadJoin): New function.
6853 (really_start): Notify all threads waiting for this thread.
6854 (struct starter): Added `data' member.
6855 (JvPrivThreadStart): Set it.
6856 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6858 (JvPrivThreadJoin): No longer inline.
6859 (JvPrivThreadInterrupt): New function.
6861 * include/no-threads.h (JvPrivThreadSleep): Removed.
6862 * posix-threads.cc (JvPrivThreadSleep): Removed.
6864 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6866 * configure: Rebuilt.
6867 * configure.in (THREADOBJS): Initialize to no-threads.o in
6869 * posix-threads.cc (key): New global.
6870 (JvPrivInitThreads): New function.
6871 (really_start): Set thread-specific data to point to object.
6872 (JvPrivThreadStart): Added `daemon' argument.
6873 (JvPrivThreadSleep): Added `data' argument.
6874 * include/posix-threads.h (JvPrivInitThreads): Removed
6876 (JvPrivThreadCurrent): New function.
6877 * include/no-threads.h (JvPrivThreadInitData): Initialize
6878 JvPrivOnlyThread. Added `thread' argument.
6879 (JvPrivThreadCurrent): New function.
6880 (JvPrivThreadStart): Added `daemon' argument.
6881 * no-threads.cc: New file.
6882 * java/lang/natThread.cc (init_data): New function.
6884 (start): Set `alive' member.
6885 (stop_): Clear `alive' member.
6886 (destroy): Likewise.
6887 (currentThread): Implemented.
6888 (start): Pass `daemon' argument to JvPrivThreadStart.
6890 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6891 (Thread): Added `init_data' method.
6892 * java/lang/Thread.java (alive, data): New instance variables.
6893 (init_data): New private method.
6894 (isAlive): No longer native.
6896 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6898 * include/java-lang.h (JvRunMain): Declare.
6899 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6900 * prims.cc (JvRunMain): New function.
6901 (main_signature, main_name): New globals.
6903 * boehm.cc (mark_array): Use `elements' function and not
6904 operator[] on jarray.
6906 * posix-threads.cc: Include <config.h>. Define nanosleep if
6909 * configure: Rebuilt.
6910 * configure.in: Check for _nanosleep.
6912 * configure: Rebuilt.
6913 * configure.in: Check for pthread_mutexattr_settype.
6915 * include/cni.h (class JvSynchronize): New class.
6916 * java/lang/Thread.java (sleep): Throws InterruptedException.
6917 (join): Throws InterruptedException.
6918 (resume): Not native.
6919 (resume_): New method.
6920 (start): Now synchronized.
6921 (stop_): New method.
6922 (Thread): Synchronize when accessing threadNumber.
6924 * java/lang/natThread.cc (throwException): New macro.
6925 (sleep): Throw InterruptedException.
6928 * include/java-lang.h (Runtime): Added interrupted().
6930 * boehm.cc (call_finalizer): Correctly initialize jobj.
6931 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6933 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6936 * configure: Rebuilt.
6937 * configure.in: Added support for --disable-threads.
6938 * include/no-threads.h: New file.
6940 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6942 * Makefile.in: Rebuilt.
6943 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6944 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6945 (libjava_a_LIBADD): Added THREADOBJS.
6946 * configure: Rebuilt.
6947 * configure.in: Added --with-threads option.
6948 * posix-threads.cc: New file.
6949 * include/posix-threads.h: New file.
6950 * include/java-lang.h (Object): Added static member sync_mutex,
6951 member sync_info, method init_mutex.
6952 (struct JvSyncInfo): New struct.
6953 Include "java-threads.h".
6954 * prims.cc (soft_monitorenter): Wrote.
6955 (soft_monitorexit): Likewise.
6956 * java/lang/natObject.cc (init_mutex): New method.
6960 (sync_mutex): Define.
6961 Include "java-threads.h".
6963 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6965 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6966 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6968 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6970 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6971 Added extern "Java" in places to tell G++ Object is a "Java" type.
6972 Other minor renaming and fixes.
6973 * include/java-io.h (FileDescriptor): Add friend class declarations.
6974 G++ no longer allows non-Java types in method parameters and results
6975 of Java classes. Converted most offending methods to friends.
6976 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6977 * java/lang/natSystem.cc (setProperty): Make friend.
6978 * java/lang/natString.cc, include/java-lang.h (String): Rename
6979 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6980 * include/java-lang.h (JArray): Remove getData and eoprator[].
6981 Add elements friend function instead.
6982 * java/lang/natSystem.cc (arraycopy): Use elements function.
6983 * java/io/natFileDescriptor.cc (read, write): Likewise.
6984 * include/java-lang.h (Object): Remove unused make method.
6985 (System::setProperty(char*,char*)): Turn into friend function.
6986 (Class): Rename newObject by JvAllocObject.
6987 * prims.cc: Update to use JvAllocObject, and elements.
6989 * java/lang/natDouble.cc: Fix double -> jdouble.
6991 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6993 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6995 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6997 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6998 * include/java-lang.h (Runtime): finalize_on_exit and
6999 runFinalizersOnExit now static.
7000 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7002 (finalize_on_exit): Now static.
7004 * boehm.cc (mark_obj): Get class using getClass() method on
7006 (_dispatchTable): Removed.
7008 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7010 * java/io/natFileDescriptor.cc (open_read): Only call open if
7012 (open_write): Likewise.
7014 * Makefile.in: Rebuilt.
7015 * Makefile.am ($(nat_files)): Depend on config.h.
7017 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7019 * prims.cc (ObjectClass): Now a macro; updated for new class name
7021 (StringClass): Likewise.
7022 (ClassClass): Likewise.
7024 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7026 * java/io/natFileDescriptor.cc (available): Do nothing unless
7027 HAVE_SELECT defined.
7028 * java/util/natDate.cc (setTime): Conditional on
7030 (toString): Conditional on HAVE_TIME.
7031 * aclocal.m4, configure: Rebuilt.
7032 * acinclude.m4: New file.
7033 * configure.in: Don't actually call AM_EXEEXT. Call
7034 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7035 --with-target-subdir option. Check for select and open
7038 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7040 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7041 (call_finalizer): Likewise.
7042 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7043 * prims.cc (newObject): Pass actual method pointer to
7044 JvPrivRegisterFinalizer.
7045 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7046 (JvPrivRegisterFinalizer): Changed interface.
7048 * Makefile.in: Rebuilt.
7049 * Makefile.am (MOSTLYCLEANFILES): New macro.
7050 (CLEANFILES): Removed javao_files.
7052 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7054 * nogc.cc: New file.
7055 * Makefile.in: Rebuilt.
7056 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7057 (EXTRA_libjava_a_SOURCES): New macro.
7058 (libjava_a_SOURCES): Removed boehm.cc.
7059 (libjava_a_DEPENDENCIES): Added GCOBJS.
7060 (libjava_a_LIBADD): Likewise.
7061 * configure: Rebuilt.
7062 * configure.in: Added code for --enable-gc=TYPE.
7064 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7066 * boehm.cc (mark_array): Don't further dereference pointer from
7069 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7070 * Makefile.in: Rebuilt.
7071 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7072 one for boehm-gc build directory.
7074 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7076 * include/java-lang.h (finalize_on_exit): New instance variable in
7077 java::lang::Runtime.
7078 (runFinalizersOnExit): New method.
7079 * java/lang/Runtime.java (finalize_on_exit): New instance
7081 (runAllFinalizers_): New private method.
7082 (runFinalizersOnExit): New method.
7083 * boehm.cc (JvPrivRunFinalizers): New function.
7084 (JvPrivRunAllFinalizers): Likewise.
7085 (JvPrivRunGC): Likewise.
7086 * java/lang/natRuntime.cc: Include "jvm.h".
7087 (gc): Call JvPrivRunGC.
7088 (runFinalization): Call JvPrivRunFinalizers.
7089 (runFinalizersOnExit): New method.
7090 (exit_): Call JvPrivRunAllFinalizers if required.
7091 * include/jvm.h: Declare JvPrivRunFinalizers,
7092 JvPrivRunAllFinalizers, JvPrivRunGC.
7094 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7096 * boehm.cc (JvPrivRegisterFinalizer): New function.
7097 (call_finalizer): Likewise.
7098 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7099 * prims.cc (finalize_name): New global.
7100 (newObject): Just call other newObject.
7101 (newObject): Register finalizer if it exists.
7103 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7105 * prims.cc (gc_malloc): Removed.
7106 (makeUtf8Const): Use JvPrivAllocBytes.
7107 (lookupArray): Likewise.
7108 (newPrimArray): Likewise.
7109 (JvNewObjectArray): Use JvPrivAllocArray.
7110 (newObject): Use JvPrivAllocObj.
7111 (newObject): Likewise.
7112 Changed Method -> JvMethod everywhere.
7113 Changed Field -> JvField everywhere.
7114 * include/java-lang.h (Object): Changed type of `fields' to
7116 (jmethodID, jfieldID): New typedefs.
7117 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7119 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7121 (METHOD_NATIVECODE): Moved from java-lang.h.
7122 (class JvField): New class.
7123 (JvGetFirstInstanceField): New function.
7124 (JvFieldIsRef): Likewise.
7125 (JvGetObjectField): Likewise.
7126 (JvNumInstanceFields): Likewise.
7128 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7130 * boehm.cc: New file.
7131 * Makefile.in: Rebuilt.
7132 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7133 (INCLUDES): Added -I options to find boehm-gc files.
7135 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7137 * configure: Rebuilt.
7138 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7140 * Makefile.in: Rebuilt.
7141 * Makefile.am (nat_files): New macro.
7142 (libjava_a_DEPENDENCIES): Use it.
7143 (libjava_a_LIBADD): Likewise.
7144 ($(nat_files)): New static pattern rule.
7145 (class_files): Run separate find to find .class files.
7146 (javao_files): Compute based on class_files.
7147 (BUILT_SOURCES): New macro.
7149 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7151 * Makefile.am (java_files): New macro.
7152 (class_files): Likewise.
7153 (javao_files): Likewise.
7154 (libjava_a_DEPENDENCIES): Include $(javao_files).
7155 (libjava_a_LIBADD): Likewise.
7156 (classes.stamp): Depend on $(java_files); only recompile changed
7159 (CLEANFILES): Don't run find; use macros. Don't mention
7161 (.class.o): New target.
7162 (compiled.stamp): Removed.
7164 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7166 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7167 LineNumberReader}>java: Newly-implemented standard classes.
7169 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7171 * Makefile.in: Rebuilt.
7172 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7174 * Makefile.in: Rebuilt.
7175 * Makefile.am (hack): New macro.
7176 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7178 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7180 * include/config.h.in: New file.
7181 * include/config.h: Removed.
7182 * acconfig.h: New file.
7183 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7184 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7185 libjava_a_LIBADD): New macros.
7186 (INCLUDES): New macro.
7189 (SUFFIXES): Removed.
7191 (libjava.a): Removed.
7193 * configure: Rebuilt.
7194 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7195 Look for headers and functions we require. Create
7198 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7200 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7201 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7202 soft_lookupinterfacemethod): New functions.
7203 (PrimClass): Actually initialize the primitive classes.
7204 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7206 * include/java-util.h: Removed java::util definition.
7207 * include/cni.h: Moved java::util here and added Properties.
7208 Added more function prototypes.
7209 * include/java-lang.h: Added mroe methods and friend declarations.
7210 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7211 * include/jvm.h (strLengthUtf8): Add declaration.
7213 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7215 * java/lang/{Byte,Short,Void}.java: New classes.
7216 * java/lang/Character.java (isJavaIdentifierStart,
7217 JavaIdentifierPart): New static methods.
7218 * java/lang/Number.java (byteValue, shortValue): New methods.
7220 * java/lang/String.java (intern, hashCode): Make native.
7221 * java/lang/natString.cc: New file. Handle the string pool.
7222 * Makefile.am: Build natString.o. Use CXXFLAGS.
7224 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7225 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7226 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7227 * java/lang/System.java (setProperty): New private method.
7228 (initProperties): Take argument, and make native.
7229 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7230 (currentTimeMillis): Make more robust.
7232 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7233 * java/io/UnsupportedEncodingException.java: New exception class.
7235 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7236 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7238 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7240 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7241 * prims.cc: Added bunch of stuff.
7242 * include/cni.h: Added various definitions.
7243 * include/java-lang.h: Added Method, various friends, some macros.
7245 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7246 * java/lang/System.java (arraycopy): Make native.
7248 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7250 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7251 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7252 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7253 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7255 * java/lang/Runtime.java: Declare methods as native instead of
7257 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7258 * java/lang/System.java: Comment out some stuff, for now.
7259 * java/lang/Thread.java: Re-write. Use native methods.
7260 * java/lang/NativeLang.java: Remove most of it.
7262 * java/util/natDate.cc: Native (C++) methods for Date.
7263 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7264 * java/util/Date.java: Complete re-write.
7266 * java/io/io-defs.h: New header file.
7267 * java/io/FileDescriptor.java: Add a bunch of private methods,
7268 mostly moved from NativeIO.java and natNativeIO.cc.
7269 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7270 * java/io/File.java: Use new code.
7271 * java/io/{FileInputStream.java.FileOutputStream.java,
7272 RandomAccessFile.java}: Use new private FileDescriptor methods.
7273 * java/io/NativeIO.java: Removed, no longer used.
7275 * java/io/StreamTokenizer.java (numericChars): Make char array.
7277 * include/*.h: Various header files used by the C++ native code.
7279 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7280 New autoconf+automake-based setup.
7281 * prims.cc: New file for Java "primitives".