1 2000-01-13 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
4 not system loader, as initiating loader.
6 2000-01-11 Tom Tromey <tromey@cygnus.com>
8 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
9 HP/UX. From David Scott Urban.
11 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
13 * java/lang/natMath.cc (pow): Cast args to `double', not
16 (IEEEremainder): Likewise.
17 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
18 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
20 2000-01-09 Anthony Green <green@cygnus.com>
22 * java/lang/natString.cc (init): Test for overflow condition
23 during out of bounds check.
24 (getChars): Throw StringIndexOutOfBoundsException, not
25 ArrayIndexOutOfBoundsException.
27 (regionMatches): Obey case option during string comparison.
29 * configure.host (ligcj_interpreter): New variable. Enable
30 interpreter by default on IA-32.
31 * configure.in: Examine libgcj_interpreter.
34 2000-01-07 Tom Tromey <tromey@cygnus.com>
36 * mauve-libgcj: Don't disable ClassTest.
38 * java/lang/natClass.cc (getClasses): Wrote.
40 2000-01-06 Tom Tromey <tromey@cygnus.com>
42 * java/lang/natClass.cc (_getConstructors): Correctly check
43 whether method name is the init name.
44 (getMethod): Look at accflags on method in `klass', not `this'.
46 2000-01-05 Tom Tromey <tromey@cygnus.com>
48 * java/lang/natClass.cc (getMethod): Compute offset relative to
49 `klass's methods table, not `this's table.
51 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
52 In unwrapping/widening case, check whether `k' is null, not
53 whether it is primitive. Initialize `num' from `argelts', not
54 `paramelts'. Correct create and pass arguments to ffi_call.
55 Don't let presence of `this' argument affect index used to look in
57 (COPY): Set appropriate element in `values' vector.
59 * java/lang/natClass.cc: Include <gcj/method.h>.
61 * java/lang/Class.h (_getMethods): Correctly declare as private,
64 * java/lang/Class.h (_getMethods): Declare.
65 * java/lang/Class.java (_getMethods): Declare.
66 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
67 (getDeclaredClasses): Always return empty array.
68 (_getMethods): New method.
70 (getDeclaredMethod): Return `rmethod'.
71 (finit_name): New global.
72 (getDeclaredMethods): Check for finit_name.
73 (_getMethods): Likewise.
74 (getMethod): Only return public methods.
76 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
77 jboolean and select correct ffi type on that basis.
78 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
79 Constructor call always has `void' return type.
81 2000-01-04 Tom Tromey <tromey@cygnus.com>
83 * java/lang/Class.h (getSignature): Updated.
84 * java/lang/Class.java (getSignature): Updated.
85 * java/lang/natClass.cc (getSignature): Added `is_constructor'
87 (getConstructor): Ensure constructor is public.
88 (_getConstructors): Check for public-ness of constructor when
89 `declared' is false, not when it is true.
91 2000-01-04 Warren Levy <warrenl@cygnus.com>
93 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
95 (receive): Set the sender's address in the DatagramPacket.
97 2000-01-04 Tom Tromey <tromey@cygnus.com>
99 * java/lang/reflect/natConstructor.cc (newInstance): Pass
100 declaring class as return_type argument to
101 _Jv_CallNonvirtualMethodA.
102 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
103 constructor case, create object and use it as `this' argument.
104 * java/lang/Class.h (_getConstructors): Declare.
105 (_getFields): Declare.
106 * java/lang/Class.java (getConstructors): Wrote.
107 (_getConstructors): New native method.
108 (getDeclaredConstructors): Wrote.
109 (_getFields): Declare new native method.
110 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
112 (getMethod): Work correctly when class is primitive.
113 (getDeclaredMethods): Likewise. Compute offset using `method',
115 (getDeclaredMethod): Likewise.
116 (getConstructor): Wrote.
117 (ConstructorClass): New define.
118 (getDeclaredConstructor): Wrote.
119 (_getConstructors): New method.
120 (_getFields): New method.
123 * Makefile.in: Rebuilt.
124 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
126 * prims.cc: Remove `#pragma implementation'.
127 * gcj/array.h: Remove `#pragma interface'.
129 * prims.cc (_Jv_equaln): New function.
130 * java/lang/Class.java (getSignature): Declare.
131 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
132 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
134 (getSignature): New method.
135 (getDeclaredMethod): Wrote.
137 Include StringBuffer.h.
138 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
139 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
141 (getSignature): Declare.
142 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
143 (_Jv_equaln): Declare.
144 (_Jv_CallNonvirtualMethodA): Declare.
145 * Makefile.in: Rebuilt.
146 * Makefile.am (nat_source_files): Added natConstructor.cc.
147 (java/lang/reflect/Constructor.h): New target.
148 * java/lang/reflect/natConstructor.cc: New file.
149 * java/lang/reflect/Constructor.java (newInstance): Now native.
150 (declaringClass): Renamed from decl_class.
151 (offset): Renamed from index.
152 (getType): New native method.
153 (getModifiers): Now native.
154 (getParameterTypes): Call getType if required.
155 (hashCode): Include hash code from declaring class.
156 (modifiers): Removed.
157 (toString): Call getType if required.
158 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
159 * java/lang/reflect/natMethod.cc (hack_call): New method.
160 Removed `#if 0' around FFI code.
161 Include <gnu/gcj/RawData.h>.
162 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
163 IllegalArgumentException when argument object and class disagree.
164 (_Jv_GetTypesFromSignature): New function.
166 (ObjectClass): New define.
167 (_Jv_CallNonvirtualMethodA): New function.
168 * java/lang/reflect/Method.java (hack_trampoline): New method.
169 (hack_call): New native method.
171 1999-12-21 Per Bothner <per@bothner.com>
173 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
174 offset in new Method.
176 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
178 * java/lang/natObject.cc (notify): Throw message with
179 IllegalMonitorStateException.
182 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
183 (isInterrupted_): New function, which does clear interrupt_flag.
184 (interrupt): Use `isInterrupted_'.
185 * java/lang/natThread.cc (interrupt): Add comment.
186 (join): Set `prev' in joiner loop.
187 Change various calls to `isInterrupted' to use `isInterrupted_'.
188 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
189 on linux. Set result to 0 on an interrupt. Test interrupted status
190 of java Thread object directly.
191 FLAG_INTERRUPTED: removed.
192 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
193 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
194 (_Jv_InitThreads): Don't block SIGINT.
195 (_Jv_ThreadWait): Don't configure SIGINT handler.
197 1999-12-21 Tom Tromey <tromey@cygnus.com>
199 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
201 1999-12-20 Tom Tromey <tromey@cygnus.com>
203 * java/lang/reflect/Modifier.java (STRICT): New constant.
204 (isStrict): New method.
205 (toString): Added `strict'.
207 1999-12-23 Anthony Green <green@cygnus.com>
209 * configure: Rebuilt.
210 * configure.in (LIBDATASTARTSPEC): Force data_start in with
213 1999-12-19 Anthony Green <green@cygnus.com>
215 * libgcjdata.c: New file.
216 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
217 * configure: Rebuilt.
218 * configure.in (LIBDATASTARTSPEC): Force data with a known name
220 * Makefile.in: Rebuilt.
221 * Makefile.am: Build libgcjdata.a.
223 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
224 * configure: Rebuilt.
225 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
228 1999-12-17 Tom Tromey <tromey@cygnus.com>
230 * java/lang/reflect/Method.java (toString): Call getType if
231 required. Partial fix for PR libgcj/111. From Per Bothner.
233 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
235 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
237 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
238 null String constructor parameter.
239 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
240 for exception messages.
241 BooleanClass: declare.
242 (setOption): Use BooleanClass instead of Class.forName() for
244 (bind): Cast 4th parameter of setsockopt to `char *' for
245 compatibility with older Solaris headers.
246 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
247 sprintf calls for exception messages.
248 BooleanClass, IntegerClass: declare.
249 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
252 1999-12-15 Tom Tromey <tromey@cygnus.com>
254 * java/lang/natSystem.cc (init_properties): Don't set user.name or
255 user.home if NO_GETUID defined. Only set user.dir if getcwd
258 * include/config.h.in: Rebuilt.
259 * acconfig.h (NO_GETUID): New define.
260 * configure.in: Rebuilt.
261 * configure.in: Define NO_GETUID in cross case. Check for getcwd
264 1999-12-08 Tom Tromey <tromey@cygnus.com>
266 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
267 where no recursive mutexes exist. Fixes PR libgcj/117.
269 1999-12-05 Anthony Green <green@cygnus.com>
271 * include/jvm.h: Declare many functions with
272 __attribute__((__malloc__)).
273 * gcj/javaprims.h: Ditto.
275 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
277 * THANKS: Giving credit where credit is due.
279 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
281 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
283 * java/lang/natString.cc (equalsIgnoreCase): return false if
284 anotherString is null.
285 * java/lang/Boolean.java (valueOf): return FALSE if argument is
288 1999-11-30 Tom Tromey <tromey@cygnus.com>
290 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
291 mutex to initialize. Initialize `count' if required.
294 1999-11-27 Per Bothner <per@bothner.com>
296 * exception.cc: Remove prototype declarations for malloc and free.
297 These clash with recent versions of glibc, which specifies `throws ()'
298 when __cplusplus is defined. Instead, #include <stdlib.h>.
300 1999-11-24 Tom Tromey <tromey@cygnus.com>
302 * prims.cc (_Jv_NewObjectArray): Use
303 _Jv_GetArrayElementFromElementType.
304 (_Jv_NewPrimArray): Likewise.
305 * java/lang/natObject.cc (clone): Use
306 _Jv_GetArrayElementFromElementType instead of sizeof.
307 * java/lang/natSystem.cc (arraycopy): Use
308 _Jv_GetArrayElementFromElementType.
309 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
312 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
314 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
315 Exception messages. PR java.net/57.
316 (bind): set SO_REUSEADDR before bind.
317 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
318 overruns. PR java.net/57.
320 1999-11-19 Tom Tromey <tromey@cygnus.com>
322 * Makefile.am (DIVIDESPEC): Removed.
323 (EXCEPTIONSPEC): Removed.
325 1999-11-19 Andrew Haley <aph@cygnus.com>
327 * Makefile.am (JCFLAGS): Add -L$(here)
329 * Makefile.in: Rebuild.
331 1999-11-18 Tom Tromey <tromey@cygnus.com>
333 * java/lang/natDouble.cc: Include <config.h>.
335 * include/config.h.in: Rebuilt.
336 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
337 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
339 * configure: Rebuilt.
340 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
341 requested by configure.host. Don't put `-D' option into
342 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
344 * configure: Rebuilt.
345 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
348 1999-11-18 Andrew Haley <aph@cygnus.com>
350 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
351 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
353 * Makefile.in: Rebuild
354 * acconfig.h: remove SJLJ_EXCEPTIONS
355 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
356 Do not AC_DEFINE SJLJ_EXCEPTIONS.
357 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
358 * gcj/Makefile.in, include/Makefile.in: rebuild.
359 * include/config.h.in: remove SJLJ_EXCEPTIONS.
361 1999-11-18 Andrew Haley <aph@cygnus.com>
363 * gij.cc (main): Rename label to prevent conflict.
365 * exception.cc (_Jv_type_matcher): Don't check the table if we're
366 using setjmp/longjmp exceptions: there isn't one.
368 1999-11-17 Andrew Haley <aph@cygnus.com>
370 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
371 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
372 (__sjthrow): Add declaration.
373 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
377 * Makefile.in: Rebuild
378 * acconfig.h: Add SJLJ_EXCEPTIONS
379 * configure.in: Add SJLJ_EXCEPTIONS
380 * configure: Rebuild.
381 * gcj/Makefile.in: Rebuild.
382 * gcj/cni.h: Add support for sjlj-exceptions.
383 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
384 * include/Makefile.in: Rebuild.
385 * include/default-signal.h: Add support for sjlj-exceptions.
387 1999-11-18 Tom Tromey <tromey@cygnus.com>
389 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
391 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
393 (method_cache): Made larger.
395 1999-11-11 Tom Tromey <tromey@cygnus.com>
397 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
398 initializing mutex. Initialize `count' when required.
400 1999-11-07 Anthony Green <green@trip.cygnus.com>
402 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
405 1999-11-05 Tom Tromey <tromey@cygnus.com>
407 * java/lang/natThread.cc (destroy): Removed incorrect comment.
409 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
411 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
412 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
415 1999-11-05 Tom Tromey <tromey@cygnus.com>
417 * java/lang/natThread.cc (stop): Removed argument name.
419 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
420 `private'; now has default access.
421 * Makefile.in: Rebuilt.
422 * Makefile.am (java/lang/ThreadGroup.h): Removed.
424 1999-11-04 Tom Tromey <tromey@cygnus.com>
426 * java/lang/natClass.cc (method_cache_count): Removed.
427 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
428 (_Jv_AddMethodToCache): Don't loop.
430 * configure.in: Removed `qt' threads case.
431 * include/quick-threads.h: Removed.
432 * quick-threads.cc: Removed.
434 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
435 (_Jv_ThreadDestroy): Likewise.
436 * include/no-threads.h (_Jv_ThreadCancel): Removed.
437 (_Jv_ThreadDestroy): Likewise.
438 * include/posix-threads.h (struct _Jv_Thread_t): Removed
440 (_Jv_ThreadCancel): Removed decl.
441 (_Jv_ThreadDestroy): Removed.
442 * posix-threads.cc (_Jv_ThreadCancel): Removed.
443 (throw_cleanup): Removed.
444 (really_start): Don't push or pop cleanup.
445 (_Jv_ThreadInitData): Don't initialize `exception' field.
446 * java/lang/Thread.java (stop): Officially unimplemented.
447 * java/lang/natThread.cc (stop): Officially unimplemented.
449 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
451 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
454 1999-11-02 Tom Tromey <tromey@cygnus.com>
456 * boehm.cc: Don't include boehm-config.h.
458 1999-11-01 Tom Tromey <tromey@cygnus.com>
460 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
461 (sum_blocks): Removed.
462 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
464 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
466 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
468 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
469 * java/io/InputStreamReader (InputStreamReader): ditto.
471 1999-10-22 Tom Tromey <tromey@cygnus.com>
473 * Makefile.in: Rebuilt.
474 * Makefile.am (java/lang/ClassLoader.h): New target.
475 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
478 * include/java-props.h (_Jv_Compiler_Properties): Changed
480 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
481 * include/jvm.h (_Jv_GCSetInitialHeapSize,
482 _Jv_GCSetMaximumHeapSize): Declare.
483 (JvRunMain, _Jv_RunMain): Declare.
484 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
485 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
486 (_Jv_GCSetMaximumHeapSize): Likewise.
487 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
488 (_Jv_GCSetMaximumHeapSize): Likewise.
489 * prims.cc (parse_heap_size): New function.
490 (_Jv_SetInitialHeapSize): Likewise.
491 (_Jv_SetMaximumHeapSize): Likewise.
492 (_Jv_Compiler_Properties): New global.
493 * gij.cc (help): New function.
495 (heap_size): Likewise.
496 (heap_max_size): Likewise.
497 (main): Parse arguments. Set _Jv_Compiler_Properties.
498 Include <config.h>, <java-props.h>.
499 (_Jv_Compiler_Properties): Removed.
501 1999-10-18 Tom Tromey <tromey@cygnus.com>
503 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
505 (redirect): New static field.
506 * java/lang/ClassLoader.java (getSystemClassLoader): Now
508 (getVMClassLoader0): Removed.
509 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
511 (getSystemClassLoader): Implemented.
513 1999-10-16 Anthony Green <green@cygnus.com>
515 * java/lang/ClassLoader.java (getSystemResource): Use
516 getSystemClassLoader instead of ClassLoader.system.
517 (getSystemResourceAsStream): Ditto.
519 * java/lang/natClassLoader.cc (redirect): Make static and
520 remove #ifdef INTERPRETER so it is always defined.
521 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
522 returns a VMClassLoader.
524 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
525 PropertyResourceBundle if a properties file is found before a
526 ResourceBundle class.
528 1999-10-15 Tom Tromey <tromey@cygnus.com>
530 * gij.cc (main): Formatting fixes.
531 (_Jv_Compiler_Properties): Define.
532 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
534 (init_properties): Set properites from _Jv_Compiler_Properties.
535 * include/java-props.h (_Jv_Compiler_Properties,
536 _Jv_Environment_Properties): Declare.
538 * include/java-props.h: Added copyright.
540 1999-10-13 Anthony Green <green@cygnus.com>
542 * libtool-version: Catch up by incrementing current.
544 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
545 * configure, include/config.h.in: Rebuilt.
546 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
547 * configure.in: Added --disable-getenv-properties and new define
548 `DISABLE_GETENV_PROPERTIES'.
550 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
551 (next_property_key): New function.
552 (next_property_value): New function.
553 (process_gcj_properties): New function.
554 (JvRunMain): Call process_gcj_properties.
557 * java/lang/natSystem.cc (init_properties): Set properties defined
560 * include/java-props.h: New file.
562 * java/lang/natSystem.cc (init_properties): Add new properties to
563 conform with Java Product Versioning Specification.
565 1999-10-12 Tom Tromey <tromey@cygnus.com>
567 * configure: Rebuilt.
568 * configure.in: Fixed test for --disable-java-net.
570 1999-10-06 Tom Tromey <tromey@cygnus.com>
572 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
573 when building Canadian cross.
574 (NATIVE): Don't define when cross-compiling.
576 1999-10-04 Tom Tromey <tromey@cygnus.com>
578 * java/net/natPlainSocketImpl.cc: Don't include headers if
579 java.net is disabled.
581 * Makefile.in: Rebuilt.
582 * Makefile.am (ZINCS): Removed. This is defined in configure.in
583 when needed, and must be left empty when not needed.
585 1999-10-01 Anthony Green <green@cygnus.com>
587 * THANKS: Refreshed from htdocs version.
589 1999-10-01 Steve Chamberlain <sac@pobox.com>
591 * Makefile.in: Rebuilt.
592 * Makefile.am (ZINCS): Define
594 * configure: Rebuilt.
595 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
597 * java/lang/ieeefp.h: Add definitions for picoJava.
599 1999-10-01 Tom Tromey <tromey@cygnus.com>
601 * configure: Rebuilt.
602 * configure.in: Set classpath when invoking gcj. Use changequote
603 around sed invocation.
605 * java/net/natPlainSocketImpl.cc: Stub native functions if
606 DISABLE_JAVA_NET is defined.
607 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
608 typo in exception string.
609 (getTimeToLive): Likewise.
610 Stub native functions if DISABLE_JAVA_NET is defined.
611 * java/net/natInetAddress.cc: Stub native functions if
612 DISABLE_JAVA_NET is defined.
613 * configure.host: Disable java.net for mips-tx39.
614 * configure, include/config.h.in: Rebuilt.
615 * acconfig.h (DISABLE_JAVA_NET): Undefine.
616 * configure.in: Added --disable-java-net and new define
619 1999-09-30 Tom Tromey <tromey@cygnus.com>
621 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
623 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
627 1999-09-28 Tom Tromey <tromey@cygnus.com>
629 * configure: Rebuilt.
630 * configure.in (PROCESS): In POSIX case, only set if not already
632 * configure.host (PROCESS): Set in mips-tx39 case.
634 * aclocal.m4, configure: Rebuilt.
635 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
636 appropriate AC_PROG_ symbol.
638 1999-09-24 Tom Tromey <tromey@cygnus.com>
640 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
642 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
644 Fix for PR java.util/47:
645 * configure, include/config.h: Rebuilt.
646 * configure.in: Don't look for ctime or ctime_r.
647 * Makefile.in: Rebuilt.
648 * Makefile.am (nat_source_files): Don't mention natDate.cc.
649 * java/util/natDate.cc: Removed.
650 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
652 (getAvailableIDs): Rewrote.
653 (getTimeZone): Rewrote.
654 * java/util/Date.java (toGMTString): New method.
655 (toLocaleString): New method.
658 1999-09-23 Tom Tromey <tromey@cygnus.com>
660 * configure: Rebuilt.
661 * configure.in: Print message when checking to see if gcj can
662 handle -fuse-divide-subroutine.
664 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
666 * java/lang/FirstThread.java (run0): Renamed to `run'.
669 * prims.cc (main_init): New function.
670 (JvRunMain): Call it.
671 (_Jv_RunMain): Likewise.
673 (main_init): Ignore SIGPIPE. Fixes PR 51.
675 1999-09-22 Tom Tromey <tromey@cygnus.com>
677 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
679 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
681 * java/text/MessageFormat.java (MessageFormat(String)): Set the
683 * java/text/NumberFormat.java: Check that object is a Number. If
684 not, throw IllegialArgumentException.
686 1999-09-21 Tom Tromey <tromey@cygnus.com>
688 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
689 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
691 * include/posix-threads.h (_Jv_MutexDestroy): Use
693 (_Jv_MutexLock): Likewise.
694 (_Jv_MutexUnlock): Likewise.
696 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
697 previous patch; it too was incorrect.
698 * java/io/PrintStream.java (PrintStream): Likewise.
700 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
701 refer to `this' before calling superclass constructor.
702 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
703 before calling superclass constructor.
705 1999-09-20 Tom Tromey <tromey@cygnus.com>
707 * configure: Rebuilt.
708 * configure.in: Send output of `-fuse-divide-subroutine' test
709 compilation to /dev/null.
711 1999-09-14 Tom Tromey <tromey@cygnus.com>
713 * include/java-insns.h: Turned constants into an enum. Added
714 multiple-inclusion protection.
716 1999-09-10 Tom Tromey <tromey@cygnus.com>
718 * configure: Rebuilt.
719 * configure.in: Build include/Makefile.
720 * Makefile.in: Rebuilt.
721 * Makefile.am (SUBDIRS): Added gcj and include.
722 (install-data-local): New target.
723 (extra_headers): New macro.
724 * include/Makefile.in: New file.
725 * include/Makefile.am: New file.
727 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
728 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
730 * boehm.cc: Don't include java-threads.h or gcj/field.h.
731 * resolve.cc: Include config.h.
732 * defineclass.cc: Include config.h.
733 * include/java-interp.h: Don't include config.h.
734 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
737 * gcj/javaprims.h: Regenerated namespace decls.
738 * classes.pl (scan): Don't put `;' after closing brace.
740 * Makefile.in: Rebuilt.
741 * Makefile.am (INCLUDES): Added -I for top_srcdir.
742 * configure.in: Create gcj/Makefile.
743 * gcj/Makefile.in: New file.
744 * gcj/Makefile.am: New file.
745 * java/lang/Object.h: Don't include any other headers.
746 * gcj/array.h: Renamed from include/java-array.h.
747 * gcj/field.h: Renamed from include/java-field.h.
748 * gcj/method.h: Renamed from include/java-method.h.
749 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
750 Updated all files to reflect new include structure.
752 1999-09-09 Tom Tromey <tromey@cygnus.com>
754 * configure: Rebuilt.
755 * configure.in: Fixed typo; variable is THREADSPEC and not
758 1999-09-08 Tom Tromey <tromey@cygnus.com>
760 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
761 previous change and implemented a correct test in the __m_count
764 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
767 1999-09-07 Tom Tromey <tromey@cygnus.com>
769 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
770 code and don't set errno.
772 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
773 not `r'. Changed `done_sleeping' to a `bool'.
775 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
777 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
778 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
779 by another thread, rather than by the GC.
780 (_Jv_CondWait): Prevent premature thread wakeup by GC.
781 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
782 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
785 1999-09-03 Tom Tromey <tromey@cygnus.com>
787 * configure: Rebuilt.
788 * configure.in: Check for fstat function.
789 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
792 1999-09-02 Tom Tromey <tromey@cygnus.com>
794 * include/java-array.h (jobjectArrayjchar): Removed unused
797 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
798 _Jv_PrepareCompiledClass while holding class mutex.
800 1999-09-01 Tom Tromey <tromey@cygnus.com>
802 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
803 (_Jv_PthreadGetMutex): Use it.
804 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
805 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
806 (_Jv_MutexLock): Likewise.
807 (_Jv_MutexUnlock): Likewise.
808 * include/config.h.in: Rebuilt.
809 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
810 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
811 * configure: Rebuilt.
812 * libgcj.spec.in: Don't mention INTERPSPEC.
813 * configure.in (INTERPSPEC): Removed.
814 Only run pthreads-related checks when using POSIX threads. Check
815 for m_count and __m_count in mutex structure.
817 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
819 * java/lang/natClass.cc: Fixed notification of threads
820 when class initialization is complete.
822 1999-09-01 Tom Tromey <tromey@cygnus.com>
824 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
825 * resolve.cc: Removed constants defined by
826 java.lang.reflect.Modifier.
827 Include <java/lang/reflect/Modifier.h>.
828 (_Jv_ResolvePoolEntry): Use values from Modifier.
829 (_Jv_DetermineVTableIndex): Likewise.
830 (_Jv_PrepareClass): Likewise.
832 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
833 java.lang.reflect.Modifier.
834 Include <java/lang/reflect/Modifier.h>.
835 (checkExtends): Use values from Modifier.
836 (checkImplements): Likewise.
837 (handleField): Likewise.
838 (handleConstantValueAttribute): Likewise.
839 (handleFieldsEnd): Likewise.
840 (handleMethod ): Likewise.
841 (handleMethodsEnd): Likewise.
842 (handleClassBegin): Likewise.
843 * interpret.cc: Removed constants defined by
844 java.lang.reflect.Modifier.
845 (continue1): Use values from Modifier.
846 * java/lang/natClassLoader.cc: Removed constants defined by
847 java.lang.reflect.Modifier.
849 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
850 JV_STATE_NOTHING, not `0'.
851 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
853 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
854 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
856 (_Jv_PthreadGetMutex): New function.
857 (_Jv_PthreadCheckMonitor): Use it.
858 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
859 (_Jv_MutexLock): Update `count'.
860 (_Jv_MutexUnlock): Likewise.
861 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
864 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
866 * Makefile.am (.java.lo): Add rule.
868 * Makefile.in: Rebuilt.
870 1999-09-01 Tom Tromey <tromey@cygnus.com>
872 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
873 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
875 (_Jv_CondNotify): Use it.
876 (_Jv_CondNotifyAll): Likewise.
878 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
880 1999-08-31 Tom Tromey <tromey@cygnus.com>
882 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
885 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
887 * posix-threads.cc: Include <errno.h>.
889 1999-08-23 Tom Tromey <tromey@cygnus.com>
891 * boehm.cc: Undefine TRUE and FALSE.
893 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
895 1999-08-21 Tom Tromey <tromey@cygnus.com>
897 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
900 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
902 * configure.in: Check for in_addr_t in netinet/in.h too. Check
904 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
905 (HAVE_STRUCT_IP_MREQ): Added.
906 * configure, include/config.h.in: Rebuilt.
907 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
909 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
910 Disable if ip_mreq is not available.
912 * configure.in: Check types ssize_t and in_addr_t.
913 * acconfig.h: Undefine them.
914 * configure, include/config.h.in: Rebuilt.
916 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
917 function that detects the signature of getpwuid_r.
918 (init_properties): Use it.
919 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
922 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
924 * interpret.cc (continue1): Implement explicit dispatch table.
925 insn_target: Explicit interpreter switch table.
926 SAVE_PC: New macro, moves pc saving code into instructions that
928 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
929 PC_REGISTER_ASM: New macro.
930 INLINE_SWITCH: New macro. Constrols dispatching strategy.
931 opcode: Remove local variable.
932 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
933 (POKEI): Use _Jv_word.
934 (iinc): Use _Jv_word.
935 (dupx): Change reference argument (sp) to pointer.
938 * interpret.cc: Remove instruction timing instrumentation.
940 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
941 comment. Don't use _Jv_ClassNameSamePackage.
943 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
944 URLPathEntry, CacheEntry}: Removed.
946 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
948 (.java.lo): Rule removed.
950 * Makefile.in: Rebuilt.
952 1999-08-19 Tom Tromey <tromey@cygnus.com>
954 * java/lang/natThread.cc (class locker): New class.
955 (join): Use a locker around _Jv_CondWait.
958 1999-08-18 Tom Tromey <tromey@cygnus.com>
960 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
961 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
963 1999-08-18 Tom Tromey <tromey@cygnus.com>
965 * include/javaprims.h ("Java"): Regenerated namespace decls.
967 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
969 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
970 from _Jv_InternClassStrings.
972 * prims.cc (_Jv_RunMain): New function.
973 (JvRunMain): Remove gij-support.
975 * gij.cc (main): Use _Jv_RunMain.
977 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
979 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
980 argument in temp variable.
981 (continue1): For all op_x2y insns, use temp variable for
982 intermediate value. Also remove some comments.
984 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
985 (forName): Don't call _Jv_InitClass.
987 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
989 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
991 * java/util/jar/JarInputStream.java: New file.
993 * java/util/jar/JarEntry.java: New file.
995 * java/util/jar/JarFile.java: New file.
997 * java/net/URLClassLoader.java: New file.
999 * java/net/JarURLConnection.java: New file.
1001 * gnu/gcj/protocol/jar/Handler.java: New file.
1003 * gnu/gcj/protocol/jar/Connection.java: New file.
1005 * java/security/SecureClassLoader.java: New file.
1007 * java/lang/ClassLoader.java (parent): New variable.
1008 (ClassLoader (ClassLoader)): new constructor.
1009 (findClass): New method.
1010 (loadClass): Add default 1.2 implementation.
1011 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1012 (readfully): Removed.
1014 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1015 (findSystemClass): New method.
1016 (VMClassLoader): Constructor rewritten.
1018 All other methods removed.
1020 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1021 to gnu::gcj::runtime::VMClassLoader.
1022 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1024 (VMClassLoader::findSystemClass): renamed from findBootClass.
1026 * Makefile.am: Add new files.
1027 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1029 * Makefile.in: Rebuilt.
1031 1999-08-17 Tom Tromey <tromey@cygnus.com>
1033 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1035 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1038 1999-08-16 Tom Tromey <tromey@cygnus.com>
1040 * configure: Rebuilt.
1041 * configure.in: Set DIVIDESPEC to empty string if compiler does
1042 not support -fuse-divide-subroutine.
1044 1999-08-14 Per Bothner <per@bothner.com>
1046 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1047 * java/lang/natClass.cc (initializeClass): Likewise.
1048 * java/lang/ClassLoader.java (resolveClass0): New static method.
1049 (resolveClass): Call resolveClass0.
1050 (findSystemClass): No longer static.
1052 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1054 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1056 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1058 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1061 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1063 * Makefile: Rebuilt.
1064 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1067 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1070 * configure: Rebuilt.
1071 * configure.in: Properly align --help output, fix capitalization
1073 * acinclude.m4: Likewise.
1075 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1077 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1079 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1080 (_Jv_callInterpretedMethod): Unused. Remove.
1081 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1083 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1084 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1085 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1086 * interpret.cc: use _Jv_word.
1087 * defineclass.cc: use_Jv_word.
1088 * resolve.cc: Use _Jv_word.
1089 (_Jv_ResolvePoolEntry): Return _Jv_word.
1090 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1091 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1093 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1096 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1098 * configure: Rebuilt.
1099 * configure.in (sched_yield): Try librt first, then libposix4.
1100 Add -lrt, -lposix4 to THREADSPEC.
1102 1999-08-08 Anthony Green <green@cygnus.com>
1104 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1106 1999-08-08 Anthony Green <green@cygnus.com>
1108 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1111 1999-08-08 Anthony Green <green@cygnus.com>
1115 * include/config.h.in: Rebuilt.
1116 * acconfig.h: Add INTERPRETER.
1118 * Makefile.in: Rebuilt.
1119 * Makefile.am (libffi_files): Identify the libffi object files for
1120 inclusion in libgcj.
1121 (LIBFFIINCS): Define.
1123 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1124 Dummy definition for configurations without an interpreter.
1126 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1127 java::lang::Boolean constructor.
1129 * include/java-interp.h: Always include java-cpool.h.
1131 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1132 when INTERPRETER not defined.
1134 * java/lang/Class.h (finalize): Define.
1136 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1137 IOException from File.getCanonicalPath.
1138 (getStream): Likewise.
1141 * THANKS: More thanks.
1143 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1145 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1147 (_Jv_PrepareClass): Allow non-abstract classes to
1148 have abstract subclasses.
1149 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1151 * interpret.cc (continue1/perform_invoke): Don't sign extend
1153 (continue1/lshl,lshr): Push long, not int.
1154 (continue1/ulshr): Use UINT64, not long long.
1155 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1157 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1158 * java/lang/FirstThread.java (run): Add top-level exception
1160 (run0): Renamed from run.
1162 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1164 * configure.in (--with-interpreter): Added.
1165 * include/config.h.in (INTERPRETER): Added.
1167 * java/lang/ClassLoader.java: File replaced.
1168 * java/lang/VMClassLoader.java: New file.
1169 * java/lang/natClassLoader.cc: New file.
1170 * gnu/gcj/runtime/MethodInvocation.java: New file.
1171 * gnu/gcj/util/path/SearchPath.java: New file.
1172 * gnu/gcj/util/path/PathEntry.java: New file.
1173 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1174 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1175 * gnu/gcj/util/path/URLPathEntry.java: New file.
1176 * gnu/gcj/util/path/CacheEntry.java: New file.
1177 * include/java-interp.h: New file.
1178 * include/java-cpool.h: New file.
1179 * include/java-insns.h: New file.
1180 * defineclass.cc: New file.
1181 * interpret.cc: New file.
1182 * resolve.cc: New file.
1184 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1185 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1186 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1188 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1189 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1191 (initializeClass): Use new JV_ prefixed names. Also, call
1192 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1194 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1195 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1196 JV_STATE_LINKED): New.
1197 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1198 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1199 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1200 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1201 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1202 _Jv_InterpMethodInvocation): New friends for interpreter.
1204 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1205 include/java-cpool.h and renamed with JV_ prefix.
1207 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1209 (_Jv_UnregisterClass): New decl.
1211 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1212 class loader argument.
1213 (_Jv_FindClass): Use class loader.
1215 * prims.cc (_Jv_makeUtf8Const): New function.
1216 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1217 (_Jv_NewPrimArray): Ditto.
1218 (_Jv_FindClassFromSignature): Ditto.
1219 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1220 * java/lang/reflect/natMethod.cc (getType): Ditto.
1222 * include/java-field.h (_Jv_Field::isRef): Make robust for
1223 non-resolved contexts.
1225 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1226 Also, don't mark class->next field.
1228 * java/lang/VirtualMachineError.java: Added FIXME note.
1230 * configure.in (INTERPSPEC): New spec.
1231 * libgcj.spec.in: Added INTERPSPEC.
1232 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1233 gnu/gcj/runtime/MethodInvocation.
1234 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1235 (ordinary_java_source_files): Added above mentioned java classes.
1237 * configure: Rebuilt.
1238 * Makefile.in: Rebuilt.
1240 1999-08-06 Tom Tromey <tromey@cygnus.com>
1242 * configure: Rebuilt.
1243 * configure.in: Look for sched_yield in -lrt.
1245 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1247 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1248 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1249 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1251 (toString): Print correctly when `country' is empty.
1253 1999-08-04 Per Bothner <per@bothner.com>
1255 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1257 1999-08-02 Tom Tromey <tromey@cygnus.com>
1259 * aclocal.m4, configure: Rebuilt for new libtool.
1261 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1263 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1264 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1265 * java/net/ServerSocket.java: Define ANY_IF.
1266 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1267 all network interfaces.
1268 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1269 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1271 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1273 * java/io/natFile.cc (performMkdir): Remove FIXME.
1274 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1276 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1278 * configure.in: Check for bstring.h.
1279 * configure, include/config.h.in: Rebuilt.
1280 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1281 * java/net/natPlainSocketImpl.cc: Likewise.
1283 1999-07-31 Tom Tromey <tromey@cygnus.com>
1288 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1290 * configure.in: Check for struct hostent_data and need for
1291 -D_REENTRANT for gethostbyname_r declaration.
1292 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1293 (lookup): Use hostent_data for fixed_buffer.
1294 * configure, include/config.h.in: Rebuilt.
1296 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1298 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1299 available. Don't cast memmove args to (void*).
1300 * configure.in: Do not abort if memmove is not available.
1302 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1304 * java/lang/natString.cc (substring): optimize where substring is
1306 * java/io/File.java (getName): don't return separator with file name.
1307 * java/io/natFile.cc (attr): fix overflow.
1309 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1311 * mauve-libgcj: Disable Object Serialization tests.
1313 1999-07-20 Warren Levy <warrenl@cygnus.com>
1315 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1316 Default to using PlainDatagramSocketImpl.
1317 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1319 1999-07-19 Tom Tromey <tromey@cygnus.com>
1321 * include/stamp-h.in: New file.
1323 1999-07-12 Tom Tromey <tromey@cygnus.com>
1325 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1328 1999-07-07 Andrew Haley <aph@cygnus.com>
1330 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1331 bytes to make it point after the instruction where the trap
1333 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1335 1999-07-07 Tom Tromey <tromey@cygnus.com>
1337 * mauve-libgcj: Explicitly enable formerly disabled java.text
1340 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1343 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1345 * java/net/URL.java (equals): Compare strings using String.equals.
1346 * java/net/URL.java (sameFile): Ditto.
1348 1999-07-02 Warren Levy <warrenl@cygnus.com>
1350 * configure: Rebuilt.
1351 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1352 * include/config.h.in: Rebuilt.
1353 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1354 (mcastGrp): Updated FIXME comments.
1355 (setOption): Fixed typo.
1356 (getOption):Implemented IP_MULTICAST_IF.
1358 1999-07-02 Warren Levy <warrenl@cygnus.com>
1360 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1361 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1362 (getTimeToLive): Implemented.
1363 (setOption): Implemented IP_MULTICAST_IF.
1365 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1367 * java/lang/String.java (toString): Check for this == null and throw
1368 NullPointerException.
1370 1999-07-01 Warren Levy <warrenl@cygnus.com>
1372 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1373 to count and revised comments to match.
1374 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1375 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1376 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1377 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1378 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1379 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1381 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1383 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1384 properly as count rather than outlength.
1385 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1386 output on overflow rather than buffer fill.
1387 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1388 if markPos is 0 and there is still room in the buffer.
1390 1999-07-01 Andrew Haley <aph@cygnus.com>
1392 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1393 This is a workaround for a bug in glibc's pthreads package which
1394 doesn't deliver any sigcontext information to a signal handler.
1396 1999-06-24 Tom Tromey <tromey@cygnus.com>
1398 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1399 * java/lang/fdlibm.h (HUGE): Conditionally define.
1401 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1403 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1404 * java/lang/e_log.c: Don't use __uint32_t.
1406 1999-05-27 Eric Christopher <echristo@cygnus.com>
1408 * configure: Rebuilt
1409 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1410 * acconfig.h: Rebuilt
1411 * include/config.h.in: Rebuilt
1413 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1414 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1415 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1416 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1417 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1418 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1419 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1420 and namespace collision with __uint32_t
1422 1999-06-23 Tom Tromey <tromey@cygnus.com>
1424 * java/util/zip/InflaterInputStream.java (read): Throw
1425 ZipException if inflater throws a DataFormatException.
1427 1999-06-23 Warren Levy <warrenl@cygnus.com>
1429 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1430 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1431 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1432 is not final per JDK.
1433 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1435 * java/util/zip/DataFormatException.java: Class extends Exception.
1436 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1437 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1438 * java/util/zip/ZipInputStream.java: ditto.
1439 (closeEntry): Changed method name to match JDK spec.
1441 1999-06-21 Tom Tromey <tromey@cygnus.com>
1443 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1446 * Makefile.in: Rebuilt.
1447 * Makefile.am (toolexeclibdir): Define as libdir when
1449 * configure: Rebuilt.
1450 * configure.in (USE_LIBDIR): New conditional.
1452 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1454 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1455 hostname in returned InetAddress objects.
1456 (getLocalHostname): Fix typo.
1457 * java/net/InetAddress.java (getByName): Set hostname on return
1459 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1462 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1464 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1465 interfaces if host==NULL.
1466 (accept): Throw message with InterruptedIOException.
1467 (getOption): Cache localAddress.
1468 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1469 'address' for DatagramSocket.
1470 (setTimeToLive): Fix compiler warnings.
1471 (getOption): Cache localAddress.
1472 * java/net/Socket.java (getLocalAddress): Don't need local
1473 InetAddress object. Add FIXME comment about calling checkConnect().
1474 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1475 connection queue to 50 as per JDK 1.2 docs.
1476 (ServerSocket(int,int)): Listen on all network interfaces by
1477 default, per JDK 1.2 docs.
1478 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1479 Add localAddress caching.
1481 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1483 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1485 (write(byte[],int,int)): ditto.
1487 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1489 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1491 1999-06-11 Warren Levy <warrenl@cygnus.com>
1493 * mauve-libgcj: Activated java.net Mauve tests.
1495 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1497 * java/net/natInetAddress.cc (aton): Fix typos.
1498 (lookup): Use a bigger buffer size for gethostbyname_r on all
1499 versions of glibc. Updated FIXME comment explaining this.
1500 Modified while loops to not set herr = ERANGE to work around glibc
1501 problems. Use user specified hostname in InetAddress result when
1502 available (consistent with JDK).
1504 1999-06-10 Warren Levy <warrenl@cygnus.com>
1506 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1507 Throw FileNotFoundException instead of IOException.
1509 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1511 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1512 in static field name.
1513 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1514 throughout rather than ParseException.
1516 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1518 * java/lang/Runtime.java (exec): Convert prog name and arguments
1520 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1521 environment array conversion. Preserve current environment if envp
1522 not passed. Preserve PATH unless explicitly specified.
1523 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1524 followed by EOF. Set a flag when a line is terminated by '\r' and
1525 ignore following '\n' if set.
1527 1999-06-02 Warren Levy <warrenl@cygnus.com>
1529 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1530 Ignore context if spec is an absolute URL. Fix braindead
1532 (hashCode): Use JDK 1.2 style algorithm.
1533 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1534 context URL properly.
1536 1999-05-30 Anthony Green <green@cygnus.com>
1538 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1539 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1541 1999-05-28 Warren Levy <warrenl@cygnus.com>
1543 * java/net/DatagramSocket.java (laddr): Removed.
1544 (DatagramSocket): Removed attempts to get or set laddr if null.
1545 (getLocalAddress): Reimplemented per spec.
1546 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1548 (joinGroup): Throw NullPointerException if any argument is null.
1549 (leaveGroup): ditto.
1550 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1551 * java/net/PlainSocketImpl.java (timeout): Added.
1552 (getInputStream): Added FIXME comment on how to support timeouts
1554 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1555 * java/net/Socket.java: Added FIXME comments to identify
1556 conflicting specs between the JCL and JDK 1.2 documents.
1557 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1558 if host is null. Get localport value resolved by kernel if bind
1560 (receive): Implemented support for timeouts in UDP.
1561 (setOption): Implemented based on natPlainSocketImpl version.
1563 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1564 resolved by kernel if bind lport is 0.
1565 (connect): Get localport value resolved by kernel if bind wasn't
1566 done to set localport.
1567 (accept): Implemented support for timeouts for ServerSocket.
1568 (setOption): Save value for SO_TIMEOUT.
1569 (getOption): Return timeout for SO_TIMEOUT.
1571 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1573 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1574 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1575 (setOption): Made abstract.
1576 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1577 to avoid cpp conflicts in native code.
1578 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1579 cpp conflicts in native code.
1580 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1581 * java/net/Socket.java (getLocalAddress): Implemented.
1582 (setTcpNoDelay): Implemented.
1583 (getTcpNoDelay): Implemented.
1584 (setSoLinger): Implemented.
1585 (getSoLinger): Implemented.
1586 (getSoTimeout): Verify class type.
1587 (setSendBufferSize): Implemented.
1588 (getSendBufferSize): Implemented.
1589 (setReceiveBufferSize): Implemented.
1590 (getReceiveBufferSize): Implemented.
1591 (toString): Prepended "Socket".
1592 * java/net/SocketImpl.java (toString): Rewritten.
1593 (getOption): Made abstract.
1594 (setOption): Made abstract.
1595 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1596 (setOption): Implemented.
1597 (getOption): Implemented.
1599 1999-05-26 Warren Levy <warrenl@cygnus.com>
1601 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1602 address when null. Set SO_REUSEADDR for multicasts.
1603 (getSoTimeout): Implemented.
1604 (setSoTimeout): Implemented.
1605 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1606 * java/net/MulticastSocket.java (getInterface): Implemented.
1607 (setInterface): Implemented.
1608 (setTimeToLive): Check for invalid ttl.
1609 (joinGroup): Verify multicast address and security.
1610 (leaveGroup): Verify multicast address and security.
1611 (send): Implemented.
1612 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1618 (getTTL): Implemented as non-native.
1622 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1623 (getSoTimeout): Implemented.
1624 (setSocketFactory): Made synchronized.
1625 * java/net/Socket.java (setSoTimeout): Implemented.
1626 (getSoTimeout): Implemented.
1627 (close): Made synchronized.
1628 (setSocketImplFactory): Made synchronized.
1629 * java/net/SocketImpl.java: Implement SocketOptions interface.
1630 * java/net/natInetAddress.cc: Corrected module name at top of file.
1631 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1632 (bind): Added FIXME.
1633 (peek): Implemented.
1639 (setOption): Implemented for SO_REUSEADDR.
1640 (getOption): Implemented for SO_REUSEADDR.
1642 1999-05-24 Tom Tromey <tromey@cygnus.com>
1644 * java/util/ResourceBundle.java (getBundle): Throw
1645 NullPointerException if baseName is null.
1647 1999-05-22 Tom Tromey <tromey@cygnus.com>
1649 * java/util/zip/ZipInputStream.java (fill): New method.
1650 (compressed_len): New instance variable.
1651 (getNextStream): Set it.
1652 (read): Reset inflater on EOF. Only read via `super' if entry is
1654 (skip): Only skip via `super' if entry is deflated.
1655 * java/util/zip/Deflater.java (last_input_count): Removed.
1656 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1658 (needsInput): Don't use last_input_count.
1659 (setInput): Don't set last_input_count.
1660 * java/util/zip/natInflater.cc (getRemaining): Return correct
1662 (inflate): Return 0 if input array is length 0.
1663 (setInput): Don't set last_input_count.
1664 * java/util/zip/Inflater.java (last_input_count): Removed.
1666 1999-05-21 Tom Tromey <tromey@cygnus.com>
1668 * Makefile.in: Rebuilt.
1669 * Makefile.am (INCLUDES): Added $(ZINCS).
1670 * configure: Rebuilt.
1671 * configure.in (ZINCS): New subst.
1673 1999-05-21 Andrew Haley <aph@cygnus.com>
1675 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1676 to signal options to allow the same exceptions to be rethrown
1679 1999-05-20 Andrew Haley <aph@cygnus.com>
1681 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1683 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1684 (INIT_FPE): Exception string made more informative.
1685 * include/sparc-signal.h (INIT_FPE): Exception string made more
1687 * testsuite/libjava.lang/Divide_1.java: New file.
1688 * testsuite/libjava.lang/Divide_1.out: New file.
1690 1999-05-19 Tom Tromey <tromey@cygnus.com>
1692 * aclocal.m4, configure: Rebuilt.
1693 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1695 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1698 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1700 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1702 (update): Fail in default case. Always initialize `strat'.
1704 * mauve-libgcj: Enable java.util.zip.
1706 1999-05-18 Warren Levy <warrenl@cygnus.com>
1708 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1709 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1710 PlainDatagramSocketImpl.java, and SocketOptions.java.
1711 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1712 * Makefile.in: Rebuilt.
1714 * java/net/DatagramPacket.java: New file.
1715 * java/net/DatagramSocket.java: New file.
1716 * java/net/DatagramSocketImpl.java: New file.
1717 * java/net/MulticastSocket.java: New file.
1718 * java/net/PlainDatagramSocketImpl.java: New file.
1719 * java/net/SocketOptions.java: New file.
1720 * java/net/natPlainDatagramSocketImpl.cc: New file.
1722 1999-05-18 Tom Tromey <tromey@cygnus.com>
1724 * java/util/zip/ZipOutputStream.java (level): Initial value is
1725 Deflater.DEFAULT_COMPRESSION.
1726 (close): New method.
1727 (closeEntry): Likewise.
1729 (put_version): Likewise.
1730 (write_entry): Likewise.
1731 (put2, put4): Now return `int'.
1732 (comment): Default to empty string.
1733 (bytes_written): New instance variable.
1735 * java/util/zip/ZipEntry.java (setComment): Limit length of
1737 (setCrc): Check CRC validity.
1738 (setExtra): Check argument validity.
1739 (setMethod): Likewise.
1740 (setSize): Likewise.
1741 (ZipEntry): Likewise.
1742 * include/javaprims.h: Updated namespace declarations.
1743 * Makefile.in: Rebuilt.
1744 * Makefile.am (ordinary_java_source_files): Mention new files.
1745 (nat_source_files): Likewise.
1746 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1749 (getInputStream): Handle compressed entries.
1750 * java/util/zip/GZIPOutputStream.java: New file.
1751 * java/util/zip/GZIPInputStream.java: New file.
1752 * java/util/zip/DataFormatException.java: New file.
1753 * java/util/zip/CheckedInputStream.java: New file.
1754 * java/util/zip/CheckedOutputStream.java: New file.
1755 * java/util/zip/InflaterInputStream.java: Implemented.
1756 * java/util/zip/natInflater.cc: New file.
1757 * java/util/zip/Deflater.java: Implemented.
1758 * java/util/zip/natDeflater.cc: New file.
1759 * java/util/zip/DeflaterOutputStream.java: Implemented.
1761 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1762 ZipException, not IOException.
1763 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1766 1999-05-17 Tom Tromey <tromey@cygnus.com>
1768 * java/lang/natSystem.cc (init_properties): URL now points to
1771 1999-05-12 Per Bothner <bothner@cygnus.com>
1773 * java/util/Calendar.java (set): First call computeFields if needed.
1774 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1776 1999-05-12 Tom Tromey <tromey@cygnus.com>
1778 * configure: Rebuilt.
1779 * configure.in: Look for -ldl when using the Boehm collector.
1780 Look for sched_yield in -lposix4.
1782 1999-05-12 Per Bothner <bothner@cygnus.com>
1784 * java/io/File.java (mkdirs): Handle a null parent directory.
1786 1999-05-12 Tom Tromey <tromey@cygnus.com>
1788 * include/javaprims.h: Updated namespace declarations.
1789 * classes.pl (scan): Uniquify class list.
1790 * Makefile.in, configure: Rebuilt.
1791 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1792 (built_java_source_files): New macro.
1793 (nat_headers): Added built_java_source_files.
1794 (javao_files): Likewise.
1795 (EXTRA_libgcj_la_SOURCES): Likewise.
1796 (libgcj.zip): Create built class files.
1797 ($(built_java_source_files:.java=.class)): New target.
1798 (jv_convert_LDADD): Added -L$(here)/.libs.
1799 * configure.in: Create links for ConcreteProcess.java and
1800 natConcreteProcess.cc.
1801 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1802 * java/lang/natEcosProcess.cc: New file.
1803 * java/lang/EcosProcess.java: New file.
1804 * java/lang/PosixProcess.java: New file.
1805 * java/lang/natPosixProcess.cc: New file.
1807 1999-05-12 Warren Levy <warrenl@cygnus.com>
1809 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1810 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1811 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1812 (connect): Throw ConnectException.
1814 1999-05-11 Tom Tromey <tromey@cygnus.com>
1816 * Makefile.in: Rebuilt.
1817 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1818 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1821 * Makefile.in: Rebuilt.
1822 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1823 and it causes problems with libtool.
1825 * Makefile.in, configure: Rebuilt.
1826 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1827 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1828 (jv_convert_DEPENDENCIES): Added ZDEPS.
1829 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1831 (THREADSPEC): Added `-L' to point to qthreads build directory.
1835 * configure, Makefile.in: Rebuilt.
1836 * Makefile.am (toolexeclib_DATA): New macro.
1837 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1838 Recognize --with-system-zlib.
1839 (GCSPEC): New subst.
1840 (THREADSPEC): New subst.
1841 (SYSTEMSPEC): New subst.
1842 (ZLIBSPEC): New subst.
1843 * libgcj.spec.in: New file.
1845 1999-05-10 Tom Tromey <tromey@cygnus.com>
1847 * java/io/InputStreamReader.java (read): If length is 0, return
1848 0. Reset `wpos' and `wcount' when buffer has been filled and
1851 * java/util/Properties.java (save): Removed `FIXME' comment.
1852 (load): Invalid characters in \u now treated as terminators.
1853 Make sure to append character resulting from `\' handling.
1854 Cast to `char' when appending to key or value.
1855 (skip_ws): Inverted test for whitespace.
1857 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1859 (readLine): Likewise.
1860 (readFully): Implemented.
1862 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1864 * java/awt/natToolkit.cc: Added copyright header.
1865 * java/util/zip/InflaterInputStream.java: Added copyright header.
1867 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1869 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1871 (getNextStream): Likewise.
1873 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1875 (getBundle): Don't explicitly throw null pointer exception.
1877 * gnu/gcj/RawData.java: Added copyright header.
1879 * include/jni.h (_Jv_va_list): Always define as va_list.
1881 1999-05-9 Anthony Green <green@cygnus.com>
1883 * java/text/DateFormat.java (computeInstance): Separate time
1885 (getDateTimeInstance): Ditto.
1886 (getDateTimeInstance(int,int)): New method.
1888 * Makefile.in: Rebuilt.
1889 * Makefile.am (ordinary_java_source_files): Add new classes.
1891 * java/util/PropertyResourceBundle.java: New file.
1892 * gnu/gcj/util/EnumerationChain.java: New file.
1894 1999-05-07 Tom Tromey <tromey@cygnus.com>
1896 * acconfig.h (GCJVERSION): New undef.
1897 * java/lang/natSystem.cc (init_properties): Define java.version,
1898 java.class.version, os.name, os.arch, os.version.
1899 Include <sys/utsname.h> if required.
1900 * configure: Rebuilt.
1901 * configure.in: Compute and define GCJVERSION.
1903 * java/lang/natSystem.cc (default_file_encoding): Now static.
1905 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1907 * libtool-version: New file.
1908 * Makefile.in: Rebuilt.
1909 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1912 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1913 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1916 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1917 (we pick those up already).
1919 1999-05-05 Per Bothner <bothner@cygnus.com>
1921 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1922 stub classes. (This is enough to get Kawa to compile against libgcj.)
1924 * gnu/gcj/RawData.java: New class.
1925 * doc/cni.sgml: Document RawData.
1927 * java/util/zip/InflaterInputStream.java: New stub class.
1928 * java/util/zip/ZipInputStream.java: New class. Partly works.
1929 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1930 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1931 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1932 * java/util/zip/ZipOutputStream.java: Start implementation.
1934 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1935 (default_file_encoding): New global, initial value is above macro.
1936 (init_properties): Default file.encoding to default_file_encoding.
1938 * Makefile.am: Add new classes.
1940 1999-05-05 Tom Tromey <tromey@cygnus.com>
1942 * Makefile.in: Rebuilt.
1943 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1944 (clean-local): New target
1946 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1947 (load, loadLibrary): Now native.
1949 * java/lang/Runtime.java (load, loadLibrary): Now native.
1950 (init): New native method.
1951 (Runtime): Use init.
1952 * prims.cc: Include <ltdl.h> if required.
1953 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1955 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1957 * configure.in: Switch from irix threads to posix threads
1958 * configure: Regenerate.
1960 1999-04-30 Tom Tromey <tromey@cygnus.com>
1962 * Makefile.in: Rebuilt.
1963 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1965 1999-04-29 Tom Tromey <tromey@cygnus.com>
1967 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1970 * java/util/Locale.java (Locale(String,String)): Implement in
1971 terms of 3-argument version; variant now defaults to empty
1973 (toString): Assume variant is not null.
1974 (equals): Assume all strings are not null.
1975 (Locale): Throw NullPointerException if any argument is null.
1977 * java/util/ResourceBundle.java (getBundle): Don't try the base
1978 name; now implicit in partialGetBundle call.
1979 (trySomeGetBundle): Search for parent bundles and call setParent
1981 (partialGetBundle): Added `langStop' argument. Use
1982 `Locale.toString' to compute bundleName.
1983 (resource_cache): New static field.
1984 (partialGetBundle): Cache the returned resource bundle. Now
1987 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1990 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1991 * java/text/natCollator.cc (decomposeCharacter): `base' now
1993 * Makefile.in: Rebuilt.
1994 * Makefile.am (ordinary_java_source_files): Added
1995 CollationElementIterator, CollationKey, Collator,
1997 (nat_source_files): Added natCollator.cc.
1998 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1999 (compare): Pass `this' to CollationElementIterator constructor.
2000 (getCollationElementIterator): Likewise.
2001 (ceiNext): Fix off-by-one error when finding initial substring.
2002 (next): Correctly mask off bits when computing return value.
2003 Fixed return values when one string is shorter than the other.
2004 * java/text/CollationElementIterator.java (collator): New field.
2005 (CollationElementIterator): Added collator argument.
2006 (next): Call ceiNext on collator object.
2008 1999-04-26 Tom Tromey <tromey@cygnus.com>
2010 * natCollator.cc: New file.
2012 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2013 (GregorianCalendar): Use it in all constructors.
2014 * java/util/Calendar.java (Calendar): Changed argument name to
2015 `zone' to match code.
2017 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2018 * java/text/CollationKey.java: New file.
2019 * java/text/CollationElementIterator.java: New file.
2020 * java/text/Collator.java: New file.
2021 * java/text/RuleBasedCollator.java: New file.
2023 * Makefile.in: Rebuilt.
2024 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2025 (jv_convert_LDADD): Explicltly add -lm -lc.
2027 1999-04-26 Tom Tromey <tromey@cygnus.com>
2029 * configure, Makefile.in: Rebuilt.
2030 * configure.in: Added AM_PROG_LIBTOOL.
2031 (GCOBJS): Use `.lo' form of files.
2032 (THREADOBJS): Likewise.
2033 (GCDEPS): Use `.la' form of library.
2034 (GCLIBS): Set to be the same as GCDEPS.
2035 (THREADDEPS): Use `.la' form of library.
2036 (THREADLIBS): Set to be the same as THREADDEPS.
2037 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2038 toolexeclib_LIBRARIES.
2039 (libgcj_la_SOURCES): Renamed for libtoolization.
2040 (EXTRA_libgcj_la_SOURCES): Likewise.
2041 (libgcj_la_DEPENDENCIES): Likewise.
2042 (libgcj_la_LIBADD): Likewise.
2043 ($(nat_files)): Use LTCXXCOMPILE.
2044 ($(c_files)): Use LTCOMPILE.
2045 (GCJCOMPILE): New macro.
2047 (.java.o): Likewise.
2048 ($(javao_files)): Likewise.
2049 (jv_convert_LINK): Use LIBTOOL.
2050 (nat_files): Use `.lo' files.
2051 (c_files): Likewise.
2052 (javao_files): Likewise.
2053 (.class.lo): Renamed.
2054 (.java.lo): Likewise.
2055 ($(nat_files)): Depend on %.lo.
2056 ($(c_files)): Likewise.
2057 ($(javao_files)): Likewise.
2058 (jv_convert_LDADD): Link against .lo files.
2059 (jv_convert_DEPENDENCIES): Depend on .lo files.
2060 (maintainer-check): Depend on libgcj.la, but examine .a file.
2061 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2062 (libgcj_la_LDFLAGS): New macro.
2064 1999-04-23 Warren Levy <warrenl@cygnus.com>
2066 * Makefile.am: Added URLDecoder and URLEncoder.
2067 * Makefile.in: Rebuilt.
2069 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2070 setSocketImplFactory to match spec.
2071 * java/net/Socket.java (getSoLinger): Changed return type to
2074 * java/net/URLDecoder.java: New file.
2075 * java/net/URLEncoder.java: New file.
2077 1999-04-21 Tom Tromey <tromey@cygnus.com>
2079 * java/lang/natString.cc (getBytes): Reverted earlier change and
2080 applied correct fix from Per Bothner.
2082 * java/lang/String.java: Don't throw
2083 UnsupportedEncodingException.
2085 * java/lang/natString.cc (getBytes): Correctly size result
2086 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2088 1999-04-20 Andrew Haley <aph@cygnus.com>
2090 * include/sparc-signal.h: new file.
2091 * configure.in: include/sparc-signal.h added.
2092 * configure: regenerated.
2093 * prims.cc (JvRunMain): signal handling code rewritten to be more
2095 (catch_segv): ditto.
2097 * include/i386-signal.h: reorganized.
2098 * include/default-signal.h: reorganized.
2100 1999-04-19 Tom Tromey <tromey@cygnus.com>
2102 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2103 once. From Anthony Green.
2105 1999-04-19 Andrew Haley <aph@cygnus.com>
2107 * Makefile.in: Processed with new automake.
2109 1999-04-19 Tom Tromey <tromey@cygnus.com>
2111 * include/javaprims.h: Removed security namespace.
2113 1999-04-20 Anthony Green <green@cygnus.com>
2115 * java/io/PrintStream.java (println): Remove extra println.
2117 1999-04-19 Anthony Green <green@cygnus.com>
2119 * Makefile.in: Rebuilt.
2120 * Makefile.am (ordinary_java_source_files): Add new security files.
2122 * java/security/NoSuchAlgorithmException.java,
2123 java/security/MessageDigest.java: New files.
2125 * include/javaprims.h: Add security namespace.
2127 1999-04-16 Per Bothner <bothner@cygnus.com>
2129 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2130 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2131 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2132 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2133 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2134 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2135 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2136 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2137 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2138 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2139 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2140 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2141 * Makefile.am: Various changes for new files and conversions.
2143 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2144 New overloading, allows greater efficiency.
2145 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2146 New overloading (for efficiency - avoids copying).
2148 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2149 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2151 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2152 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2153 (writeChars): Don't be quite so eager to flush.
2154 * java/io/PrintStream.java: Rewrite. Now more similar to
2155 OutputStreamWriter, using explicit UnicodeToBytes converter.
2156 Also, autoflush does not need to flush so often.
2157 * java/lang/natString.cc (getBytes): More efficient algorithm.
2158 (init(jbyteArray,jint,jint,jstring)): More efficient.
2160 1999-04-15 Warren Levy <warrenl@cygnus.com>
2162 * Makefile.am (ordinary_java_source_files): Added new Connection
2163 and Handler classes in gnu.gcj.protocol.file package.
2164 * Makefile.in: Rebuilt.
2166 * gnu/gcj/protocol/file/Connection.java: New file.
2167 * gnu/gcj/protocol/file/Handler.java: New file.
2168 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2169 if doInput allows input.
2170 (getOutputStream): Check if doOutput allows output.
2171 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2173 1999-04-14 Tom Tromey <tromey@cygnus.com>
2175 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2176 buffer larger to work around bug.
2177 From Bryce McKinlay <bryce@albatross.co.nz>.
2179 1999-04-14 Andrew Haley <aph@cygnus.com>
2181 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2182 NaNs are always converted to the same long value.
2183 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2186 1999-04-13 Tom Tromey <tromey@cygnus.com>
2188 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2189 instead switch on actual element type.
2191 * Makefile.in: Rebuilt.
2192 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2194 1999-04-13 Andrew Haley <aph@cygnus.com>
2196 * include/i386-signal.h, include/default-signal.h: New files.
2197 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2199 (catch_fpe): New function.
2200 * configure.in: Make link to appropriate include/java-signal.h.
2201 * configure: Rebuilt.
2202 * Makefile.am: include/java-signal.h added to dependency list.
2203 * Makefile.in: Rebuilt.
2205 1999-04-12 Urban Widmark <urban@svenskatest.se>
2207 * java/io/DataInputStream.java (readLine): Corrected handling of
2208 empty lines, from null to "".
2210 1999-04-12 Tom Tromey <tromey@cygnus.com>
2212 * Makefile.in: Rebuilt.
2213 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2215 * java/lang/natSystem.cc (SystemClass): New define.
2216 (init_properties): Synchronize.
2218 1999-04-08 Geoff Berry <gcb@gnu.org>
2220 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2221 * natPlainSocketImpl.cc (accept): Add missing else if check
2224 1999-04-08 Tom Tromey <tromey@cygnus.com>
2226 * java/lang/Long.java (parseLong): Corrected overflow detection
2228 * java/lang/Integer.java (parseInt): Corrected overflow detection
2231 * java/io/PrintStream.java (print): Handle null string argument.
2232 (println): Likewise.
2234 1999-04-07 Warren Levy <warrenl@cygnus.com>
2236 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2237 Set count to 0 when InputStreamReader returns -1 for EOF.
2239 1999-04-07 Tom Tromey <tromey@cygnus.com>
2241 * mauve-libgcj: Omit java.text.Collator,
2242 java.text.RuleBasedCollator.
2244 1999-04-06 Tom Tromey <tromey@cygnus.com>
2246 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2247 IOException from getHttpHeaders().
2248 (getHeaderFieldKey): Likewise.
2250 * include/javaprims.h: Regenerated declarations.
2252 * Makefile.in: Rebuilt.
2253 * Makefile.am (ordinary_java_source_files): Updated for removed
2256 1999-04-06 Per Bothner <bothner@cygnus.com>
2258 * java/util/zip/Adler32.java: New class.
2259 * java/util/zip/CRC32.java: Add working method bodies.
2260 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2261 * Makefile.in: Re-generate.
2263 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2265 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2266 from version in removed www hierarchy.
2267 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2268 version in removed www hierarchy.
2270 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2271 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2272 * gnu/gcj/www/protocol/http: Removed dir.
2273 * gnu/gcj/www/protocol: Removed dir.
2274 * gnu/gcj/www: Removed dir.
2276 * java/net/HttpURLConnection.java: Revised comments to indicate
2277 missing JDK 1.2 methods.
2279 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2280 hierarchy rather than the gnu/gcj/www/protocol one.
2281 * java/net/URLConnection.java: Updated status comments.
2282 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2283 the gnu/gcj/www/content one.
2285 1999-04-06 Per Bothner <bothner@cygnus.com>
2287 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2288 The gen-from-JIS program is in $(CONVERT_DIR).
2290 1999-04-06 Tom Tromey <tromey@cygnus.com>
2292 * mauve-libgcj: Renamed from mauve-libjava.
2294 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2296 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2297 (getResponseMessage): Implemented.
2298 (getResponseVals): New private method.
2300 * java/net/URLConnection.java (getContent): Implemented.
2301 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2303 1999-04-05 Tom Tromey <tromey@cygnus.com>
2305 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2306 (jv_convert_SOURCES): Renamed.
2307 (EXTRA_jv_convert_SOURCES): Likewise.
2308 (jv_convert_LDFLAGS): Likewise.
2309 (jv_convert_LINK): Likewise.
2310 (jv_convert_LDADD): Likewise.
2311 (jv_convert_DEPENDENCIES): Likewise.
2313 * Makefile.in: Rebuilt.
2314 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2317 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2319 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2320 method for comparison.
2322 * java/net/URLConnection.java (getContentLength): Implemented.
2323 (getContentType): Implemented.
2324 (getContentEncoding): Implemented.
2325 (getExpiration): Implemented.
2326 (getDate): Implemented.
2327 (getLastModified): Implemented.
2328 (getHeaderFieldInt): Implemented.
2329 (getHeaderFieldDate): Implemented.
2331 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2333 * java/net/URLConnection.java (toString): Implemented.
2334 (setContentHandlerFactory): Implemented.
2335 (setContentHandler): Wrote new private helper method.
2337 1999-04-01 Tom Tromey <tromey@cygnus.com>
2339 * Makefile.in: Rebuilt.
2340 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2341 of 1999-03-31; we always want to build all the .class files.
2342 Depend on java_source_files, not libgcj.zip.
2343 (nat_headers): Define in terms of ordinary_java_source_files.
2345 1999-03-31 Tom Tromey <tromey@cygnus.com>
2347 * Makefile.in: Rebuilt.
2348 * Makefile.am (special_java_source_files): New macro.
2349 (java_source_files): Use it.
2350 (ordinary_java_source_files): New macro.
2351 (java_source_files): Use it.
2352 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2353 creating headers for those files with hand-maintained headers.
2355 * include/javaprims.h: Regenerated namespace declarations.
2356 * classes.pl (scan): Include [0-9] in regexp for matching class
2357 names; for java.util.zip.CRC32.
2359 * Makefile.in: Rebuilt.
2360 * Makefile.am (nat_headers): Redefined to generate all possible
2363 * java/util/zip/ZipException.java: In package java.util.zip, not
2366 1999-03-30 Tom Tromey <tromey@cygnus.com>
2368 * configure: Rebuilt.
2369 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2370 eh-common.h when not building in tree with gcc.
2372 * Makefile.in: Rebuilt.
2373 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2374 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2376 ($(java_source_files:.java=.class)): New target.
2378 * Makefile.in: Rebuilt.
2379 * Makefile.am (java_source_files): Added
2380 java/net/HttpURLConnection.java and
2381 gnu/gcj/www/protocol/http/Connection.java.
2383 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2385 * gnu/gcj/www/protocol/http/Connection.java: New file.
2386 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2387 * java/net/HttpURLConnection.java: New file.
2388 * java/net/URLConnection.java (getHeaderField): Implemented default.
2389 (getHeaderFieldKey): Implemented default method.
2391 1999-03-30 Tom Tromey <tromey@cygnus.com>
2393 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2395 * java/util/zip/Deflater.java: Added copyright header.
2396 * java/util/zip/CRC32.java: Added copyright header.
2398 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2399 that it is automatically generated.
2400 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2402 * gnu/gcj/convert/BytesToUnicode.java,
2403 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2404 gnu/gcj/convert/Input_EUCJIS.java,
2405 gnu/gcj/convert/Input_UTF8.java,
2406 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2407 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2408 gnu/gcj/convert/Output_8859_1.java,
2409 gnu/gcj/convert/Output_JavaSrc.java,
2410 gnu/gcj/convert/Output_UTF8.java,
2411 gnu/gcj/convert/UnicodeToBytes.java,
2412 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2414 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2416 * Makefile.in, configure: Rebuilt.
2417 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2418 not if test subdir exists.
2419 (--enable-gcj-classes): Removed; gcj always used to generate
2421 (JAVA, JAVAC): Removed.
2422 (--enable-single-compilation, --enable-source-compilation):
2425 (NATIVE): New conditional.
2426 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2427 `install-exec' to work.
2428 (toolexeclibdir): Likewise.
2429 (toollib_LIBRARIES): Likewise.
2430 (AM_MAKEFLAGS): Don't pass tooldir.
2432 (javao_files): Redefined.
2433 (java_source_files): New macro.
2434 (c_source_files): New macro.
2435 (c_files): Redefined in terms of c_source_files.
2436 (java_io_files, java_lang_files, java_net_files, java_text_files,
2437 java_util_files, gnu_files, java_files): Removed.
2438 (class_io_files, class_lang_files, class_net_files,
2439 class_text_files, class_util_files, class_gnu_files, class_files):
2441 (nat_source_files): New macro.
2442 (nat_files): Redefined in terms of nat_source_files.
2443 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2444 java_source_files. Removed no-such-file.c.
2446 (ETAGS_ARGS): Removed.
2447 (TAGS_DEPENDENCIES): Likewise.
2448 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2450 (src_io_files, src_lang_files, src_text_files, src_util_files,
2451 src_gnu_files): Removed.
2452 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2453 (BUILT_SOURCES): Removed.
2454 (header-check): New target.
2456 (noinst_PROGRAMS): New macro.
2457 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2459 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2460 (gen-from-JIS): Build in top directory.
2461 (convert_source_files): New macro.
2462 (convert_SOURCES): New macro.
2463 (convert_LDFLAGS): Likewise.
2464 (convert_LINK): Likewise.
2465 (convert_LDADD): Likewise.
2466 (convert_DEPENDENCIES): Likewise.
2468 (gen-from-JIS): Removed.
2469 (gen_from_JIS_SOURCES): New macro.
2470 (gen_from_JIS_LDADD): Likewise.
2471 (gen_from_JIS_DEPENDENCIES): Likewise.
2473 * configure: Rebuilt.
2474 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2475 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2476 when defining conditional.
2478 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2480 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2481 The Unicode Consortium does not permit their re-distribution.
2482 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2483 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2485 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2487 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2489 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2491 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2492 from Unicode Consortium.
2493 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2494 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2495 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2496 New tables, generated using gen-from-JIS.
2497 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2498 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2499 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2500 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2502 * gnu/gcj/convert/Convert.java: New application.
2503 * Makefile.am, Makefile.in (convert): New program, using Convert.
2504 Build the various JIS conversion tables (in maintainer mode).
2506 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2508 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2510 * java/net/URL.java (URL): Deal with null property value. Use "."
2511 as separator in building class name.
2512 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2513 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2514 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2515 beginning of the substring rather than 'start'.
2517 1999-03-26 Tom Tromey <tromey@cygnus.com>
2519 * include/java-chartables.h: Rebuilt.
2520 * include/java-chardecomp.h: New file.
2521 * chartables.pl: Generate output files directly. Added support
2522 for generating decomposition header.
2523 (canonical_decomposition, full_decomposition): New globals.
2524 (DECOMPOSITION): New constant.
2525 (process_char): Call add_decomposition.
2526 (add_decomposition): New sub.
2527 (write_decompositions): New sub.
2529 1999-03-25 Tom Tromey <tromey@cygnus.com>
2531 * java/text/CollationElementIterator.java: New file.
2533 * mauve-libjava: Omit StringTest.
2535 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2537 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2538 without a '/' when parsing protocol. Handle ref outside of parseURL.
2539 (hashCode): Implemented.
2540 (set): Don't expand -1 to default port.
2541 (getDefaultPort): Removed.
2543 * java/net/URLStreamHandler.java (parseURL): Implemented.
2544 (toExternalForm): Implemented.
2546 1999-03-23 Tom Tromey <tromey@cygnus.com>
2548 * java/text/BreakIterator.java (getSentenceInstance):
2550 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2552 * Makefile.in: Rebuilt.
2553 * Makefile.am (nat_headers): Added IllegalAccessException.
2554 * java/lang/natClass.cc (newInstance): Throw
2555 IllegalAccessException, not IllegalAccessError.
2556 Include IllegalAccessException.h.
2558 1999-03-22 Tom Tromey <tromey@cygnus.com>
2560 * gnu/gcj/text/LineBreakIterator.java: New file.
2561 * java/text/BreakIterator.java (getLineInstance): Implemented.
2563 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2564 copy constructor private.
2565 (previous, next): Removed erroneous comment about line
2567 (previous): Correctly recognize break between non-letter on the
2568 left and letter on the right. Handle apostrophes correctly.
2570 * java/text/BreakIterator.java (getWordInstance): Implemented.
2571 * gnu/gcj/text/WordBreakIterator.java: New file.
2572 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2574 * gnu/gcj/text/BaseBreakIterator.java: New file.
2576 1999-03-19 Tom Tromey <tromey@cygnus.com>
2578 * java/text/BreakIterator.java: New file (partially stubbed out).
2579 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2581 * include/config.h.in: Rebuilt.
2582 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2583 (HAVE_TIMEZONE): Likewise.
2584 * configure: Rebuilt.
2585 * configure.in: Added timezone checks.
2586 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2589 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2591 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2592 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2593 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2594 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2595 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2596 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2597 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2598 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2600 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2601 (BSD_COMP): Kludge needed for Solaris2.
2603 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2605 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2606 URL(java.net.URL, string, URLStreamHandler) and call it with a
2607 null handler. In latter constructor, added SecurityManager check.
2608 (set): Expect null handler on bad protocol rather than an exception.
2609 (setURLStreamHandler): Simplified exception handling; return null
2610 on invalid protocol.
2612 1999-03-18 Tom Tromey <tromey@cygnus.com>
2614 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2616 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2618 Include PrintStream.h, InputStream.h.
2619 * java/lang/System.java (ForwardingInputStream,
2620 ForwardingOutputStream): Removed.
2621 (setErr, setIn, setOut): Now native.
2623 Reverted patch from 1999-02-12 to work around problem in
2625 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2626 (_Jv_eh_free): Use free.
2628 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2629 for path name. Minor formatting fixes.
2631 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2633 * prims.cc (fail_on_finalization): New function.
2634 (_Jv_GCWatch): Likewise.
2636 * prims.cc (JvRunMain): Initialize `nullp'.
2637 (nullp): New global.
2638 (catch_segv): Throw nullp.
2640 * Makefile.in: Rebuilt.
2641 * Makefile.am (ZIP): In "null target" case, zip is found in the
2644 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2648 * java/lang/StringBuffer.java (StringBuffer): Don't use
2649 ensureCapacity to set initial capacity.
2650 (capacity): Subtract `length' from return result.
2652 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2654 * java/io/natFileDescriptorPosix.cc (open): Throw
2655 FileNotFoundException, but with filename and errno in msg.
2657 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2659 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2660 functionality folded into java/net/URL.java per spec.
2662 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2663 than EEXIST for throwing FileNotFoundException.
2665 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2666 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2668 * java/net/URLStreamHandler.java (parseURL): Added stub.
2670 1999-03-15 Andrew Haley <aph@cygnus.com>
2672 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2675 1999-03-15 Andrew Haley <aph@cygnus.com>
2677 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2680 1999-03-12 Tom Tromey <tromey@cygnus.com>
2682 * prims.cc (catch_segv): New function.
2683 Include <signal.h> if HANDLE_SEGV defined. Include
2684 NullPointerException.h.
2685 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2688 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2689 a SimpleDateFormat, not just a DateFormat.
2690 (defaultCenturyStart, formatData, pattern): Now private.
2691 (append): Now `final'. Use `NumberFormat.format'.
2693 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2695 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2698 * java/text/MessageFormat.java (format): Use default MessageFormat
2700 (parse, parseObject): Wrote.
2702 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2705 1999-03-12 Andrew Haley <aph@cygnus.com>
2707 * java/lang/String.java (indexOf): Replace with native method for
2709 * java/lang/natString.cc (IndexOf): As above.
2711 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2712 Argument check corrected.
2713 (init(jbyteArray,jint,jint,jstring)): Likewise.
2715 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2716 1.2 compliant method.
2718 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2720 * java/lang/Float.java (byteValue, shortValue): Likewise.
2722 1999-03-11 Tom Tromey <tromey@cygnus.com>
2724 * java/text/DecimalFormat.java (parse): Wrote.
2726 * java/text/ChoiceFormat.java (parse): Set error index on
2727 ParsePosition object.
2729 * java/lang/Integer.java (parseInt): Throw exception on overflow
2730 when intermediate result is most negative number. Changed
2731 overflow detection as well.
2732 * java/lang/Long.java (parseLong): Likewise.
2734 * configure, Makefile.in: Rebuilt.
2735 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2736 CANADIAN when building in source tree that doesn't include gcc.
2737 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2740 * java/text/ChoiceFormat.java (nextDouble): Correct some
2741 off-by-one errors when masking or adding.
2743 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2744 parameter, if given. Use `%', not IEEEremainder.
2745 (scanFix): Throw error if multiplier already set.
2746 (computePattern): Wrote.
2748 1999-03-11 Andrew Haley <aph@cygnus.com>
2750 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2752 (nextDouble): Corrected masking logic. Handle interaction between
2753 `next' and negative numbers.
2755 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2757 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2758 * java/net/URL.java: Added general comments.
2760 1999-03-10 Tom Tromey <tromey@cygnus.com>
2762 * java/text/ChoiceFormat.java (parse): Wrote.
2764 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2766 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2767 Create ChoiceFormat objects.
2768 (format): Special-case ChoiceFormat.
2769 (scanFormatElement): Include { and } in generated style string.
2771 1999-03-09 Tom Tromey <tromey@cygnus.com>
2773 * java/text/ChoiceFormat.java: New file.
2775 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2777 * java/net/BindException.java: Created.
2778 * java/net/ConnectException.java: Created.
2779 * java/net/ContentHandler.java: Created.
2780 * java/net/ContentHandlerFactory.java: Created.
2781 * java/net/FileNameMap.java: Created.
2782 * java/net/MalformedURLException.java: Created.
2783 * java/net/NoRouteToHostException.java: Created.
2784 * java/net/ProtocolException.java: Created.
2785 * java/net/ServerSocket.java (@author): Fixed typo.
2786 * java/net/Socket.java (@author): Fixed typo.
2787 * java/net/SocketImpl.java (@author): Fixed typo.
2788 * java/net/SocketImplFactory.java (@author): Fixed typo.
2789 * java/net/URL.java: Created - nearly complete.
2790 * java/net/URLConnection.java: Created - near-empty stub.
2791 * java/net/URLStreamHandler.java: Created - incomplete stub.
2792 * java/net/URLStreamHandlerFactory.java: Created.
2793 * java/net/UnknownServiceException.java: Created.
2795 1999-03-09 Tom Tromey <tromey@cygnus.com>
2797 * java/lang/System.java (ForwardingInputStream): New class.
2798 (ForwardingOutputStream): Likewise.
2799 (in, out, err): Now `final' forwarding streams.
2800 (setIn, setOut, setErr): Use appropriate method on forwarding
2803 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2806 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2808 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2809 * java/util/zip/Checksum.java: New interface (complete).
2810 * java/util/zip/Deflater.java: New class (near-empty stub).
2811 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2812 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2813 * java/util/zip/ZipEntry.java: New class (complete).
2814 * java/util/zip/ZipException.java: New class (complete).
2815 * java/util/zip/ZipFile.java: New class (incomplete stub).
2816 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2818 1999-03-09 Tom Tromey <tromey@cygnus.com>
2820 * java/text/MessageFormat.java (MessageFormatElement): Removed
2821 `public' specifiers.
2823 * java/text/DecimalFormat.java (scanFormat): Increment index
2824 before processing exponential format. Fixed a couple typos in
2826 (format): Correct normalization of exponent.
2828 1999-03-08 Tom Tromey <tromey@cygnus.com>
2830 * java/text/SimpleDateFormat.java (parse): Throw
2831 IllegalArgumentException, not ParseException.
2833 1999-03-05 Tom Tromey <tromey@cygnus.com>
2835 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2836 when constructing DateFormatSymbols. Initialize numberFormat
2837 field of superclass.
2839 * java/text/DateFormat.java (equals): Rewrote.
2840 (getAvailableLocales): New method.
2841 (getDateInstance): New methods.
2842 (getDateTimeInstance): Likewise.
2843 (getTimeInstance): Likewise.
2844 (getInstance): New method.
2845 (computeInstance): New method.
2847 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2849 (safeGetResource): New method.
2850 (DateFormatSymbols): Use Locale paramater.
2851 (equals): Now protected.
2852 Made instance variables private.
2854 1999-03-04 Tom Tromey <tromey@cygnus.com>
2856 * java/text/DecimalFormat.java: New file.
2858 * java/text/NumberFormat.java (groupingUsed,
2859 maximumFractionDigits, maximumIntegerDigits,
2860 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2862 (setDecimalSeparatorAlwaysShown, setMultiplier,
2863 setPositivePrefix): Removed.
2864 (setMinimumFractionDigits, setMaximumFractionDigits):
2866 (format): Now final.
2867 Added many new methods.
2869 * Makefile.in: Rebuilt.
2870 * Makefile.am (gnu_files): New macro.
2871 (java_files): Added gnu_files.
2872 (class_gnu_files): New macro.
2873 (class_files): Use it.
2874 (src_gnu_files): New macro.
2875 (gnu.o): New target.
2876 (javao_files): Added gnu.o.
2878 * gnu/gcj/text/LocaleData_en_US.java: New file.
2879 * gnu/gcj/text/LocaleData_en.java: New file.
2880 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2881 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2882 (safeGetString): New method.
2883 (safeGetChar): Likewise.
2885 1999-03-03 Tom Tromey <tromey@cygnus.com>
2887 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2890 * java/text/FieldPosition.java (equals): Don't check for null
2891 object; instanceof does this.
2893 * java/util/Locale.java (clone): New method.
2896 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2898 * doc/cni.sgml: New file.
2900 1999-03-03 Tom Tromey <tromey@cygnus.com>
2902 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2904 * java/text/DecimalFormatSymbols.java: New file.
2906 1999-03-02 Tom Tromey <tromey@cygnus.com>
2908 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2910 * configure: Rebuilt.
2911 * configure.in: Check for sys/filio.h.
2913 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2915 (load): Always throw UnsatisfiedLinkError.
2916 (loadLibrary): Likewise.
2918 1999-03-02 Anthony Green <green@cygnus.com>
2920 * LIBGCJ_LICENSE: New file.
2921 * LIBJAVA_LICENSE: Removed.
2922 * Many files: libjava now libgcj.
2924 1999-03-02 Tom Tromey <tromey@cygnus.com>
2926 * include/java-chartables.h: Rebuilt.
2927 * chartables.pl (print_block): Make table `const'.
2928 (print_numerics): Likewise.
2929 (print_single_map): Likewise.
2930 (print_all_block): Likewise.
2931 (print_case_table): Likewise.
2932 (print_fast_tables): Likewise.
2933 * java/lang/natCharacter.cc (table_search): `table' argument now
2936 1999-03-01 Tom Tromey <tromey@cygnus.com>
2938 * java/util/Date.java (before, after): Inverted logic.
2940 * java/util/Date.java (parse): Handle case where first character
2941 in string is open parenthesis.
2942 (skipParens): Rewrote.
2944 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2945 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2947 * java/util/Date.java (parse): Correctly compute beginning of
2950 * java/util/Hashtable.java (get): Throw NullPointerException if
2952 (containsKey): Likewise.
2954 * java/util/Properties.java (list): Truncate value to 37
2955 characters and add `...'.
2957 * java/lang/Byte.java (parseByte): Pass `radix' to
2960 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2962 Include System.h, PrintStream.h.
2964 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2967 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2969 * configure: Rebuilt.
2970 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2973 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2975 * java/lang/SecurityManager.java: Import java.net.*.
2976 (checkMulticast): New methods.
2978 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2980 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2981 (nat_files): Add java/lang/reflect/natArray.o.
2982 (nat_headers): Add Field.h and NoSuchFieldException.h.
2984 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2985 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2986 (_Jv_FromReflectedField): Fix buglet.
2987 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2988 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2989 * prims.cc (_Jv_Abort): Include message in print-out.
2991 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2992 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2993 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2995 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2996 * include/config.h.in (HAVE_PWD_H): New feature macro.
2997 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2998 user.name, user.home, user.dir.
3000 * java/lang/reflect/Array.java: New class.
3001 * java/lang/reflect/natArray.cc: New native methods.
3002 * include/javaprims.h: Declare java::lang::reflect::Array.
3004 * java/lang/Class.h (getField): New private method. Add friends.
3005 * java/lang/Class.java (getField): Add private overload.
3006 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3007 getDeclaredMethods): Add working implementations.
3008 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3009 Finish implementation, except for access control.
3011 * java/lang/reflect/Modifier.java (toString): New overload.
3012 * include/java-method.h: New file.
3013 * java/lang/reflect/Method.java (index): Replaced by offset field.
3014 Remove various private fields - get them from _Jv_Field instead.
3015 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3016 New method implementations.
3018 * java/text/NumberFormat.java: Add a bunch of methods.
3020 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3022 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3024 1999-02-26 Tom Tromey <tromey@cygnus.com>
3026 * include/config.h.in: Rebuilt.
3027 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3028 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3029 HAVE_GETHOSTBYADDR_R): New defines.
3030 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3031 gethostbyaddr_r if available.
3033 * configure: Rebuilt.
3034 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3036 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3040 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3041 * prims.cc (_Jv_AllocBytesChecked): New function.
3043 * Makefile.in: Rebuilt.
3044 * Makefile.am (SUBDIRS): Removed `test'.
3045 * configure: Rebuilt.
3046 * configure.in: Don't build test/Makefile.
3047 * test/*: Removed all files.
3049 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3051 * java/lang/reflect/Constructor.java: Make class final to match spec.
3052 * java/lang/reflect/Method.java: Ditto.
3054 1999-02-25 Tom Tromey <tromey@cygnus.com>
3056 * java/net/natInetAddress.cc: Include <sys/types.h> before
3058 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3061 * java/net/natInetAddress.cc: Declare gethostname if required.
3062 * include/config.h.in: Rebuilt.
3063 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3064 * configure: Rebuilt.
3065 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3066 declared in unistd.h.
3068 1999-02-24 Tom Tromey <tromey@cygnus.com>
3070 * Makefile.in: Rebuilt.
3071 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3072 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3073 from private to "none".
3075 * include/javaprims.h: Regenerated class declarations with new
3077 * classes.pl (scan): Only generate decls for java.lang, java.io,
3080 1999-02-24 Tom Tromey <tromey@cygnus.com>
3082 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3083 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3085 1999-02-23 Tom Tromey <tromey@cygnus.com>
3087 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3088 not already defined.
3089 * java/io/natFile.cc (_REENTRANT): Only define if not already
3091 * include/config.h.in: Rebuilt.
3092 * acconfig.h (HAVE_BOEHM_GC): New define.
3093 * configure: Rebuilt.
3094 * configure.in: Define HAVE_BOEHM_GC if using it.
3095 * posix-threads.cc: Include boehm-config.h and gc.h if
3097 * include/posix-threads.h: Added explanatory note about Boehm GC.
3099 * java/io/BufferedReader.java (readLine): Only return null when
3100 EOF seen before any characters read. (In particular, an empty
3101 line should not return null.)
3103 * java/io/BufferedInputStream.java (read): Only refill once per
3106 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3107 java.lang.Character.classify12, java.lang.String.hash,
3108 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3109 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3111 * java/text/StringCharacterIterator.java (setIndex): No error if
3113 (next): Check for `pos == end', not `end - 1'.
3114 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3115 for null text in each constructor.
3116 (clone): Fixed order of arguments to constructor.
3118 1999-02-22 Tom Tromey <tromey@cygnus.com>
3120 * include/config.h.in: Rebuilt.
3121 * acconfig.h (HAVE_INET6): New define.
3122 (HAVE_SOCKLEN_T): Likewise.
3123 * java/net/PlainSocketImpl.java: Added copyright header.
3124 * java/net/natPlainSocketImpl.cc: Added copyright header.
3125 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3127 (connect): Likewise.
3129 (socklen_t): New typedef.
3130 (accept): Use socklen_t.
3131 * java/net/natInetAddress.cc: Added copyright header.
3132 (HAVE_GETHOSTNAME): Don't define.
3133 (HAVE_INET_ADDR): Likewise.
3134 (lookup): Fixed typo.
3135 (aton): Don't use `address' as name of local variable.
3136 (lookup): Use HAVE_INET6, not AF_INET6.
3138 * configure: Rebuilt.
3139 * configure.in: Look for functions inet_aton, inet_addr,
3140 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3141 Check for socklen_t typedef.
3143 * exception.cc (__throw): Declare as __noreturn__.
3145 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3147 * Makefile.am, Makefile.in: Also build java/net.
3148 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3150 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3151 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3153 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3154 * include/cni.h (JvMalloc, JvFree): New inline functions.
3155 (JvThrow): Add __noreturn__ attribute.
3156 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3157 (_Jv_Throw): Add __noreturn__ attribute.
3159 * java/net/PlainSocketImpl.java: Init fnum to -1.
3160 * java/net/ServerSocket.java: Add missing throws clauses.
3161 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3162 don't call create on the latter. Instead, other constructors
3163 have to explicitly call SocketImpl.create.
3164 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3165 from size_t to int, to match ::accept prototype.
3166 * java/net/natInetAddress.cc: Use JvFree rather than free.
3169 1999-02-22 Tom Tromey <tromey@cygnus.com>
3171 * include/javaprims.h: Added new classes.
3172 * java/text/StringCharacterIterator.java: New file.
3173 * java/text/CharacterIterator.java: New file.
3175 * java/text/ParseException.java (errorOffset): Now private.
3177 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3179 * java/net: New package.
3180 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3181 Socket.java,SocketException.java,SocketImpl.java,
3182 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3183 natPlainSocketImpl.cc}: New classes.
3185 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3186 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3187 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3188 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3190 * classes.pl: Translate package into "namespace", not "class".
3191 * include/javaprims.h: Update class list, using "namespace".
3193 1999-02-21 Tom Tromey <tromey@cygnus.com>
3195 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3196 Define when appropriate.
3198 1999-02-20 Tom Tromey <tromey@cygnus.com>
3200 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3201 as a single byte and \u07ff as two bytes.
3202 (_Jv_GetStringUTFLength): Likewise.
3203 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3204 with 0x0f, not 0x1f.
3206 1999-02-19 Tom Tromey <tromey@cygnus.com>
3208 * java/io/DataOutputStream.java (writeUTF): When encoding
3209 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3210 * java/io/DataInputStream.java (readUTF): Mask second byte of
3211 3-byte character with 0x3f, not 0x1f.
3213 * java/io/DataInputStream.java (readLong): Cast result of
3214 readUnsignedByte to long before using.
3216 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3219 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3220 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3221 argument to avoid warning.
3222 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3223 argument to avoid warning.
3225 1999-02-18 Tom Tromey <tromey@cygnus.com>
3227 * mauve-libjava: Omit java.io.DataInputOutput and
3228 java.io.Utf8Encoding.
3230 1999-02-17 Tom Tromey <tromey@cygnus.com>
3232 * Makefile.in: Rebuilt.
3233 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3234 * java/io/natFileDescriptorPosix.cc: Include
3235 InterruptedIOException.h, Thread.h.
3236 (write): Throw InterruptedIOException when required.
3238 * posix-threads.cc: Include <signal.h>.
3239 (_Jv_ThreadInterrupt): New function.
3241 (handle_intr): New function.
3242 (_Jv_InitThreads): Register handle_intr via sigaction.
3243 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3244 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3245 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3246 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3248 1999-02-19 Andrew Haley <aph@cygnus.com>
3250 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3252 (ThreadGroup (int)): Set the maximum priority of the initial
3255 1999-02-18 Andrew Haley <aph@cygnus.com>
3257 * java/lang/natClass.cc (forName): Check for the case where a
3258 classname is the name of an array and call FindClassFromSignature
3261 1999-02-18 Andrew Haley <aph@cygnus.com>
3263 * java/lang/StringBuffer (insert (int, String)): Move up any
3264 characters above the insert position and increase the length of
3265 the string buffer by the length of the argument.
3266 (insert (int, char[])): Likewise.
3267 (insert (int, char)): Likewise.
3268 (StringBuffer (String)): The initial capacity of the string buffer
3269 is 16 plus the length of the argument.
3270 (getChars): Add a JDK 1.2 FIXME.
3272 1999-02-18 Andrew Haley <aph@cygnus.com>
3274 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3277 1999-02-18 Andrew Haley <aph@cygnus.com>
3279 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3280 instead of floating-point equality. This is necessary for
3281 correct floating-point Hashtables.
3282 * java/lang/Float.java (equals): Ditto.
3284 1999-02-16 Tom Tromey <tromey@cygnus.com>
3286 * java/util/Properties.java (list): Truncate value to 37
3287 characters and add "...".
3289 1999-02-16 Tom Tromey <tromey@cygnus.com>
3291 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3292 if initCap is negative.
3293 (contains): Implement JDK1.2-style handling of null argument.
3294 (removeElement): Likewise.
3295 (indexOf): Likewise. Also, correctly handle case where idx is
3297 (lastIndexOf): Likewise.
3299 1999-02-16 Tom Tromey <tromey@cygnus.com>
3301 * java/lang/natString.cc (init): Increment source pointer in
3304 1999-02-16 Tom Tromey <tromey@cygnus.com>
3306 * exception.cc: Include NullPointerException.h.
3307 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3309 1999-02-16 Tom Tromey <tromey@cygnus.com>
3311 * Makefile.in: Rebuilt.
3312 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3314 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3316 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3317 we're compiling canadian.
3318 * configure: Regenerated.
3320 1999-02-12 Andrew Haley <aph@cygnus.com>
3322 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3323 deleted from libgcj.
3325 1999-02-12 Tom Tromey <tromey@cygnus.com>
3327 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3328 (_Jv_eh_free): Don't call free.
3329 Don't declare malloc or free.
3331 1999-02-11 Tom Tromey <tromey@cygnus.com>
3333 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3335 1999-02-11 Andrew Haley <aph@cygnus.com>
3337 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3338 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3339 needed by java.lang.*.
3340 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3341 wf_fmod.o: Removed from libjava.a.
3343 1999-02-11 Tom Tromey <tromey@cygnus.com>
3345 * include/javaprims.h: Reverted previous change; with it
3346 exception.cc can't compile.
3348 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3350 * include/config.h.in: Rebuilt.
3351 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3353 * configure: Rebuilt.
3354 * configure.in: Check for sched_yield. Look in thread library for
3355 all thread functions.
3357 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3358 no recursive mutexes.
3359 (_Jv_MutexDestroy): Define when required.
3360 (_Jv_MutexLock): Likewise.
3361 (_Jv_MutexUnlock): Likewise.
3362 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3363 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3364 (_Jv_Mutex_t): New structure.
3365 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3366 (_Jv_MutexLock): Likewise.
3367 (_Jv_MutexUnlock): Likewise.
3369 1999-02-10 Tom Tromey <tromey@cygnus.com>
3371 * aclocal.m4, configure, Makefile.in: Rebuilt.
3372 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3374 * configure.in: Changed to track library changes.
3375 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3376 (AM_CXXFLAGS): Likewise.
3377 (data_DATA): Likewise.
3378 (AM_CFLAGS): Likewise.
3379 (JC1FLAGS): Likewise.
3380 (libgcj_a_SOURCES): Likewise.
3381 (EXTRA_libgcj_a_SOURCES): Likewise.
3382 (libgcj_a_DEPENDENCIES): Likewise.
3383 (libgcj_a_LIBADD): Likewise.
3384 (libgcj.zip): Likewise.
3385 (CLEANFILES): Likewise.
3386 ($(nat_headers)): Likewise.
3387 (java/lang/FirstThread.h): Likewise.
3388 (java/lang/ThreadGroup.h): Likewise.
3389 (java/lang/String.h): Likewise.
3390 (java/lang/reflect/Field.h): Likewise.
3391 (BUILT_SOURCES): Likewise.
3392 (maintainer-check): Likewise.
3393 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3394 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3396 * java/util/natGregorianCalendar.cc (computeFields): Only use
3397 gmtime_r and localtime_r when configured for posix threads.
3399 * java/io/natFile.cc (get_entry): Only use readdir_r when
3400 configured for posix threads.
3402 * java/util/natGregorianCalendar.cc: Update copyright notice.
3403 * java/util/TimeZone.java: Ditto.
3404 * java/util/SimpleTimeZone.java: Ditto.
3406 1999-02-08 Tom Tromey <tromey@cygnus.com>
3408 * java/io/PrintStream.java (line_separator): New constant.
3409 (print): Use line_separator, not `file.separator' property.
3410 (println): Use line_separator.
3412 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3413 when trying to instantiate Class.
3415 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3416 NullPointerException if argument is null.
3418 * java/lang/Thread.java (setName): Throw NullPointerException, not
3419 IllegalArgumentException.
3422 1999-02-08 Andrew Haley <aph@cygnus.com>
3424 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3425 create new Classes with Class.newInstance().
3427 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3428 semiciolon to end of an array Class's signature if the elements of
3429 the array aren't themselves arrays.
3431 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3432 array of objects is always sizeof(jobject), not the size of the
3433 object to which the reference points.
3435 1999-02-08 Tom Tromey <tromey@cygnus.com>
3437 * java/util/BitSet.java (and): Throw NullPointerException when
3442 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3443 if argument is negative.
3444 (clear): Correctly compute `offset'. Throw
3445 IndexOutOfBoundsException when required.
3447 (get): Likewise. Also, return correct value.
3448 (ensure): Changed meaning of argument.
3449 (toString): Wrap contents in `{}'; put spaces after commas.
3450 (hashCode): Don't try to examine elements off the end of array.
3451 (or): Correctly include bits past the end of this bit set.
3454 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3456 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3457 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3459 1999-02-04 Andrew Haley <aph@cygnus.com>
3461 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3462 '/' in signatures to '.'
3463 (Class::getName): Likewise,
3464 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3466 * java/lang/natFirstThread.cc (run): Change '/' in main's
3469 1999-02-03 Andrew Haley <aph@cygnus.com>
3471 * configure.host: -ffloat-store added when compiling libjava on
3472 x86. fdlibm apparently relies on this.
3474 * java/lang/ThreadGroup.java (add): throw an exception if the
3475 ThreadGroup has been destroyed.
3477 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3480 1999-01-27 Tom Tromey <tromey@cygnus.com>
3482 * java/lang/StringBuffer.java (StringBuffer): Handle null
3485 1999-01-21 Tom Tromey <tromey@cygnus.com>
3487 * java/lang/natFirstThread.cc (run): Don't require main to be
3490 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3492 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3494 1999-01-20 Tom Tromey <tromey@cygnus.com>
3496 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3500 (unintern): Likewise.
3501 (_Jv_NewStringUtf8Const): Likewise.
3503 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3504 Character.isLetter, to see if character is self-quoting. Also,
3505 correctly handle quoted characters.
3506 (parse): Fixed typo. Also now throws ParseException.
3508 1999-01-15 Tom Tromey <tromey@cygnus.com>
3510 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3512 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3513 _Jv_SyncInfo has `init' member.
3515 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3518 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3519 IllegalMonitorStateException if unlock fails.
3521 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3523 (_Jv_NewObjectArray): Likewise.
3525 1999-01-14 Tom Tromey <tromey@cygnus.com>
3527 * java/lang/Character.java (isJavaIdentifierPart): Allow
3528 LETTER_NUMBER characters.
3530 * chartables.pl (process_char): Fixed error messages.
3532 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3533 * chartables.pl: Updated comments. Changed detection of non-digit
3534 numeric values (no longer miss \u00b2 and friends).
3536 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3537 currency symbols and connector punctuation.
3538 (isIdentifierIgnorable): Make 7f-9f ignorable.
3540 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3541 (_Jv_NewPrimArray): Likewise.
3542 (SIZE_T_MAX): New define.
3544 * java/lang/ClassLoader.java (system): Now private and final.
3546 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3549 * configure: Rebuilt.
3550 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3552 * exception.cc: Include gansidecl.h.
3554 1999-01-14 Andrew Haley <aph@cygnus.com>
3556 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3557 corrected: they didn't treat -0.0 and NaNs correctly.
3559 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3561 * nogc.cc: Use calloc to zero out memory.
3563 1999-01-11 Tom Tromey <tromey@cygnus.com>
3565 * java/lang/natClass.cc (isInstance): Return false if this class
3566 is primitive, not if class of `obj' is primitive.
3567 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3569 * java/io/SequenceInputStream.java (close): Handle case where `in'
3572 * java/text/DateFormat.java (format): New method.
3574 * mauve-libjava: Omit java.text.DateFormat.
3576 1999-01-08 Tom Tromey <tromey@cygnus.com>
3578 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3580 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3582 (_Jv_CondNotifyAll): Likewise.
3584 * configure: Rebuilt.
3585 * configure.in: Change --enable-source-compilation logic to work
3588 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3590 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3591 and RUNTESTFLAGS from AM_MAKEFLAGS.
3592 * configure.in: AM_RUNTESTFLAGS added.
3593 * configure.host: AM_RUNTESTFLAGS added.
3594 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3595 * configure: rebuilt.
3596 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3598 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3599 argv[] made conditional because embedded targets may not have
3601 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3602 explanatory comments added in call to super.
3604 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3605 exception thrown in the test harness itself added.
3606 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3608 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3610 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3612 1999-01-06 Tom Tromey <tromey@cygnus.com>
3614 * java/io/natFile.cc (get_entry): New function.
3615 (performList): Use get_entry.
3616 * include/config.h.in: Rebuilt.
3617 * acconfig.h (HAVE_READDIR_R): New define.
3618 * configure: Rebuilt.
3619 * configure.in: Look for readdir_r.
3621 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3623 * java/util/natDate.cc: Added copyright header.
3625 1999-01-05 Tom Tromey <tromey@cygnus.com>
3627 * include/config.h.in: Rebuilt.
3628 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3629 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3630 * configure: Rebuilt.
3631 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3632 unlink, and realpath.
3633 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3634 (stat): Conditionalize on HAVE_STAT.
3636 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3637 (performMkdir): Conditionalize on HAVE_MKDIR.
3638 (performRenameTo): Conditionalize on HAVE_RENAME.
3639 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3641 * include/config.h.in: Rebuilt.
3642 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3643 * configure: Rebuilt.
3644 * configure.in: Check for gmtime_r and localtime_r. For cross
3645 builds, assume they exist.
3647 * mauve-libjava: Include java.text.DateFormatSymbols again.
3648 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3649 from setAmPmStrings.
3651 * mauve-libjava: Omit java.text.DateFormatSymbols.
3653 1999-01-04 Tom Tromey <tromey@cygnus.com>
3655 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3657 * java/io/LineNumberReader.java (read): Decrement `count' in
3660 * java/io/BufferedWriter.java (write): Correctly determine when
3661 incoming data would overrun buffer. Flush buffer if write causes
3664 * java/io/BufferedOutputStream.java (write): Increment `count'
3665 after copying data into buffer.
3667 * java/io/FilterOutputStream.java (close): Call flush first.
3669 * java/io/PipedReader.java (read): If read causes `out' to catch
3670 up with `in', then set `in' to -1.
3672 * java/io/LineNumberInputStream.java (read): If no bytes read,
3673 return -1. If no bytes requested, return 0.
3675 * java/lang/StringBuffer.java (insert): If `str' is null, use
3678 1998-12-30 Anthony Green <green@cygnus.com>
3681 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3683 1998-12-23 Tom Tromey <tromey@cygnus.com>
3685 * java/io/PushbackInputStream.java (read): `off' already includes
3688 1998-12-17 Tom Tromey <tromey@cygnus.com>
3690 * Makefile.in: Rebuilt.
3691 * Makefile.am (GCJ_canadian): Include target_alias.
3693 * java/lang/natFirstThread.cc (run): Require main's class to be
3696 1998-12-16 Tom Tromey <tromey@cygnus.com>
3698 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3700 * java/util/ResourceBundle.java (getBundle): Throw
3701 NullPointerException if locale argument is null.
3703 * java/lang/natClass.cc (forName): Throw NullPointerException if
3705 Include NullPointerException.h.
3707 1998-12-14 Tom Tromey <tromey@cygnus.com>
3709 * java/lang/Character.java (Character): Implement Comparable.
3710 (compareTo): New methods.
3712 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3713 correct country and language codes.
3714 (UK, US): New constants.
3715 (setDefault): Language codes are lower-case.
3717 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3718 (getDeclaredConstructors): Likewise.
3719 (getDeclaredField): Likewise.
3720 (getDeclaredFields): Likewise.
3721 (getDeclaredMethod): Likewise.
3722 (getDeclaredMethods): Likewise.
3723 (getField): Likewise.
3724 (getFields): Likewise.
3725 (getMethod): Likewise.
3726 (getMethods): Likewise.
3727 * java/lang/Class.java: Declare new methods.
3728 * java/lang/Class.h: Declare new methods.
3730 * java/lang/natString.cc: Removed `#pragma implementation'.
3731 * include/cni.h (_Jv_GetStringChars): New function.
3732 * Makefile.in: Rebuilt.
3733 * Makefile.am (java/lang/String.h): Don't generate definition for
3736 * java/lang/natString.cc: Added `#pragma implementation'.
3738 * Makefile.in: Rebuilt.
3739 * Makefile.am (libjava.zip): Put build directory first in class
3740 path to avoid bug in compiler.
3742 1998-12-14 Anthony Green <green@cygnus.com>
3744 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3746 * include/javaprims.h: Add EventObject, ListResourceBundle and
3749 1998-12-13 Anthony Green <green@cygnus.com>
3751 * mauve-libjava: Run the ResourceBundle tests.
3753 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3756 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3758 * configure.in, configure: Make --enable-gcj-classes and
3759 --enable-source-compilation the default. (Nervously...) Yeah!
3760 Based on a patch from Tom Tromey.
3762 1998-12-13 Tom Tromey <tromey@cygnus.com>
3764 * java/util/EventObject.java: New file.
3765 * java/util/EventListener.java: New file.
3767 * include/javaprims.h: Updated class declarations.
3768 * Makefile.in: Rebuilt.
3769 * Makefile.am (nat_headers): Added Constructor.h.
3770 (java/lang/String.h): Don't inline String::length().
3771 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3772 * java/lang/Class.java (initializeClass, hackRunInitializers,
3773 hackTrampoline): No need to mark `final'.
3774 (getConstructor, getConstructors): Declare.
3775 * java/lang/reflect/Field.java (equals): New method.
3776 * java/lang/natClass.cc (getConstructor): New method.
3777 (getConstructors): Likewise.
3778 Include Method.h, Field.h, Constructor.h.
3779 * java/lang/reflect/Constructor.java: New file.
3780 * java/lang/reflect/Method.java (toString): No space before open
3782 (equals): Simplified.
3784 1998-12-13 Anthony Green <green@cygnus.com>
3786 * java/util/ResourceBundle.java: New file.
3787 * java/util/ListResourceBundle.java: New file.
3789 1998-12-12 Tom Tromey <tromey@cygnus.com>
3791 * java/lang/System.java (in, out, err): Now buffered streams by
3794 * include/javaprims.h: Updated class declarations.
3795 * Makefile.in: Rebuilt.
3796 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3797 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3799 (nat_files): Added natMethod.o.
3800 * java/lang/reflect/natMethod.cc: New file.
3801 * java/lang/reflect/Field.java (Field): Now extends
3803 * java/lang/reflect/AccessibleObject.java: New file.
3804 * java/lang/reflect/InvocationTargetException.java: New file.
3806 1998-12-11 Tom Tromey <tromey@cygnus.com>
3808 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3809 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3810 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3812 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3814 1998-12-09 Tom Tromey <tromey@cygnus.com>
3816 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3819 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3820 character is already titlecase.
3822 * java/lang/Character.java (isJavaLetter): Follow spec.
3823 (isJavaLetterOrDigit): Likewise.
3825 * java/util/GregorianCalendar.java (gregorianCutover): Append
3828 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3830 1998-12-08 Tom Tromey <tromey@cygnus.com>
3832 * java/lang/reflect/Modifier.java (toString): Replace second
3833 `static' with `synchronized'.
3835 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3836 * java/lang/Object.h (Object::hack12_6): Declare.
3837 * java/lang/Object.java (hack12_6): New function.
3839 1998-12-07 Tom Tromey <tromey@cygnus.com>
3841 * include/java-array.h (__JArray::clone): Removed decl.
3842 * prims.cc (__JArray::clone): Removed.
3843 * java/lang/natObject.cc (clone): Incorporate code to clone an
3846 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3847 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3848 Correctly use dtable_method_count.
3850 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3852 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3855 1998-12-06 Anthony Green <green@cygnus.com>
3857 * mauve-libjava: Don't test ResourceBundle.
3859 1998-12-04 Tom Tromey <tromey@cygnus.com>
3861 More JDK 1.2 spec fixes:
3862 * java/util/Date.java (millis): Now private.
3863 * java/text/DateFormat.java (DateFormat): Constructor now
3865 * java/lang/Void.java (Void): New private constructor.
3866 * java/lang/System.java (System): New private constructor.
3867 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3869 (currentClassLoader): New method.
3870 (currentLoadedClass): New method.
3871 * java/lang/Math.java (Math): New private constructor.
3872 * java/lang/Compiler.java (Compiler): New private constructor.
3873 * java/lang/Class.java (Class): New private constructor.
3874 * java/lang/Double.java (toString): Removed access specifier from
3875 two-argument `toString' method.
3877 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3879 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3880 causes it to be flushed from an fp register (where it may be
3881 longer than double precision) to a double in memory. This is
3882 essential to ensure correct rounding behaviour.
3884 1998-12-04 Tom Tromey <tromey@cygnus.com>
3886 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3889 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3890 explaining apparent divergence from JDK 1.2.
3892 1998-12-04 Per Bothner <bothner@cygnus.com>
3894 * include/no-threads.h: Remove unused parameter names.
3895 This silences a bunch of warnings.
3897 1998-12-04 Tom Tromey <tromey@cygnus.com>
3899 * include/config.h.in: Rebuilt.
3900 * acconfig.h (HAVE_CTIME_R): New symbol.
3902 1998-12-03 Tom Tromey <tromey@cygnus.com>
3904 * mauve-libjava: Added many more categories to reject.
3906 Changes to follow JDK1.2 spec:
3907 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3908 setErr, setIn, setOut): No need to be `final'.
3909 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3910 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3911 * java/lang/Object.java (wait): `nanos' argument is an int.
3912 * java/lang/VirtualMachineError.java: Class is abstract.
3913 * java/lang/ThreadDeath.java: Made constructors public.
3914 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3917 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3919 * java/text/DateFormatSymbols.java (getAmPmStrings,
3920 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3922 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3924 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3925 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3926 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3929 * java/lang/IllegalThreadStateException.java
3930 (IllegalThreadStateException): Changed extending class to match spec.
3932 * java/lang/NumberFormatException.java
3933 (java/lang/NumberFormatException): Changed extending class to match
3936 * java/util/Observer.java (Observer): Changed sig to match JCL.
3938 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3940 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3941 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3942 signature to match JDK 1.1 and 1.2.
3944 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3946 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3947 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3948 * Makefile.in, configure: Rebuilt.
3950 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3953 1998-12-02 Tom Tromey <tromey@cygnus.com>
3955 * mauve-libjava: New file.
3957 The remaining `-W -Wall' fixes:
3958 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3960 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3962 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3964 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3966 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3968 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3970 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3972 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3974 * java/lang/mprec.c (Balloc): Removed unused variable.
3975 (mult): Added parentheses per gcc suggestion.
3976 (pow5mult): Likewise.
3981 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3982 suggestion. Added cast to `int' to avoid signed/unsigned
3984 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3986 (IsAssignableFrom): Likewise.
3987 (_Jv_JNI_GetObjectField): Likewise.
3988 (_Jv_JNI_GetByteField): Likewise.
3989 (_Jv_JNI_GetShortField): Likewise.
3990 (_Jv_JNI_GetIntField): Likewise.
3991 (_Jv_JNI_GetLongField): Likewise.
3992 (_Jv_JNI_GetStringLength): Likewise.
3993 (_Jv_JNI_ToReflectedField): Likewise.
3994 (_Jv_JNI_FromReflectedField): Likewise.
3995 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3997 * Makefile.in: Rebuilt.
3998 * Makefile.am (AM_CFLAGS): Define conditionally.
3999 (WARNINGS): New macro.
4000 (AM_CXXFLAGS): Include WARNINGS.
4001 * configure: Rebuilt.
4002 * configure.in (USING_GCC): New conditional.
4004 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4006 * java/lang/Character.java: Changed classification constants to
4007 type `byte' to match JDK 1.2 docs.
4009 1998-12-01 Tom Tromey <tromey@cygnus.com>
4011 Some fixes to be `-W -Wall' clean:
4012 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4013 (_Jv_MarkArray): Likewise.
4014 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4015 (to_upper_title): Likewise.
4016 (isTitleCase): Likewise.
4017 (toTitleCase): Likewise.
4018 (getNumericValue): Likewise.
4019 (isLowerCase): Likewise.
4020 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4021 (avoids compiler warning).
4022 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4024 (getDeclaringClass): Likewise.
4025 (_Jv_LookupInterfaceMethod): Likewise.
4026 (_Jv_NewClass): Removed name of unused parameter.
4027 * exception.cc (_Jv_type_matcher): Removed unused variable.
4028 (_Jv_setup_eh_info): Removed name of unused parameter.
4029 * prims.cc (_Jv_NewArray): Always return a value.
4030 (_Jv_FindClassFromSignature): Likewise.
4031 * include/java-field.h (getNameUtf8Const): Removed name of unused
4033 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4035 (_Jv_ThreadSetPriority): Likewise.
4037 * java/lang/natString.cc (hashChars): Now static.
4039 * java/lang/FirstThread.java (FirstThread): Now final.
4041 * java/io/File.java (performMkdir, performRenameTo): Now private.
4043 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4044 if no time function defined.
4046 * configure: Rebuilt.
4047 * configure.in: Look for ctime_r, ctime.
4048 * java/util/Date.java (toString): Now native.
4049 * java/util/natDate.cc (toString): Rewrote.
4051 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4053 * Add LDFLAGS line to allow TX39 test cases to link when cross
4056 1998-11-23 Anthony Green <green@cygnus.com>
4058 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4059 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4060 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4061 include/java-array.h, include/java-assert.h, include/java-field.h,
4062 include/javaprims.h, include/jni.h, include/jvm.h,
4063 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4064 include/quick-threads.h, java/io/BufferedInputStream.java,
4065 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4066 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4067 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4068 java/io/CharArrayWriter.java,
4069 java/io/CharConversionException.java, java/io/DataInput.java,
4070 java/io/DataInputStream.java, java/io/DataOutput.java,
4071 java/io/DataOutputStream.java, java/io/EOFException.java,
4072 java/io/File.java, java/io/FileDescriptor.java,
4073 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4074 java/io/FileOutputStream.java, java/io/FileReader.java,
4075 java/io/FileWriter.java, java/io/FilenameFilter.java,
4076 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4077 java/io/FilterReader.java, java/io/FilterWriter.java,
4078 java/io/IOException.java, java/io/InputStream.java,
4079 java/io/InputStreamReader.java,
4080 java/io/InterruptedIOException.java,
4081 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4082 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4083 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4084 java/io/PipedReader.java, java/io/PipedWriter.java,
4085 java/io/PrintStream.java, java/io/PrintWriter.java,
4086 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4087 java/io/RandomAccessFile.java, java/io/Reader.java,
4088 java/io/SequenceInputStream.java, java/io/Serializable.java,
4089 java/io/StreamTokenizer.java,
4090 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4091 java/io/StringWriter.java, java/io/SyncFailedException.java,
4092 java/io/UTFDataFormatException.java,
4093 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4094 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4095 java/io/natFileDescriptorPosix.cc,
4096 java/lang/AbstractMethodError.java,
4097 java/lang/ArithmeticException.java,
4098 java/lang/ArrayIndexOutOfBoundsException.java,
4099 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4100 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4101 java/lang/Class.java, java/lang/ClassCastException.java,
4102 java/lang/ClassCircularityError.java,
4103 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4104 java/lang/ClassNotFoundException.java,
4105 java/lang/CloneNotSupportedException.java,
4106 java/lang/Cloneable.java, java/lang/Comparable.java,
4107 java/lang/Compiler.java, java/lang/Double.java,
4108 java/lang/Error.java, java/lang/Exception.java,
4109 java/lang/ExceptionInInitializerError.java,
4110 java/lang/FirstThread.java, java/lang/Float.java,
4111 java/lang/IllegalAccessError.java,
4112 java/lang/IllegalAccessException.java,
4113 java/lang/IllegalArgumentException.java,
4114 java/lang/IllegalMonitorStateException.java,
4115 java/lang/IllegalStateException.java,
4116 java/lang/IllegalThreadStateException.java,
4117 java/lang/IncompatibleClassChangeError.java,
4118 java/lang/IndexOutOfBoundsException.java,
4119 java/lang/InstantiationError.java,
4120 java/lang/InstantiationException.java, java/lang/Integer.java,
4121 java/lang/InternalError.java, java/lang/InterruptedException.java,
4122 java/lang/LinkageError.java, java/lang/Long.java,
4123 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4124 java/lang/NoClassDefFoundError.java,
4125 java/lang/NoSuchFieldError.java,
4126 java/lang/NoSuchFieldException.java,
4127 java/lang/NoSuchMethodError.java,
4128 java/lang/NoSuchMethodException.java,
4129 java/lang/NullPointerException.java, java/lang/Number.java,
4130 java/lang/NumberFormatException.java, java/lang/Object.h,
4131 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4132 java/lang/Process.java, java/lang/Runnable.java,
4133 java/lang/Runtime.java, java/lang/RuntimeException.java,
4134 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4135 java/lang/Short.java, java/lang/StackOverflowError.java,
4136 java/lang/String.java, java/lang/StringBuffer.java,
4137 java/lang/StringIndexOutOfBoundsException.java,
4138 java/lang/System.java, java/lang/Thread.java,
4139 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4140 java/lang/Throwable.java, java/lang/UnknownError.java,
4141 java/lang/UnsatisfiedLinkError.java,
4142 java/lang/UnsupportedOperationException.java,
4143 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4144 java/lang/Void.java, java/lang/natCharacter.cc,
4145 java/lang/natClass.cc, java/lang/natDouble.cc,
4146 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4147 java/lang/natMath.cc, java/lang/natObject.cc,
4148 java/lang/natRuntime.cc, java/lang/natString.cc,
4149 java/lang/natSystem.cc, java/lang/natThread.cc,
4150 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4151 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4152 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4153 java/text/FieldPosition.java, java/text/Format.java,
4154 java/text/NumberFormat.java, java/text/ParseException.java,
4155 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4156 java/util/BitSet.java, java/util/Calendar.java,
4157 java/util/ConcurrentModificationException.java,
4158 java/util/Date.java, java/util/Dictionary.java,
4159 java/util/EmptyStackException.java, java/util/Enumeration.java,
4160 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4161 java/util/Locale.java, java/util/MissingResourceException.java,
4162 java/util/NoSuchElementException.java, java/util/Observable.java,
4163 java/util/Observer.java, java/util/Properties.java,
4164 java/util/Random.java, java/util/SimpleTimeZone.java,
4165 java/util/Stack.java, java/util/StringTokenizer.java,
4166 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4167 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4170 * exception.cc: Include eh-common.h instead of duplicating
4173 1998-11-23 Tom Tromey <tromey@cygnus.com>
4175 * configure.host: Don't add `-O2' to libjava_flags. Only add
4176 `-Os' to libjava_flags once.
4178 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4180 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4181 * Makefile.in: likewise
4182 * acconfig.h: add ECOS conditional for configure.h
4183 * config.h.in: likewise
4184 * configure: add test for --with-ecos
4185 * configure.in: likewise
4186 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4187 rename call to avoid name clash.
4188 * java/lang/natSystem.cc: add eCos clock support.
4189 * java/util/natGregorianCalendar.cc: add eCos support.
4191 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4193 * Makefile.am, Makefile.in, configure.host: tx39 build option
4196 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4198 * java/io/BufferedReader.java: Added more comments for clarity.
4199 (mark): Used more mnemonic name for local var extraBuffSpace.
4201 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4202 confusion with private method of same name in superclass.
4203 (skipRedundantLF): Set fields in special case to avoid infinite
4204 recursion. Check if markPos has been invalidated in special case.
4205 (readLine): Rewritten to use readLine method of superclass.
4206 (skip): Incorporated code from lineEnd.
4208 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4210 * java/io/BufferedReader.java (readLine): New method.
4211 (lineEnd): new private method.
4212 (mark): Track special case for readLine of getting '\r' at the
4219 * java/io/InputStreamReader.java (read): Return number chars skipped
4220 rather than requested.
4222 * java/lang/StringBuffer.java (append): Update count and differentiate
4223 between field and local variable.
4225 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4226 seconds. Deal with military style time.
4227 (parse): Consistently treat all timezones in minutes until final
4228 calculation. Flag as non-local timezone. Return value in milliseconds.
4229 (setTime): Adjust for year offset from 1900.
4230 (UTC): Adjust for year offset from 1900.
4232 1998-11-17 Tom Tromey <tromey@cygnus.com>
4234 * configure: Rebuilt.
4235 * configure.in: Switch on host, not target.
4237 * Makefile.in: Rebuilt.
4238 * Makefile.am (GCJ_no): New macro.
4239 (GCJ): Use @CANADIAN@.
4240 (GCJH_no): New macro
4241 (GCJH_canadian): New macro.
4242 (GCJH): Use @CANADIAN@.
4243 (ZIP_no): New macro.
4244 (ZIP_canadian): New macro.
4245 (ZIP): Use @CANADIAN@.
4246 * aclocal.m4, configure: Rebuilt.
4247 * configure.in (CANADIAN): Compute and subst.
4249 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4251 * java/io/FileDescriptor.java (finalize): Only close file
4252 descriptor if valid.
4254 1998-11-17 Tom Tromey <tromey@cygnus.com>
4256 * prims.cc (_Jv_InitRuntime): Removed.
4258 1998-11-16 Tom Tromey <tromey@cygnus.com>
4260 * java/io/FileOutputStream.java (close): Only close file
4261 descriptor if valid.
4262 (finalize): New method.
4264 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4265 (_Jv_NewPrimArray): Likewise.
4266 * boehm.cc (_Jv_RegisterFinalizer): Use
4267 GC_REGISTER_FINALIZER_NO_ORDER.
4268 (GC_GENERIC_MALLOC): New define.
4269 (_Jv_AllocObj): Use it.
4270 (_Jv_AllocArray): Likewise.
4271 (_Jv_AllocBytes): Likewise.
4272 (_Jv_MarkObj): Just return if vtbl not set.
4273 (_Jv_MarkArray): Likewise.
4274 (MAYBE_MARK): New macro; use everywhere.
4275 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4277 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4279 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4280 to a jlong before calculation to prevent overflow.
4282 1998-11-16 Tom Tromey <tromey@cygnus.com>
4284 * Makefile.in: Rebuilt.
4285 * Makefile.am (nat_headers): Fixed typo.
4287 1998-11-15 Tom Tromey <tromey@cygnus.com>
4289 * java/lang/Class.h (Class::getName): Removed definition.
4290 * Makefile.in: Rebuilt.
4291 * Makefile.am (nat_headers): Added InstantiationException.h,
4292 NoSuchMethodException.h.
4293 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4294 (init_name): New global.
4295 (hackRunInitializers): Use clinit_name.
4296 Include InstantiationException.h, NoSuchMethodException.h.
4297 (newInstance): Do some error checking (but not all). Call
4299 (forName): Throw exception if class not found.
4300 (getName): New method.
4301 (forName): Transform class name from external format to internal
4302 format before lookup.
4304 1998-11-15 Anthony Green <green@cygnus.com>
4306 * java/lang/Class.h (Class::forName): Method is static.
4308 * java/lang/natClass.cc (newInstance): Add simple implementation.
4311 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4313 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4314 int), for compatibility with jc1.
4316 1998-11-14 Tom Tromey <tromey@cygnus.com>
4318 * include/config.h.in: Rebuilt.
4319 * acconfig.h (LINUX_THREADS): New define.
4320 * configure: Rebuilt.
4321 * configure.in: Define LINUX_THREADS if using POSIX threads on
4322 Linux. Look for pthread_mutexattr_setkind_np function.
4323 * posix-threads.cc (throw_cleanup): New function.
4324 (really_start): Push cleanup function.
4325 (_Jv_ThreadCancel): New function.
4326 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4327 (_Jv_ThreadInitData): Set `exception' field in new structure.
4328 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4330 (_Jv_ThreadWait): New function.
4331 (_Jv_InitThreads): Initialize daemon globals.
4332 (FLAG_DAEMON): New macro.
4333 (really_start): Notify daemon_cond when non-daemon thread exits.
4334 Include <java/lang/System.h>.
4335 (struct starter): `object' field now a thread.
4336 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4337 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4338 (_Jv_ThreadWait): Removed definition.
4339 (_Jv_Thread_t): Added `exception' field.
4340 (_Jv_ThreadCancel): Removed definition.
4342 1998-11-13 Tom Tromey <tromey@cygnus.com>
4344 * Makefile.in: Rebuilt.
4345 * Makefile.am (libjava.zip): Compute javac before changing
4348 * Makefile.in: Rebuilt.
4349 * Makefile.am (libjava.zip): Include directory entries.
4351 * Makefile.in: Rebuilt.
4352 * Makefile.am (expanded): New macro.
4355 1998-11-12 Tom Tromey <tromey@cygnus.com>
4357 * prims.cc (clone): New function.
4358 * include/java-array.h (__JArray::clone): Removed definition.
4360 * java/lang/natObject.cc (clone): Don't assert that class is not
4361 an array; array's `clone' method just calls this one.
4363 * Makefile.in: Rebuilt.
4364 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4365 Now creates zip file. Changed all users.
4367 (data_DATA): New macro.
4369 1998-11-11 Tom Tromey <tromey@cygnus.com>
4371 * configure: Rebuilt.
4372 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4374 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4376 * java/io/InputStream.java (reset): Add msg to thrown exception.
4378 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4380 * java/io/LineNumberInputStream.java: Rewritten.
4382 * java/io/StringBufferInputStream.java: Removed extraneous import.
4384 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4386 * java/io/StringBufferInputStream.java: Rewritten.
4388 * java/util/Date.java (parseMonth): Optimize.
4389 (parseDayOfWeek): Created.
4390 (parse): Optimize to use parseDayOfWeek.
4392 1998-11-11 Tom Tromey <tromey@cygnus.com>
4394 * java/lang/StringBuffer.java (append): Handle case where STR is
4397 * include/javaprims.h: Regenerated class declarations.
4399 * configure: Rebuilt.
4400 * configure.in: Added --enable-gcj-classes,
4401 --enable-single-compilation, --enable-source-compilation flags.
4402 * Makefile.in: Rebuilt.
4403 * Makefile.am (java_io_files): New macro.
4404 (java_lang_files): Likewise.
4405 (java_text_files): Likewise.
4406 (java_util_files): Likewise.
4407 (java_files): Use new macros.
4408 (java-io.o): New target.
4409 (java-lang.o): Likewise.
4410 (java-text.o): Likewise.
4411 (java-util.o): Likewise.
4412 (src_io_files): New macro.
4413 (src_lang_files): Likewise.
4414 (src_text_files): Likewise.
4415 (src_util_files): Likewise.
4416 (class_io_files): New macro.
4417 (class_lang_files): Likewise.
4418 (class_text_files): Likewise.
4419 (class_util_files): Likewise.
4420 (class_files): Use new macros.
4421 (javao_files): Define conditionally.
4422 (.java.o): New target.
4423 ($(javao_files)): New target.
4425 (GCJH): Added $(EXEEXT).
4426 (CLASSPATH_ENV): Removed.
4427 (GCJCOMPILE): New macro.
4429 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4431 * java/util/Date.java (parse): Written from scratch.
4433 1998-11-11 Tom Tromey <tromey@cygnus.com>
4435 * java/lang/Throwable.java (toString): Correct sense of test for
4436 determining when to include detail message in result.
4438 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4441 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4443 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4445 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4446 (_Jv_RegisterClass): Use it.
4447 * include/jvm.h (_Jv_RegisterClasses): Declare.
4448 * java/lang/natObject.cc (init): Removed.
4449 (sync_init): Never call _Jv_InitializeSyncMutex.
4450 (_Jv_InitializeSyncMutex): Don't set `init'.
4451 * prims.cc (JvRunMain): Don't run init functions.
4453 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4455 * java/lang/natClass.cc (initializeClass): Set state before
4456 resolving constants.
4458 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4459 (STATE_RESOLVED): New macro.
4460 (initializeClass): Call resolveConstants.
4461 (hackRunInitializers): Don't call resolveConstants.
4462 (_Jv_FindArrayClass): Move short-circuit return for primitive
4463 element types earlier in function.
4465 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4467 * prims.cc (no_memory): New global.
4468 (_Jv_makeUtf8Const): Throw no_memory.
4469 (_Jv_AllocObject): Likewise.
4470 (_Jv_NewObjectArray): Likewise.
4471 (_Jv_NewPrimArray): Likewise.
4472 (JvRunMain): Initialize no_memory.
4474 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4476 * java/io/FileInputStream.java: Corrected date comment.
4477 * java/io/SequenceInputStream.java: Rewritten.
4479 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4481 * java/lang/FirstThread.java (die): New method.
4482 * java/lang/natFirstThread.cc (die): Removed.
4484 (run): Use `DIE', not `die'.
4486 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4488 * java/io/CharArrayReader.java (read): Move check into synchronized
4489 block to prevent a close while in progress.
4492 * java/io/PushbackReader.java (read): Ditto.
4495 * java/io/StringReader.java (mark): Ditto.
4500 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4502 * java/io/PipedInputStream.java: Updated status.
4503 (connect): Added code to prevent infinite recursion and to
4504 differentiate exception causes.
4505 (read): Added code to differentiate exception causes.
4506 (receive): Made exception pass string with the cause.
4508 * java/io/PipedOutputStream.java: Updated status.
4509 (connect): Added code to call connect at the other end of the pipe.
4511 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4513 * java/io/PipedInputStream.java (connect): Throw exception if
4514 already connected to the same output stream.
4515 (read): Do bounds checking first.
4517 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4519 * java/io/PipedInputStream.java: Added private boolean outClosed.
4520 (available): Removed check if output stream is open.
4521 (close): Mark the buffer as empty so available returns 0.
4522 (read): Check if the output stream was closed and then return EOF
4523 when the buffer is empty.
4524 (receive): Mark the output stream as closed when passed a -1.
4526 * java/io/PipedOutputStream.java (close): Notify the input stream
4527 that there's no more data coming.
4528 (connect): Added a FIXME comment to note more coordination needed
4529 with PipedInputStream.
4530 (flush): Added a FIXME comment to mark what this method might do
4533 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4535 * java/io/PipedInputStream.java: Rewritten.
4537 1998-10-30 Tom Tromey <tromey@cygnus.com>
4539 * java/lang/Throwable.java: Rewrote from scratch.
4541 * java/lang/Class.h (Class): Don't mention newMultiArray.
4542 * prims.cc (newMultiArray): Removed.
4543 (_Jv_NewMultiArray): Removed.
4544 (newArray): Removed.
4545 (new_multi_array): New function.
4546 (_Jv_NewMultiArray): Rewrote from scratch.
4548 * include/javaprims.h: Regenerated class declarations.
4549 * classes.pl (scan): Don't declare PrimClass.
4550 * include/cni.h (JvPrimClass): Use new names for classes.
4551 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4552 added _Jv_PrimClass.
4553 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4554 (_Jv_initPrimClass): Removed.
4555 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4556 (_Jv_AllocObject): Added comment.
4557 (_Jv_NewObjectArray): Likewise.
4558 (_Jv_NewPrimArray): Likewise.
4560 1998-10-29 Tom Tromey <tromey@cygnus.com>
4562 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4563 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4565 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4567 * java/lang/natObject.cc (init): New global.
4568 (sync_init): Call _Jv_InitializeSyncMutex if required.
4570 * Makefile.in: Rebuilt.
4571 * Makefile.am (nat_headers): Added ClassLoader.h.
4572 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4573 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4574 internalAddClass, lookupArray no longer friends.
4575 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4576 _Jv_FindArrayClass now friends.
4577 * java/lang/natClass.cc (HASH_LEN): New macro.
4578 (HASH_UTF): Likewise.
4579 (loaded_classes): New global.
4580 (_Jv_FindClass): New function.
4581 (ClassClass): New define.
4582 (_Jv_FindClassInCache): New function.
4583 (_Jv_RegisterClass): Likewise.
4584 (_Jv_NewClass): Likewise.
4586 (ObjectClass): New define.
4587 (CloneableClass): New define.
4588 * prims.cc (_Jv_FindClass): Removed.
4589 (simpleLookupClass): Removed.
4590 (insertClass): Removed.
4591 (CLASSHASHSZ): Removed.
4592 (classPool): Removed.
4593 (_Jv_RegisterClass): Removed.
4594 (internalAddClass): Removed.
4595 (ClassClass): Removed.
4596 (RuntimeClass): Removed.
4597 (lookupArray): Removed.
4598 (CloneableClass): Removed.
4599 (CLASSMAXSIG): Removed.
4600 Rearranged file to group related functions together.
4601 (_Jv_IsInstanceOf): Moved to natClass.cc.
4602 (abort_final): Removed.
4603 Removed some unused includes.
4604 (classFromSig): Removed.
4605 (_Jv_FindClassFromSignature): New function.
4606 (_Jv_initPrimClass): Renamed.
4607 (getClass): Removed.
4609 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4611 * java/io/FileDescriptor.java (finalize): Throws IOException
4612 instead of Throwable.
4614 * java/io/FileInputStream.java: Rewritten.
4616 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4617 at the end of a comment.
4619 1998-10-29 Tom Tromey <tromey@cygnus.com>
4621 * include/javaprims.h: Regenerated class declarations.
4622 * classes.pl (scan): Don't special-case ClassLoader.
4624 * prims.cc (processClass): Removed.
4625 (_Jv_InitClass): Removed.
4626 Removed all CSTATE_ macros.
4627 (resolveConstants): Removed.
4629 (_Jv_NewMultiArray): Cleaned up.
4630 * Makefile.in: Rebuilt.
4631 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4632 * java/lang/Class.h (Class): Declare new methods. processClass no
4634 * java/lang/Class.java (hackTrampoline): New method.
4635 (initializeClass): Declare.
4636 (hackRunInitializers): Declare.
4637 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4638 (initializeClass): New method.
4639 (hackRunInitializers): New method.
4640 (init_name, void_signature): Moved from prims.cc.
4641 (_Jv_InitClass): New function.
4642 (isAssignableFrom): Don't call processClass.
4643 (STATE_NOTHING): New macro.
4644 (resolveConstants): New function.
4646 (ErrorClass): New define.
4648 * java/lang/Class.java (getClassLoader): Declare.
4649 * java/lang/ClassLoader.java: Rewrote from scratch.
4651 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4652 AbstractMethodError.h, IllegalAccessError.h,
4653 NoClassDefFoundError.h.
4654 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4655 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4656 longer static. Changed return type.
4657 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4658 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4659 * prims.cc (findMethodLocal): Removed.
4660 (processClass): Use _Jv_GetMethodLocal.
4662 1998-10-28 Tom Tromey <tromey@cygnus.com>
4664 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4665 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4667 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4668 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4670 * include/jni.h: Added copyright header.
4671 * include/javaprims.h: Added copyright header.
4672 * include/java-field.h: Added copyright header.
4673 * include/java-array.h: Added copyright header.
4674 * include/cni.h: Added copyright header.
4676 * include/javaprims.h: Regenerated class declarations using
4677 classes.pl; now they are complete.
4678 * classes.pl: New file.
4680 * java/lang/natMath.cc: Include <config.h>.
4681 * java/lang/reflect/natField.cc: Include <config.h>.
4682 * java/util/NativeUtil.java: Removed.
4683 * Makefile.in: Rebuilt.
4684 * Makefile.am (nat_headers): Added Math.h.
4685 * java/lang/Math.h: Removed.
4686 * java/util/natGregorianCalendar.cc: Added copyright header.
4688 * java/lang/natFloat.cc: Added copyright header.
4689 * java/lang/Byte.java: Added copyright header.
4690 * java/lang/Void.java: Added copyright header.
4691 * java/lang/Short.java: Added copyright header.
4693 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4695 * include/javaprims.h (java::io): Added bunch of missing classes.
4697 * java/io/DataInputStream.java (readLine): Added a special case
4698 for handling BufferedInputStream data to reduce the likelihood
4699 of a pushback error.
4700 (skipBytes): Added code to handle negative number of skip bytes.
4702 * java/io/StreamTokenizer.java: Rewritten.
4704 1998-10-28 Tom Tromey <tromey@cygnus.com>
4706 * java/util/natGregorianCalendar.cc (computeFields): Call
4707 getRawOffset as a method.
4709 * include/javaprims.h (java::io): Added FilterOutputStream.
4710 * Makefile.in: Rebuilt.
4711 * Makefile.am (nat_headers): Added PrintStream.h,
4712 FilterOutputStream.h.
4713 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4715 (die): New function.
4716 (run): Die if `main' not found, is not public, or is not static.
4718 * boehm.cc (_Jv_MarkObj): Use new field names.
4719 * include/java-field.h (JvGetFirstInstanceField): Use new field
4721 (JvNumInstanceFields): Likewise.
4722 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4723 (getInterfaces): Likewise.
4724 * prims.cc (CLASS_CONSTANTS): Removed.
4725 (CLASS_CONST_SIZE): Likewise.
4726 (CLASS_CONST_TAG): Likewise.
4727 (CLASS_CONST_DATA): Likewise.
4728 (CLASS_CONST_UTF8): Likewise.
4729 (WORD2UTF): Likewise.
4730 (CLASS_CLASS): Likewise.
4731 (CLASS_PRIM_SIG): Likewise.
4732 (CLASS_ARRAY_CACHE): Likewise.
4733 (HASH_CHARS): Likewise.
4734 (hashClassName): Likewise.
4735 Many changes to use new field names.
4736 * java/lang/Class.h (Class): Renamed fields to track compiler.
4738 1998-10-27 Tom Tromey <tromey@cygnus.com>
4740 * java/lang/natClass.cc: Use #pragma implementation.
4741 (getComponentType): Moved into header.
4742 (getModifiers): Likewise.
4743 (getName): Likewise.
4744 (getSuperclass): Likewise.
4745 (isArray): Likewise.
4746 (isPrimitive): Likewise.
4747 * include/jvm.h (_Jv_FindClass): Declare.
4748 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4749 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4750 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4751 * java/lang/Class.h: Rewrote from scratch.
4752 * prims.cc: Many changes to work with new Class.h.
4753 * include/java-field.h (CLASS_FIELDS): Removed.
4754 (CLASS_SFIELDS): Likewise.
4755 (CLASS_IFIELDS): Likewise.
4756 (CLASS_NFIELDS): Likewise.
4757 (CLASS_NIFIELDS): Likewise.
4758 (CLASS_NSFIELDS): Likewise.
4759 (CLASS_FSIZE): Likewise.
4760 (JvGetFirstInstanceField): Rewrote.
4761 (JvNumInstanceFields): Likewise.
4763 * java/lang/Object.h: Added copyright comment.
4765 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4767 * java/text: New package directory.
4768 * java/text/FieldPosition.java: New class.
4769 * java/text/ParsePosition.java: New class.
4770 * java/text/ParseException.java: New Exception class.
4771 * java/text/Format.java: New class.
4772 * java/text/NumberFormat.java: New (empty placeholder) class.
4773 * java/text/DateFormatSymbols.java: New class (no Locales support).
4774 * java/text/DateFormat.java: New Format class (incomplete).
4775 * java/text/SimpleDateFormat.java: New DateFormat class.
4777 * include/javaprims.h (java::test): Added new package and classes.
4778 * java/util/Calendar.java (clone): New method.
4779 * java/util/Date.java (toString): Added non-native implementation.
4780 (parse): Made public instead of synchronized.
4781 * java/util/natDate.cc (toString): Removed.
4782 * java/util/natGregorianCalendar.cc (computeFields):
4783 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4785 1998-10-27 Tom Tromey <tromey@cygnus.com>
4787 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4789 * prims.cc (lookupArray): Added explanatory comment.
4790 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4791 class. Mark the class of each object.
4792 (_Jv_MarkArray): Mark the object's class.
4794 * configure: Rebuilt.
4795 * configure.in: Create java-gc.h.
4796 * include/boehm-gc.h: New file.
4797 * include/no-gc.h: New file.
4798 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4800 * java/lang/Object.h: Include java-gc.h.
4801 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4802 friends, if defined.
4803 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4805 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4807 1998-10-26 Tom Tromey <tromey@cygnus.com>
4809 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4810 paragraph separators, not numbers.
4812 * java/io/Writer.java (write): Removed write(char) to avoid
4814 * java/util/Properties.java: Rewrote from scratch.
4815 * include/javaprims.h (java::io): Added PrintWriter,
4816 BufferedWriter, PushbackReader.
4818 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4820 * java/lang/System.java: exit() is a static method.
4822 1998-10-26 Tom Tromey <tromey@cygnus.com>
4824 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4826 (_Jv_NewStringUtf8Const): Likewise.
4827 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4828 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4830 * java/lang/Object.h (Object): Add mark_array as friend function.
4831 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4832 _Jv_AllocBytes, to ensure that header is marked.
4833 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4835 (mark_array): Push sync_info field for array.
4837 1998-10-24 Tom Tromey <tromey@cygnus.com>
4839 * java/lang/String.java (String): Updated for StringBuffer
4841 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4843 * java/lang/StringBuffer.java: Renamed fields to conform to
4844 serialization spec: buffer->value, next->count, copy->shared.
4846 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4848 * java/util/TimeZone.java: New class.
4849 * java/util/SimpleTimeZone.java: New class.
4850 * java/util/Locale.java: New file.
4851 * java/util/Calendar.java: Make almost complete.
4852 * java/util/GregorianCalendar.java
4853 * java/util/natGregorianCalendar.cc: New file.
4854 * java/util/Date.java: Re-written from scratch.
4855 * java/util/natDate.cc (setTime): Removed - no longer native.
4856 * include/javaprims.h (java::util): Add new classes.
4857 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4858 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4860 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4862 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4863 returning it as a jint.
4865 1998-10-23 Tom Tromey <tromey@cygnus.com>
4867 * prims.cc (arg_vec, main_group, main_thread): New globals.
4868 (JvRunMain): Use them.
4870 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4872 * java/io/DataInputStream.java: Rewritten.
4874 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4875 tertiary bytes with 0x80 per spec.
4877 1998-10-23 Tom Tromey <tromey@cygnus.com>
4879 * java/lang/String.java (init): Changed name of `copy' argument.
4880 * java/lang/natString.cc (init): Inverted sense of `copy'
4883 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4884 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4885 * boehm.cc (ObjectClass): New define.
4886 (ClassClass): Likewise.
4887 (mark_obj): Special-case Object and Class.
4889 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4891 * java/util/BitSet.java: Rewrote from scratch.
4893 * prims.cc (lookupArray): Removed useless cast.
4895 * java/lang/natObject.cc: Use `#pragma implementation'.
4897 * java/lang/String.java (init): Added `copy' argument.
4898 (String): Look in StringBuffer to find char array.
4899 * java/lang/natString.cc (init): Added `copy' argument.
4900 * java/lang/StringBuffer.java: Rewrote from scratch.
4902 * java/lang/Compiler.java: Rewrote from scratch.
4903 * java/lang/Throwable.java: Don't use NativeLang.
4904 * include/javaprims.h (java::lang): Don't mention NativeLang.
4905 * java/lang/Process.java: Rewrote from scratch.
4906 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4908 (currentClassLoader): Likewise.
4909 (currentLoadedClass): Likewise.
4910 * java/lang/natClass.cc (getClassLoader): Commented out.
4911 * java/lang/Class.java (getClassLoader): Commented out.
4912 * java/lang/Compiler.java: Removed.
4913 * java/lang/NativeLang.java: Removed.
4915 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4916 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4917 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4918 (_Jv_hashUtf8String): Now static.
4919 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4920 name of return type.
4922 * java/lang/Class.h (Class): Declare checkMemberAccess.
4923 * Makefile.in: Rebuilt.
4924 * Makefile.am (nat_headers): Added Member.h.
4925 * java/lang/natClass.cc: Include Member.h.
4926 (getDeclaredClasses): Call checkMemberAccess.
4927 * java/lang/Class.java (checkMemberAccess): Call
4928 SecurityManager.checkMemberAccess.
4930 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4932 * java/lang/SecurityManager.java: Rewritten.
4934 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4936 * java/applet/Applet.java, java/applet/AppletContext.java,
4937 java/applet/AppletStub.java, java/applet/AudioClip.java,
4938 java/awt/AWTError.java, java/awt/AWTException.java,
4939 java/awt/BorderLayout.java, java/awt/Button.java,
4940 java/awt/Canvas.java, java/awt/CardLayout.java,
4941 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4942 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4943 java/awt/Color.java, java/awt/Component.java,
4944 java/awt/Container.java, java/awt/Dialog.java,
4945 java/awt/Dimension.java, java/awt/Event.java,
4946 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4947 java/awt/Font.java, java/awt/FontMetrics.java,
4948 java/awt/Frame.java, java/awt/Graphics.java,
4949 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4950 java/awt/GridLayout.java, java/awt/Image.java,
4951 java/awt/Insets.java, java/awt/Label.java,
4952 java/awt/LayoutManager.java, java/awt/List.java,
4953 java/awt/MediaTracker.java, java/awt/Menu.java,
4954 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4955 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4956 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4957 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4958 java/awt/TextArea.java, java/awt/TextComponent.java,
4959 java/awt/TextField.java, java/awt/Toolkit.java,
4960 java/awt/Window.java, java/awt/image/ColorModel.java,
4961 java/awt/image/CropImageFilter.java,
4962 java/awt/image/DirectColorModel.java,
4963 java/awt/image/FilteredImageSource.java,
4964 java/awt/image/ImageConsumer.java,
4965 java/awt/image/ImageFilter.java,
4966 java/awt/image/ImageObserver.java,
4967 java/awt/image/ImageProducer.java,
4968 java/awt/image/IndexColorModel.java,
4969 java/awt/image/MemoryImageSource.java,
4970 java/awt/image/PixelGrabber.java,
4971 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4972 java/awt/peer/CanvasPeer.java,
4973 java/awt/peer/CheckboxMenuItemPeer.java,
4974 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4975 java/awt/peer/ComponentPeer.java,
4976 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4977 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4978 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4979 java/awt/peer/MenuBarPeer.java,
4980 java/awt/peer/MenuComponentPeer.java,
4981 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4982 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4983 java/awt/peer/TextAreaPeer.java,
4984 java/awt/peer/TextComponentPeer.java,
4985 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4986 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4987 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4988 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4989 java/net/MalformedURLException.java, java/net/NativeNet.java,
4990 java/net/ProtocolException.java, java/net/ServerSocket.java,
4991 java/net/Socket.java, java/net/SocketException.java,
4992 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4993 java/net/URL.java, java/net/URLConnection.java,
4994 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4995 java/net/URLStreamHandlerFactory.java,
4996 java/net/UnknownHostException.java,
4997 java/net/UnknownServiceException.java: Removed.
4999 1998-10-22 Tom Tromey <tromey@cygnus.com>
5001 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5002 finalizer is not Object.finalize.
5003 (internalAddClass): Don't set `final' member of class.
5004 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5005 other places that know about finalize() location.
5006 * java/lang/Class.h (Class): Removed `final' field.
5008 * aclocal.m4, configure: Rebuilt.
5009 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5010 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5012 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5013 * Makefile.in: Rebuilt.
5014 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5016 1998-10-21 Tom Tromey <tromey@cygnus.com>
5018 * java/lang/Object.java (finalize): Move to be first method in
5021 * configure: Rebuilt.
5022 * configure.in (GCINCS): Include contents of boehm-cflags file.
5024 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5026 * java/lang/ArrayIndexOutOfBoundsException.java
5027 (ArrayIndexOutOfBoundsException): Fixed string literal.
5028 * java/lang/StringIndexOutOfBoundsException.java
5029 (StringIndexOutOfBoundsException): Fixed string literal.
5031 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5033 * natFileDescriptorEcos.cc added.
5034 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5036 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5038 * acconfig.h: test for __int32_t and __uint32_t added.
5039 * include/config.h.in: test for __int32_t and __uint32_t added.
5040 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5041 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5042 * configure.in: test for __int32_t and __uint32_t added.
5043 * configure: test for __int32_t and __uint32_t added.
5045 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5047 * configure.in: Test for --enable ecos and link
5048 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5049 natFileDescriptorPosix.cc
5051 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5053 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5055 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5058 * java/io/CharArrayReader.java (close): Synchronize on lock
5059 object per Reader contract.
5060 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5061 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5062 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5063 Ensure that arg passed in isn't negative.
5065 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5066 constructing the superclass.
5068 * java/io/PushbackReader.java (close): Synchronize on lock
5069 object per Reader contract.
5070 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5071 (ready): Synchronize on lock obj. Throw IOException if reader
5073 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5074 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5075 Ensure that arg passed in isn't negative.
5076 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5078 * java/io/StringReader.java: Created.
5080 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5082 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5084 (read): Removed synchronized modifier to match JCL.
5085 (reset): Removed synchronized modifier to match JCL.
5086 (skip): Removed synchronized modifier to match JCL.
5088 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5090 * java/io/PushbackReader.java (PushbackReader): Made
5091 constructors public.
5093 1998-10-17 Tom Tromey <tromey@cygnus.com>
5095 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5096 constructors public.
5098 1998-10-16 Anthony Green <green@cygnus.com>
5100 * aclocal.m4, configure: Rebuilt.
5101 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5103 * configure.host: Rewrote.
5104 * Makefile.in: Rebuilt.
5105 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5106 (AM_CFLAGS): New macro.
5107 ($(c_files)): Use COMPILE macro.
5108 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5109 automake problem(s).
5111 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5113 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5115 * java/io/CharArrayReader.java: Created.
5117 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5119 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5120 size check to allow 0 per JCL.
5122 * java/io/PushbackReader.java: Created.
5124 1998-10-16 Tom Tromey <tromey@cygnus.com>
5126 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5127 <sys/time.h> includes.
5128 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5129 * include/no-threads.h: Conditionalize <unistd.h> include on
5132 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5134 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5137 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5139 * java/io/FilterReader.java: Created.
5141 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5143 * java/io/PushbackInputStream.java: Rewritten.
5145 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5146 that size passed to constructor is legal.
5147 (read): Check that args passed in are legal.
5148 (skip): Rewritten to get rid of the temporary buffer.
5149 (refill): Added marklimit check to grow the buffer.
5151 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5153 (bytesAvail): Removed.
5154 (read): Changed bytesAvail to Math.min.
5155 (skip): Changed bytesAvail to Math.min.
5157 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5158 from the throws clause.
5159 (skip): Rewritten to use a temporary buffer.
5161 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5163 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5166 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5168 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5169 to write the double one word at a time.
5171 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5173 * java/io/BufferedInputStream.java: Rewritten.
5175 1998-10-12 Tom Tromey <tromey@cygnus.com>
5177 * jni.cc: Include config.h and stddef.h.
5179 * java/lang/Class.h (_dispatchTable): Removed again.
5180 Removed all ACC_* defines again.
5182 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5184 * Makefile.am (nat_files): Add netField.o.
5185 (libjava_a_SOURCES): Add jni.cc.
5186 (java/lang/reflect/Field.h): New rule.
5187 * Makefile.in: Re-generated.
5188 * include/javaprims.h: Add some extra class and typedefs.
5189 * include/jni.h: New file.
5192 * include/java-field.h: New file.
5193 * include/jvm.h: #include <java-field.h>.
5194 * boehm.cc: #include <java-field.h>.
5195 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5196 * java/lang/reflect/Member.java: New class.
5197 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5198 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5200 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5202 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5203 testsuite/Makefile.in: Rebuilt.
5204 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5205 * configure.host: Created.
5207 1998-10-10 Tom Tromey <tromey@cygnus.com>
5209 * java/lang/natObject.cc (sync_init): Always allocate a new
5212 1998-10-09 Tom Tromey <tromey@cygnus.com>
5214 * java/io/ByteArrayInputStream.java (mark): Renamed from
5217 * java/io/FileOutputStream.java (finalize): Removed.
5218 * java/io/FileDescriptor.java (finalize): New method.
5220 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5222 * ByteArrayInputStream.java: Corrected status comment.
5224 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5226 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5228 1998-10-08 Tom Tromey <tromey@cygnus.com>
5230 * prims.cc (lookupArray): Use static array to initialize list of
5233 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5235 * prims.cc (lookupArray): Initialize the msize for new
5238 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5240 * configure: Rebuilt.
5241 * configure.in: Check for fsync and sleep.
5242 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5244 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5245 HAVE_SLEEP. Include config.h.
5247 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5248 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5251 1998-10-08 Tom Tromey <tromey@cygnus.com>
5253 * java/io/natFile.cc: Don't include SecurityManager.h.
5254 (performList): Renamed.
5255 (performMkdir): Likewise.
5256 (performRenameTo): Likewise.
5257 (performDelete): Likewise.
5259 * java/io/File.java (performDelete): Renamed from natDelete.
5260 (list): Now written in Java.
5261 (performList): New method.
5262 (performMkdir): New method.
5263 (mkdir): Now written in Java.
5264 (performRenameTo): New method.
5265 (renameTo): Now written in Java.
5267 1998-10-06 Tom Tromey <tromey@cygnus.com>
5269 * Makefile.in: Rebuilt.
5270 * Makefile.am (ETAGS_ARGS): New macro.
5271 (TAGS_DEPENDENCIES): Likewise.
5273 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5275 * Makefile.in: Rebuilt.
5276 * Makefile.am: Use -classpath option with javac.
5278 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5280 * java/io/FileOutputStream.java (finalize): Call
5283 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5285 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5287 * java/lang/mprec.c: Ditto.
5289 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5292 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5294 * java/io/InputStream.java (skip): Make local var i a long.
5296 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5298 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5299 * prims.cc (lookupArray): Use memcpy, not memmove.
5300 * include/config.h.in: Rebuilt.
5301 * acconfig.h (HAVE_MEMCPY): Added.
5302 * configure: Rebuilt.
5303 * configure.in: Check for memcpy again.
5305 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5306 String.compareTo, not ==.
5308 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5309 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5310 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5311 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5312 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5313 into new array's dtable.
5314 (_Jv_AllocObject): Use _Jv_DispatchTable.
5315 (_Jv_NewPrimArray): Likewise.
5316 (_Jv_NewObjectArray): Likewise.
5318 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5320 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5321 offending index value.
5322 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5324 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5325 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5327 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5329 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5331 * java/io/OutputStream.java (write): Use off and len parameters to
5332 output partial byte array.
5334 * java/io/BufferedReader.java, java/io/FileReader.java,
5335 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5336 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5337 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5338 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5340 * include/javaprims.h (java::lang): Added
5341 ExceptionInInitializerError, IllegalStateException,
5342 NoSuchFieldException, and UnsupportedOperationException.
5344 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5346 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5349 * include/java-array.h (__JArray): Added clone method.
5350 * prims.cc (CloneableClass): New define.
5351 (lookupArray): Initialize array class to indicate that it
5352 implements Cloneable.
5354 * java/lang/Class.h: Removed all ACC_* defines.
5355 * prims.cc: Include Modifier.h.
5356 (_Jv_LookupInterfaceMethod): Use methods in
5357 java.lang.reflect.Modifier, not ACC_ defines.
5359 * java/lang/Class.h (Class): Declare getClasses,
5360 getDeclaredClasses, getDeclaringClass, getModifiers,
5361 * java/lang/Class.java: Rewrote from scratch.
5363 * include/javaprims.h (java::lang): Added reflect and
5365 * Makefile.in: Rebuilt.
5366 * Makefile.am (nat_headers): Added Modifier.h.
5368 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5371 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5373 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5374 instead of test and abort.
5376 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5377 remove compiler warning.
5379 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5381 * java/lang/natDouble.cc: zero terminate string.
5382 * strtod.c: Set errno if no digits are found in fraction.
5384 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5386 * java/lang/reflect/Modifier.java: New file.
5388 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5389 * java/lang/VerifyError.java: Rewrote from scratch.
5390 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5391 * java/lang/UnknownError.java: Rewrote from scratch.
5392 * java/lang/StackOverflowError.java: Rewrote from scratch.
5393 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5394 * java/lang/InternalError.java: Rewrote from scratch.
5395 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5396 * java/lang/ExceptionInInitializerError.java: New file.
5397 * java/lang/Error.java: Rewrote from scratch.
5398 * java/lang/ClassFormatError.java: Rewrote from scratch.
5399 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5400 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5401 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5402 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5403 * java/lang/LinkageError.java: Rewrote from scratch.
5404 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5406 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5408 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5409 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5411 * include/cni.h (JvAllocObject): Moved from prims.cc.
5413 * prims.cc (JvAllocObject): Moved to cni.h.
5414 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5415 (finalize_name): Removed.
5417 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5419 * java/lang/Class.h (Class): Added size() method.
5420 * prims.cc (_Jv_MonitorEnter): Removed.
5421 (_Jv_MonitorExit): Removed.
5422 * java/lang/Object.h (JvSyncInfo): Removed.
5423 * Makefile.in: Rebuilt.
5424 * Makefile.am (nat_headers): Added Cloneable.h,
5425 CloneNotSupportedException.h.
5426 * java/lang/Object.h: Rewrote.
5427 * java/lang/natObject.cc: Rewrote from scratch.
5428 * java/lang/Object.java: Rewrote from scratch.
5430 * java/io/natFile.cc: Conditionally include <dirent.h>.
5431 (list): If no <dirent.h>, always return NULL.
5432 * configure: Rebuilt.
5433 * configure.in: Check for dirent.h.
5435 * prims.cc (lookupArray): Don't use sprintf.
5437 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5444 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5445 name conflict with method.
5447 * include/javaprims.h (java::util): Added HashtableEntry.
5449 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5451 * java/util/Hashtable.java: Rewritten.
5453 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5455 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5459 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5462 * posix-threads.cc (_Jv_CondWait): Now returns int.
5463 * include/javaprims.h (java::lang): Added
5464 IllegalMonitorStateException.
5465 * Makefile.in: Rebuilt.
5466 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5467 * include/no-threads.h (_Jv_CondDestroy): Removed.
5468 (_Jv_MutexDestroy): Removed.
5469 (_Jv_CondWait): Now returns int.
5470 (_Jv_CondNotify): Likewise. Added mutex argument.
5471 (_Jv_CondNotifyAll): Likewise.
5472 (_Jv_MutexLock): Always succeed.
5473 (_Jv_MutexUnlock): Likewise.
5474 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5475 (_Jv_HaveMutexDestroy): Define.
5476 (_Jv_CondNotify): Now returns int. Added mutex argument.
5477 (_Jv_CondNotifyAll): Likewise.
5478 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5479 (_Jv_MutexDestroy): Removed.
5480 (_Jv_CondWait): Now returns int.
5481 (_Jv_CondNotify): Likewise. Added mutex argument.
5482 (_Jv_CondNotifyAll): Likewise.
5483 * java/lang/natObject.cc (finalize_sync_info): New function.
5484 (init_mutex): Initialize `init' and register finalizer if
5487 (init_mutex): Use it.
5489 (notifyAll): Use it.
5491 (notify): Throw IllegalMonitorStateException on failure.
5492 (notifyAll): Likewise.
5493 (wait): Likewise. Also, throw InterruptedException if
5495 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5496 InterruptedException.h, IllegalArgumentException.h.
5497 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5499 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5500 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5501 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5502 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5503 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5504 * quick-threads.cc: Renamed all `JvPriv' functions.
5505 * prims.cc: Renamed all `JvPriv' functions.
5506 * posix-threads.cc: Renamed all `JvPriv' functions.
5507 * nogc.cc: Renamed all `JvPriv' functions.
5508 * no-threads.cc: Renamed all `JvPriv' functions.
5509 * boehm.cc: Renamed all `JvPriv' functions.
5510 * include/quick-threads.h: Renamed all `JvPriv' functions.
5511 * include/posix-threads.h: Renamed all `JvPriv' functions.
5512 * include/no-threads.h: Renamed all `JvPriv' functions.
5513 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5515 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5517 (JvPrivCondNotify): Do nothing.
5518 (JvPrivCondNotifyAll): Do nothing.
5520 * prims.cc (processClass): Handle case where state is
5523 * java/lang/natFirstThread.cc: Include <stdlib.h>
5525 * configure: Rebuilt.
5526 * configure.in: Fixed sense of --enable-libjava-debug.
5528 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5529 it can be used afterward by the assertion.
5531 * configure: Rebuilt.
5532 * configure.in: When cross-compiling, assume alloca.
5534 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5535 __builtin_alloca (autoconf docs are wrong here).
5537 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5539 (available): Use `FD_ZERO' (typo fix).
5541 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5543 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5544 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5546 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5547 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5550 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5552 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5554 * java/lang/natDouble.cc: Declare alloca safely.
5556 * configure, include/config.h.in: Rebuilt.
5557 * configure.in: Add alloca check.
5559 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5561 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5562 condition while calling notify.
5563 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5564 (interrupt): Hold mutex for interrupt condition while calling
5567 * java/lang/natString.cc (init): Allocate and try to read `count'
5568 characters, not `count - offset' characters.
5570 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5571 Correctly compute `count'.
5573 * java/lang/Boolean.java (getBoolean): Return false if property
5576 * java/lang/System.java (setProperties): Set prop_init.
5578 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5580 * java/io/PrintStream.java (println): Use line.separator, not
5582 * java/lang/System.java (out, err): Make both autoflush streams.
5583 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5585 * include/config.h.in: Rebuilt.
5586 * acconfig.h (HAVE_MEMCPY): Removed.
5587 * configure: Rebuilt.
5588 * configure.in: Never define HAVE_MEMCPY.
5590 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5592 (_Jv_AllocString): Use JvAllocObject again.
5593 * java/lang/Class.h (thread): New field.
5594 (_Jv_AllocString): No longer a friend.
5595 * prims.cc (processClass): Removed dead code. Changed to more
5596 closely follow the Java Language Specification.
5597 (processClass): Return early if already at the right state.
5599 * prims.cc (JvNewStringUTF): Removed.
5600 * include/cni.h (JvNewStringUTF): New function.
5601 (_Jv_NewStringUTF): Declare as `extern "C"'.
5602 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5604 * java/lang/natDouble.cc: Added copyright info and header
5605 comment. Include <stdlib.h>.
5606 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5607 bytes as are chars in string.
5609 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5611 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5615 * java/lang/System.java (init_properties): Now native.
5616 * java/lang/natSystem.cc (init_properties): New method.
5617 Include java/util/Properties.h.
5619 * Makefile.in: Rebuilt.
5620 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5621 OutputStreamWriter.h, ByteArrayInputStream.h,
5622 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5623 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5624 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5625 Properties.h, Hashtable.h, Dictionary.h.
5628 * include/javaprims.h (java::io): Added Reader, Writer,
5629 InputStreamReader, OutputStreamWriter,
5630 UnsupportedEncodingException, ByteArrayInputStream,
5631 ByteArrayOutputStream, EOFException, SyncFailedException,
5632 PushbackInputStream.
5633 (java::lang): Added Cloneable.
5634 (java::util): Added NoSuchElementException, VectorEnumeration,
5635 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5637 * java/io/PipedReader.java: New file.
5639 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5641 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5644 * java/io/io-defs.h: Removed.
5646 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5647 (FileInputStream): Use new constructor. Can throw IOException.
5649 * java/lang/System.java (getProperty): Don't throw
5650 NullPointerException.
5652 * java/io/RandomAccessFile.java: Rewrote from scratch.
5654 * java/io/natFileDescriptor.cc: Include EOFException.h.
5656 (length): New method.
5657 (getFilePointer): New method.
5659 (available): New method.
5660 * java/io/FileDescriptor.java (SET, CUR): New constants.
5661 (seek, length, getFilePointer, read, available): New decls.
5663 * java/io/PipedWriter.java: New file.
5664 * java/io/StringWriter.java: New file.
5665 * java/io/CharArrayWriter.java: New file.
5666 * java/io/CharConversionException.java: New file.
5667 * java/io/BufferedWriter.java: New file.
5668 * java/io/FilterWriter.java: New file.
5669 * java/io/FileWriter.java: New file.
5671 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5672 OutputStreamWriter.h, NullPointerException.h,
5673 ByteArrayInputStream.h, InputStreamReader.h.
5674 (getBytes): New method.
5675 (init): Throw NullPointerException.
5676 (init): New function.
5677 * java/lang/String.java (getBytes): Added missing decl.
5678 (getBytes): New method.
5679 (String): Added byte[]-based constructors.
5680 (copyValueOf): Wrote.
5681 (init): Declare variant which takes byte array and encoding.
5682 Import java.io.UnsupportedEncodingException.
5684 * java/io/File.java: Rewrote from scratch.
5685 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5686 * java/io/FileDescriptor.java: Rewrote from scratch.
5687 * java/io/FilenameFilter.java: Rewrote from scratch.
5689 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5691 * java/io/SyncFailedException.java: New file.
5692 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5693 * java/io/InterruptedIOException.java: Rewrote from scratch.
5694 * java/io/FileNotFoundException.java: Rewrote from scratch.
5695 * java/io/EOFException.java: Rewrote from scratch.
5696 * java/io/IOException.java: Rewrote from scratch.
5697 * java/io/PrintStream.java: Rewrote from scratch.
5698 * java/io/DataOutputStream.java: Rewrote from scratch.
5699 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5700 * java/io/FilterOutputStream.java: Rewrote from scratch.
5701 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5702 * java/io/PipedOutputStream.java: Rewrote from scratch.
5703 * java/io/FileOutputStream.java: Rewrote from scratch.
5704 * java/io/OutputStream.java: Rewrote from scratch.
5705 * java/io/DataOutput.java: Rewrote from scratch.
5707 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5709 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5711 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5713 * configure.in: Add --enable-libjava-debug
5715 * Makefile.am (nat_headers): Add java/lang/Float.h and
5718 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5720 * Makefile.in, configure, include/config.h.in: Rebuilt.
5722 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5724 * java/lang/Float.java: Rewritten
5725 * java/lang/Double.java: Rewritten
5726 * java/lang/natFloat.cc: toString() added.
5727 * java/lang/natDouble.cc: toString() added.
5728 * java/lang/natDouble.cc: doubleValueOf() added.
5729 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5730 java/lang/strtod.c: added.
5731 * ieeefp.h: __sparc added.
5732 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5734 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5736 * include/javaprims.h (java::lang): Added
5737 CloneNotSupportedException.
5739 * java/lang/Object.java (clone): No longer native. Implemented.
5740 * java/lang/natObject.cc (clone): Removed.
5742 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5744 * prims.cc: Don't make definitions `extern "C"'.
5745 (_Jv_RegisterClass): Renamed from registerClass.
5746 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5747 (_Jv_NewArray): Likewise.
5748 (_Jv_NewMultiArray): Likewise.
5749 (_Jv_CheckCast): Likewise.
5750 (_Jv_LookupInterfaceMethod): Likewise.
5751 (_Jv_CheckArrayStore): Likewise.
5752 (_Jv_RegisterClass): Likewise.
5754 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5755 * configure: Rebuilt.
5756 * configure.in: Don't check for fmod; it is provided by the fdlibm
5758 * prims.cc (fmod): Removed.
5760 * java/lang/natString.cc (charAt): Use _Jv_uint.
5761 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5762 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5763 (equalUtf8Consts): Likewise.
5764 (internalAddClass): Use _Jv_uint.
5765 (processClass): Likewise.
5766 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5767 (_Jv_uint): Renamed from uint32.
5768 (struct _Jv_Utf8Const): Changed members to use new type names.
5770 * configure: Rebuilt.
5771 * configure.in: Don't check for memcpy. Require memmove and a way
5773 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5775 (currentTimeMillis): Don't use #error.
5777 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5779 * java/lang/Math.java: static member random renamed to random_ to
5780 avoid conflict with member function of the same name.
5781 * include/javaprims.h: java.util.Random added.
5783 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5785 * include/java-chartables.h: Regenerated.
5786 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5789 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5791 * java/lang/Math.java: Rewritten.
5792 * java/lang/natMath.cc: New file.
5793 * Files added from fdlibm:
5794 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5795 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5796 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5797 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5798 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5799 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5800 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5801 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5802 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5803 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5804 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5805 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5806 java/lang/k_cos.c, java/lang/sf_ceil.c,
5807 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5808 java/lang/ieeefp.h, java/lang/fdlibm.h
5809 * Makefile.am: rules added for compiling C files from fdlibm.
5811 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5813 * chartables.pl: Minor documentation fixes.
5815 * configure: Rebuilt.
5816 * configure.in: Fixed --help output for --enable-fast-character.
5818 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5820 * configure: Rebuilt.
5821 * configure.in: Recognize --enable-fast-character.
5822 * acconfig.h (COMPACT_CHARACTER): New define.
5823 * include/config.h.in: Rebuilt.
5824 * include/java-chartables.h: New file.
5825 * Makefile.in: Rebuilt.
5826 * Makefile.am (nat_files): Added natCharacter.o.
5827 * java/lang/natCharacter.cc: New file.
5828 * chartables.pl (set_attribute): New function.
5829 (@attributes, @second_attributes): New globals.
5830 ($ROMAN_START, $ROMAN_END): Likewise.
5831 (process_char): Call set_attribute when required.
5832 (print_char): Just print hex value.
5833 (print_block): Generate C++ syntax.
5834 (print_numerics): Likewise.
5835 (print_single_map): Likewise.
5836 (print_all_block): Likewise.
5837 (print_case_table): Likewise.
5838 (print_fast_tables): New function.
5839 Generate C++ code suitable for a header file.
5840 * java/lang/Character.java (table_search): Removed.
5841 (digit_value): Now native.
5842 (getNumericValue): Likewise.
5843 (getType): Likewise.
5844 Removed all automatically-generated tables.
5845 (Tamil_Digit_One): Removed.
5846 (isSpaceChar): Now native.
5847 (isTitleCase): Likewise.
5848 (isLowerCase): Likewise.
5849 (isUpperCase): Likewise.
5850 (toLowerCase): Likewise.
5851 (toTitleCase): Likewise.
5852 (toUpperCase): Likewise.
5853 (isDefined): Fixed sense of test.
5855 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5857 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5859 (regionMatches): Likewise.
5861 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5863 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5865 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5867 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5870 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5873 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5875 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5877 * prims.cc (instanceof_class): Removed.
5878 (instanceof_array): Likewise.
5879 (instanceof): Likewise.
5880 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5881 (_Jv_CheckCast): Likewise.
5882 * java/lang/natClass.cc (isAssignableFrom): New method.
5883 * java/lang/Class.java (isAssignableFrom): Now native.
5885 * include/cni.h (JvThrow): Use `extern inline'.
5886 (JvAllocObject): Likewise.
5887 (JvInitClass): Likewise.
5889 * java/lang/natSystem.cc (arraycopy): Only check class of source
5892 * prims.cc (_Jv_CheckArrayStore): Wrote.
5893 (_Jv_MonitorEnter): Prefer `JvThrow'.
5894 Include ArrayStoreException.h.
5895 (_Jv_CheckCast): Indentation cleanup.
5897 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5899 * chartables.pl: New file.
5900 * java/lang/Character.java: Rewrote from scratch.
5902 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5904 * java/lang/ArithmeticException.java,
5905 java/lang/ArrayIndexOutOfBoundsException.java,
5906 java/lang/ArrayStoreException.java,
5907 java/lang/ClassCastException.java,
5908 java/lang/ClassNotFoundException.java,
5909 java/lang/CloneNotSupportedException.java,
5910 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5911 java/lang/IllegalArgumentException.java,
5912 java/lang/IllegalMonitorStateException.java,
5913 java/lang/IllegalThreadStateException.java,
5914 java/lang/IndexOutOfBoundsException.java,
5915 java/lang/InstantiationException.java,
5916 java/lang/InterruptedException.java,
5917 java/lang/NegativeArraySizeException.java,
5918 java/lang/NoSuchMethodException.java,
5919 java/lang/NullPointerException.java,
5920 java/lang/NumberFormatException.java,
5921 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5922 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5924 * java/lang/IllegalStateException.java,
5925 java/lang/NoSuchFieldException.java,
5926 java/lang/UnsupportedOperationException.java: Created.
5928 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5930 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5931 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5933 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5935 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5937 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5939 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5941 * Makefile.in: Rebuilt.
5943 * include/javaprims.h (java::lang): Added
5944 StringIndexOutOfBoundsException.
5946 * java/lang/String.java: Added header comment and FIXME comment for
5947 missing constructors/methods.
5948 (endsWith): Adjusted offset into string to look at just the last chars.
5949 Commented out undocumented method.
5951 * java/lang/natString.cc: Added includes for
5952 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5953 (String::init): Throw StringIndexOutOfBoundsException.
5954 (String::charAt): Throw StringIndexOutOfBoundsException.
5955 (String::substring): Throw StringIndexOutOfBoundsException.
5956 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5957 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5958 (String::compareTo): Return difference/offset between chars/strings.
5960 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5962 * java/lang/Boolean.java (TYPE): Added comment.
5964 * java/lang/Byte.java (decode): Added - commented out until dependent
5965 code for Integer is written.
5966 (compareTo): JDK 1.2 methods written.
5967 (hashCode): Added comment to note that values have been verified.
5969 * java/lang/Short.java (decode): Added - commented out until dependent
5970 code for Integer is written.
5971 (compareTo): JDK 1.2 methods written.
5972 (hashCode): Added comment to note that values have been verified.
5974 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5976 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5978 * include/javaprims.h (java::lang): Added VirtualMachineError,
5980 * Makefile.in: Rebuilt.
5981 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5982 VirtualMachineError.h.
5983 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5984 (lookupArray): Likewise.
5985 (makeUtf8Const): Likewise.
5986 (_Jv_AllocObject): Likewise.
5987 (_Jv_NewObjectArray): Likewise.
5988 Include OutOfMemoryError.h.
5990 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5991 to use JvNewStringLatin1.
5993 * java/io/io-defs.h: Include java/lang/IOException.h.
5994 * Makefile.in: Rebuilt.
5995 * Makefile.am (nat_headers): Added
5996 ArrayIndexOutOfBoundsException.h,
5997 ClassFormatError.h,ClassNotFoundException.h,
5998 ClassCircularityError.h, ClassCastException.h,
5999 IncompatibleClassChangeError.h, AbstractMethodError.h,
6000 IllegalAccessError.h, LinkageError.h, Error.h,
6001 NegativeArraySizeException.h, IOException.h.
6002 * include/cni.h (SignalError): Removed declaration.
6003 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6004 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6005 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6006 (newInstance): Likewise.
6007 (forName): Likewise.
6008 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6010 (read): Use JvThrow, not SignalError.
6015 (open_read): Likewise.
6016 (open_write): Likewise.
6019 (newstr): New function.
6020 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6022 (lastModifiedUnchecked): Likewise.
6023 (lengthUnchecked): Likewise.
6024 * include/javaprims.h (sorry): Removed declaration.
6025 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6026 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6027 ClassCastException, IncompatibleClassChangeError,
6028 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6029 * prims.cc (instanceof_array): Use JvFail, not sorry.
6031 Include ArrayIndexOutOfBoundsException.h,
6032 ClassFormatError.h,ClassNotFoundException.h,
6033 ClassCircularityError.h, ClassCastException.h,
6034 IncompatibleClassChangeError.h, AbstractMethodError.h,
6035 IllegalAccessError.h, NegativeArraySizeException.h.
6036 (_Jv_ThrowBadArrayIndex): Implemented.
6037 (JvNewStringUTF): Use JvFail, not sorry.
6038 (_Jv_FindClass): Likewise.
6039 (_Jv_NewArray): Likewise.
6040 (throwException): Removed.
6041 (getClass): Use JvThrow.
6042 (processClass): Likewise.
6043 (_Jv_NewObjectArray): Likewise.
6044 (_Jv_NewMultiArray): Likewise.
6045 (_Jv_CheckCast): Likewise.
6046 (_Jv_LookupInterfaceMethod): Likewise.
6047 (SignalError): Removed.
6048 (getClass): Use _Jv_NewStringUtf8Const to create String.
6050 * java/lang/natSystem.cc (arraycopy): Throw
6051 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6053 * Makefile.in: Rebuilt.
6054 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6056 * include/java-array.h: Mention gcjh, not gjavah.
6058 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6059 (canReadUnchecked): Likewise.
6060 (canWriteUnchecked): Likewise.
6061 (isFileUnchecked): Likewise.
6062 * java/io/natFileDescriptor.cc: Don't include cni.h.
6064 * java/lang/Thread.java (run__): Declare.
6065 * java/lang/natThread.cc (run__): New method, to avoid compiler
6067 (start): Use run__, not run_.
6069 * java/io/io-defs.h: Include cni.h and jvm.h.
6071 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6073 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6074 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6075 to natString.cc (with suitable renaming, inlines etc).
6076 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6077 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6078 * java/lang/String.h: Removed - now generated using gjavah.
6079 * java/lang/String.java: Re-written from scratch. Many native methods.
6080 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6081 * java/lang/natString.cc: Many functions re-written for "compact
6082 strings" representation, or native java.lang.String methods added.
6083 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6084 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6085 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6086 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6087 * include/cni.h: Add inline method.
6088 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6089 * include/javaprims.h: Moved some stuff frm String.h.
6090 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6091 * Makefile.am (nat_header): Added Character.h and String.h.
6092 (String.h): Add new rule.
6094 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6096 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6098 * posix-threads.cc: Include cni.h, jvm.h.
6099 * quick-threads.cc: Include cni.h, jvm.h.
6100 * nogc.cc: Include cni.h, not javaprims.h.
6101 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6102 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6103 include java-assert.h.
6104 * java/lang/natSystem.cc: Include cni.h. Don't include
6106 * java/lang/natRuntime.cc: Include cni.h. Don't include
6108 * prims.cc: Rearranged #include ordering. Don't include
6109 java-array.h or java-assert.h.
6110 * boehm.cc: Include config.h, cni.h.
6111 * exception.cc: Include config.h, cni.h.
6112 * include/jvm.h: Include java-assert.h.
6113 * include/cni.h: Include java/lang/Object.h. Don't include
6114 java-threads.h or java-array.h.
6116 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6118 * java/lang/Boolean.java: Rewritten.
6120 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6122 * java/lang/natFirstThread.cc (main_func): New typedef.
6123 (run): Use main_func, not JvPrivThreadStartFunc.
6124 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6126 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6128 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6131 Can't throw Java exceptions with C++ `throw':
6132 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6133 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6134 (setPriority): Likewise.
6138 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6139 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6141 Can't catch Java exceptions from C++:
6142 * java/lang/natThread.cc (finish_): New method.
6144 * java/lang/Thread.java (run_): Rewrote in Java.
6145 (finish_): New native method.
6147 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6149 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6151 * include/javaprims.h (java::io): Added Serializable.
6153 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6155 * java/util/EmptyStackException.java,
6156 java/util/NoSuchElementException.java: Rewritten.
6158 * java/util/ConcurrentModificationException.java,
6159 java/util/MissingResourceException.java,
6160 java/util/TooManyListenersException.java: Created.
6162 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6164 * include/cni.h (JvThrow): New function.
6165 * include/javaprims.h (_Jv_Throw): Declare.
6167 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6169 * java/util/Observable.java: Rewritten.
6171 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6173 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6174 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6175 Include NullPointerException.h.
6177 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6179 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6180 assignability checks. Don't bother using memcpy.
6182 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6184 * include/quick-threads.h (JvPrivThreadWait): New function.
6185 * include/no-threads.h (JvPrivThreadWait): New function.
6186 * include/posix-threads.h (JvPrivThreadWait): New function.
6187 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6189 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6191 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6192 offsets by size of type that is being copied.
6194 * java/lang/natThread.cc (start): Don't pass `object' argument to
6196 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6197 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6199 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6200 always pass thread as object.
6201 * include/quick-threads.h, include/posix-threads.h,
6202 include/no-threads.h (JvPrivThreadStart): Removed `object'
6205 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6207 * java/util/Dictionary.java: Rewritten.
6209 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6211 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6212 (JvPrivThreadDestroy): Likewise.
6214 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6216 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6218 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6220 * java/lang/natSystem.cc: Rewrote from scratch.
6221 * java/lang/System.java: Rewrote from scratch.
6222 * java/lang/Class.h (Class): Declare isAssignableFrom.
6223 * include/javaprims.h (java::lang): Added ArrayStoreException,
6224 IndexOutOfBoundsException.
6225 * Makefile.in: Rebuilt.
6226 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6227 IndexOutOfBoundsException.h.
6228 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6229 * include/jvm.h (_Jv_HashCode): New function.
6231 * java/lang/natThread.cc (suspend): Call checkAccess.
6233 * java/lang/Thread.java (setDaemon): Call checkAccess.
6235 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6237 * java/lang/Runtime.java: Rewrote from scratch.
6238 * java/lang/natRuntime.cc: Rewrote from scratch.
6240 * nogc.cc (JvPrivGCTotalMemory): New function.
6241 (JvPrivGCFreeMemory): Likewise.
6242 (total): New global.
6243 (JvPrivAllocObj): Increment total.
6244 (JvPrivAllocArray): Likewise.
6245 (JvPrivAllocBytes): Likewise.
6246 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6247 * boehm.cc (JvPrivGCTotalMemory): New function.
6248 (sum_blocks): Likewise.
6249 (JvPrivGCFreeMemory): Likewise.
6251 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6253 * include/javaprims.h (java::lang): Added FirstThread.
6254 * java/lang/natFirstThread.cc: New file.
6255 * java/lang/FirstThread.java: New file.
6256 * prims.cc (main_signature): Removed.
6257 (main_name): Removed.
6258 #include FirstThread.h.
6259 * Makefile.in: Rebuilt.
6260 * Makefile.am (TFRIEND): Removed.
6261 (java/lang/Thread.h): Likewise.
6262 (FTFRIEND): New macro.
6263 (java/lang/FirstThread.h): New target.
6264 (nat_files): Added natFirstThread.o.
6265 (nat_headers): Added FirstThread.h.
6266 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6267 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6269 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6273 * java/lang/natThread.cc (start): Synchronize the thread.
6274 (stop): Synchronize the thread.
6276 * java/lang/ThreadDeath.java: Rewrote from scratch.
6278 * Makefile.in: Rebuilt.
6279 * Makefile.am (TGFRIEND): New macro.
6280 (java/lang/ThreadGroup.h): New target.
6281 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6283 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6285 * nogc.cc: Include config.h.
6287 * java/lang/ThreadGroup.java: Rewrote from scratch.
6289 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6291 * java/lang/Thread.java (checkAccess): Only call in to security
6292 manager if it exists.
6293 (Thread): Don't check access when creating the first thread. Add
6294 this thread to the appropriate ThreadGroup.
6296 * java/lang/natThread.cc (run_): Call uncaughtException method on
6299 * java/lang/Runnable.java: Rewrote from scratch.
6300 * java/lang/Thread.java: Updated copyright comment to correct
6303 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6305 * java/util/Random.java: Rewritten.
6307 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6309 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6310 trailing 0 in array[].
6312 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6314 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6315 and RUNTESTFLAGS from AM_MAKEFLAGS.
6316 (SUBDIRS): Conditionally include testsuite.
6317 * Makefile.in: Rebuilt.
6319 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6321 * java/lang/Object.h: Include java-assert.h.
6323 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6325 * Makefile.am: Add testsuite directory.
6326 * configure.in: Build testsuite/Makefile.
6327 * Makefile.in, configure: Rebuilt.
6329 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6331 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6332 * include/jvm.h (_Jv_StartFirstThread): Declare.
6334 * include/javaprims.h (java::lang): Added Exception,
6337 * Makefile.in: Rebuilt.
6338 * Makefile.am (nat_headers): Added NullPointerException.h,
6339 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6340 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6341 (java/lang/Thread.h): New target.
6342 (TFRIEND): New macro
6344 * include/java-assert.h (JvFail): Use 0 and not NULL.
6346 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6347 instead of assuming we are a friend of Thread.
6348 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6349 instead of assuming we are a friend of Thread.
6351 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6353 * java/lang/natThread.cc: Rewrote from scratch.
6354 * java/lang/Thread.java: Rewrote from scratch.
6355 * prims.cc (JvRunMain): Use new Thread constructor.
6356 * include/javaprims.h (java::lang): Added InterruptedException.
6357 * Makefile.in: Rebuilt.
6358 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6359 * java/lang/Thread.h: Removed.
6360 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6361 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6363 * posix-threads.cc (JvPrivThreadJoin): Removed.
6364 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6365 (really_start): Don't notify join_cond.
6366 (JvPrivThreadStart): Added `data' argument.
6367 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6368 (JvPrivThreadJoin): Likewise.
6369 Use JvFail instead of sorry.
6370 (JvPrivThreadSuspend): Removed.
6371 (JvPrivThreadResume): Removed.
6372 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6373 (JvPrivThreadJoin): Likewise.
6374 (JvPrivThreadSuspend): Use JvFail.
6375 (JvPrivThreadResume): Likewise.
6376 (JvPrivThreadSuspend): Removed.
6377 (JvPrivThreadResume): Likewise.
6378 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6379 (JvPrivThread_t): Removed join_mutex, join_cond.
6380 Use JvFail instead of sorry.
6381 (JvPrivThreadSuspend): Removed.
6382 (JvPrivThreadResume): Likewise.
6384 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6386 * java/util/Observer.java: Rewritten
6387 * java/util/Enumeration.java: Rewritten
6389 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6391 * java/util/StringTokenizer.java: Rewritten
6392 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6393 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6394 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6396 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6398 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6401 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6402 Include java-assert.h.
6403 * include/java-assert.h: New file.
6404 * prims.cc (_Jv_Abort): New function.
6405 Include java-assert.h, not assert.h.
6406 (_Jv_MonitorExit): Use JvAssert.
6407 (resolveConstants): Likewise.
6408 (processClass): Likewise.
6409 (JvRunMain): Assert that method is found.
6411 * configure: Rebuilt.
6412 * configure.in: Check for test subdir.
6413 * Makefile.in: Rebuilt.
6414 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6416 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6417 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6419 * prims.cc (resolveConstants): Removed unused variables.
6420 (processClass): Likewise.
6422 * include/quick-threads.h (JvPrivThreadCurrent): Use
6424 * quick-threads.cc (destroy_data): New function.
6425 (JvPrivInitThreads): Create key.
6426 (JvPrivThreadKey): New global.
6427 (JvPrivThreadStart): Use coop_setspecific.
6429 * include/quick-threads.h, include/posix-threads.h,
6430 include/no-threads.h, no-threads.cc, quick-threads.cc,
6431 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6433 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6435 * include/no-threads.h (JvPrivThreadInitData): Don't set
6438 * include/quick-threads.h (JvPrivCondWait): coop function now
6440 (JvPrivThreadJoin): Likewise.
6442 * java/lang/Thread.h (Thread): Updated declaration of
6444 * include/quick-threads.h, include/posix-threads.h: Updated
6445 declaration of JvPrivThreadStart.
6446 * include/no-threads.h (JvPrivThreadStart): Changed definition
6448 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6449 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6450 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6452 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6454 * quick-threads.cc (qthrow): New function.
6455 (JvPrivInitThreads): New function.
6456 (started): New global.
6457 (JvPrivThreadStart): Call coop_start if required.
6458 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6459 (JvPrivThreadDestroy): Likewise.
6460 (JvPrivInitThreads): Removed.
6461 * include/posix-threads.h (JvPrivThreadCancel): Added error
6463 * java/lang/natThread.cc (stop_): Pass exception to
6466 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6468 * include/javaprims.h (java::lang): Added
6469 IllegalArgumentException, IllegalThreadStateException, Math,
6470 NullPointerException, ThreadDeath.
6471 (java::util): Added Enumeration.
6473 * Makefile.in: Rebuilt.
6474 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6476 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6478 (threadsv): Renamed from threads to avoid clash in C++ header.
6479 (groupsv): Likewise.
6480 * include/no-threads.h (JvPrivThreadStart): Removed.
6481 * no-threads.cc (JvPrivThreadStart): New function.
6482 * java/lang/Thread.java (Thread): New constructor for internal use.
6483 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6484 (Thread): Declare constructor.
6485 * prims.cc (JvRunMain): Create the initial Thread and
6487 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6488 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6489 Removed `daemon' argument.
6491 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6492 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6494 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6496 * Makefile.in: Rebuilt.
6497 * Makefile.am (INCLUDES): Include THREADINCS.
6499 * configure: Rebuilt.
6500 * configure.in: Recognize `qt' as a threads package.
6502 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6504 * java/util/Stack.java (pop): Null out topmost node for robustness.
6506 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6508 * java/util/Stack.java: Rewritten.
6509 * java/util/Vector.java (isEmpty): Simplified expression.
6511 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6513 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6514 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6516 * include/java-array.h (JvNewObjectArray): Created inline to
6519 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6522 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6524 * java/util/Vector.java: Rewritten.
6525 * java/io/Serializable.java: Created.
6527 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6529 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6530 Infinity is 1/0, not 1/1.
6532 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6534 * configure: Rebuilt.
6535 * configure.in: Removed duplicate AC_ARG_WITH.
6537 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6539 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6541 (_Jv_InitClass): Renamed from soft_initialise_class.
6542 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6543 (_Jv_CheckCast): Renamed from soft_checkcast.
6544 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6545 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6546 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6547 * include/cni.h (JvInitClass): New function.
6548 (_Jv_InitClass): Renamed from soft_initialise_class.
6550 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6552 * configure: Rebuilt.
6553 * configure.in (CXX): Don't set.
6554 * Makefile.in: Rebuilt.
6555 * Makefile.am (AM_CXXFLAGS): New macro.
6557 * Makefile.in: Rebuilt.
6558 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6559 nogc.o): New target.
6561 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6563 (mark_array): Likewise.
6565 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6567 * java/lang/Class.h (JvMethod): Removed some unused fields.
6568 (JvField.info): Removed unused idx union variant.
6570 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6572 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6575 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6577 * configure.in, configure (CXX): Add -fvtable-thunks.
6579 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6581 * java/lang/Object.java (finalize): Move first.
6582 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6583 (Object): Re-arrange order to match Object.java.
6585 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6587 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6588 * java/lang/natString.cc (hashChars): Likewise.
6590 * prims.cc (RuntimeClass): New macro.
6591 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6593 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6595 * Makefile.in: Rebuilt.
6596 * Makefile.am (AM_MAKEFLAGS): New macro.
6598 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6600 * nogc.cc: Include <javaprims.h>.
6602 * Makefile.in: Rebuilt.
6603 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6605 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6607 * exception.cc (terminate): Removed.
6608 (unexpected): Removed.
6610 * configure: Rebuilt.
6611 * configure.in: Handle case where target subdir is ".".
6613 * configure: Rebuilt.
6614 * configure.in: Compute COMPPATH based on --with-target-subdir
6615 option. Added --with-target-subdir and --with-cross-host. Use
6616 --with-cross-host to determine when a cross compiler is in use.
6618 * Makefile.in: Rebuilt.
6619 * Makefile.am (GJAVAH): Include COMPPATH.
6620 * configure: Rebuilt.
6621 * configure.in: Subst COMPPATH.
6623 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6625 * prims.cc (lockMutex): Removed.
6626 (unlockMutex): Likewise.
6627 (processClass): Lock the class using a JvSynchronize object.
6629 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6631 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6632 (gc_free_fixed): Removed.
6633 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6634 freeing old value of strhash.
6636 * exception.cc (_Jv_type_matcher): Cast first argument to
6639 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6641 * include/java-array.h (jstringArray): New type.
6642 * java/lang/natSystem.cc (setProperty): Removed.
6643 (initProperties): Directly call JvNewStringLatin1 for arguments.
6644 * java/util/natDate.cc: Include java/util/Date.h, not
6647 * java/io/FileDescriptor.java (available): No longer static.
6648 * java/lang/natDouble.cc (Double): Removed class definition.
6649 * include/javaprims.h (java::lang::Number): Declare.
6650 (java::lang::NumberFormatException): Likewise.
6651 (java::io::FilenameFilter): Likewise.
6652 (java::lang::Character): Likewise.
6653 (java::lang::Error): Likewise.
6654 (java::lang::SecurityManager): Likewise.
6655 (java::util::Vector): Likewise.
6656 (java::io::FileNotFoundException): Likewise.
6657 (java::io::IOException): Likewise.
6658 (java::lang::NativeLang): Likewise.
6659 (java::lang::UnsatisfiedLinkError): Likewise.
6660 (java::util::StringTokenizer): Likewise.
6661 (java::io::InputStream, java::io::OutputStream): Likewise.
6662 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6663 (java::util::Hashtable): Likewise.
6664 * Makefile.in: Rebuilt.
6665 * Makefile.am (nat_headers): Added java/lang/Double.h,
6666 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6667 (MOSTLYCLEANFILES): Added nat_headers.
6668 * include/jvm.h: Moved many defines, declarations, and functions
6669 to java/lang/Class.h.
6670 (struct JvSyncInfo): Moved to java/lang/Object.h.
6671 (UTF8_GET): Moved to java/lang/String.h.
6673 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6675 * java/io/io-defs.h: Don't include java-io.h.
6676 * include/java-io.h: Removed.
6677 * include/javaprims.h: Include java::io.
6679 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6681 * include/java-io.h (File): Removed
6682 (FileDescriptor): Likewise.
6684 * java/io/io-defs.h: Include java/io/File.h and
6685 java/io/FileDescriptor.h.
6687 * Makefile.in: Rebuilt.
6688 * Makefile.am (GJAVAH): New macro.
6689 (.class.h): New rule.
6690 (SUFFIXES): Added .h.
6691 (nat_headers): New macro.
6692 ($(nat_headers)): New target.
6693 (BUILT_SOURCES): Added nat_headers.
6695 * include/java-util.h: Removed.
6697 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6699 * include/java-io.h: Changed to avoid java-lang.h.
6700 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6702 * java/lang/natSystem.cc: Include java/lang/System.h, not
6704 * java/lang/natString.cc: Include java/lang/String.h, not
6706 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6708 * java/lang/natClass.cc: Include java/lang/Class.h, not
6710 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6712 * java/lang/natObject.cc: Include java/lang/Object.h, not
6714 * exception.cc: Don't include java-lang.h.
6715 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6716 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6717 * nogc.cc: Don't include java-lang.h.
6718 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6719 * prims.cc (processClass): Don't use `init_type'; just cast to
6721 Include java/lang/Class.h and jvm.h, not java-lang.h.
6722 (JvAllocObject): Wrote single-argument version.
6723 (PrimClass): Inherit from Class.
6724 (initPrimClass): Removed.
6725 * include/java-lang.h: Removed.
6726 * include/jvm.h: Declare struct _dispatchTable.
6727 * include/cni.h: Don't declare _Jv_MonitorEnter,
6728 _Jv_MonitorExit, struct _dispatchTable.
6729 * include/javaprims.h: Moved all typedefs here, from cni.h.
6730 * java/lang/Class.h: New file.
6731 * include/java-array.h: New file.
6732 * java/lang/Object.h: New file.
6734 * prims.cc (classFromSig): Now static.
6736 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6738 * include/cni.h: Don't mention soft_new.
6739 * include/java-lang.h (Object): Don't mention soft_new. Mention
6740 _Jv_NewPrimArray, not newPrimArray.
6741 * prims.cc (soft_new): Removed.
6742 (_Jv_NewArray): Renamed from soft_newarray.
6743 (soft_anewarray): Use JvNewObjectArray.
6744 (newArray): Likewise.
6745 (newRefArray): Removed.
6746 (_Jv_NewPrimArray): Renamed from newPrimArray.
6747 (equalUtf8Consts): Now static.
6748 (soft_instanceof): Removed.
6749 * java/lang/natDouble.cc (doubleToString): Now static.
6751 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6752 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6755 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6757 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6759 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6761 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6762 (JvPrivMutexUnlock): Likewise.
6763 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6764 Return value now jint.
6765 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6768 * Makefile.in: Rebuilt.
6769 * Makefile.am: Don't allow `jV' names.
6770 (maintainer-check): Depend on libjava.a.
6771 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6773 * Makefile.in: Rebuilt.
6774 * Makefile.am (NM): New macro.
6775 (maintainer-check): New target.
6777 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6779 * configure: Rebuilt.
6780 * configure.in: Use --enable-threads, not --enable-gc. Fix
6781 documentation for --enable-threads. Changed option to work like
6782 identical option in gcc/configure.
6784 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6786 * boehm.cc (mark_array): Use JvGetArrayLength.
6788 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6790 * exception.cc: New file (mostly written by Andrew MacLeod),
6791 exception handling support.
6792 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6793 Remove -fexceptions - it is now the default.
6795 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6796 (JvAllocObject): Renamed to _Jv_AllocObject.
6797 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6798 (loadClass): Renamed to _Jv_FindClass.
6799 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6800 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6801 * include/java-lang.h (JvGetArrayLength): New CNI function.
6802 * include/jvm.h (_Jv_FindClass): Added declaration.
6804 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6806 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6808 * java/lang/natClass.cc (getName): Add implementation.
6809 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6811 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6813 * Makefile.in: Rebuilt.
6814 * Makefile.am (.class.o): Added -fexceptions.
6816 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6818 * configure: Rebuilt.
6819 * configure.in: Don't check for __nanosleep.
6820 * posix-threads.cc (nanosleep): Never define.
6822 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6824 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6827 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6829 * java/lang/natThread.cc (enumerate): Uncommented.
6830 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6831 (interrupt): Call it.
6833 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6835 * configure: Rebuilt.
6836 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6838 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6840 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6841 * include/java-lang.h (Thread): Added `interrupted_' method.
6842 * java/lang/Thread.java (interrupted_): New method.
6843 * java/lang/natThread.cc (join): Possibly throw interrupted
6844 exception after join finishes.
6845 (interrupted_): New method.
6846 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6848 (JvPrivThreadJoin): New function.
6849 (really_start): Notify all threads waiting for this thread.
6850 (struct starter): Added `data' member.
6851 (JvPrivThreadStart): Set it.
6852 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6854 (JvPrivThreadJoin): No longer inline.
6855 (JvPrivThreadInterrupt): New function.
6857 * include/no-threads.h (JvPrivThreadSleep): Removed.
6858 * posix-threads.cc (JvPrivThreadSleep): Removed.
6860 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6862 * configure: Rebuilt.
6863 * configure.in (THREADOBJS): Initialize to no-threads.o in
6865 * posix-threads.cc (key): New global.
6866 (JvPrivInitThreads): New function.
6867 (really_start): Set thread-specific data to point to object.
6868 (JvPrivThreadStart): Added `daemon' argument.
6869 (JvPrivThreadSleep): Added `data' argument.
6870 * include/posix-threads.h (JvPrivInitThreads): Removed
6872 (JvPrivThreadCurrent): New function.
6873 * include/no-threads.h (JvPrivThreadInitData): Initialize
6874 JvPrivOnlyThread. Added `thread' argument.
6875 (JvPrivThreadCurrent): New function.
6876 (JvPrivThreadStart): Added `daemon' argument.
6877 * no-threads.cc: New file.
6878 * java/lang/natThread.cc (init_data): New function.
6880 (start): Set `alive' member.
6881 (stop_): Clear `alive' member.
6882 (destroy): Likewise.
6883 (currentThread): Implemented.
6884 (start): Pass `daemon' argument to JvPrivThreadStart.
6886 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6887 (Thread): Added `init_data' method.
6888 * java/lang/Thread.java (alive, data): New instance variables.
6889 (init_data): New private method.
6890 (isAlive): No longer native.
6892 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6894 * include/java-lang.h (JvRunMain): Declare.
6895 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6896 * prims.cc (JvRunMain): New function.
6897 (main_signature, main_name): New globals.
6899 * boehm.cc (mark_array): Use `elements' function and not
6900 operator[] on jarray.
6902 * posix-threads.cc: Include <config.h>. Define nanosleep if
6905 * configure: Rebuilt.
6906 * configure.in: Check for _nanosleep.
6908 * configure: Rebuilt.
6909 * configure.in: Check for pthread_mutexattr_settype.
6911 * include/cni.h (class JvSynchronize): New class.
6912 * java/lang/Thread.java (sleep): Throws InterruptedException.
6913 (join): Throws InterruptedException.
6914 (resume): Not native.
6915 (resume_): New method.
6916 (start): Now synchronized.
6917 (stop_): New method.
6918 (Thread): Synchronize when accessing threadNumber.
6920 * java/lang/natThread.cc (throwException): New macro.
6921 (sleep): Throw InterruptedException.
6924 * include/java-lang.h (Runtime): Added interrupted().
6926 * boehm.cc (call_finalizer): Correctly initialize jobj.
6927 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6929 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6932 * configure: Rebuilt.
6933 * configure.in: Added support for --disable-threads.
6934 * include/no-threads.h: New file.
6936 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6938 * Makefile.in: Rebuilt.
6939 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6940 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6941 (libjava_a_LIBADD): Added THREADOBJS.
6942 * configure: Rebuilt.
6943 * configure.in: Added --with-threads option.
6944 * posix-threads.cc: New file.
6945 * include/posix-threads.h: New file.
6946 * include/java-lang.h (Object): Added static member sync_mutex,
6947 member sync_info, method init_mutex.
6948 (struct JvSyncInfo): New struct.
6949 Include "java-threads.h".
6950 * prims.cc (soft_monitorenter): Wrote.
6951 (soft_monitorexit): Likewise.
6952 * java/lang/natObject.cc (init_mutex): New method.
6956 (sync_mutex): Define.
6957 Include "java-threads.h".
6959 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6961 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6962 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6964 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6966 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6967 Added extern "Java" in places to tell G++ Object is a "Java" type.
6968 Other minor renaming and fixes.
6969 * include/java-io.h (FileDescriptor): Add friend class declarations.
6970 G++ no longer allows non-Java types in method parameters and results
6971 of Java classes. Converted most offending methods to friends.
6972 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6973 * java/lang/natSystem.cc (setProperty): Make friend.
6974 * java/lang/natString.cc, include/java-lang.h (String): Rename
6975 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6976 * include/java-lang.h (JArray): Remove getData and eoprator[].
6977 Add elements friend function instead.
6978 * java/lang/natSystem.cc (arraycopy): Use elements function.
6979 * java/io/natFileDescriptor.cc (read, write): Likewise.
6980 * include/java-lang.h (Object): Remove unused make method.
6981 (System::setProperty(char*,char*)): Turn into friend function.
6982 (Class): Rename newObject by JvAllocObject.
6983 * prims.cc: Update to use JvAllocObject, and elements.
6985 * java/lang/natDouble.cc: Fix double -> jdouble.
6987 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6989 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6991 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6993 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6994 * include/java-lang.h (Runtime): finalize_on_exit and
6995 runFinalizersOnExit now static.
6996 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6998 (finalize_on_exit): Now static.
7000 * boehm.cc (mark_obj): Get class using getClass() method on
7002 (_dispatchTable): Removed.
7004 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7006 * java/io/natFileDescriptor.cc (open_read): Only call open if
7008 (open_write): Likewise.
7010 * Makefile.in: Rebuilt.
7011 * Makefile.am ($(nat_files)): Depend on config.h.
7013 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7015 * prims.cc (ObjectClass): Now a macro; updated for new class name
7017 (StringClass): Likewise.
7018 (ClassClass): Likewise.
7020 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7022 * java/io/natFileDescriptor.cc (available): Do nothing unless
7023 HAVE_SELECT defined.
7024 * java/util/natDate.cc (setTime): Conditional on
7026 (toString): Conditional on HAVE_TIME.
7027 * aclocal.m4, configure: Rebuilt.
7028 * acinclude.m4: New file.
7029 * configure.in: Don't actually call AM_EXEEXT. Call
7030 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7031 --with-target-subdir option. Check for select and open
7034 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7036 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7037 (call_finalizer): Likewise.
7038 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7039 * prims.cc (newObject): Pass actual method pointer to
7040 JvPrivRegisterFinalizer.
7041 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7042 (JvPrivRegisterFinalizer): Changed interface.
7044 * Makefile.in: Rebuilt.
7045 * Makefile.am (MOSTLYCLEANFILES): New macro.
7046 (CLEANFILES): Removed javao_files.
7048 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7050 * nogc.cc: New file.
7051 * Makefile.in: Rebuilt.
7052 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7053 (EXTRA_libjava_a_SOURCES): New macro.
7054 (libjava_a_SOURCES): Removed boehm.cc.
7055 (libjava_a_DEPENDENCIES): Added GCOBJS.
7056 (libjava_a_LIBADD): Likewise.
7057 * configure: Rebuilt.
7058 * configure.in: Added code for --enable-gc=TYPE.
7060 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7062 * boehm.cc (mark_array): Don't further dereference pointer from
7065 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7066 * Makefile.in: Rebuilt.
7067 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7068 one for boehm-gc build directory.
7070 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7072 * include/java-lang.h (finalize_on_exit): New instance variable in
7073 java::lang::Runtime.
7074 (runFinalizersOnExit): New method.
7075 * java/lang/Runtime.java (finalize_on_exit): New instance
7077 (runAllFinalizers_): New private method.
7078 (runFinalizersOnExit): New method.
7079 * boehm.cc (JvPrivRunFinalizers): New function.
7080 (JvPrivRunAllFinalizers): Likewise.
7081 (JvPrivRunGC): Likewise.
7082 * java/lang/natRuntime.cc: Include "jvm.h".
7083 (gc): Call JvPrivRunGC.
7084 (runFinalization): Call JvPrivRunFinalizers.
7085 (runFinalizersOnExit): New method.
7086 (exit_): Call JvPrivRunAllFinalizers if required.
7087 * include/jvm.h: Declare JvPrivRunFinalizers,
7088 JvPrivRunAllFinalizers, JvPrivRunGC.
7090 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7092 * boehm.cc (JvPrivRegisterFinalizer): New function.
7093 (call_finalizer): Likewise.
7094 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7095 * prims.cc (finalize_name): New global.
7096 (newObject): Just call other newObject.
7097 (newObject): Register finalizer if it exists.
7099 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7101 * prims.cc (gc_malloc): Removed.
7102 (makeUtf8Const): Use JvPrivAllocBytes.
7103 (lookupArray): Likewise.
7104 (newPrimArray): Likewise.
7105 (JvNewObjectArray): Use JvPrivAllocArray.
7106 (newObject): Use JvPrivAllocObj.
7107 (newObject): Likewise.
7108 Changed Method -> JvMethod everywhere.
7109 Changed Field -> JvField everywhere.
7110 * include/java-lang.h (Object): Changed type of `fields' to
7112 (jmethodID, jfieldID): New typedefs.
7113 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7115 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7117 (METHOD_NATIVECODE): Moved from java-lang.h.
7118 (class JvField): New class.
7119 (JvGetFirstInstanceField): New function.
7120 (JvFieldIsRef): Likewise.
7121 (JvGetObjectField): Likewise.
7122 (JvNumInstanceFields): Likewise.
7124 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7126 * boehm.cc: New file.
7127 * Makefile.in: Rebuilt.
7128 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7129 (INCLUDES): Added -I options to find boehm-gc files.
7131 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7133 * configure: Rebuilt.
7134 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7136 * Makefile.in: Rebuilt.
7137 * Makefile.am (nat_files): New macro.
7138 (libjava_a_DEPENDENCIES): Use it.
7139 (libjava_a_LIBADD): Likewise.
7140 ($(nat_files)): New static pattern rule.
7141 (class_files): Run separate find to find .class files.
7142 (javao_files): Compute based on class_files.
7143 (BUILT_SOURCES): New macro.
7145 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7147 * Makefile.am (java_files): New macro.
7148 (class_files): Likewise.
7149 (javao_files): Likewise.
7150 (libjava_a_DEPENDENCIES): Include $(javao_files).
7151 (libjava_a_LIBADD): Likewise.
7152 (classes.stamp): Depend on $(java_files); only recompile changed
7155 (CLEANFILES): Don't run find; use macros. Don't mention
7157 (.class.o): New target.
7158 (compiled.stamp): Removed.
7160 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7162 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7163 LineNumberReader}>java: Newly-implemented standard classes.
7165 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7167 * Makefile.in: Rebuilt.
7168 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7170 * Makefile.in: Rebuilt.
7171 * Makefile.am (hack): New macro.
7172 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7174 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7176 * include/config.h.in: New file.
7177 * include/config.h: Removed.
7178 * acconfig.h: New file.
7179 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7180 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7181 libjava_a_LIBADD): New macros.
7182 (INCLUDES): New macro.
7185 (SUFFIXES): Removed.
7187 (libjava.a): Removed.
7189 * configure: Rebuilt.
7190 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7191 Look for headers and functions we require. Create
7194 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7196 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7197 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7198 soft_lookupinterfacemethod): New functions.
7199 (PrimClass): Actually initialize the primitive classes.
7200 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7202 * include/java-util.h: Removed java::util definition.
7203 * include/cni.h: Moved java::util here and added Properties.
7204 Added more function prototypes.
7205 * include/java-lang.h: Added mroe methods and friend declarations.
7206 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7207 * include/jvm.h (strLengthUtf8): Add declaration.
7209 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7211 * java/lang/{Byte,Short,Void}.java: New classes.
7212 * java/lang/Character.java (isJavaIdentifierStart,
7213 JavaIdentifierPart): New static methods.
7214 * java/lang/Number.java (byteValue, shortValue): New methods.
7216 * java/lang/String.java (intern, hashCode): Make native.
7217 * java/lang/natString.cc: New file. Handle the string pool.
7218 * Makefile.am: Build natString.o. Use CXXFLAGS.
7220 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7221 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7222 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7223 * java/lang/System.java (setProperty): New private method.
7224 (initProperties): Take argument, and make native.
7225 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7226 (currentTimeMillis): Make more robust.
7228 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7229 * java/io/UnsupportedEncodingException.java: New exception class.
7231 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7232 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7234 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7236 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7237 * prims.cc: Added bunch of stuff.
7238 * include/cni.h: Added various definitions.
7239 * include/java-lang.h: Added Method, various friends, some macros.
7241 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7242 * java/lang/System.java (arraycopy): Make native.
7244 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7246 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7247 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7248 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7249 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7251 * java/lang/Runtime.java: Declare methods as native instead of
7253 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7254 * java/lang/System.java: Comment out some stuff, for now.
7255 * java/lang/Thread.java: Re-write. Use native methods.
7256 * java/lang/NativeLang.java: Remove most of it.
7258 * java/util/natDate.cc: Native (C++) methods for Date.
7259 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7260 * java/util/Date.java: Complete re-write.
7262 * java/io/io-defs.h: New header file.
7263 * java/io/FileDescriptor.java: Add a bunch of private methods,
7264 mostly moved from NativeIO.java and natNativeIO.cc.
7265 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7266 * java/io/File.java: Use new code.
7267 * java/io/{FileInputStream.java.FileOutputStream.java,
7268 RandomAccessFile.java}: Use new private FileDescriptor methods.
7269 * java/io/NativeIO.java: Removed, no longer used.
7271 * java/io/StreamTokenizer.java (numericChars): Make char array.
7273 * include/*.h: Various header files used by the C++ native code.
7275 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7276 New autoconf+automake-based setup.
7277 * prims.cc: New file for Java "primitives".