1 2000-01-16 Anthony Green <green@cygnus.com>
3 * java/lang/StringBuffer.java (StringBuffer): Don't special case
6 2000-01-16 Jeff Sturm <jsturm@sigma6.com>
8 * java/io/StreamTokenizer.java (nextToken): Avoid unread(TT_EOF).
10 2000-01-13 Tom Tromey <tromey@cygnus.com>
12 * java/lang/natClassLoader.cc (_Jv_FindClass): Register `loader',
13 not system loader, as initiating loader.
15 2000-01-11 Tom Tromey <tromey@cygnus.com>
17 * java/lang/natSystem.cc (getpwuid_adaptor): New adaptor for
18 HP/UX. From David Scott Urban.
20 2000-01-10 Jeff Sturm <jsturm@sigma6.com>
22 * java/lang/natMath.cc (pow): Cast args to `double', not
25 (IEEEremainder): Likewise.
26 * java/lang/mprec.h: Don't wrap includes in `extern "C"'.
27 * java/lang/fdlibm.h: Don't wrap includes in `extern "C"'.
29 2000-01-09 Anthony Green <green@cygnus.com>
31 * java/lang/natString.cc (init): Test for overflow condition
32 during out of bounds check.
33 (getChars): Throw StringIndexOutOfBoundsException, not
34 ArrayIndexOutOfBoundsException.
36 (regionMatches): Obey case option during string comparison.
38 * configure.host (ligcj_interpreter): New variable. Enable
39 interpreter by default on IA-32.
40 * configure.in: Examine libgcj_interpreter.
43 2000-01-07 Tom Tromey <tromey@cygnus.com>
45 * mauve-libgcj: Don't disable ClassTest.
47 * java/lang/natClass.cc (getClasses): Wrote.
49 2000-01-06 Tom Tromey <tromey@cygnus.com>
51 * java/lang/natClass.cc (_getConstructors): Correctly check
52 whether method name is the init name.
53 (getMethod): Look at accflags on method in `klass', not `this'.
55 2000-01-05 Tom Tromey <tromey@cygnus.com>
57 * java/lang/natClass.cc (getMethod): Compute offset relative to
58 `klass's methods table, not `this's table.
60 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
61 In unwrapping/widening case, check whether `k' is null, not
62 whether it is primitive. Initialize `num' from `argelts', not
63 `paramelts'. Correct create and pass arguments to ffi_call.
64 Don't let presence of `this' argument affect index used to look in
66 (COPY): Set appropriate element in `values' vector.
68 * java/lang/natClass.cc: Include <gcj/method.h>.
70 * java/lang/Class.h (_getMethods): Correctly declare as private,
73 * java/lang/Class.h (_getMethods): Declare.
74 * java/lang/Class.java (_getMethods): Declare.
75 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
76 (getDeclaredClasses): Always return empty array.
77 (_getMethods): New method.
79 (getDeclaredMethod): Return `rmethod'.
80 (finit_name): New global.
81 (getDeclaredMethods): Check for finit_name.
82 (_getMethods): Likewise.
83 (getMethod): Only return public methods.
85 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
86 jboolean and select correct ffi type on that basis.
87 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
88 Constructor call always has `void' return type.
90 2000-01-04 Tom Tromey <tromey@cygnus.com>
92 * java/lang/Class.h (getSignature): Updated.
93 * java/lang/Class.java (getSignature): Updated.
94 * java/lang/natClass.cc (getSignature): Added `is_constructor'
96 (getConstructor): Ensure constructor is public.
97 (_getConstructors): Check for public-ness of constructor when
98 `declared' is false, not when it is true.
100 2000-01-04 Warren Levy <warrenl@cygnus.com>
102 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
104 (receive): Set the sender's address in the DatagramPacket.
106 2000-01-04 Tom Tromey <tromey@cygnus.com>
108 * java/lang/reflect/natConstructor.cc (newInstance): Pass
109 declaring class as return_type argument to
110 _Jv_CallNonvirtualMethodA.
111 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
112 constructor case, create object and use it as `this' argument.
113 * java/lang/Class.h (_getConstructors): Declare.
114 (_getFields): Declare.
115 * java/lang/Class.java (getConstructors): Wrote.
116 (_getConstructors): New native method.
117 (getDeclaredConstructors): Wrote.
118 (_getFields): Declare new native method.
119 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
121 (getMethod): Work correctly when class is primitive.
122 (getDeclaredMethods): Likewise. Compute offset using `method',
124 (getDeclaredMethod): Likewise.
125 (getConstructor): Wrote.
126 (ConstructorClass): New define.
127 (getDeclaredConstructor): Wrote.
128 (_getConstructors): New method.
129 (_getFields): New method.
132 * Makefile.in: Rebuilt.
133 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
135 * prims.cc: Remove `#pragma implementation'.
136 * gcj/array.h: Remove `#pragma interface'.
138 * prims.cc (_Jv_equaln): New function.
139 * java/lang/Class.java (getSignature): Declare.
140 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
141 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
143 (getSignature): New method.
144 (getDeclaredMethod): Wrote.
146 Include StringBuffer.h.
147 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
148 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
150 (getSignature): Declare.
151 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
152 (_Jv_equaln): Declare.
153 (_Jv_CallNonvirtualMethodA): Declare.
154 * Makefile.in: Rebuilt.
155 * Makefile.am (nat_source_files): Added natConstructor.cc.
156 (java/lang/reflect/Constructor.h): New target.
157 * java/lang/reflect/natConstructor.cc: New file.
158 * java/lang/reflect/Constructor.java (newInstance): Now native.
159 (declaringClass): Renamed from decl_class.
160 (offset): Renamed from index.
161 (getType): New native method.
162 (getModifiers): Now native.
163 (getParameterTypes): Call getType if required.
164 (hashCode): Include hash code from declaring class.
165 (modifiers): Removed.
166 (toString): Call getType if required.
167 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
168 * java/lang/reflect/natMethod.cc (hack_call): New method.
169 Removed `#if 0' around FFI code.
170 Include <gnu/gcj/RawData.h>.
171 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
172 IllegalArgumentException when argument object and class disagree.
173 (_Jv_GetTypesFromSignature): New function.
175 (ObjectClass): New define.
176 (_Jv_CallNonvirtualMethodA): New function.
177 * java/lang/reflect/Method.java (hack_trampoline): New method.
178 (hack_call): New native method.
180 1999-12-21 Per Bothner <per@bothner.com>
182 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
183 offset in new Method.
185 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
187 * java/lang/natObject.cc (notify): Throw message with
188 IllegalMonitorStateException.
191 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
192 (isInterrupted_): New function, which does clear interrupt_flag.
193 (interrupt): Use `isInterrupted_'.
194 * java/lang/natThread.cc (interrupt): Add comment.
195 (join): Set `prev' in joiner loop.
196 Change various calls to `isInterrupted' to use `isInterrupted_'.
197 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
198 on linux. Set result to 0 on an interrupt. Test interrupted status
199 of java Thread object directly.
200 FLAG_INTERRUPTED: removed.
201 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
202 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
203 (_Jv_InitThreads): Don't block SIGINT.
204 (_Jv_ThreadWait): Don't configure SIGINT handler.
206 1999-12-21 Tom Tromey <tromey@cygnus.com>
208 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
210 1999-12-20 Tom Tromey <tromey@cygnus.com>
212 * java/lang/reflect/Modifier.java (STRICT): New constant.
213 (isStrict): New method.
214 (toString): Added `strict'.
216 1999-12-23 Anthony Green <green@cygnus.com>
218 * configure: Rebuilt.
219 * configure.in (LIBDATASTARTSPEC): Force data_start in with
222 1999-12-19 Anthony Green <green@cygnus.com>
224 * libgcjdata.c: New file.
225 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
226 * configure: Rebuilt.
227 * configure.in (LIBDATASTARTSPEC): Force data with a known name
229 * Makefile.in: Rebuilt.
230 * Makefile.am: Build libgcjdata.a.
232 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
233 * configure: Rebuilt.
234 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
237 1999-12-17 Tom Tromey <tromey@cygnus.com>
239 * java/lang/reflect/Method.java (toString): Call getType if
240 required. Partial fix for PR libgcj/111. From Per Bothner.
242 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
244 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
246 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
247 null String constructor parameter.
248 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
249 for exception messages.
250 BooleanClass: declare.
251 (setOption): Use BooleanClass instead of Class.forName() for
253 (bind): Cast 4th parameter of setsockopt to `char *' for
254 compatibility with older Solaris headers.
255 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
256 sprintf calls for exception messages.
257 BooleanClass, IntegerClass: declare.
258 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
261 1999-12-15 Tom Tromey <tromey@cygnus.com>
263 * java/lang/natSystem.cc (init_properties): Don't set user.name or
264 user.home if NO_GETUID defined. Only set user.dir if getcwd
267 * include/config.h.in: Rebuilt.
268 * acconfig.h (NO_GETUID): New define.
269 * configure.in: Rebuilt.
270 * configure.in: Define NO_GETUID in cross case. Check for getcwd
273 1999-12-08 Tom Tromey <tromey@cygnus.com>
275 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
276 where no recursive mutexes exist. Fixes PR libgcj/117.
278 1999-12-05 Anthony Green <green@cygnus.com>
280 * include/jvm.h: Declare many functions with
281 __attribute__((__malloc__)).
282 * gcj/javaprims.h: Ditto.
284 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
286 * THANKS: Giving credit where credit is due.
288 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
290 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
292 * java/lang/natString.cc (equalsIgnoreCase): return false if
293 anotherString is null.
294 * java/lang/Boolean.java (valueOf): return FALSE if argument is
297 1999-11-30 Tom Tromey <tromey@cygnus.com>
299 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
300 mutex to initialize. Initialize `count' if required.
303 1999-11-27 Per Bothner <per@bothner.com>
305 * exception.cc: Remove prototype declarations for malloc and free.
306 These clash with recent versions of glibc, which specifies `throws ()'
307 when __cplusplus is defined. Instead, #include <stdlib.h>.
309 1999-11-24 Tom Tromey <tromey@cygnus.com>
311 * prims.cc (_Jv_NewObjectArray): Use
312 _Jv_GetArrayElementFromElementType.
313 (_Jv_NewPrimArray): Likewise.
314 * java/lang/natObject.cc (clone): Use
315 _Jv_GetArrayElementFromElementType instead of sizeof.
316 * java/lang/natSystem.cc (arraycopy): Use
317 _Jv_GetArrayElementFromElementType.
318 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
321 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
323 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
324 Exception messages. PR java.net/57.
325 (bind): set SO_REUSEADDR before bind.
326 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
327 overruns. PR java.net/57.
329 1999-11-19 Tom Tromey <tromey@cygnus.com>
331 * Makefile.am (DIVIDESPEC): Removed.
332 (EXCEPTIONSPEC): Removed.
334 1999-11-19 Andrew Haley <aph@cygnus.com>
336 * Makefile.am (JCFLAGS): Add -L$(here)
338 * Makefile.in: Rebuild.
340 1999-11-18 Tom Tromey <tromey@cygnus.com>
342 * java/lang/natDouble.cc: Include <config.h>.
344 * include/config.h.in: Rebuilt.
345 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
346 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
348 * configure: Rebuilt.
349 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
350 requested by configure.host. Don't put `-D' option into
351 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
353 * configure: Rebuilt.
354 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
357 1999-11-18 Andrew Haley <aph@cygnus.com>
359 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
360 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
362 * Makefile.in: Rebuild
363 * acconfig.h: remove SJLJ_EXCEPTIONS
364 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
365 Do not AC_DEFINE SJLJ_EXCEPTIONS.
366 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
367 * gcj/Makefile.in, include/Makefile.in: rebuild.
368 * include/config.h.in: remove SJLJ_EXCEPTIONS.
370 1999-11-18 Andrew Haley <aph@cygnus.com>
372 * gij.cc (main): Rename label to prevent conflict.
374 * exception.cc (_Jv_type_matcher): Don't check the table if we're
375 using setjmp/longjmp exceptions: there isn't one.
377 1999-11-17 Andrew Haley <aph@cygnus.com>
379 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
380 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
381 (__sjthrow): Add declaration.
382 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
386 * Makefile.in: Rebuild
387 * acconfig.h: Add SJLJ_EXCEPTIONS
388 * configure.in: Add SJLJ_EXCEPTIONS
389 * configure: Rebuild.
390 * gcj/Makefile.in: Rebuild.
391 * gcj/cni.h: Add support for sjlj-exceptions.
392 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
393 * include/Makefile.in: Rebuild.
394 * include/default-signal.h: Add support for sjlj-exceptions.
396 1999-11-18 Tom Tromey <tromey@cygnus.com>
398 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
400 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
402 (method_cache): Made larger.
404 1999-11-11 Tom Tromey <tromey@cygnus.com>
406 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
407 initializing mutex. Initialize `count' when required.
409 1999-11-07 Anthony Green <green@trip.cygnus.com>
411 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
414 1999-11-05 Tom Tromey <tromey@cygnus.com>
416 * java/lang/natThread.cc (destroy): Removed incorrect comment.
418 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
420 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
421 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
424 1999-11-05 Tom Tromey <tromey@cygnus.com>
426 * java/lang/natThread.cc (stop): Removed argument name.
428 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
429 `private'; now has default access.
430 * Makefile.in: Rebuilt.
431 * Makefile.am (java/lang/ThreadGroup.h): Removed.
433 1999-11-04 Tom Tromey <tromey@cygnus.com>
435 * java/lang/natClass.cc (method_cache_count): Removed.
436 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
437 (_Jv_AddMethodToCache): Don't loop.
439 * configure.in: Removed `qt' threads case.
440 * include/quick-threads.h: Removed.
441 * quick-threads.cc: Removed.
443 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
444 (_Jv_ThreadDestroy): Likewise.
445 * include/no-threads.h (_Jv_ThreadCancel): Removed.
446 (_Jv_ThreadDestroy): Likewise.
447 * include/posix-threads.h (struct _Jv_Thread_t): Removed
449 (_Jv_ThreadCancel): Removed decl.
450 (_Jv_ThreadDestroy): Removed.
451 * posix-threads.cc (_Jv_ThreadCancel): Removed.
452 (throw_cleanup): Removed.
453 (really_start): Don't push or pop cleanup.
454 (_Jv_ThreadInitData): Don't initialize `exception' field.
455 * java/lang/Thread.java (stop): Officially unimplemented.
456 * java/lang/natThread.cc (stop): Officially unimplemented.
458 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
460 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
463 1999-11-02 Tom Tromey <tromey@cygnus.com>
465 * boehm.cc: Don't include boehm-config.h.
467 1999-11-01 Tom Tromey <tromey@cygnus.com>
469 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
470 (sum_blocks): Removed.
471 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
473 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
475 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
477 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
478 * java/io/InputStreamReader (InputStreamReader): ditto.
480 1999-10-22 Tom Tromey <tromey@cygnus.com>
482 * Makefile.in: Rebuilt.
483 * Makefile.am (java/lang/ClassLoader.h): New target.
484 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
487 * include/java-props.h (_Jv_Compiler_Properties): Changed
489 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
490 * include/jvm.h (_Jv_GCSetInitialHeapSize,
491 _Jv_GCSetMaximumHeapSize): Declare.
492 (JvRunMain, _Jv_RunMain): Declare.
493 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
494 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
495 (_Jv_GCSetMaximumHeapSize): Likewise.
496 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
497 (_Jv_GCSetMaximumHeapSize): Likewise.
498 * prims.cc (parse_heap_size): New function.
499 (_Jv_SetInitialHeapSize): Likewise.
500 (_Jv_SetMaximumHeapSize): Likewise.
501 (_Jv_Compiler_Properties): New global.
502 * gij.cc (help): New function.
504 (heap_size): Likewise.
505 (heap_max_size): Likewise.
506 (main): Parse arguments. Set _Jv_Compiler_Properties.
507 Include <config.h>, <java-props.h>.
508 (_Jv_Compiler_Properties): Removed.
510 1999-10-18 Tom Tromey <tromey@cygnus.com>
512 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
514 (redirect): New static field.
515 * java/lang/ClassLoader.java (getSystemClassLoader): Now
517 (getVMClassLoader0): Removed.
518 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
520 (getSystemClassLoader): Implemented.
522 1999-10-16 Anthony Green <green@cygnus.com>
524 * java/lang/ClassLoader.java (getSystemResource): Use
525 getSystemClassLoader instead of ClassLoader.system.
526 (getSystemResourceAsStream): Ditto.
528 * java/lang/natClassLoader.cc (redirect): Make static and
529 remove #ifdef INTERPRETER so it is always defined.
530 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
531 returns a VMClassLoader.
533 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
534 PropertyResourceBundle if a properties file is found before a
535 ResourceBundle class.
537 1999-10-15 Tom Tromey <tromey@cygnus.com>
539 * gij.cc (main): Formatting fixes.
540 (_Jv_Compiler_Properties): Define.
541 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
543 (init_properties): Set properites from _Jv_Compiler_Properties.
544 * include/java-props.h (_Jv_Compiler_Properties,
545 _Jv_Environment_Properties): Declare.
547 * include/java-props.h: Added copyright.
549 1999-10-13 Anthony Green <green@cygnus.com>
551 * libtool-version: Catch up by incrementing current.
553 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
554 * configure, include/config.h.in: Rebuilt.
555 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
556 * configure.in: Added --disable-getenv-properties and new define
557 `DISABLE_GETENV_PROPERTIES'.
559 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
560 (next_property_key): New function.
561 (next_property_value): New function.
562 (process_gcj_properties): New function.
563 (JvRunMain): Call process_gcj_properties.
566 * java/lang/natSystem.cc (init_properties): Set properties defined
569 * include/java-props.h: New file.
571 * java/lang/natSystem.cc (init_properties): Add new properties to
572 conform with Java Product Versioning Specification.
574 1999-10-12 Tom Tromey <tromey@cygnus.com>
576 * configure: Rebuilt.
577 * configure.in: Fixed test for --disable-java-net.
579 1999-10-06 Tom Tromey <tromey@cygnus.com>
581 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
582 when building Canadian cross.
583 (NATIVE): Don't define when cross-compiling.
585 1999-10-04 Tom Tromey <tromey@cygnus.com>
587 * java/net/natPlainSocketImpl.cc: Don't include headers if
588 java.net is disabled.
590 * Makefile.in: Rebuilt.
591 * Makefile.am (ZINCS): Removed. This is defined in configure.in
592 when needed, and must be left empty when not needed.
594 1999-10-01 Anthony Green <green@cygnus.com>
596 * THANKS: Refreshed from htdocs version.
598 1999-10-01 Steve Chamberlain <sac@pobox.com>
600 * Makefile.in: Rebuilt.
601 * Makefile.am (ZINCS): Define
603 * configure: Rebuilt.
604 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
606 * java/lang/ieeefp.h: Add definitions for picoJava.
608 1999-10-01 Tom Tromey <tromey@cygnus.com>
610 * configure: Rebuilt.
611 * configure.in: Set classpath when invoking gcj. Use changequote
612 around sed invocation.
614 * java/net/natPlainSocketImpl.cc: Stub native functions if
615 DISABLE_JAVA_NET is defined.
616 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
617 typo in exception string.
618 (getTimeToLive): Likewise.
619 Stub native functions if DISABLE_JAVA_NET is defined.
620 * java/net/natInetAddress.cc: Stub native functions if
621 DISABLE_JAVA_NET is defined.
622 * configure.host: Disable java.net for mips-tx39.
623 * configure, include/config.h.in: Rebuilt.
624 * acconfig.h (DISABLE_JAVA_NET): Undefine.
625 * configure.in: Added --disable-java-net and new define
628 1999-09-30 Tom Tromey <tromey@cygnus.com>
630 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
632 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
636 1999-09-28 Tom Tromey <tromey@cygnus.com>
638 * configure: Rebuilt.
639 * configure.in (PROCESS): In POSIX case, only set if not already
641 * configure.host (PROCESS): Set in mips-tx39 case.
643 * aclocal.m4, configure: Rebuilt.
644 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
645 appropriate AC_PROG_ symbol.
647 1999-09-24 Tom Tromey <tromey@cygnus.com>
649 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
651 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
653 Fix for PR java.util/47:
654 * configure, include/config.h: Rebuilt.
655 * configure.in: Don't look for ctime or ctime_r.
656 * Makefile.in: Rebuilt.
657 * Makefile.am (nat_source_files): Don't mention natDate.cc.
658 * java/util/natDate.cc: Removed.
659 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
661 (getAvailableIDs): Rewrote.
662 (getTimeZone): Rewrote.
663 * java/util/Date.java (toGMTString): New method.
664 (toLocaleString): New method.
667 1999-09-23 Tom Tromey <tromey@cygnus.com>
669 * configure: Rebuilt.
670 * configure.in: Print message when checking to see if gcj can
671 handle -fuse-divide-subroutine.
673 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
675 * java/lang/FirstThread.java (run0): Renamed to `run'.
678 * prims.cc (main_init): New function.
679 (JvRunMain): Call it.
680 (_Jv_RunMain): Likewise.
682 (main_init): Ignore SIGPIPE. Fixes PR 51.
684 1999-09-22 Tom Tromey <tromey@cygnus.com>
686 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
688 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
690 * java/text/MessageFormat.java (MessageFormat(String)): Set the
692 * java/text/NumberFormat.java: Check that object is a Number. If
693 not, throw IllegialArgumentException.
695 1999-09-21 Tom Tromey <tromey@cygnus.com>
697 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
698 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
700 * include/posix-threads.h (_Jv_MutexDestroy): Use
702 (_Jv_MutexLock): Likewise.
703 (_Jv_MutexUnlock): Likewise.
705 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
706 previous patch; it too was incorrect.
707 * java/io/PrintStream.java (PrintStream): Likewise.
709 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
710 refer to `this' before calling superclass constructor.
711 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
712 before calling superclass constructor.
714 1999-09-20 Tom Tromey <tromey@cygnus.com>
716 * configure: Rebuilt.
717 * configure.in: Send output of `-fuse-divide-subroutine' test
718 compilation to /dev/null.
720 1999-09-14 Tom Tromey <tromey@cygnus.com>
722 * include/java-insns.h: Turned constants into an enum. Added
723 multiple-inclusion protection.
725 1999-09-10 Tom Tromey <tromey@cygnus.com>
727 * configure: Rebuilt.
728 * configure.in: Build include/Makefile.
729 * Makefile.in: Rebuilt.
730 * Makefile.am (SUBDIRS): Added gcj and include.
731 (install-data-local): New target.
732 (extra_headers): New macro.
733 * include/Makefile.in: New file.
734 * include/Makefile.am: New file.
736 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
737 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
739 * boehm.cc: Don't include java-threads.h or gcj/field.h.
740 * resolve.cc: Include config.h.
741 * defineclass.cc: Include config.h.
742 * include/java-interp.h: Don't include config.h.
743 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
746 * gcj/javaprims.h: Regenerated namespace decls.
747 * classes.pl (scan): Don't put `;' after closing brace.
749 * Makefile.in: Rebuilt.
750 * Makefile.am (INCLUDES): Added -I for top_srcdir.
751 * configure.in: Create gcj/Makefile.
752 * gcj/Makefile.in: New file.
753 * gcj/Makefile.am: New file.
754 * java/lang/Object.h: Don't include any other headers.
755 * gcj/array.h: Renamed from include/java-array.h.
756 * gcj/field.h: Renamed from include/java-field.h.
757 * gcj/method.h: Renamed from include/java-method.h.
758 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
759 Updated all files to reflect new include structure.
761 1999-09-09 Tom Tromey <tromey@cygnus.com>
763 * configure: Rebuilt.
764 * configure.in: Fixed typo; variable is THREADSPEC and not
767 1999-09-08 Tom Tromey <tromey@cygnus.com>
769 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
770 previous change and implemented a correct test in the __m_count
773 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
776 1999-09-07 Tom Tromey <tromey@cygnus.com>
778 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
779 code and don't set errno.
781 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
782 not `r'. Changed `done_sleeping' to a `bool'.
784 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
786 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
787 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
788 by another thread, rather than by the GC.
789 (_Jv_CondWait): Prevent premature thread wakeup by GC.
790 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
791 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
794 1999-09-03 Tom Tromey <tromey@cygnus.com>
796 * configure: Rebuilt.
797 * configure.in: Check for fstat function.
798 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
801 1999-09-02 Tom Tromey <tromey@cygnus.com>
803 * include/java-array.h (jobjectArrayjchar): Removed unused
806 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
807 _Jv_PrepareCompiledClass while holding class mutex.
809 1999-09-01 Tom Tromey <tromey@cygnus.com>
811 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
812 (_Jv_PthreadGetMutex): Use it.
813 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
814 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
815 (_Jv_MutexLock): Likewise.
816 (_Jv_MutexUnlock): Likewise.
817 * include/config.h.in: Rebuilt.
818 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
819 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
820 * configure: Rebuilt.
821 * libgcj.spec.in: Don't mention INTERPSPEC.
822 * configure.in (INTERPSPEC): Removed.
823 Only run pthreads-related checks when using POSIX threads. Check
824 for m_count and __m_count in mutex structure.
826 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
828 * java/lang/natClass.cc: Fixed notification of threads
829 when class initialization is complete.
831 1999-09-01 Tom Tromey <tromey@cygnus.com>
833 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
834 * resolve.cc: Removed constants defined by
835 java.lang.reflect.Modifier.
836 Include <java/lang/reflect/Modifier.h>.
837 (_Jv_ResolvePoolEntry): Use values from Modifier.
838 (_Jv_DetermineVTableIndex): Likewise.
839 (_Jv_PrepareClass): Likewise.
841 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
842 java.lang.reflect.Modifier.
843 Include <java/lang/reflect/Modifier.h>.
844 (checkExtends): Use values from Modifier.
845 (checkImplements): Likewise.
846 (handleField): Likewise.
847 (handleConstantValueAttribute): Likewise.
848 (handleFieldsEnd): Likewise.
849 (handleMethod ): Likewise.
850 (handleMethodsEnd): Likewise.
851 (handleClassBegin): Likewise.
852 * interpret.cc: Removed constants defined by
853 java.lang.reflect.Modifier.
854 (continue1): Use values from Modifier.
855 * java/lang/natClassLoader.cc: Removed constants defined by
856 java.lang.reflect.Modifier.
858 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
859 JV_STATE_NOTHING, not `0'.
860 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
862 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
863 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
865 (_Jv_PthreadGetMutex): New function.
866 (_Jv_PthreadCheckMonitor): Use it.
867 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
868 (_Jv_MutexLock): Update `count'.
869 (_Jv_MutexUnlock): Likewise.
870 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
873 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
875 * Makefile.am (.java.lo): Add rule.
877 * Makefile.in: Rebuilt.
879 1999-09-01 Tom Tromey <tromey@cygnus.com>
881 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
882 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
884 (_Jv_CondNotify): Use it.
885 (_Jv_CondNotifyAll): Likewise.
887 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
889 1999-08-31 Tom Tromey <tromey@cygnus.com>
891 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
894 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
896 * posix-threads.cc: Include <errno.h>.
898 1999-08-23 Tom Tromey <tromey@cygnus.com>
900 * boehm.cc: Undefine TRUE and FALSE.
902 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
904 1999-08-21 Tom Tromey <tromey@cygnus.com>
906 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
909 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
911 * configure.in: Check for in_addr_t in netinet/in.h too. Check
913 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
914 (HAVE_STRUCT_IP_MREQ): Added.
915 * configure, include/config.h.in: Rebuilt.
916 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
918 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
919 Disable if ip_mreq is not available.
921 * configure.in: Check types ssize_t and in_addr_t.
922 * acconfig.h: Undefine them.
923 * configure, include/config.h.in: Rebuilt.
925 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
926 function that detects the signature of getpwuid_r.
927 (init_properties): Use it.
928 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
931 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
933 * interpret.cc (continue1): Implement explicit dispatch table.
934 insn_target: Explicit interpreter switch table.
935 SAVE_PC: New macro, moves pc saving code into instructions that
937 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
938 PC_REGISTER_ASM: New macro.
939 INLINE_SWITCH: New macro. Constrols dispatching strategy.
940 opcode: Remove local variable.
941 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
942 (POKEI): Use _Jv_word.
943 (iinc): Use _Jv_word.
944 (dupx): Change reference argument (sp) to pointer.
947 * interpret.cc: Remove instruction timing instrumentation.
949 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
950 comment. Don't use _Jv_ClassNameSamePackage.
952 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
953 URLPathEntry, CacheEntry}: Removed.
955 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
957 (.java.lo): Rule removed.
959 * Makefile.in: Rebuilt.
961 1999-08-19 Tom Tromey <tromey@cygnus.com>
963 * java/lang/natThread.cc (class locker): New class.
964 (join): Use a locker around _Jv_CondWait.
967 1999-08-18 Tom Tromey <tromey@cygnus.com>
969 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
970 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
972 1999-08-18 Tom Tromey <tromey@cygnus.com>
974 * include/javaprims.h ("Java"): Regenerated namespace decls.
976 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
978 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
979 from _Jv_InternClassStrings.
981 * prims.cc (_Jv_RunMain): New function.
982 (JvRunMain): Remove gij-support.
984 * gij.cc (main): Use _Jv_RunMain.
986 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
988 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
989 argument in temp variable.
990 (continue1): For all op_x2y insns, use temp variable for
991 intermediate value. Also remove some comments.
993 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
994 (forName): Don't call _Jv_InitClass.
996 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
998 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
1000 * java/util/jar/JarInputStream.java: New file.
1002 * java/util/jar/JarEntry.java: New file.
1004 * java/util/jar/JarFile.java: New file.
1006 * java/net/URLClassLoader.java: New file.
1008 * java/net/JarURLConnection.java: New file.
1010 * gnu/gcj/protocol/jar/Handler.java: New file.
1012 * gnu/gcj/protocol/jar/Connection.java: New file.
1014 * java/security/SecureClassLoader.java: New file.
1016 * java/lang/ClassLoader.java (parent): New variable.
1017 (ClassLoader (ClassLoader)): new constructor.
1018 (findClass): New method.
1019 (loadClass): Add default 1.2 implementation.
1020 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
1021 (readfully): Removed.
1023 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
1024 (findSystemClass): New method.
1025 (VMClassLoader): Constructor rewritten.
1027 All other methods removed.
1029 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
1030 to gnu::gcj::runtime::VMClassLoader.
1031 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
1033 (VMClassLoader::findSystemClass): renamed from findBootClass.
1035 * Makefile.am: Add new files.
1036 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
1038 * Makefile.in: Rebuilt.
1040 1999-08-17 Tom Tromey <tromey@cygnus.com>
1042 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1044 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1047 1999-08-16 Tom Tromey <tromey@cygnus.com>
1049 * configure: Rebuilt.
1050 * configure.in: Set DIVIDESPEC to empty string if compiler does
1051 not support -fuse-divide-subroutine.
1053 1999-08-14 Per Bothner <per@bothner.com>
1055 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1056 * java/lang/natClass.cc (initializeClass): Likewise.
1057 * java/lang/ClassLoader.java (resolveClass0): New static method.
1058 (resolveClass): Call resolveClass0.
1059 (findSystemClass): No longer static.
1061 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1063 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1065 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1067 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1070 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1072 * Makefile: Rebuilt.
1073 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1076 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1079 * configure: Rebuilt.
1080 * configure.in: Properly align --help output, fix capitalization
1082 * acinclude.m4: Likewise.
1084 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1086 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1088 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1089 (_Jv_callInterpretedMethod): Unused. Remove.
1090 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1092 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1093 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1094 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1095 * interpret.cc: use _Jv_word.
1096 * defineclass.cc: use_Jv_word.
1097 * resolve.cc: Use _Jv_word.
1098 (_Jv_ResolvePoolEntry): Return _Jv_word.
1099 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1100 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1102 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1105 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1107 * configure: Rebuilt.
1108 * configure.in (sched_yield): Try librt first, then libposix4.
1109 Add -lrt, -lposix4 to THREADSPEC.
1111 1999-08-08 Anthony Green <green@cygnus.com>
1113 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1115 1999-08-08 Anthony Green <green@cygnus.com>
1117 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1120 1999-08-08 Anthony Green <green@cygnus.com>
1124 * include/config.h.in: Rebuilt.
1125 * acconfig.h: Add INTERPRETER.
1127 * Makefile.in: Rebuilt.
1128 * Makefile.am (libffi_files): Identify the libffi object files for
1129 inclusion in libgcj.
1130 (LIBFFIINCS): Define.
1132 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1133 Dummy definition for configurations without an interpreter.
1135 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1136 java::lang::Boolean constructor.
1138 * include/java-interp.h: Always include java-cpool.h.
1140 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1141 when INTERPRETER not defined.
1143 * java/lang/Class.h (finalize): Define.
1145 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1146 IOException from File.getCanonicalPath.
1147 (getStream): Likewise.
1150 * THANKS: More thanks.
1152 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1154 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1156 (_Jv_PrepareClass): Allow non-abstract classes to
1157 have abstract subclasses.
1158 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1160 * interpret.cc (continue1/perform_invoke): Don't sign extend
1162 (continue1/lshl,lshr): Push long, not int.
1163 (continue1/ulshr): Use UINT64, not long long.
1164 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1166 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1167 * java/lang/FirstThread.java (run): Add top-level exception
1169 (run0): Renamed from run.
1171 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1173 * configure.in (--with-interpreter): Added.
1174 * include/config.h.in (INTERPRETER): Added.
1176 * java/lang/ClassLoader.java: File replaced.
1177 * java/lang/VMClassLoader.java: New file.
1178 * java/lang/natClassLoader.cc: New file.
1179 * gnu/gcj/runtime/MethodInvocation.java: New file.
1180 * gnu/gcj/util/path/SearchPath.java: New file.
1181 * gnu/gcj/util/path/PathEntry.java: New file.
1182 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1183 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1184 * gnu/gcj/util/path/URLPathEntry.java: New file.
1185 * gnu/gcj/util/path/CacheEntry.java: New file.
1186 * include/java-interp.h: New file.
1187 * include/java-cpool.h: New file.
1188 * include/java-insns.h: New file.
1189 * defineclass.cc: New file.
1190 * interpret.cc: New file.
1191 * resolve.cc: New file.
1193 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1194 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1195 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1197 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1198 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1200 (initializeClass): Use new JV_ prefixed names. Also, call
1201 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1203 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1204 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1205 JV_STATE_LINKED): New.
1206 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1207 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1208 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1209 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1210 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1211 _Jv_InterpMethodInvocation): New friends for interpreter.
1213 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1214 include/java-cpool.h and renamed with JV_ prefix.
1216 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1218 (_Jv_UnregisterClass): New decl.
1220 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1221 class loader argument.
1222 (_Jv_FindClass): Use class loader.
1224 * prims.cc (_Jv_makeUtf8Const): New function.
1225 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1226 (_Jv_NewPrimArray): Ditto.
1227 (_Jv_FindClassFromSignature): Ditto.
1228 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1229 * java/lang/reflect/natMethod.cc (getType): Ditto.
1231 * include/java-field.h (_Jv_Field::isRef): Make robust for
1232 non-resolved contexts.
1234 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1235 Also, don't mark class->next field.
1237 * java/lang/VirtualMachineError.java: Added FIXME note.
1239 * configure.in (INTERPSPEC): New spec.
1240 * libgcj.spec.in: Added INTERPSPEC.
1241 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1242 gnu/gcj/runtime/MethodInvocation.
1243 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1244 (ordinary_java_source_files): Added above mentioned java classes.
1246 * configure: Rebuilt.
1247 * Makefile.in: Rebuilt.
1249 1999-08-06 Tom Tromey <tromey@cygnus.com>
1251 * configure: Rebuilt.
1252 * configure.in: Look for sched_yield in -lrt.
1254 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1256 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1257 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1258 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1260 (toString): Print correctly when `country' is empty.
1262 1999-08-04 Per Bothner <per@bothner.com>
1264 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1266 1999-08-02 Tom Tromey <tromey@cygnus.com>
1268 * aclocal.m4, configure: Rebuilt for new libtool.
1270 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1272 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1273 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1274 * java/net/ServerSocket.java: Define ANY_IF.
1275 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1276 all network interfaces.
1277 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1278 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1280 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1282 * java/io/natFile.cc (performMkdir): Remove FIXME.
1283 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1285 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1287 * configure.in: Check for bstring.h.
1288 * configure, include/config.h.in: Rebuilt.
1289 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1290 * java/net/natPlainSocketImpl.cc: Likewise.
1292 1999-07-31 Tom Tromey <tromey@cygnus.com>
1297 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1299 * configure.in: Check for struct hostent_data and need for
1300 -D_REENTRANT for gethostbyname_r declaration.
1301 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1302 (lookup): Use hostent_data for fixed_buffer.
1303 * configure, include/config.h.in: Rebuilt.
1305 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1307 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1308 available. Don't cast memmove args to (void*).
1309 * configure.in: Do not abort if memmove is not available.
1311 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1313 * java/lang/natString.cc (substring): optimize where substring is
1315 * java/io/File.java (getName): don't return separator with file name.
1316 * java/io/natFile.cc (attr): fix overflow.
1318 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1320 * mauve-libgcj: Disable Object Serialization tests.
1322 1999-07-20 Warren Levy <warrenl@cygnus.com>
1324 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1325 Default to using PlainDatagramSocketImpl.
1326 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1328 1999-07-19 Tom Tromey <tromey@cygnus.com>
1330 * include/stamp-h.in: New file.
1332 1999-07-12 Tom Tromey <tromey@cygnus.com>
1334 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1337 1999-07-07 Andrew Haley <aph@cygnus.com>
1339 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1340 bytes to make it point after the instruction where the trap
1342 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1344 1999-07-07 Tom Tromey <tromey@cygnus.com>
1346 * mauve-libgcj: Explicitly enable formerly disabled java.text
1349 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1352 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1354 * java/net/URL.java (equals): Compare strings using String.equals.
1355 * java/net/URL.java (sameFile): Ditto.
1357 1999-07-02 Warren Levy <warrenl@cygnus.com>
1359 * configure: Rebuilt.
1360 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1361 * include/config.h.in: Rebuilt.
1362 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1363 (mcastGrp): Updated FIXME comments.
1364 (setOption): Fixed typo.
1365 (getOption):Implemented IP_MULTICAST_IF.
1367 1999-07-02 Warren Levy <warrenl@cygnus.com>
1369 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1370 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1371 (getTimeToLive): Implemented.
1372 (setOption): Implemented IP_MULTICAST_IF.
1374 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1376 * java/lang/String.java (toString): Check for this == null and throw
1377 NullPointerException.
1379 1999-07-01 Warren Levy <warrenl@cygnus.com>
1381 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1382 to count and revised comments to match.
1383 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1384 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1385 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1386 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1387 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1388 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1390 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1392 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1393 properly as count rather than outlength.
1394 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1395 output on overflow rather than buffer fill.
1396 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1397 if markPos is 0 and there is still room in the buffer.
1399 1999-07-01 Andrew Haley <aph@cygnus.com>
1401 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1402 This is a workaround for a bug in glibc's pthreads package which
1403 doesn't deliver any sigcontext information to a signal handler.
1405 1999-06-24 Tom Tromey <tromey@cygnus.com>
1407 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1408 * java/lang/fdlibm.h (HUGE): Conditionally define.
1410 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1412 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1413 * java/lang/e_log.c: Don't use __uint32_t.
1415 1999-05-27 Eric Christopher <echristo@cygnus.com>
1417 * configure: Rebuilt
1418 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1419 * acconfig.h: Rebuilt
1420 * include/config.h.in: Rebuilt
1422 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1423 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1424 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1425 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1426 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1427 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1428 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1429 and namespace collision with __uint32_t
1431 1999-06-23 Tom Tromey <tromey@cygnus.com>
1433 * java/util/zip/InflaterInputStream.java (read): Throw
1434 ZipException if inflater throws a DataFormatException.
1436 1999-06-23 Warren Levy <warrenl@cygnus.com>
1438 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1439 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1440 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1441 is not final per JDK.
1442 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1444 * java/util/zip/DataFormatException.java: Class extends Exception.
1445 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1446 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1447 * java/util/zip/ZipInputStream.java: ditto.
1448 (closeEntry): Changed method name to match JDK spec.
1450 1999-06-21 Tom Tromey <tromey@cygnus.com>
1452 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1455 * Makefile.in: Rebuilt.
1456 * Makefile.am (toolexeclibdir): Define as libdir when
1458 * configure: Rebuilt.
1459 * configure.in (USE_LIBDIR): New conditional.
1461 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1463 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1464 hostname in returned InetAddress objects.
1465 (getLocalHostname): Fix typo.
1466 * java/net/InetAddress.java (getByName): Set hostname on return
1468 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1471 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1473 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1474 interfaces if host==NULL.
1475 (accept): Throw message with InterruptedIOException.
1476 (getOption): Cache localAddress.
1477 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1478 'address' for DatagramSocket.
1479 (setTimeToLive): Fix compiler warnings.
1480 (getOption): Cache localAddress.
1481 * java/net/Socket.java (getLocalAddress): Don't need local
1482 InetAddress object. Add FIXME comment about calling checkConnect().
1483 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1484 connection queue to 50 as per JDK 1.2 docs.
1485 (ServerSocket(int,int)): Listen on all network interfaces by
1486 default, per JDK 1.2 docs.
1487 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1488 Add localAddress caching.
1490 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1492 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1494 (write(byte[],int,int)): ditto.
1496 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1498 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1500 1999-06-11 Warren Levy <warrenl@cygnus.com>
1502 * mauve-libgcj: Activated java.net Mauve tests.
1504 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1506 * java/net/natInetAddress.cc (aton): Fix typos.
1507 (lookup): Use a bigger buffer size for gethostbyname_r on all
1508 versions of glibc. Updated FIXME comment explaining this.
1509 Modified while loops to not set herr = ERANGE to work around glibc
1510 problems. Use user specified hostname in InetAddress result when
1511 available (consistent with JDK).
1513 1999-06-10 Warren Levy <warrenl@cygnus.com>
1515 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1516 Throw FileNotFoundException instead of IOException.
1518 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1520 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1521 in static field name.
1522 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1523 throughout rather than ParseException.
1525 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1527 * java/lang/Runtime.java (exec): Convert prog name and arguments
1529 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1530 environment array conversion. Preserve current environment if envp
1531 not passed. Preserve PATH unless explicitly specified.
1532 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1533 followed by EOF. Set a flag when a line is terminated by '\r' and
1534 ignore following '\n' if set.
1536 1999-06-02 Warren Levy <warrenl@cygnus.com>
1538 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1539 Ignore context if spec is an absolute URL. Fix braindead
1541 (hashCode): Use JDK 1.2 style algorithm.
1542 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1543 context URL properly.
1545 1999-05-30 Anthony Green <green@cygnus.com>
1547 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1548 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1550 1999-05-28 Warren Levy <warrenl@cygnus.com>
1552 * java/net/DatagramSocket.java (laddr): Removed.
1553 (DatagramSocket): Removed attempts to get or set laddr if null.
1554 (getLocalAddress): Reimplemented per spec.
1555 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1557 (joinGroup): Throw NullPointerException if any argument is null.
1558 (leaveGroup): ditto.
1559 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1560 * java/net/PlainSocketImpl.java (timeout): Added.
1561 (getInputStream): Added FIXME comment on how to support timeouts
1563 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1564 * java/net/Socket.java: Added FIXME comments to identify
1565 conflicting specs between the JCL and JDK 1.2 documents.
1566 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1567 if host is null. Get localport value resolved by kernel if bind
1569 (receive): Implemented support for timeouts in UDP.
1570 (setOption): Implemented based on natPlainSocketImpl version.
1572 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1573 resolved by kernel if bind lport is 0.
1574 (connect): Get localport value resolved by kernel if bind wasn't
1575 done to set localport.
1576 (accept): Implemented support for timeouts for ServerSocket.
1577 (setOption): Save value for SO_TIMEOUT.
1578 (getOption): Return timeout for SO_TIMEOUT.
1580 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1582 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1583 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1584 (setOption): Made abstract.
1585 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1586 to avoid cpp conflicts in native code.
1587 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1588 cpp conflicts in native code.
1589 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1590 * java/net/Socket.java (getLocalAddress): Implemented.
1591 (setTcpNoDelay): Implemented.
1592 (getTcpNoDelay): Implemented.
1593 (setSoLinger): Implemented.
1594 (getSoLinger): Implemented.
1595 (getSoTimeout): Verify class type.
1596 (setSendBufferSize): Implemented.
1597 (getSendBufferSize): Implemented.
1598 (setReceiveBufferSize): Implemented.
1599 (getReceiveBufferSize): Implemented.
1600 (toString): Prepended "Socket".
1601 * java/net/SocketImpl.java (toString): Rewritten.
1602 (getOption): Made abstract.
1603 (setOption): Made abstract.
1604 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1605 (setOption): Implemented.
1606 (getOption): Implemented.
1608 1999-05-26 Warren Levy <warrenl@cygnus.com>
1610 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1611 address when null. Set SO_REUSEADDR for multicasts.
1612 (getSoTimeout): Implemented.
1613 (setSoTimeout): Implemented.
1614 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1615 * java/net/MulticastSocket.java (getInterface): Implemented.
1616 (setInterface): Implemented.
1617 (setTimeToLive): Check for invalid ttl.
1618 (joinGroup): Verify multicast address and security.
1619 (leaveGroup): Verify multicast address and security.
1620 (send): Implemented.
1621 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1627 (getTTL): Implemented as non-native.
1631 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1632 (getSoTimeout): Implemented.
1633 (setSocketFactory): Made synchronized.
1634 * java/net/Socket.java (setSoTimeout): Implemented.
1635 (getSoTimeout): Implemented.
1636 (close): Made synchronized.
1637 (setSocketImplFactory): Made synchronized.
1638 * java/net/SocketImpl.java: Implement SocketOptions interface.
1639 * java/net/natInetAddress.cc: Corrected module name at top of file.
1640 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1641 (bind): Added FIXME.
1642 (peek): Implemented.
1648 (setOption): Implemented for SO_REUSEADDR.
1649 (getOption): Implemented for SO_REUSEADDR.
1651 1999-05-24 Tom Tromey <tromey@cygnus.com>
1653 * java/util/ResourceBundle.java (getBundle): Throw
1654 NullPointerException if baseName is null.
1656 1999-05-22 Tom Tromey <tromey@cygnus.com>
1658 * java/util/zip/ZipInputStream.java (fill): New method.
1659 (compressed_len): New instance variable.
1660 (getNextStream): Set it.
1661 (read): Reset inflater on EOF. Only read via `super' if entry is
1663 (skip): Only skip via `super' if entry is deflated.
1664 * java/util/zip/Deflater.java (last_input_count): Removed.
1665 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1667 (needsInput): Don't use last_input_count.
1668 (setInput): Don't set last_input_count.
1669 * java/util/zip/natInflater.cc (getRemaining): Return correct
1671 (inflate): Return 0 if input array is length 0.
1672 (setInput): Don't set last_input_count.
1673 * java/util/zip/Inflater.java (last_input_count): Removed.
1675 1999-05-21 Tom Tromey <tromey@cygnus.com>
1677 * Makefile.in: Rebuilt.
1678 * Makefile.am (INCLUDES): Added $(ZINCS).
1679 * configure: Rebuilt.
1680 * configure.in (ZINCS): New subst.
1682 1999-05-21 Andrew Haley <aph@cygnus.com>
1684 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1685 to signal options to allow the same exceptions to be rethrown
1688 1999-05-20 Andrew Haley <aph@cygnus.com>
1690 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1692 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1693 (INIT_FPE): Exception string made more informative.
1694 * include/sparc-signal.h (INIT_FPE): Exception string made more
1696 * testsuite/libjava.lang/Divide_1.java: New file.
1697 * testsuite/libjava.lang/Divide_1.out: New file.
1699 1999-05-19 Tom Tromey <tromey@cygnus.com>
1701 * aclocal.m4, configure: Rebuilt.
1702 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1704 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1707 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1709 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1711 (update): Fail in default case. Always initialize `strat'.
1713 * mauve-libgcj: Enable java.util.zip.
1715 1999-05-18 Warren Levy <warrenl@cygnus.com>
1717 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1718 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1719 PlainDatagramSocketImpl.java, and SocketOptions.java.
1720 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1721 * Makefile.in: Rebuilt.
1723 * java/net/DatagramPacket.java: New file.
1724 * java/net/DatagramSocket.java: New file.
1725 * java/net/DatagramSocketImpl.java: New file.
1726 * java/net/MulticastSocket.java: New file.
1727 * java/net/PlainDatagramSocketImpl.java: New file.
1728 * java/net/SocketOptions.java: New file.
1729 * java/net/natPlainDatagramSocketImpl.cc: New file.
1731 1999-05-18 Tom Tromey <tromey@cygnus.com>
1733 * java/util/zip/ZipOutputStream.java (level): Initial value is
1734 Deflater.DEFAULT_COMPRESSION.
1735 (close): New method.
1736 (closeEntry): Likewise.
1738 (put_version): Likewise.
1739 (write_entry): Likewise.
1740 (put2, put4): Now return `int'.
1741 (comment): Default to empty string.
1742 (bytes_written): New instance variable.
1744 * java/util/zip/ZipEntry.java (setComment): Limit length of
1746 (setCrc): Check CRC validity.
1747 (setExtra): Check argument validity.
1748 (setMethod): Likewise.
1749 (setSize): Likewise.
1750 (ZipEntry): Likewise.
1751 * include/javaprims.h: Updated namespace declarations.
1752 * Makefile.in: Rebuilt.
1753 * Makefile.am (ordinary_java_source_files): Mention new files.
1754 (nat_source_files): Likewise.
1755 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1758 (getInputStream): Handle compressed entries.
1759 * java/util/zip/GZIPOutputStream.java: New file.
1760 * java/util/zip/GZIPInputStream.java: New file.
1761 * java/util/zip/DataFormatException.java: New file.
1762 * java/util/zip/CheckedInputStream.java: New file.
1763 * java/util/zip/CheckedOutputStream.java: New file.
1764 * java/util/zip/InflaterInputStream.java: Implemented.
1765 * java/util/zip/natInflater.cc: New file.
1766 * java/util/zip/Deflater.java: Implemented.
1767 * java/util/zip/natDeflater.cc: New file.
1768 * java/util/zip/DeflaterOutputStream.java: Implemented.
1770 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1771 ZipException, not IOException.
1772 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1775 1999-05-17 Tom Tromey <tromey@cygnus.com>
1777 * java/lang/natSystem.cc (init_properties): URL now points to
1780 1999-05-12 Per Bothner <bothner@cygnus.com>
1782 * java/util/Calendar.java (set): First call computeFields if needed.
1783 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1785 1999-05-12 Tom Tromey <tromey@cygnus.com>
1787 * configure: Rebuilt.
1788 * configure.in: Look for -ldl when using the Boehm collector.
1789 Look for sched_yield in -lposix4.
1791 1999-05-12 Per Bothner <bothner@cygnus.com>
1793 * java/io/File.java (mkdirs): Handle a null parent directory.
1795 1999-05-12 Tom Tromey <tromey@cygnus.com>
1797 * include/javaprims.h: Updated namespace declarations.
1798 * classes.pl (scan): Uniquify class list.
1799 * Makefile.in, configure: Rebuilt.
1800 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1801 (built_java_source_files): New macro.
1802 (nat_headers): Added built_java_source_files.
1803 (javao_files): Likewise.
1804 (EXTRA_libgcj_la_SOURCES): Likewise.
1805 (libgcj.zip): Create built class files.
1806 ($(built_java_source_files:.java=.class)): New target.
1807 (jv_convert_LDADD): Added -L$(here)/.libs.
1808 * configure.in: Create links for ConcreteProcess.java and
1809 natConcreteProcess.cc.
1810 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1811 * java/lang/natEcosProcess.cc: New file.
1812 * java/lang/EcosProcess.java: New file.
1813 * java/lang/PosixProcess.java: New file.
1814 * java/lang/natPosixProcess.cc: New file.
1816 1999-05-12 Warren Levy <warrenl@cygnus.com>
1818 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1819 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1820 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1821 (connect): Throw ConnectException.
1823 1999-05-11 Tom Tromey <tromey@cygnus.com>
1825 * Makefile.in: Rebuilt.
1826 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1827 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1830 * Makefile.in: Rebuilt.
1831 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1832 and it causes problems with libtool.
1834 * Makefile.in, configure: Rebuilt.
1835 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1836 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1837 (jv_convert_DEPENDENCIES): Added ZDEPS.
1838 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1840 (THREADSPEC): Added `-L' to point to qthreads build directory.
1844 * configure, Makefile.in: Rebuilt.
1845 * Makefile.am (toolexeclib_DATA): New macro.
1846 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1847 Recognize --with-system-zlib.
1848 (GCSPEC): New subst.
1849 (THREADSPEC): New subst.
1850 (SYSTEMSPEC): New subst.
1851 (ZLIBSPEC): New subst.
1852 * libgcj.spec.in: New file.
1854 1999-05-10 Tom Tromey <tromey@cygnus.com>
1856 * java/io/InputStreamReader.java (read): If length is 0, return
1857 0. Reset `wpos' and `wcount' when buffer has been filled and
1860 * java/util/Properties.java (save): Removed `FIXME' comment.
1861 (load): Invalid characters in \u now treated as terminators.
1862 Make sure to append character resulting from `\' handling.
1863 Cast to `char' when appending to key or value.
1864 (skip_ws): Inverted test for whitespace.
1866 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1868 (readLine): Likewise.
1869 (readFully): Implemented.
1871 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1873 * java/awt/natToolkit.cc: Added copyright header.
1874 * java/util/zip/InflaterInputStream.java: Added copyright header.
1876 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1878 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1880 (getNextStream): Likewise.
1882 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1884 (getBundle): Don't explicitly throw null pointer exception.
1886 * gnu/gcj/RawData.java: Added copyright header.
1888 * include/jni.h (_Jv_va_list): Always define as va_list.
1890 1999-05-9 Anthony Green <green@cygnus.com>
1892 * java/text/DateFormat.java (computeInstance): Separate time
1894 (getDateTimeInstance): Ditto.
1895 (getDateTimeInstance(int,int)): New method.
1897 * Makefile.in: Rebuilt.
1898 * Makefile.am (ordinary_java_source_files): Add new classes.
1900 * java/util/PropertyResourceBundle.java: New file.
1901 * gnu/gcj/util/EnumerationChain.java: New file.
1903 1999-05-07 Tom Tromey <tromey@cygnus.com>
1905 * acconfig.h (GCJVERSION): New undef.
1906 * java/lang/natSystem.cc (init_properties): Define java.version,
1907 java.class.version, os.name, os.arch, os.version.
1908 Include <sys/utsname.h> if required.
1909 * configure: Rebuilt.
1910 * configure.in: Compute and define GCJVERSION.
1912 * java/lang/natSystem.cc (default_file_encoding): Now static.
1914 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1916 * libtool-version: New file.
1917 * Makefile.in: Rebuilt.
1918 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1921 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1922 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1925 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1926 (we pick those up already).
1928 1999-05-05 Per Bothner <bothner@cygnus.com>
1930 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1931 stub classes. (This is enough to get Kawa to compile against libgcj.)
1933 * gnu/gcj/RawData.java: New class.
1934 * doc/cni.sgml: Document RawData.
1936 * java/util/zip/InflaterInputStream.java: New stub class.
1937 * java/util/zip/ZipInputStream.java: New class. Partly works.
1938 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1939 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1940 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1941 * java/util/zip/ZipOutputStream.java: Start implementation.
1943 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1944 (default_file_encoding): New global, initial value is above macro.
1945 (init_properties): Default file.encoding to default_file_encoding.
1947 * Makefile.am: Add new classes.
1949 1999-05-05 Tom Tromey <tromey@cygnus.com>
1951 * Makefile.in: Rebuilt.
1952 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1953 (clean-local): New target
1955 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1956 (load, loadLibrary): Now native.
1958 * java/lang/Runtime.java (load, loadLibrary): Now native.
1959 (init): New native method.
1960 (Runtime): Use init.
1961 * prims.cc: Include <ltdl.h> if required.
1962 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1964 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1966 * configure.in: Switch from irix threads to posix threads
1967 * configure: Regenerate.
1969 1999-04-30 Tom Tromey <tromey@cygnus.com>
1971 * Makefile.in: Rebuilt.
1972 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1974 1999-04-29 Tom Tromey <tromey@cygnus.com>
1976 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1979 * java/util/Locale.java (Locale(String,String)): Implement in
1980 terms of 3-argument version; variant now defaults to empty
1982 (toString): Assume variant is not null.
1983 (equals): Assume all strings are not null.
1984 (Locale): Throw NullPointerException if any argument is null.
1986 * java/util/ResourceBundle.java (getBundle): Don't try the base
1987 name; now implicit in partialGetBundle call.
1988 (trySomeGetBundle): Search for parent bundles and call setParent
1990 (partialGetBundle): Added `langStop' argument. Use
1991 `Locale.toString' to compute bundleName.
1992 (resource_cache): New static field.
1993 (partialGetBundle): Cache the returned resource bundle. Now
1996 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1999 * mauve-libgcj: Enable Collator and RuleBasedCollator.
2000 * java/text/natCollator.cc (decomposeCharacter): `base' now
2002 * Makefile.in: Rebuilt.
2003 * Makefile.am (ordinary_java_source_files): Added
2004 CollationElementIterator, CollationKey, Collator,
2006 (nat_source_files): Added natCollator.cc.
2007 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
2008 (compare): Pass `this' to CollationElementIterator constructor.
2009 (getCollationElementIterator): Likewise.
2010 (ceiNext): Fix off-by-one error when finding initial substring.
2011 (next): Correctly mask off bits when computing return value.
2012 Fixed return values when one string is shorter than the other.
2013 * java/text/CollationElementIterator.java (collator): New field.
2014 (CollationElementIterator): Added collator argument.
2015 (next): Call ceiNext on collator object.
2017 1999-04-26 Tom Tromey <tromey@cygnus.com>
2019 * natCollator.cc: New file.
2021 * java/util/GregorianCalendar.java (setDefaultTime): New method.
2022 (GregorianCalendar): Use it in all constructors.
2023 * java/util/Calendar.java (Calendar): Changed argument name to
2024 `zone' to match code.
2026 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
2027 * java/text/CollationKey.java: New file.
2028 * java/text/CollationElementIterator.java: New file.
2029 * java/text/Collator.java: New file.
2030 * java/text/RuleBasedCollator.java: New file.
2032 * Makefile.in: Rebuilt.
2033 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
2034 (jv_convert_LDADD): Explicltly add -lm -lc.
2036 1999-04-26 Tom Tromey <tromey@cygnus.com>
2038 * configure, Makefile.in: Rebuilt.
2039 * configure.in: Added AM_PROG_LIBTOOL.
2040 (GCOBJS): Use `.lo' form of files.
2041 (THREADOBJS): Likewise.
2042 (GCDEPS): Use `.la' form of library.
2043 (GCLIBS): Set to be the same as GCDEPS.
2044 (THREADDEPS): Use `.la' form of library.
2045 (THREADLIBS): Set to be the same as THREADDEPS.
2046 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2047 toolexeclib_LIBRARIES.
2048 (libgcj_la_SOURCES): Renamed for libtoolization.
2049 (EXTRA_libgcj_la_SOURCES): Likewise.
2050 (libgcj_la_DEPENDENCIES): Likewise.
2051 (libgcj_la_LIBADD): Likewise.
2052 ($(nat_files)): Use LTCXXCOMPILE.
2053 ($(c_files)): Use LTCOMPILE.
2054 (GCJCOMPILE): New macro.
2056 (.java.o): Likewise.
2057 ($(javao_files)): Likewise.
2058 (jv_convert_LINK): Use LIBTOOL.
2059 (nat_files): Use `.lo' files.
2060 (c_files): Likewise.
2061 (javao_files): Likewise.
2062 (.class.lo): Renamed.
2063 (.java.lo): Likewise.
2064 ($(nat_files)): Depend on %.lo.
2065 ($(c_files)): Likewise.
2066 ($(javao_files)): Likewise.
2067 (jv_convert_LDADD): Link against .lo files.
2068 (jv_convert_DEPENDENCIES): Depend on .lo files.
2069 (maintainer-check): Depend on libgcj.la, but examine .a file.
2070 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2071 (libgcj_la_LDFLAGS): New macro.
2073 1999-04-23 Warren Levy <warrenl@cygnus.com>
2075 * Makefile.am: Added URLDecoder and URLEncoder.
2076 * Makefile.in: Rebuilt.
2078 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2079 setSocketImplFactory to match spec.
2080 * java/net/Socket.java (getSoLinger): Changed return type to
2083 * java/net/URLDecoder.java: New file.
2084 * java/net/URLEncoder.java: New file.
2086 1999-04-21 Tom Tromey <tromey@cygnus.com>
2088 * java/lang/natString.cc (getBytes): Reverted earlier change and
2089 applied correct fix from Per Bothner.
2091 * java/lang/String.java: Don't throw
2092 UnsupportedEncodingException.
2094 * java/lang/natString.cc (getBytes): Correctly size result
2095 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2097 1999-04-20 Andrew Haley <aph@cygnus.com>
2099 * include/sparc-signal.h: new file.
2100 * configure.in: include/sparc-signal.h added.
2101 * configure: regenerated.
2102 * prims.cc (JvRunMain): signal handling code rewritten to be more
2104 (catch_segv): ditto.
2106 * include/i386-signal.h: reorganized.
2107 * include/default-signal.h: reorganized.
2109 1999-04-19 Tom Tromey <tromey@cygnus.com>
2111 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2112 once. From Anthony Green.
2114 1999-04-19 Andrew Haley <aph@cygnus.com>
2116 * Makefile.in: Processed with new automake.
2118 1999-04-19 Tom Tromey <tromey@cygnus.com>
2120 * include/javaprims.h: Removed security namespace.
2122 1999-04-20 Anthony Green <green@cygnus.com>
2124 * java/io/PrintStream.java (println): Remove extra println.
2126 1999-04-19 Anthony Green <green@cygnus.com>
2128 * Makefile.in: Rebuilt.
2129 * Makefile.am (ordinary_java_source_files): Add new security files.
2131 * java/security/NoSuchAlgorithmException.java,
2132 java/security/MessageDigest.java: New files.
2134 * include/javaprims.h: Add security namespace.
2136 1999-04-16 Per Bothner <bothner@cygnus.com>
2138 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2139 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2140 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2141 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2142 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2143 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2144 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2145 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2146 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2147 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2148 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2149 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2150 * Makefile.am: Various changes for new files and conversions.
2152 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2153 New overloading, allows greater efficiency.
2154 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2155 New overloading (for efficiency - avoids copying).
2157 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2158 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2160 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2161 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2162 (writeChars): Don't be quite so eager to flush.
2163 * java/io/PrintStream.java: Rewrite. Now more similar to
2164 OutputStreamWriter, using explicit UnicodeToBytes converter.
2165 Also, autoflush does not need to flush so often.
2166 * java/lang/natString.cc (getBytes): More efficient algorithm.
2167 (init(jbyteArray,jint,jint,jstring)): More efficient.
2169 1999-04-15 Warren Levy <warrenl@cygnus.com>
2171 * Makefile.am (ordinary_java_source_files): Added new Connection
2172 and Handler classes in gnu.gcj.protocol.file package.
2173 * Makefile.in: Rebuilt.
2175 * gnu/gcj/protocol/file/Connection.java: New file.
2176 * gnu/gcj/protocol/file/Handler.java: New file.
2177 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2178 if doInput allows input.
2179 (getOutputStream): Check if doOutput allows output.
2180 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2182 1999-04-14 Tom Tromey <tromey@cygnus.com>
2184 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2185 buffer larger to work around bug.
2186 From Bryce McKinlay <bryce@albatross.co.nz>.
2188 1999-04-14 Andrew Haley <aph@cygnus.com>
2190 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2191 NaNs are always converted to the same long value.
2192 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2195 1999-04-13 Tom Tromey <tromey@cygnus.com>
2197 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2198 instead switch on actual element type.
2200 * Makefile.in: Rebuilt.
2201 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2203 1999-04-13 Andrew Haley <aph@cygnus.com>
2205 * include/i386-signal.h, include/default-signal.h: New files.
2206 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2208 (catch_fpe): New function.
2209 * configure.in: Make link to appropriate include/java-signal.h.
2210 * configure: Rebuilt.
2211 * Makefile.am: include/java-signal.h added to dependency list.
2212 * Makefile.in: Rebuilt.
2214 1999-04-12 Urban Widmark <urban@svenskatest.se>
2216 * java/io/DataInputStream.java (readLine): Corrected handling of
2217 empty lines, from null to "".
2219 1999-04-12 Tom Tromey <tromey@cygnus.com>
2221 * Makefile.in: Rebuilt.
2222 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2224 * java/lang/natSystem.cc (SystemClass): New define.
2225 (init_properties): Synchronize.
2227 1999-04-08 Geoff Berry <gcb@gnu.org>
2229 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2230 * natPlainSocketImpl.cc (accept): Add missing else if check
2233 1999-04-08 Tom Tromey <tromey@cygnus.com>
2235 * java/lang/Long.java (parseLong): Corrected overflow detection
2237 * java/lang/Integer.java (parseInt): Corrected overflow detection
2240 * java/io/PrintStream.java (print): Handle null string argument.
2241 (println): Likewise.
2243 1999-04-07 Warren Levy <warrenl@cygnus.com>
2245 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2246 Set count to 0 when InputStreamReader returns -1 for EOF.
2248 1999-04-07 Tom Tromey <tromey@cygnus.com>
2250 * mauve-libgcj: Omit java.text.Collator,
2251 java.text.RuleBasedCollator.
2253 1999-04-06 Tom Tromey <tromey@cygnus.com>
2255 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2256 IOException from getHttpHeaders().
2257 (getHeaderFieldKey): Likewise.
2259 * include/javaprims.h: Regenerated declarations.
2261 * Makefile.in: Rebuilt.
2262 * Makefile.am (ordinary_java_source_files): Updated for removed
2265 1999-04-06 Per Bothner <bothner@cygnus.com>
2267 * java/util/zip/Adler32.java: New class.
2268 * java/util/zip/CRC32.java: Add working method bodies.
2269 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2270 * Makefile.in: Re-generate.
2272 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2274 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2275 from version in removed www hierarchy.
2276 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2277 version in removed www hierarchy.
2279 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2280 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2281 * gnu/gcj/www/protocol/http: Removed dir.
2282 * gnu/gcj/www/protocol: Removed dir.
2283 * gnu/gcj/www: Removed dir.
2285 * java/net/HttpURLConnection.java: Revised comments to indicate
2286 missing JDK 1.2 methods.
2288 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2289 hierarchy rather than the gnu/gcj/www/protocol one.
2290 * java/net/URLConnection.java: Updated status comments.
2291 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2292 the gnu/gcj/www/content one.
2294 1999-04-06 Per Bothner <bothner@cygnus.com>
2296 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2297 The gen-from-JIS program is in $(CONVERT_DIR).
2299 1999-04-06 Tom Tromey <tromey@cygnus.com>
2301 * mauve-libgcj: Renamed from mauve-libjava.
2303 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2305 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2306 (getResponseMessage): Implemented.
2307 (getResponseVals): New private method.
2309 * java/net/URLConnection.java (getContent): Implemented.
2310 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2312 1999-04-05 Tom Tromey <tromey@cygnus.com>
2314 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2315 (jv_convert_SOURCES): Renamed.
2316 (EXTRA_jv_convert_SOURCES): Likewise.
2317 (jv_convert_LDFLAGS): Likewise.
2318 (jv_convert_LINK): Likewise.
2319 (jv_convert_LDADD): Likewise.
2320 (jv_convert_DEPENDENCIES): Likewise.
2322 * Makefile.in: Rebuilt.
2323 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2326 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2328 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2329 method for comparison.
2331 * java/net/URLConnection.java (getContentLength): Implemented.
2332 (getContentType): Implemented.
2333 (getContentEncoding): Implemented.
2334 (getExpiration): Implemented.
2335 (getDate): Implemented.
2336 (getLastModified): Implemented.
2337 (getHeaderFieldInt): Implemented.
2338 (getHeaderFieldDate): Implemented.
2340 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2342 * java/net/URLConnection.java (toString): Implemented.
2343 (setContentHandlerFactory): Implemented.
2344 (setContentHandler): Wrote new private helper method.
2346 1999-04-01 Tom Tromey <tromey@cygnus.com>
2348 * Makefile.in: Rebuilt.
2349 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2350 of 1999-03-31; we always want to build all the .class files.
2351 Depend on java_source_files, not libgcj.zip.
2352 (nat_headers): Define in terms of ordinary_java_source_files.
2354 1999-03-31 Tom Tromey <tromey@cygnus.com>
2356 * Makefile.in: Rebuilt.
2357 * Makefile.am (special_java_source_files): New macro.
2358 (java_source_files): Use it.
2359 (ordinary_java_source_files): New macro.
2360 (java_source_files): Use it.
2361 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2362 creating headers for those files with hand-maintained headers.
2364 * include/javaprims.h: Regenerated namespace declarations.
2365 * classes.pl (scan): Include [0-9] in regexp for matching class
2366 names; for java.util.zip.CRC32.
2368 * Makefile.in: Rebuilt.
2369 * Makefile.am (nat_headers): Redefined to generate all possible
2372 * java/util/zip/ZipException.java: In package java.util.zip, not
2375 1999-03-30 Tom Tromey <tromey@cygnus.com>
2377 * configure: Rebuilt.
2378 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2379 eh-common.h when not building in tree with gcc.
2381 * Makefile.in: Rebuilt.
2382 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2383 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2385 ($(java_source_files:.java=.class)): New target.
2387 * Makefile.in: Rebuilt.
2388 * Makefile.am (java_source_files): Added
2389 java/net/HttpURLConnection.java and
2390 gnu/gcj/www/protocol/http/Connection.java.
2392 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2394 * gnu/gcj/www/protocol/http/Connection.java: New file.
2395 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2396 * java/net/HttpURLConnection.java: New file.
2397 * java/net/URLConnection.java (getHeaderField): Implemented default.
2398 (getHeaderFieldKey): Implemented default method.
2400 1999-03-30 Tom Tromey <tromey@cygnus.com>
2402 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2404 * java/util/zip/Deflater.java: Added copyright header.
2405 * java/util/zip/CRC32.java: Added copyright header.
2407 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2408 that it is automatically generated.
2409 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2411 * gnu/gcj/convert/BytesToUnicode.java,
2412 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2413 gnu/gcj/convert/Input_EUCJIS.java,
2414 gnu/gcj/convert/Input_UTF8.java,
2415 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2416 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2417 gnu/gcj/convert/Output_8859_1.java,
2418 gnu/gcj/convert/Output_JavaSrc.java,
2419 gnu/gcj/convert/Output_UTF8.java,
2420 gnu/gcj/convert/UnicodeToBytes.java,
2421 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2423 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2425 * Makefile.in, configure: Rebuilt.
2426 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2427 not if test subdir exists.
2428 (--enable-gcj-classes): Removed; gcj always used to generate
2430 (JAVA, JAVAC): Removed.
2431 (--enable-single-compilation, --enable-source-compilation):
2434 (NATIVE): New conditional.
2435 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2436 `install-exec' to work.
2437 (toolexeclibdir): Likewise.
2438 (toollib_LIBRARIES): Likewise.
2439 (AM_MAKEFLAGS): Don't pass tooldir.
2441 (javao_files): Redefined.
2442 (java_source_files): New macro.
2443 (c_source_files): New macro.
2444 (c_files): Redefined in terms of c_source_files.
2445 (java_io_files, java_lang_files, java_net_files, java_text_files,
2446 java_util_files, gnu_files, java_files): Removed.
2447 (class_io_files, class_lang_files, class_net_files,
2448 class_text_files, class_util_files, class_gnu_files, class_files):
2450 (nat_source_files): New macro.
2451 (nat_files): Redefined in terms of nat_source_files.
2452 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2453 java_source_files. Removed no-such-file.c.
2455 (ETAGS_ARGS): Removed.
2456 (TAGS_DEPENDENCIES): Likewise.
2457 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2459 (src_io_files, src_lang_files, src_text_files, src_util_files,
2460 src_gnu_files): Removed.
2461 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2462 (BUILT_SOURCES): Removed.
2463 (header-check): New target.
2465 (noinst_PROGRAMS): New macro.
2466 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2468 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2469 (gen-from-JIS): Build in top directory.
2470 (convert_source_files): New macro.
2471 (convert_SOURCES): New macro.
2472 (convert_LDFLAGS): Likewise.
2473 (convert_LINK): Likewise.
2474 (convert_LDADD): Likewise.
2475 (convert_DEPENDENCIES): Likewise.
2477 (gen-from-JIS): Removed.
2478 (gen_from_JIS_SOURCES): New macro.
2479 (gen_from_JIS_LDADD): Likewise.
2480 (gen_from_JIS_DEPENDENCIES): Likewise.
2482 * configure: Rebuilt.
2483 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2484 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2485 when defining conditional.
2487 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2489 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2490 The Unicode Consortium does not permit their re-distribution.
2491 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2492 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2494 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2496 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2498 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2500 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2501 from Unicode Consortium.
2502 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2503 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2504 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2505 New tables, generated using gen-from-JIS.
2506 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2507 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2508 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2509 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2511 * gnu/gcj/convert/Convert.java: New application.
2512 * Makefile.am, Makefile.in (convert): New program, using Convert.
2513 Build the various JIS conversion tables (in maintainer mode).
2515 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2517 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2519 * java/net/URL.java (URL): Deal with null property value. Use "."
2520 as separator in building class name.
2521 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2522 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2523 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2524 beginning of the substring rather than 'start'.
2526 1999-03-26 Tom Tromey <tromey@cygnus.com>
2528 * include/java-chartables.h: Rebuilt.
2529 * include/java-chardecomp.h: New file.
2530 * chartables.pl: Generate output files directly. Added support
2531 for generating decomposition header.
2532 (canonical_decomposition, full_decomposition): New globals.
2533 (DECOMPOSITION): New constant.
2534 (process_char): Call add_decomposition.
2535 (add_decomposition): New sub.
2536 (write_decompositions): New sub.
2538 1999-03-25 Tom Tromey <tromey@cygnus.com>
2540 * java/text/CollationElementIterator.java: New file.
2542 * mauve-libjava: Omit StringTest.
2544 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2546 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2547 without a '/' when parsing protocol. Handle ref outside of parseURL.
2548 (hashCode): Implemented.
2549 (set): Don't expand -1 to default port.
2550 (getDefaultPort): Removed.
2552 * java/net/URLStreamHandler.java (parseURL): Implemented.
2553 (toExternalForm): Implemented.
2555 1999-03-23 Tom Tromey <tromey@cygnus.com>
2557 * java/text/BreakIterator.java (getSentenceInstance):
2559 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2561 * Makefile.in: Rebuilt.
2562 * Makefile.am (nat_headers): Added IllegalAccessException.
2563 * java/lang/natClass.cc (newInstance): Throw
2564 IllegalAccessException, not IllegalAccessError.
2565 Include IllegalAccessException.h.
2567 1999-03-22 Tom Tromey <tromey@cygnus.com>
2569 * gnu/gcj/text/LineBreakIterator.java: New file.
2570 * java/text/BreakIterator.java (getLineInstance): Implemented.
2572 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2573 copy constructor private.
2574 (previous, next): Removed erroneous comment about line
2576 (previous): Correctly recognize break between non-letter on the
2577 left and letter on the right. Handle apostrophes correctly.
2579 * java/text/BreakIterator.java (getWordInstance): Implemented.
2580 * gnu/gcj/text/WordBreakIterator.java: New file.
2581 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2583 * gnu/gcj/text/BaseBreakIterator.java: New file.
2585 1999-03-19 Tom Tromey <tromey@cygnus.com>
2587 * java/text/BreakIterator.java: New file (partially stubbed out).
2588 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2590 * include/config.h.in: Rebuilt.
2591 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2592 (HAVE_TIMEZONE): Likewise.
2593 * configure: Rebuilt.
2594 * configure.in: Added timezone checks.
2595 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2598 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2600 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2601 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2602 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2603 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2604 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2605 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2606 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2607 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2609 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2610 (BSD_COMP): Kludge needed for Solaris2.
2612 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2614 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2615 URL(java.net.URL, string, URLStreamHandler) and call it with a
2616 null handler. In latter constructor, added SecurityManager check.
2617 (set): Expect null handler on bad protocol rather than an exception.
2618 (setURLStreamHandler): Simplified exception handling; return null
2619 on invalid protocol.
2621 1999-03-18 Tom Tromey <tromey@cygnus.com>
2623 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2625 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2627 Include PrintStream.h, InputStream.h.
2628 * java/lang/System.java (ForwardingInputStream,
2629 ForwardingOutputStream): Removed.
2630 (setErr, setIn, setOut): Now native.
2632 Reverted patch from 1999-02-12 to work around problem in
2634 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2635 (_Jv_eh_free): Use free.
2637 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2638 for path name. Minor formatting fixes.
2640 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2642 * prims.cc (fail_on_finalization): New function.
2643 (_Jv_GCWatch): Likewise.
2645 * prims.cc (JvRunMain): Initialize `nullp'.
2646 (nullp): New global.
2647 (catch_segv): Throw nullp.
2649 * Makefile.in: Rebuilt.
2650 * Makefile.am (ZIP): In "null target" case, zip is found in the
2653 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2657 * java/lang/StringBuffer.java (StringBuffer): Don't use
2658 ensureCapacity to set initial capacity.
2659 (capacity): Subtract `length' from return result.
2661 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2663 * java/io/natFileDescriptorPosix.cc (open): Throw
2664 FileNotFoundException, but with filename and errno in msg.
2666 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2668 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2669 functionality folded into java/net/URL.java per spec.
2671 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2672 than EEXIST for throwing FileNotFoundException.
2674 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2675 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2677 * java/net/URLStreamHandler.java (parseURL): Added stub.
2679 1999-03-15 Andrew Haley <aph@cygnus.com>
2681 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2684 1999-03-15 Andrew Haley <aph@cygnus.com>
2686 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2689 1999-03-12 Tom Tromey <tromey@cygnus.com>
2691 * prims.cc (catch_segv): New function.
2692 Include <signal.h> if HANDLE_SEGV defined. Include
2693 NullPointerException.h.
2694 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2697 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2698 a SimpleDateFormat, not just a DateFormat.
2699 (defaultCenturyStart, formatData, pattern): Now private.
2700 (append): Now `final'. Use `NumberFormat.format'.
2702 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2704 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2707 * java/text/MessageFormat.java (format): Use default MessageFormat
2709 (parse, parseObject): Wrote.
2711 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2714 1999-03-12 Andrew Haley <aph@cygnus.com>
2716 * java/lang/String.java (indexOf): Replace with native method for
2718 * java/lang/natString.cc (IndexOf): As above.
2720 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2721 Argument check corrected.
2722 (init(jbyteArray,jint,jint,jstring)): Likewise.
2724 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2725 1.2 compliant method.
2727 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2729 * java/lang/Float.java (byteValue, shortValue): Likewise.
2731 1999-03-11 Tom Tromey <tromey@cygnus.com>
2733 * java/text/DecimalFormat.java (parse): Wrote.
2735 * java/text/ChoiceFormat.java (parse): Set error index on
2736 ParsePosition object.
2738 * java/lang/Integer.java (parseInt): Throw exception on overflow
2739 when intermediate result is most negative number. Changed
2740 overflow detection as well.
2741 * java/lang/Long.java (parseLong): Likewise.
2743 * configure, Makefile.in: Rebuilt.
2744 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2745 CANADIAN when building in source tree that doesn't include gcc.
2746 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2749 * java/text/ChoiceFormat.java (nextDouble): Correct some
2750 off-by-one errors when masking or adding.
2752 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2753 parameter, if given. Use `%', not IEEEremainder.
2754 (scanFix): Throw error if multiplier already set.
2755 (computePattern): Wrote.
2757 1999-03-11 Andrew Haley <aph@cygnus.com>
2759 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2761 (nextDouble): Corrected masking logic. Handle interaction between
2762 `next' and negative numbers.
2764 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2766 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2767 * java/net/URL.java: Added general comments.
2769 1999-03-10 Tom Tromey <tromey@cygnus.com>
2771 * java/text/ChoiceFormat.java (parse): Wrote.
2773 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2775 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2776 Create ChoiceFormat objects.
2777 (format): Special-case ChoiceFormat.
2778 (scanFormatElement): Include { and } in generated style string.
2780 1999-03-09 Tom Tromey <tromey@cygnus.com>
2782 * java/text/ChoiceFormat.java: New file.
2784 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2786 * java/net/BindException.java: Created.
2787 * java/net/ConnectException.java: Created.
2788 * java/net/ContentHandler.java: Created.
2789 * java/net/ContentHandlerFactory.java: Created.
2790 * java/net/FileNameMap.java: Created.
2791 * java/net/MalformedURLException.java: Created.
2792 * java/net/NoRouteToHostException.java: Created.
2793 * java/net/ProtocolException.java: Created.
2794 * java/net/ServerSocket.java (@author): Fixed typo.
2795 * java/net/Socket.java (@author): Fixed typo.
2796 * java/net/SocketImpl.java (@author): Fixed typo.
2797 * java/net/SocketImplFactory.java (@author): Fixed typo.
2798 * java/net/URL.java: Created - nearly complete.
2799 * java/net/URLConnection.java: Created - near-empty stub.
2800 * java/net/URLStreamHandler.java: Created - incomplete stub.
2801 * java/net/URLStreamHandlerFactory.java: Created.
2802 * java/net/UnknownServiceException.java: Created.
2804 1999-03-09 Tom Tromey <tromey@cygnus.com>
2806 * java/lang/System.java (ForwardingInputStream): New class.
2807 (ForwardingOutputStream): Likewise.
2808 (in, out, err): Now `final' forwarding streams.
2809 (setIn, setOut, setErr): Use appropriate method on forwarding
2812 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2815 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2817 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2818 * java/util/zip/Checksum.java: New interface (complete).
2819 * java/util/zip/Deflater.java: New class (near-empty stub).
2820 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2821 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2822 * java/util/zip/ZipEntry.java: New class (complete).
2823 * java/util/zip/ZipException.java: New class (complete).
2824 * java/util/zip/ZipFile.java: New class (incomplete stub).
2825 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2827 1999-03-09 Tom Tromey <tromey@cygnus.com>
2829 * java/text/MessageFormat.java (MessageFormatElement): Removed
2830 `public' specifiers.
2832 * java/text/DecimalFormat.java (scanFormat): Increment index
2833 before processing exponential format. Fixed a couple typos in
2835 (format): Correct normalization of exponent.
2837 1999-03-08 Tom Tromey <tromey@cygnus.com>
2839 * java/text/SimpleDateFormat.java (parse): Throw
2840 IllegalArgumentException, not ParseException.
2842 1999-03-05 Tom Tromey <tromey@cygnus.com>
2844 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2845 when constructing DateFormatSymbols. Initialize numberFormat
2846 field of superclass.
2848 * java/text/DateFormat.java (equals): Rewrote.
2849 (getAvailableLocales): New method.
2850 (getDateInstance): New methods.
2851 (getDateTimeInstance): Likewise.
2852 (getTimeInstance): Likewise.
2853 (getInstance): New method.
2854 (computeInstance): New method.
2856 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2858 (safeGetResource): New method.
2859 (DateFormatSymbols): Use Locale paramater.
2860 (equals): Now protected.
2861 Made instance variables private.
2863 1999-03-04 Tom Tromey <tromey@cygnus.com>
2865 * java/text/DecimalFormat.java: New file.
2867 * java/text/NumberFormat.java (groupingUsed,
2868 maximumFractionDigits, maximumIntegerDigits,
2869 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2871 (setDecimalSeparatorAlwaysShown, setMultiplier,
2872 setPositivePrefix): Removed.
2873 (setMinimumFractionDigits, setMaximumFractionDigits):
2875 (format): Now final.
2876 Added many new methods.
2878 * Makefile.in: Rebuilt.
2879 * Makefile.am (gnu_files): New macro.
2880 (java_files): Added gnu_files.
2881 (class_gnu_files): New macro.
2882 (class_files): Use it.
2883 (src_gnu_files): New macro.
2884 (gnu.o): New target.
2885 (javao_files): Added gnu.o.
2887 * gnu/gcj/text/LocaleData_en_US.java: New file.
2888 * gnu/gcj/text/LocaleData_en.java: New file.
2889 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2890 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2891 (safeGetString): New method.
2892 (safeGetChar): Likewise.
2894 1999-03-03 Tom Tromey <tromey@cygnus.com>
2896 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2899 * java/text/FieldPosition.java (equals): Don't check for null
2900 object; instanceof does this.
2902 * java/util/Locale.java (clone): New method.
2905 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2907 * doc/cni.sgml: New file.
2909 1999-03-03 Tom Tromey <tromey@cygnus.com>
2911 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2913 * java/text/DecimalFormatSymbols.java: New file.
2915 1999-03-02 Tom Tromey <tromey@cygnus.com>
2917 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2919 * configure: Rebuilt.
2920 * configure.in: Check for sys/filio.h.
2922 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2924 (load): Always throw UnsatisfiedLinkError.
2925 (loadLibrary): Likewise.
2927 1999-03-02 Anthony Green <green@cygnus.com>
2929 * LIBGCJ_LICENSE: New file.
2930 * LIBJAVA_LICENSE: Removed.
2931 * Many files: libjava now libgcj.
2933 1999-03-02 Tom Tromey <tromey@cygnus.com>
2935 * include/java-chartables.h: Rebuilt.
2936 * chartables.pl (print_block): Make table `const'.
2937 (print_numerics): Likewise.
2938 (print_single_map): Likewise.
2939 (print_all_block): Likewise.
2940 (print_case_table): Likewise.
2941 (print_fast_tables): Likewise.
2942 * java/lang/natCharacter.cc (table_search): `table' argument now
2945 1999-03-01 Tom Tromey <tromey@cygnus.com>
2947 * java/util/Date.java (before, after): Inverted logic.
2949 * java/util/Date.java (parse): Handle case where first character
2950 in string is open parenthesis.
2951 (skipParens): Rewrote.
2953 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2954 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2956 * java/util/Date.java (parse): Correctly compute beginning of
2959 * java/util/Hashtable.java (get): Throw NullPointerException if
2961 (containsKey): Likewise.
2963 * java/util/Properties.java (list): Truncate value to 37
2964 characters and add `...'.
2966 * java/lang/Byte.java (parseByte): Pass `radix' to
2969 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2971 Include System.h, PrintStream.h.
2973 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2976 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2978 * configure: Rebuilt.
2979 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2982 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2984 * java/lang/SecurityManager.java: Import java.net.*.
2985 (checkMulticast): New methods.
2987 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2989 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2990 (nat_files): Add java/lang/reflect/natArray.o.
2991 (nat_headers): Add Field.h and NoSuchFieldException.h.
2993 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2994 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2995 (_Jv_FromReflectedField): Fix buglet.
2996 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2997 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2998 * prims.cc (_Jv_Abort): Include message in print-out.
3000 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
3001 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
3002 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
3004 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
3005 * include/config.h.in (HAVE_PWD_H): New feature macro.
3006 * java/lang/natSystem.cc (init_properties): Set file.encoding,
3007 user.name, user.home, user.dir.
3009 * java/lang/reflect/Array.java: New class.
3010 * java/lang/reflect/natArray.cc: New native methods.
3011 * include/javaprims.h: Declare java::lang::reflect::Array.
3013 * java/lang/Class.h (getField): New private method. Add friends.
3014 * java/lang/Class.java (getField): Add private overload.
3015 * java/lang/natClass.cc (getField, getField, getDeclaredField,
3016 getDeclaredMethods): Add working implementations.
3017 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
3018 Finish implementation, except for access control.
3020 * java/lang/reflect/Modifier.java (toString): New overload.
3021 * include/java-method.h: New file.
3022 * java/lang/reflect/Method.java (index): Replaced by offset field.
3023 Remove various private fields - get them from _Jv_Field instead.
3024 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
3025 New method implementations.
3027 * java/text/NumberFormat.java: Add a bunch of methods.
3029 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
3031 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
3033 1999-02-26 Tom Tromey <tromey@cygnus.com>
3035 * include/config.h.in: Rebuilt.
3036 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
3037 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
3038 HAVE_GETHOSTBYADDR_R): New defines.
3039 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
3040 gethostbyaddr_r if available.
3042 * configure: Rebuilt.
3043 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3045 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3049 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3050 * prims.cc (_Jv_AllocBytesChecked): New function.
3052 * Makefile.in: Rebuilt.
3053 * Makefile.am (SUBDIRS): Removed `test'.
3054 * configure: Rebuilt.
3055 * configure.in: Don't build test/Makefile.
3056 * test/*: Removed all files.
3058 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3060 * java/lang/reflect/Constructor.java: Make class final to match spec.
3061 * java/lang/reflect/Method.java: Ditto.
3063 1999-02-25 Tom Tromey <tromey@cygnus.com>
3065 * java/net/natInetAddress.cc: Include <sys/types.h> before
3067 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3070 * java/net/natInetAddress.cc: Declare gethostname if required.
3071 * include/config.h.in: Rebuilt.
3072 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3073 * configure: Rebuilt.
3074 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3075 declared in unistd.h.
3077 1999-02-24 Tom Tromey <tromey@cygnus.com>
3079 * Makefile.in: Rebuilt.
3080 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3081 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3082 from private to "none".
3084 * include/javaprims.h: Regenerated class declarations with new
3086 * classes.pl (scan): Only generate decls for java.lang, java.io,
3089 1999-02-24 Tom Tromey <tromey@cygnus.com>
3091 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3092 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3094 1999-02-23 Tom Tromey <tromey@cygnus.com>
3096 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3097 not already defined.
3098 * java/io/natFile.cc (_REENTRANT): Only define if not already
3100 * include/config.h.in: Rebuilt.
3101 * acconfig.h (HAVE_BOEHM_GC): New define.
3102 * configure: Rebuilt.
3103 * configure.in: Define HAVE_BOEHM_GC if using it.
3104 * posix-threads.cc: Include boehm-config.h and gc.h if
3106 * include/posix-threads.h: Added explanatory note about Boehm GC.
3108 * java/io/BufferedReader.java (readLine): Only return null when
3109 EOF seen before any characters read. (In particular, an empty
3110 line should not return null.)
3112 * java/io/BufferedInputStream.java (read): Only refill once per
3115 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3116 java.lang.Character.classify12, java.lang.String.hash,
3117 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3118 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3120 * java/text/StringCharacterIterator.java (setIndex): No error if
3122 (next): Check for `pos == end', not `end - 1'.
3123 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3124 for null text in each constructor.
3125 (clone): Fixed order of arguments to constructor.
3127 1999-02-22 Tom Tromey <tromey@cygnus.com>
3129 * include/config.h.in: Rebuilt.
3130 * acconfig.h (HAVE_INET6): New define.
3131 (HAVE_SOCKLEN_T): Likewise.
3132 * java/net/PlainSocketImpl.java: Added copyright header.
3133 * java/net/natPlainSocketImpl.cc: Added copyright header.
3134 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3136 (connect): Likewise.
3138 (socklen_t): New typedef.
3139 (accept): Use socklen_t.
3140 * java/net/natInetAddress.cc: Added copyright header.
3141 (HAVE_GETHOSTNAME): Don't define.
3142 (HAVE_INET_ADDR): Likewise.
3143 (lookup): Fixed typo.
3144 (aton): Don't use `address' as name of local variable.
3145 (lookup): Use HAVE_INET6, not AF_INET6.
3147 * configure: Rebuilt.
3148 * configure.in: Look for functions inet_aton, inet_addr,
3149 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3150 Check for socklen_t typedef.
3152 * exception.cc (__throw): Declare as __noreturn__.
3154 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3156 * Makefile.am, Makefile.in: Also build java/net.
3157 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3159 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3160 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3162 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3163 * include/cni.h (JvMalloc, JvFree): New inline functions.
3164 (JvThrow): Add __noreturn__ attribute.
3165 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3166 (_Jv_Throw): Add __noreturn__ attribute.
3168 * java/net/PlainSocketImpl.java: Init fnum to -1.
3169 * java/net/ServerSocket.java: Add missing throws clauses.
3170 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3171 don't call create on the latter. Instead, other constructors
3172 have to explicitly call SocketImpl.create.
3173 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3174 from size_t to int, to match ::accept prototype.
3175 * java/net/natInetAddress.cc: Use JvFree rather than free.
3178 1999-02-22 Tom Tromey <tromey@cygnus.com>
3180 * include/javaprims.h: Added new classes.
3181 * java/text/StringCharacterIterator.java: New file.
3182 * java/text/CharacterIterator.java: New file.
3184 * java/text/ParseException.java (errorOffset): Now private.
3186 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3188 * java/net: New package.
3189 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3190 Socket.java,SocketException.java,SocketImpl.java,
3191 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3192 natPlainSocketImpl.cc}: New classes.
3194 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3195 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3196 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3197 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3199 * classes.pl: Translate package into "namespace", not "class".
3200 * include/javaprims.h: Update class list, using "namespace".
3202 1999-02-21 Tom Tromey <tromey@cygnus.com>
3204 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3205 Define when appropriate.
3207 1999-02-20 Tom Tromey <tromey@cygnus.com>
3209 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3210 as a single byte and \u07ff as two bytes.
3211 (_Jv_GetStringUTFLength): Likewise.
3212 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3213 with 0x0f, not 0x1f.
3215 1999-02-19 Tom Tromey <tromey@cygnus.com>
3217 * java/io/DataOutputStream.java (writeUTF): When encoding
3218 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3219 * java/io/DataInputStream.java (readUTF): Mask second byte of
3220 3-byte character with 0x3f, not 0x1f.
3222 * java/io/DataInputStream.java (readLong): Cast result of
3223 readUnsignedByte to long before using.
3225 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3228 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3229 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3230 argument to avoid warning.
3231 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3232 argument to avoid warning.
3234 1999-02-18 Tom Tromey <tromey@cygnus.com>
3236 * mauve-libjava: Omit java.io.DataInputOutput and
3237 java.io.Utf8Encoding.
3239 1999-02-17 Tom Tromey <tromey@cygnus.com>
3241 * Makefile.in: Rebuilt.
3242 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3243 * java/io/natFileDescriptorPosix.cc: Include
3244 InterruptedIOException.h, Thread.h.
3245 (write): Throw InterruptedIOException when required.
3247 * posix-threads.cc: Include <signal.h>.
3248 (_Jv_ThreadInterrupt): New function.
3250 (handle_intr): New function.
3251 (_Jv_InitThreads): Register handle_intr via sigaction.
3252 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3253 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3254 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3255 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3257 1999-02-19 Andrew Haley <aph@cygnus.com>
3259 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3261 (ThreadGroup (int)): Set the maximum priority of the initial
3264 1999-02-18 Andrew Haley <aph@cygnus.com>
3266 * java/lang/natClass.cc (forName): Check for the case where a
3267 classname is the name of an array and call FindClassFromSignature
3270 1999-02-18 Andrew Haley <aph@cygnus.com>
3272 * java/lang/StringBuffer (insert (int, String)): Move up any
3273 characters above the insert position and increase the length of
3274 the string buffer by the length of the argument.
3275 (insert (int, char[])): Likewise.
3276 (insert (int, char)): Likewise.
3277 (StringBuffer (String)): The initial capacity of the string buffer
3278 is 16 plus the length of the argument.
3279 (getChars): Add a JDK 1.2 FIXME.
3281 1999-02-18 Andrew Haley <aph@cygnus.com>
3283 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3286 1999-02-18 Andrew Haley <aph@cygnus.com>
3288 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3289 instead of floating-point equality. This is necessary for
3290 correct floating-point Hashtables.
3291 * java/lang/Float.java (equals): Ditto.
3293 1999-02-16 Tom Tromey <tromey@cygnus.com>
3295 * java/util/Properties.java (list): Truncate value to 37
3296 characters and add "...".
3298 1999-02-16 Tom Tromey <tromey@cygnus.com>
3300 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3301 if initCap is negative.
3302 (contains): Implement JDK1.2-style handling of null argument.
3303 (removeElement): Likewise.
3304 (indexOf): Likewise. Also, correctly handle case where idx is
3306 (lastIndexOf): Likewise.
3308 1999-02-16 Tom Tromey <tromey@cygnus.com>
3310 * java/lang/natString.cc (init): Increment source pointer in
3313 1999-02-16 Tom Tromey <tromey@cygnus.com>
3315 * exception.cc: Include NullPointerException.h.
3316 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3318 1999-02-16 Tom Tromey <tromey@cygnus.com>
3320 * Makefile.in: Rebuilt.
3321 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3323 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3325 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3326 we're compiling canadian.
3327 * configure: Regenerated.
3329 1999-02-12 Andrew Haley <aph@cygnus.com>
3331 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3332 deleted from libgcj.
3334 1999-02-12 Tom Tromey <tromey@cygnus.com>
3336 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3337 (_Jv_eh_free): Don't call free.
3338 Don't declare malloc or free.
3340 1999-02-11 Tom Tromey <tromey@cygnus.com>
3342 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3344 1999-02-11 Andrew Haley <aph@cygnus.com>
3346 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3347 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3348 needed by java.lang.*.
3349 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3350 wf_fmod.o: Removed from libjava.a.
3352 1999-02-11 Tom Tromey <tromey@cygnus.com>
3354 * include/javaprims.h: Reverted previous change; with it
3355 exception.cc can't compile.
3357 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3359 * include/config.h.in: Rebuilt.
3360 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3362 * configure: Rebuilt.
3363 * configure.in: Check for sched_yield. Look in thread library for
3364 all thread functions.
3366 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3367 no recursive mutexes.
3368 (_Jv_MutexDestroy): Define when required.
3369 (_Jv_MutexLock): Likewise.
3370 (_Jv_MutexUnlock): Likewise.
3371 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3372 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3373 (_Jv_Mutex_t): New structure.
3374 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3375 (_Jv_MutexLock): Likewise.
3376 (_Jv_MutexUnlock): Likewise.
3378 1999-02-10 Tom Tromey <tromey@cygnus.com>
3380 * aclocal.m4, configure, Makefile.in: Rebuilt.
3381 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3383 * configure.in: Changed to track library changes.
3384 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3385 (AM_CXXFLAGS): Likewise.
3386 (data_DATA): Likewise.
3387 (AM_CFLAGS): Likewise.
3388 (JC1FLAGS): Likewise.
3389 (libgcj_a_SOURCES): Likewise.
3390 (EXTRA_libgcj_a_SOURCES): Likewise.
3391 (libgcj_a_DEPENDENCIES): Likewise.
3392 (libgcj_a_LIBADD): Likewise.
3393 (libgcj.zip): Likewise.
3394 (CLEANFILES): Likewise.
3395 ($(nat_headers)): Likewise.
3396 (java/lang/FirstThread.h): Likewise.
3397 (java/lang/ThreadGroup.h): Likewise.
3398 (java/lang/String.h): Likewise.
3399 (java/lang/reflect/Field.h): Likewise.
3400 (BUILT_SOURCES): Likewise.
3401 (maintainer-check): Likewise.
3402 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3403 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3405 * java/util/natGregorianCalendar.cc (computeFields): Only use
3406 gmtime_r and localtime_r when configured for posix threads.
3408 * java/io/natFile.cc (get_entry): Only use readdir_r when
3409 configured for posix threads.
3411 * java/util/natGregorianCalendar.cc: Update copyright notice.
3412 * java/util/TimeZone.java: Ditto.
3413 * java/util/SimpleTimeZone.java: Ditto.
3415 1999-02-08 Tom Tromey <tromey@cygnus.com>
3417 * java/io/PrintStream.java (line_separator): New constant.
3418 (print): Use line_separator, not `file.separator' property.
3419 (println): Use line_separator.
3421 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3422 when trying to instantiate Class.
3424 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3425 NullPointerException if argument is null.
3427 * java/lang/Thread.java (setName): Throw NullPointerException, not
3428 IllegalArgumentException.
3431 1999-02-08 Andrew Haley <aph@cygnus.com>
3433 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3434 create new Classes with Class.newInstance().
3436 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3437 semiciolon to end of an array Class's signature if the elements of
3438 the array aren't themselves arrays.
3440 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3441 array of objects is always sizeof(jobject), not the size of the
3442 object to which the reference points.
3444 1999-02-08 Tom Tromey <tromey@cygnus.com>
3446 * java/util/BitSet.java (and): Throw NullPointerException when
3451 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3452 if argument is negative.
3453 (clear): Correctly compute `offset'. Throw
3454 IndexOutOfBoundsException when required.
3456 (get): Likewise. Also, return correct value.
3457 (ensure): Changed meaning of argument.
3458 (toString): Wrap contents in `{}'; put spaces after commas.
3459 (hashCode): Don't try to examine elements off the end of array.
3460 (or): Correctly include bits past the end of this bit set.
3463 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3465 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3466 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3468 1999-02-04 Andrew Haley <aph@cygnus.com>
3470 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3471 '/' in signatures to '.'
3472 (Class::getName): Likewise,
3473 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3475 * java/lang/natFirstThread.cc (run): Change '/' in main's
3478 1999-02-03 Andrew Haley <aph@cygnus.com>
3480 * configure.host: -ffloat-store added when compiling libjava on
3481 x86. fdlibm apparently relies on this.
3483 * java/lang/ThreadGroup.java (add): throw an exception if the
3484 ThreadGroup has been destroyed.
3486 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3489 1999-01-27 Tom Tromey <tromey@cygnus.com>
3491 * java/lang/StringBuffer.java (StringBuffer): Handle null
3494 1999-01-21 Tom Tromey <tromey@cygnus.com>
3496 * java/lang/natFirstThread.cc (run): Don't require main to be
3499 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3501 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3503 1999-01-20 Tom Tromey <tromey@cygnus.com>
3505 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3509 (unintern): Likewise.
3510 (_Jv_NewStringUtf8Const): Likewise.
3512 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3513 Character.isLetter, to see if character is self-quoting. Also,
3514 correctly handle quoted characters.
3515 (parse): Fixed typo. Also now throws ParseException.
3517 1999-01-15 Tom Tromey <tromey@cygnus.com>
3519 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3521 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3522 _Jv_SyncInfo has `init' member.
3524 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3527 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3528 IllegalMonitorStateException if unlock fails.
3530 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3532 (_Jv_NewObjectArray): Likewise.
3534 1999-01-14 Tom Tromey <tromey@cygnus.com>
3536 * java/lang/Character.java (isJavaIdentifierPart): Allow
3537 LETTER_NUMBER characters.
3539 * chartables.pl (process_char): Fixed error messages.
3541 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3542 * chartables.pl: Updated comments. Changed detection of non-digit
3543 numeric values (no longer miss \u00b2 and friends).
3545 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3546 currency symbols and connector punctuation.
3547 (isIdentifierIgnorable): Make 7f-9f ignorable.
3549 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3550 (_Jv_NewPrimArray): Likewise.
3551 (SIZE_T_MAX): New define.
3553 * java/lang/ClassLoader.java (system): Now private and final.
3555 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3558 * configure: Rebuilt.
3559 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3561 * exception.cc: Include gansidecl.h.
3563 1999-01-14 Andrew Haley <aph@cygnus.com>
3565 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3566 corrected: they didn't treat -0.0 and NaNs correctly.
3568 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3570 * nogc.cc: Use calloc to zero out memory.
3572 1999-01-11 Tom Tromey <tromey@cygnus.com>
3574 * java/lang/natClass.cc (isInstance): Return false if this class
3575 is primitive, not if class of `obj' is primitive.
3576 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3578 * java/io/SequenceInputStream.java (close): Handle case where `in'
3581 * java/text/DateFormat.java (format): New method.
3583 * mauve-libjava: Omit java.text.DateFormat.
3585 1999-01-08 Tom Tromey <tromey@cygnus.com>
3587 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3589 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3591 (_Jv_CondNotifyAll): Likewise.
3593 * configure: Rebuilt.
3594 * configure.in: Change --enable-source-compilation logic to work
3597 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3599 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3600 and RUNTESTFLAGS from AM_MAKEFLAGS.
3601 * configure.in: AM_RUNTESTFLAGS added.
3602 * configure.host: AM_RUNTESTFLAGS added.
3603 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3604 * configure: rebuilt.
3605 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3607 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3608 argv[] made conditional because embedded targets may not have
3610 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3611 explanatory comments added in call to super.
3613 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3614 exception thrown in the test harness itself added.
3615 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3617 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3619 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3621 1999-01-06 Tom Tromey <tromey@cygnus.com>
3623 * java/io/natFile.cc (get_entry): New function.
3624 (performList): Use get_entry.
3625 * include/config.h.in: Rebuilt.
3626 * acconfig.h (HAVE_READDIR_R): New define.
3627 * configure: Rebuilt.
3628 * configure.in: Look for readdir_r.
3630 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3632 * java/util/natDate.cc: Added copyright header.
3634 1999-01-05 Tom Tromey <tromey@cygnus.com>
3636 * include/config.h.in: Rebuilt.
3637 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3638 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3639 * configure: Rebuilt.
3640 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3641 unlink, and realpath.
3642 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3643 (stat): Conditionalize on HAVE_STAT.
3645 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3646 (performMkdir): Conditionalize on HAVE_MKDIR.
3647 (performRenameTo): Conditionalize on HAVE_RENAME.
3648 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3650 * include/config.h.in: Rebuilt.
3651 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3652 * configure: Rebuilt.
3653 * configure.in: Check for gmtime_r and localtime_r. For cross
3654 builds, assume they exist.
3656 * mauve-libjava: Include java.text.DateFormatSymbols again.
3657 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3658 from setAmPmStrings.
3660 * mauve-libjava: Omit java.text.DateFormatSymbols.
3662 1999-01-04 Tom Tromey <tromey@cygnus.com>
3664 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3666 * java/io/LineNumberReader.java (read): Decrement `count' in
3669 * java/io/BufferedWriter.java (write): Correctly determine when
3670 incoming data would overrun buffer. Flush buffer if write causes
3673 * java/io/BufferedOutputStream.java (write): Increment `count'
3674 after copying data into buffer.
3676 * java/io/FilterOutputStream.java (close): Call flush first.
3678 * java/io/PipedReader.java (read): If read causes `out' to catch
3679 up with `in', then set `in' to -1.
3681 * java/io/LineNumberInputStream.java (read): If no bytes read,
3682 return -1. If no bytes requested, return 0.
3684 * java/lang/StringBuffer.java (insert): If `str' is null, use
3687 1998-12-30 Anthony Green <green@cygnus.com>
3690 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3692 1998-12-23 Tom Tromey <tromey@cygnus.com>
3694 * java/io/PushbackInputStream.java (read): `off' already includes
3697 1998-12-17 Tom Tromey <tromey@cygnus.com>
3699 * Makefile.in: Rebuilt.
3700 * Makefile.am (GCJ_canadian): Include target_alias.
3702 * java/lang/natFirstThread.cc (run): Require main's class to be
3705 1998-12-16 Tom Tromey <tromey@cygnus.com>
3707 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3709 * java/util/ResourceBundle.java (getBundle): Throw
3710 NullPointerException if locale argument is null.
3712 * java/lang/natClass.cc (forName): Throw NullPointerException if
3714 Include NullPointerException.h.
3716 1998-12-14 Tom Tromey <tromey@cygnus.com>
3718 * java/lang/Character.java (Character): Implement Comparable.
3719 (compareTo): New methods.
3721 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3722 correct country and language codes.
3723 (UK, US): New constants.
3724 (setDefault): Language codes are lower-case.
3726 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3727 (getDeclaredConstructors): Likewise.
3728 (getDeclaredField): Likewise.
3729 (getDeclaredFields): Likewise.
3730 (getDeclaredMethod): Likewise.
3731 (getDeclaredMethods): Likewise.
3732 (getField): Likewise.
3733 (getFields): Likewise.
3734 (getMethod): Likewise.
3735 (getMethods): Likewise.
3736 * java/lang/Class.java: Declare new methods.
3737 * java/lang/Class.h: Declare new methods.
3739 * java/lang/natString.cc: Removed `#pragma implementation'.
3740 * include/cni.h (_Jv_GetStringChars): New function.
3741 * Makefile.in: Rebuilt.
3742 * Makefile.am (java/lang/String.h): Don't generate definition for
3745 * java/lang/natString.cc: Added `#pragma implementation'.
3747 * Makefile.in: Rebuilt.
3748 * Makefile.am (libjava.zip): Put build directory first in class
3749 path to avoid bug in compiler.
3751 1998-12-14 Anthony Green <green@cygnus.com>
3753 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3755 * include/javaprims.h: Add EventObject, ListResourceBundle and
3758 1998-12-13 Anthony Green <green@cygnus.com>
3760 * mauve-libjava: Run the ResourceBundle tests.
3762 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3765 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3767 * configure.in, configure: Make --enable-gcj-classes and
3768 --enable-source-compilation the default. (Nervously...) Yeah!
3769 Based on a patch from Tom Tromey.
3771 1998-12-13 Tom Tromey <tromey@cygnus.com>
3773 * java/util/EventObject.java: New file.
3774 * java/util/EventListener.java: New file.
3776 * include/javaprims.h: Updated class declarations.
3777 * Makefile.in: Rebuilt.
3778 * Makefile.am (nat_headers): Added Constructor.h.
3779 (java/lang/String.h): Don't inline String::length().
3780 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3781 * java/lang/Class.java (initializeClass, hackRunInitializers,
3782 hackTrampoline): No need to mark `final'.
3783 (getConstructor, getConstructors): Declare.
3784 * java/lang/reflect/Field.java (equals): New method.
3785 * java/lang/natClass.cc (getConstructor): New method.
3786 (getConstructors): Likewise.
3787 Include Method.h, Field.h, Constructor.h.
3788 * java/lang/reflect/Constructor.java: New file.
3789 * java/lang/reflect/Method.java (toString): No space before open
3791 (equals): Simplified.
3793 1998-12-13 Anthony Green <green@cygnus.com>
3795 * java/util/ResourceBundle.java: New file.
3796 * java/util/ListResourceBundle.java: New file.
3798 1998-12-12 Tom Tromey <tromey@cygnus.com>
3800 * java/lang/System.java (in, out, err): Now buffered streams by
3803 * include/javaprims.h: Updated class declarations.
3804 * Makefile.in: Rebuilt.
3805 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3806 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3808 (nat_files): Added natMethod.o.
3809 * java/lang/reflect/natMethod.cc: New file.
3810 * java/lang/reflect/Field.java (Field): Now extends
3812 * java/lang/reflect/AccessibleObject.java: New file.
3813 * java/lang/reflect/InvocationTargetException.java: New file.
3815 1998-12-11 Tom Tromey <tromey@cygnus.com>
3817 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3818 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3819 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3821 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3823 1998-12-09 Tom Tromey <tromey@cygnus.com>
3825 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3828 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3829 character is already titlecase.
3831 * java/lang/Character.java (isJavaLetter): Follow spec.
3832 (isJavaLetterOrDigit): Likewise.
3834 * java/util/GregorianCalendar.java (gregorianCutover): Append
3837 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3839 1998-12-08 Tom Tromey <tromey@cygnus.com>
3841 * java/lang/reflect/Modifier.java (toString): Replace second
3842 `static' with `synchronized'.
3844 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3845 * java/lang/Object.h (Object::hack12_6): Declare.
3846 * java/lang/Object.java (hack12_6): New function.
3848 1998-12-07 Tom Tromey <tromey@cygnus.com>
3850 * include/java-array.h (__JArray::clone): Removed decl.
3851 * prims.cc (__JArray::clone): Removed.
3852 * java/lang/natObject.cc (clone): Incorporate code to clone an
3855 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3856 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3857 Correctly use dtable_method_count.
3859 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3861 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3864 1998-12-06 Anthony Green <green@cygnus.com>
3866 * mauve-libjava: Don't test ResourceBundle.
3868 1998-12-04 Tom Tromey <tromey@cygnus.com>
3870 More JDK 1.2 spec fixes:
3871 * java/util/Date.java (millis): Now private.
3872 * java/text/DateFormat.java (DateFormat): Constructor now
3874 * java/lang/Void.java (Void): New private constructor.
3875 * java/lang/System.java (System): New private constructor.
3876 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3878 (currentClassLoader): New method.
3879 (currentLoadedClass): New method.
3880 * java/lang/Math.java (Math): New private constructor.
3881 * java/lang/Compiler.java (Compiler): New private constructor.
3882 * java/lang/Class.java (Class): New private constructor.
3883 * java/lang/Double.java (toString): Removed access specifier from
3884 two-argument `toString' method.
3886 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3888 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3889 causes it to be flushed from an fp register (where it may be
3890 longer than double precision) to a double in memory. This is
3891 essential to ensure correct rounding behaviour.
3893 1998-12-04 Tom Tromey <tromey@cygnus.com>
3895 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3898 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3899 explaining apparent divergence from JDK 1.2.
3901 1998-12-04 Per Bothner <bothner@cygnus.com>
3903 * include/no-threads.h: Remove unused parameter names.
3904 This silences a bunch of warnings.
3906 1998-12-04 Tom Tromey <tromey@cygnus.com>
3908 * include/config.h.in: Rebuilt.
3909 * acconfig.h (HAVE_CTIME_R): New symbol.
3911 1998-12-03 Tom Tromey <tromey@cygnus.com>
3913 * mauve-libjava: Added many more categories to reject.
3915 Changes to follow JDK1.2 spec:
3916 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3917 setErr, setIn, setOut): No need to be `final'.
3918 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3919 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3920 * java/lang/Object.java (wait): `nanos' argument is an int.
3921 * java/lang/VirtualMachineError.java: Class is abstract.
3922 * java/lang/ThreadDeath.java: Made constructors public.
3923 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3926 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3928 * java/text/DateFormatSymbols.java (getAmPmStrings,
3929 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3931 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3933 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3934 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3935 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3938 * java/lang/IllegalThreadStateException.java
3939 (IllegalThreadStateException): Changed extending class to match spec.
3941 * java/lang/NumberFormatException.java
3942 (java/lang/NumberFormatException): Changed extending class to match
3945 * java/util/Observer.java (Observer): Changed sig to match JCL.
3947 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3949 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3950 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3951 signature to match JDK 1.1 and 1.2.
3953 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3955 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3956 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3957 * Makefile.in, configure: Rebuilt.
3959 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3962 1998-12-02 Tom Tromey <tromey@cygnus.com>
3964 * mauve-libjava: New file.
3966 The remaining `-W -Wall' fixes:
3967 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3969 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3971 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3973 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3975 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3977 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3979 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3981 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3983 * java/lang/mprec.c (Balloc): Removed unused variable.
3984 (mult): Added parentheses per gcc suggestion.
3985 (pow5mult): Likewise.
3990 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3991 suggestion. Added cast to `int' to avoid signed/unsigned
3993 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3995 (IsAssignableFrom): Likewise.
3996 (_Jv_JNI_GetObjectField): Likewise.
3997 (_Jv_JNI_GetByteField): Likewise.
3998 (_Jv_JNI_GetShortField): Likewise.
3999 (_Jv_JNI_GetIntField): Likewise.
4000 (_Jv_JNI_GetLongField): Likewise.
4001 (_Jv_JNI_GetStringLength): Likewise.
4002 (_Jv_JNI_ToReflectedField): Likewise.
4003 (_Jv_JNI_FromReflectedField): Likewise.
4004 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
4006 * Makefile.in: Rebuilt.
4007 * Makefile.am (AM_CFLAGS): Define conditionally.
4008 (WARNINGS): New macro.
4009 (AM_CXXFLAGS): Include WARNINGS.
4010 * configure: Rebuilt.
4011 * configure.in (USING_GCC): New conditional.
4013 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
4015 * java/lang/Character.java: Changed classification constants to
4016 type `byte' to match JDK 1.2 docs.
4018 1998-12-01 Tom Tromey <tromey@cygnus.com>
4020 Some fixes to be `-W -Wall' clean:
4021 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
4022 (_Jv_MarkArray): Likewise.
4023 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
4024 (to_upper_title): Likewise.
4025 (isTitleCase): Likewise.
4026 (toTitleCase): Likewise.
4027 (getNumericValue): Likewise.
4028 (isLowerCase): Likewise.
4029 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
4030 (avoids compiler warning).
4031 * java/lang/natClass.cc (getDeclaredClasses): Always return a
4033 (getDeclaringClass): Likewise.
4034 (_Jv_LookupInterfaceMethod): Likewise.
4035 (_Jv_NewClass): Removed name of unused parameter.
4036 * exception.cc (_Jv_type_matcher): Removed unused variable.
4037 (_Jv_setup_eh_info): Removed name of unused parameter.
4038 * prims.cc (_Jv_NewArray): Always return a value.
4039 (_Jv_FindClassFromSignature): Likewise.
4040 * include/java-field.h (getNameUtf8Const): Removed name of unused
4042 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4044 (_Jv_ThreadSetPriority): Likewise.
4046 * java/lang/natString.cc (hashChars): Now static.
4048 * java/lang/FirstThread.java (FirstThread): Now final.
4050 * java/io/File.java (performMkdir, performRenameTo): Now private.
4052 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4053 if no time function defined.
4055 * configure: Rebuilt.
4056 * configure.in: Look for ctime_r, ctime.
4057 * java/util/Date.java (toString): Now native.
4058 * java/util/natDate.cc (toString): Rewrote.
4060 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4062 * Add LDFLAGS line to allow TX39 test cases to link when cross
4065 1998-11-23 Anthony Green <green@cygnus.com>
4067 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4068 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4069 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4070 include/java-array.h, include/java-assert.h, include/java-field.h,
4071 include/javaprims.h, include/jni.h, include/jvm.h,
4072 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4073 include/quick-threads.h, java/io/BufferedInputStream.java,
4074 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4075 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4076 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4077 java/io/CharArrayWriter.java,
4078 java/io/CharConversionException.java, java/io/DataInput.java,
4079 java/io/DataInputStream.java, java/io/DataOutput.java,
4080 java/io/DataOutputStream.java, java/io/EOFException.java,
4081 java/io/File.java, java/io/FileDescriptor.java,
4082 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4083 java/io/FileOutputStream.java, java/io/FileReader.java,
4084 java/io/FileWriter.java, java/io/FilenameFilter.java,
4085 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4086 java/io/FilterReader.java, java/io/FilterWriter.java,
4087 java/io/IOException.java, java/io/InputStream.java,
4088 java/io/InputStreamReader.java,
4089 java/io/InterruptedIOException.java,
4090 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4091 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4092 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4093 java/io/PipedReader.java, java/io/PipedWriter.java,
4094 java/io/PrintStream.java, java/io/PrintWriter.java,
4095 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4096 java/io/RandomAccessFile.java, java/io/Reader.java,
4097 java/io/SequenceInputStream.java, java/io/Serializable.java,
4098 java/io/StreamTokenizer.java,
4099 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4100 java/io/StringWriter.java, java/io/SyncFailedException.java,
4101 java/io/UTFDataFormatException.java,
4102 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4103 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4104 java/io/natFileDescriptorPosix.cc,
4105 java/lang/AbstractMethodError.java,
4106 java/lang/ArithmeticException.java,
4107 java/lang/ArrayIndexOutOfBoundsException.java,
4108 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4109 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4110 java/lang/Class.java, java/lang/ClassCastException.java,
4111 java/lang/ClassCircularityError.java,
4112 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4113 java/lang/ClassNotFoundException.java,
4114 java/lang/CloneNotSupportedException.java,
4115 java/lang/Cloneable.java, java/lang/Comparable.java,
4116 java/lang/Compiler.java, java/lang/Double.java,
4117 java/lang/Error.java, java/lang/Exception.java,
4118 java/lang/ExceptionInInitializerError.java,
4119 java/lang/FirstThread.java, java/lang/Float.java,
4120 java/lang/IllegalAccessError.java,
4121 java/lang/IllegalAccessException.java,
4122 java/lang/IllegalArgumentException.java,
4123 java/lang/IllegalMonitorStateException.java,
4124 java/lang/IllegalStateException.java,
4125 java/lang/IllegalThreadStateException.java,
4126 java/lang/IncompatibleClassChangeError.java,
4127 java/lang/IndexOutOfBoundsException.java,
4128 java/lang/InstantiationError.java,
4129 java/lang/InstantiationException.java, java/lang/Integer.java,
4130 java/lang/InternalError.java, java/lang/InterruptedException.java,
4131 java/lang/LinkageError.java, java/lang/Long.java,
4132 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4133 java/lang/NoClassDefFoundError.java,
4134 java/lang/NoSuchFieldError.java,
4135 java/lang/NoSuchFieldException.java,
4136 java/lang/NoSuchMethodError.java,
4137 java/lang/NoSuchMethodException.java,
4138 java/lang/NullPointerException.java, java/lang/Number.java,
4139 java/lang/NumberFormatException.java, java/lang/Object.h,
4140 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4141 java/lang/Process.java, java/lang/Runnable.java,
4142 java/lang/Runtime.java, java/lang/RuntimeException.java,
4143 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4144 java/lang/Short.java, java/lang/StackOverflowError.java,
4145 java/lang/String.java, java/lang/StringBuffer.java,
4146 java/lang/StringIndexOutOfBoundsException.java,
4147 java/lang/System.java, java/lang/Thread.java,
4148 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4149 java/lang/Throwable.java, java/lang/UnknownError.java,
4150 java/lang/UnsatisfiedLinkError.java,
4151 java/lang/UnsupportedOperationException.java,
4152 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4153 java/lang/Void.java, java/lang/natCharacter.cc,
4154 java/lang/natClass.cc, java/lang/natDouble.cc,
4155 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4156 java/lang/natMath.cc, java/lang/natObject.cc,
4157 java/lang/natRuntime.cc, java/lang/natString.cc,
4158 java/lang/natSystem.cc, java/lang/natThread.cc,
4159 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4160 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4161 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4162 java/text/FieldPosition.java, java/text/Format.java,
4163 java/text/NumberFormat.java, java/text/ParseException.java,
4164 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4165 java/util/BitSet.java, java/util/Calendar.java,
4166 java/util/ConcurrentModificationException.java,
4167 java/util/Date.java, java/util/Dictionary.java,
4168 java/util/EmptyStackException.java, java/util/Enumeration.java,
4169 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4170 java/util/Locale.java, java/util/MissingResourceException.java,
4171 java/util/NoSuchElementException.java, java/util/Observable.java,
4172 java/util/Observer.java, java/util/Properties.java,
4173 java/util/Random.java, java/util/SimpleTimeZone.java,
4174 java/util/Stack.java, java/util/StringTokenizer.java,
4175 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4176 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4179 * exception.cc: Include eh-common.h instead of duplicating
4182 1998-11-23 Tom Tromey <tromey@cygnus.com>
4184 * configure.host: Don't add `-O2' to libjava_flags. Only add
4185 `-Os' to libjava_flags once.
4187 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4189 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4190 * Makefile.in: likewise
4191 * acconfig.h: add ECOS conditional for configure.h
4192 * config.h.in: likewise
4193 * configure: add test for --with-ecos
4194 * configure.in: likewise
4195 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4196 rename call to avoid name clash.
4197 * java/lang/natSystem.cc: add eCos clock support.
4198 * java/util/natGregorianCalendar.cc: add eCos support.
4200 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4202 * Makefile.am, Makefile.in, configure.host: tx39 build option
4205 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4207 * java/io/BufferedReader.java: Added more comments for clarity.
4208 (mark): Used more mnemonic name for local var extraBuffSpace.
4210 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4211 confusion with private method of same name in superclass.
4212 (skipRedundantLF): Set fields in special case to avoid infinite
4213 recursion. Check if markPos has been invalidated in special case.
4214 (readLine): Rewritten to use readLine method of superclass.
4215 (skip): Incorporated code from lineEnd.
4217 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4219 * java/io/BufferedReader.java (readLine): New method.
4220 (lineEnd): new private method.
4221 (mark): Track special case for readLine of getting '\r' at the
4228 * java/io/InputStreamReader.java (read): Return number chars skipped
4229 rather than requested.
4231 * java/lang/StringBuffer.java (append): Update count and differentiate
4232 between field and local variable.
4234 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4235 seconds. Deal with military style time.
4236 (parse): Consistently treat all timezones in minutes until final
4237 calculation. Flag as non-local timezone. Return value in milliseconds.
4238 (setTime): Adjust for year offset from 1900.
4239 (UTC): Adjust for year offset from 1900.
4241 1998-11-17 Tom Tromey <tromey@cygnus.com>
4243 * configure: Rebuilt.
4244 * configure.in: Switch on host, not target.
4246 * Makefile.in: Rebuilt.
4247 * Makefile.am (GCJ_no): New macro.
4248 (GCJ): Use @CANADIAN@.
4249 (GCJH_no): New macro
4250 (GCJH_canadian): New macro.
4251 (GCJH): Use @CANADIAN@.
4252 (ZIP_no): New macro.
4253 (ZIP_canadian): New macro.
4254 (ZIP): Use @CANADIAN@.
4255 * aclocal.m4, configure: Rebuilt.
4256 * configure.in (CANADIAN): Compute and subst.
4258 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4260 * java/io/FileDescriptor.java (finalize): Only close file
4261 descriptor if valid.
4263 1998-11-17 Tom Tromey <tromey@cygnus.com>
4265 * prims.cc (_Jv_InitRuntime): Removed.
4267 1998-11-16 Tom Tromey <tromey@cygnus.com>
4269 * java/io/FileOutputStream.java (close): Only close file
4270 descriptor if valid.
4271 (finalize): New method.
4273 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4274 (_Jv_NewPrimArray): Likewise.
4275 * boehm.cc (_Jv_RegisterFinalizer): Use
4276 GC_REGISTER_FINALIZER_NO_ORDER.
4277 (GC_GENERIC_MALLOC): New define.
4278 (_Jv_AllocObj): Use it.
4279 (_Jv_AllocArray): Likewise.
4280 (_Jv_AllocBytes): Likewise.
4281 (_Jv_MarkObj): Just return if vtbl not set.
4282 (_Jv_MarkArray): Likewise.
4283 (MAYBE_MARK): New macro; use everywhere.
4284 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4286 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4288 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4289 to a jlong before calculation to prevent overflow.
4291 1998-11-16 Tom Tromey <tromey@cygnus.com>
4293 * Makefile.in: Rebuilt.
4294 * Makefile.am (nat_headers): Fixed typo.
4296 1998-11-15 Tom Tromey <tromey@cygnus.com>
4298 * java/lang/Class.h (Class::getName): Removed definition.
4299 * Makefile.in: Rebuilt.
4300 * Makefile.am (nat_headers): Added InstantiationException.h,
4301 NoSuchMethodException.h.
4302 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4303 (init_name): New global.
4304 (hackRunInitializers): Use clinit_name.
4305 Include InstantiationException.h, NoSuchMethodException.h.
4306 (newInstance): Do some error checking (but not all). Call
4308 (forName): Throw exception if class not found.
4309 (getName): New method.
4310 (forName): Transform class name from external format to internal
4311 format before lookup.
4313 1998-11-15 Anthony Green <green@cygnus.com>
4315 * java/lang/Class.h (Class::forName): Method is static.
4317 * java/lang/natClass.cc (newInstance): Add simple implementation.
4320 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4322 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4323 int), for compatibility with jc1.
4325 1998-11-14 Tom Tromey <tromey@cygnus.com>
4327 * include/config.h.in: Rebuilt.
4328 * acconfig.h (LINUX_THREADS): New define.
4329 * configure: Rebuilt.
4330 * configure.in: Define LINUX_THREADS if using POSIX threads on
4331 Linux. Look for pthread_mutexattr_setkind_np function.
4332 * posix-threads.cc (throw_cleanup): New function.
4333 (really_start): Push cleanup function.
4334 (_Jv_ThreadCancel): New function.
4335 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4336 (_Jv_ThreadInitData): Set `exception' field in new structure.
4337 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4339 (_Jv_ThreadWait): New function.
4340 (_Jv_InitThreads): Initialize daemon globals.
4341 (FLAG_DAEMON): New macro.
4342 (really_start): Notify daemon_cond when non-daemon thread exits.
4343 Include <java/lang/System.h>.
4344 (struct starter): `object' field now a thread.
4345 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4346 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4347 (_Jv_ThreadWait): Removed definition.
4348 (_Jv_Thread_t): Added `exception' field.
4349 (_Jv_ThreadCancel): Removed definition.
4351 1998-11-13 Tom Tromey <tromey@cygnus.com>
4353 * Makefile.in: Rebuilt.
4354 * Makefile.am (libjava.zip): Compute javac before changing
4357 * Makefile.in: Rebuilt.
4358 * Makefile.am (libjava.zip): Include directory entries.
4360 * Makefile.in: Rebuilt.
4361 * Makefile.am (expanded): New macro.
4364 1998-11-12 Tom Tromey <tromey@cygnus.com>
4366 * prims.cc (clone): New function.
4367 * include/java-array.h (__JArray::clone): Removed definition.
4369 * java/lang/natObject.cc (clone): Don't assert that class is not
4370 an array; array's `clone' method just calls this one.
4372 * Makefile.in: Rebuilt.
4373 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4374 Now creates zip file. Changed all users.
4376 (data_DATA): New macro.
4378 1998-11-11 Tom Tromey <tromey@cygnus.com>
4380 * configure: Rebuilt.
4381 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4383 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4385 * java/io/InputStream.java (reset): Add msg to thrown exception.
4387 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4389 * java/io/LineNumberInputStream.java: Rewritten.
4391 * java/io/StringBufferInputStream.java: Removed extraneous import.
4393 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4395 * java/io/StringBufferInputStream.java: Rewritten.
4397 * java/util/Date.java (parseMonth): Optimize.
4398 (parseDayOfWeek): Created.
4399 (parse): Optimize to use parseDayOfWeek.
4401 1998-11-11 Tom Tromey <tromey@cygnus.com>
4403 * java/lang/StringBuffer.java (append): Handle case where STR is
4406 * include/javaprims.h: Regenerated class declarations.
4408 * configure: Rebuilt.
4409 * configure.in: Added --enable-gcj-classes,
4410 --enable-single-compilation, --enable-source-compilation flags.
4411 * Makefile.in: Rebuilt.
4412 * Makefile.am (java_io_files): New macro.
4413 (java_lang_files): Likewise.
4414 (java_text_files): Likewise.
4415 (java_util_files): Likewise.
4416 (java_files): Use new macros.
4417 (java-io.o): New target.
4418 (java-lang.o): Likewise.
4419 (java-text.o): Likewise.
4420 (java-util.o): Likewise.
4421 (src_io_files): New macro.
4422 (src_lang_files): Likewise.
4423 (src_text_files): Likewise.
4424 (src_util_files): Likewise.
4425 (class_io_files): New macro.
4426 (class_lang_files): Likewise.
4427 (class_text_files): Likewise.
4428 (class_util_files): Likewise.
4429 (class_files): Use new macros.
4430 (javao_files): Define conditionally.
4431 (.java.o): New target.
4432 ($(javao_files)): New target.
4434 (GCJH): Added $(EXEEXT).
4435 (CLASSPATH_ENV): Removed.
4436 (GCJCOMPILE): New macro.
4438 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4440 * java/util/Date.java (parse): Written from scratch.
4442 1998-11-11 Tom Tromey <tromey@cygnus.com>
4444 * java/lang/Throwable.java (toString): Correct sense of test for
4445 determining when to include detail message in result.
4447 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4450 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4452 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4454 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4455 (_Jv_RegisterClass): Use it.
4456 * include/jvm.h (_Jv_RegisterClasses): Declare.
4457 * java/lang/natObject.cc (init): Removed.
4458 (sync_init): Never call _Jv_InitializeSyncMutex.
4459 (_Jv_InitializeSyncMutex): Don't set `init'.
4460 * prims.cc (JvRunMain): Don't run init functions.
4462 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4464 * java/lang/natClass.cc (initializeClass): Set state before
4465 resolving constants.
4467 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4468 (STATE_RESOLVED): New macro.
4469 (initializeClass): Call resolveConstants.
4470 (hackRunInitializers): Don't call resolveConstants.
4471 (_Jv_FindArrayClass): Move short-circuit return for primitive
4472 element types earlier in function.
4474 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4476 * prims.cc (no_memory): New global.
4477 (_Jv_makeUtf8Const): Throw no_memory.
4478 (_Jv_AllocObject): Likewise.
4479 (_Jv_NewObjectArray): Likewise.
4480 (_Jv_NewPrimArray): Likewise.
4481 (JvRunMain): Initialize no_memory.
4483 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4485 * java/io/FileInputStream.java: Corrected date comment.
4486 * java/io/SequenceInputStream.java: Rewritten.
4488 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4490 * java/lang/FirstThread.java (die): New method.
4491 * java/lang/natFirstThread.cc (die): Removed.
4493 (run): Use `DIE', not `die'.
4495 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4497 * java/io/CharArrayReader.java (read): Move check into synchronized
4498 block to prevent a close while in progress.
4501 * java/io/PushbackReader.java (read): Ditto.
4504 * java/io/StringReader.java (mark): Ditto.
4509 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4511 * java/io/PipedInputStream.java: Updated status.
4512 (connect): Added code to prevent infinite recursion and to
4513 differentiate exception causes.
4514 (read): Added code to differentiate exception causes.
4515 (receive): Made exception pass string with the cause.
4517 * java/io/PipedOutputStream.java: Updated status.
4518 (connect): Added code to call connect at the other end of the pipe.
4520 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4522 * java/io/PipedInputStream.java (connect): Throw exception if
4523 already connected to the same output stream.
4524 (read): Do bounds checking first.
4526 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4528 * java/io/PipedInputStream.java: Added private boolean outClosed.
4529 (available): Removed check if output stream is open.
4530 (close): Mark the buffer as empty so available returns 0.
4531 (read): Check if the output stream was closed and then return EOF
4532 when the buffer is empty.
4533 (receive): Mark the output stream as closed when passed a -1.
4535 * java/io/PipedOutputStream.java (close): Notify the input stream
4536 that there's no more data coming.
4537 (connect): Added a FIXME comment to note more coordination needed
4538 with PipedInputStream.
4539 (flush): Added a FIXME comment to mark what this method might do
4542 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4544 * java/io/PipedInputStream.java: Rewritten.
4546 1998-10-30 Tom Tromey <tromey@cygnus.com>
4548 * java/lang/Throwable.java: Rewrote from scratch.
4550 * java/lang/Class.h (Class): Don't mention newMultiArray.
4551 * prims.cc (newMultiArray): Removed.
4552 (_Jv_NewMultiArray): Removed.
4553 (newArray): Removed.
4554 (new_multi_array): New function.
4555 (_Jv_NewMultiArray): Rewrote from scratch.
4557 * include/javaprims.h: Regenerated class declarations.
4558 * classes.pl (scan): Don't declare PrimClass.
4559 * include/cni.h (JvPrimClass): Use new names for classes.
4560 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4561 added _Jv_PrimClass.
4562 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4563 (_Jv_initPrimClass): Removed.
4564 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4565 (_Jv_AllocObject): Added comment.
4566 (_Jv_NewObjectArray): Likewise.
4567 (_Jv_NewPrimArray): Likewise.
4569 1998-10-29 Tom Tromey <tromey@cygnus.com>
4571 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4572 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4574 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4576 * java/lang/natObject.cc (init): New global.
4577 (sync_init): Call _Jv_InitializeSyncMutex if required.
4579 * Makefile.in: Rebuilt.
4580 * Makefile.am (nat_headers): Added ClassLoader.h.
4581 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4582 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4583 internalAddClass, lookupArray no longer friends.
4584 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4585 _Jv_FindArrayClass now friends.
4586 * java/lang/natClass.cc (HASH_LEN): New macro.
4587 (HASH_UTF): Likewise.
4588 (loaded_classes): New global.
4589 (_Jv_FindClass): New function.
4590 (ClassClass): New define.
4591 (_Jv_FindClassInCache): New function.
4592 (_Jv_RegisterClass): Likewise.
4593 (_Jv_NewClass): Likewise.
4595 (ObjectClass): New define.
4596 (CloneableClass): New define.
4597 * prims.cc (_Jv_FindClass): Removed.
4598 (simpleLookupClass): Removed.
4599 (insertClass): Removed.
4600 (CLASSHASHSZ): Removed.
4601 (classPool): Removed.
4602 (_Jv_RegisterClass): Removed.
4603 (internalAddClass): Removed.
4604 (ClassClass): Removed.
4605 (RuntimeClass): Removed.
4606 (lookupArray): Removed.
4607 (CloneableClass): Removed.
4608 (CLASSMAXSIG): Removed.
4609 Rearranged file to group related functions together.
4610 (_Jv_IsInstanceOf): Moved to natClass.cc.
4611 (abort_final): Removed.
4612 Removed some unused includes.
4613 (classFromSig): Removed.
4614 (_Jv_FindClassFromSignature): New function.
4615 (_Jv_initPrimClass): Renamed.
4616 (getClass): Removed.
4618 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4620 * java/io/FileDescriptor.java (finalize): Throws IOException
4621 instead of Throwable.
4623 * java/io/FileInputStream.java: Rewritten.
4625 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4626 at the end of a comment.
4628 1998-10-29 Tom Tromey <tromey@cygnus.com>
4630 * include/javaprims.h: Regenerated class declarations.
4631 * classes.pl (scan): Don't special-case ClassLoader.
4633 * prims.cc (processClass): Removed.
4634 (_Jv_InitClass): Removed.
4635 Removed all CSTATE_ macros.
4636 (resolveConstants): Removed.
4638 (_Jv_NewMultiArray): Cleaned up.
4639 * Makefile.in: Rebuilt.
4640 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4641 * java/lang/Class.h (Class): Declare new methods. processClass no
4643 * java/lang/Class.java (hackTrampoline): New method.
4644 (initializeClass): Declare.
4645 (hackRunInitializers): Declare.
4646 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4647 (initializeClass): New method.
4648 (hackRunInitializers): New method.
4649 (init_name, void_signature): Moved from prims.cc.
4650 (_Jv_InitClass): New function.
4651 (isAssignableFrom): Don't call processClass.
4652 (STATE_NOTHING): New macro.
4653 (resolveConstants): New function.
4655 (ErrorClass): New define.
4657 * java/lang/Class.java (getClassLoader): Declare.
4658 * java/lang/ClassLoader.java: Rewrote from scratch.
4660 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4661 AbstractMethodError.h, IllegalAccessError.h,
4662 NoClassDefFoundError.h.
4663 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4664 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4665 longer static. Changed return type.
4666 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4667 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4668 * prims.cc (findMethodLocal): Removed.
4669 (processClass): Use _Jv_GetMethodLocal.
4671 1998-10-28 Tom Tromey <tromey@cygnus.com>
4673 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4674 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4676 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4677 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4679 * include/jni.h: Added copyright header.
4680 * include/javaprims.h: Added copyright header.
4681 * include/java-field.h: Added copyright header.
4682 * include/java-array.h: Added copyright header.
4683 * include/cni.h: Added copyright header.
4685 * include/javaprims.h: Regenerated class declarations using
4686 classes.pl; now they are complete.
4687 * classes.pl: New file.
4689 * java/lang/natMath.cc: Include <config.h>.
4690 * java/lang/reflect/natField.cc: Include <config.h>.
4691 * java/util/NativeUtil.java: Removed.
4692 * Makefile.in: Rebuilt.
4693 * Makefile.am (nat_headers): Added Math.h.
4694 * java/lang/Math.h: Removed.
4695 * java/util/natGregorianCalendar.cc: Added copyright header.
4697 * java/lang/natFloat.cc: Added copyright header.
4698 * java/lang/Byte.java: Added copyright header.
4699 * java/lang/Void.java: Added copyright header.
4700 * java/lang/Short.java: Added copyright header.
4702 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4704 * include/javaprims.h (java::io): Added bunch of missing classes.
4706 * java/io/DataInputStream.java (readLine): Added a special case
4707 for handling BufferedInputStream data to reduce the likelihood
4708 of a pushback error.
4709 (skipBytes): Added code to handle negative number of skip bytes.
4711 * java/io/StreamTokenizer.java: Rewritten.
4713 1998-10-28 Tom Tromey <tromey@cygnus.com>
4715 * java/util/natGregorianCalendar.cc (computeFields): Call
4716 getRawOffset as a method.
4718 * include/javaprims.h (java::io): Added FilterOutputStream.
4719 * Makefile.in: Rebuilt.
4720 * Makefile.am (nat_headers): Added PrintStream.h,
4721 FilterOutputStream.h.
4722 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4724 (die): New function.
4725 (run): Die if `main' not found, is not public, or is not static.
4727 * boehm.cc (_Jv_MarkObj): Use new field names.
4728 * include/java-field.h (JvGetFirstInstanceField): Use new field
4730 (JvNumInstanceFields): Likewise.
4731 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4732 (getInterfaces): Likewise.
4733 * prims.cc (CLASS_CONSTANTS): Removed.
4734 (CLASS_CONST_SIZE): Likewise.
4735 (CLASS_CONST_TAG): Likewise.
4736 (CLASS_CONST_DATA): Likewise.
4737 (CLASS_CONST_UTF8): Likewise.
4738 (WORD2UTF): Likewise.
4739 (CLASS_CLASS): Likewise.
4740 (CLASS_PRIM_SIG): Likewise.
4741 (CLASS_ARRAY_CACHE): Likewise.
4742 (HASH_CHARS): Likewise.
4743 (hashClassName): Likewise.
4744 Many changes to use new field names.
4745 * java/lang/Class.h (Class): Renamed fields to track compiler.
4747 1998-10-27 Tom Tromey <tromey@cygnus.com>
4749 * java/lang/natClass.cc: Use #pragma implementation.
4750 (getComponentType): Moved into header.
4751 (getModifiers): Likewise.
4752 (getName): Likewise.
4753 (getSuperclass): Likewise.
4754 (isArray): Likewise.
4755 (isPrimitive): Likewise.
4756 * include/jvm.h (_Jv_FindClass): Declare.
4757 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4758 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4759 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4760 * java/lang/Class.h: Rewrote from scratch.
4761 * prims.cc: Many changes to work with new Class.h.
4762 * include/java-field.h (CLASS_FIELDS): Removed.
4763 (CLASS_SFIELDS): Likewise.
4764 (CLASS_IFIELDS): Likewise.
4765 (CLASS_NFIELDS): Likewise.
4766 (CLASS_NIFIELDS): Likewise.
4767 (CLASS_NSFIELDS): Likewise.
4768 (CLASS_FSIZE): Likewise.
4769 (JvGetFirstInstanceField): Rewrote.
4770 (JvNumInstanceFields): Likewise.
4772 * java/lang/Object.h: Added copyright comment.
4774 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4776 * java/text: New package directory.
4777 * java/text/FieldPosition.java: New class.
4778 * java/text/ParsePosition.java: New class.
4779 * java/text/ParseException.java: New Exception class.
4780 * java/text/Format.java: New class.
4781 * java/text/NumberFormat.java: New (empty placeholder) class.
4782 * java/text/DateFormatSymbols.java: New class (no Locales support).
4783 * java/text/DateFormat.java: New Format class (incomplete).
4784 * java/text/SimpleDateFormat.java: New DateFormat class.
4786 * include/javaprims.h (java::test): Added new package and classes.
4787 * java/util/Calendar.java (clone): New method.
4788 * java/util/Date.java (toString): Added non-native implementation.
4789 (parse): Made public instead of synchronized.
4790 * java/util/natDate.cc (toString): Removed.
4791 * java/util/natGregorianCalendar.cc (computeFields):
4792 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4794 1998-10-27 Tom Tromey <tromey@cygnus.com>
4796 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4798 * prims.cc (lookupArray): Added explanatory comment.
4799 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4800 class. Mark the class of each object.
4801 (_Jv_MarkArray): Mark the object's class.
4803 * configure: Rebuilt.
4804 * configure.in: Create java-gc.h.
4805 * include/boehm-gc.h: New file.
4806 * include/no-gc.h: New file.
4807 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4809 * java/lang/Object.h: Include java-gc.h.
4810 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4811 friends, if defined.
4812 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4814 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4816 1998-10-26 Tom Tromey <tromey@cygnus.com>
4818 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4819 paragraph separators, not numbers.
4821 * java/io/Writer.java (write): Removed write(char) to avoid
4823 * java/util/Properties.java: Rewrote from scratch.
4824 * include/javaprims.h (java::io): Added PrintWriter,
4825 BufferedWriter, PushbackReader.
4827 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4829 * java/lang/System.java: exit() is a static method.
4831 1998-10-26 Tom Tromey <tromey@cygnus.com>
4833 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4835 (_Jv_NewStringUtf8Const): Likewise.
4836 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4837 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4839 * java/lang/Object.h (Object): Add mark_array as friend function.
4840 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4841 _Jv_AllocBytes, to ensure that header is marked.
4842 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4844 (mark_array): Push sync_info field for array.
4846 1998-10-24 Tom Tromey <tromey@cygnus.com>
4848 * java/lang/String.java (String): Updated for StringBuffer
4850 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4852 * java/lang/StringBuffer.java: Renamed fields to conform to
4853 serialization spec: buffer->value, next->count, copy->shared.
4855 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4857 * java/util/TimeZone.java: New class.
4858 * java/util/SimpleTimeZone.java: New class.
4859 * java/util/Locale.java: New file.
4860 * java/util/Calendar.java: Make almost complete.
4861 * java/util/GregorianCalendar.java
4862 * java/util/natGregorianCalendar.cc: New file.
4863 * java/util/Date.java: Re-written from scratch.
4864 * java/util/natDate.cc (setTime): Removed - no longer native.
4865 * include/javaprims.h (java::util): Add new classes.
4866 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4867 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4869 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4871 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4872 returning it as a jint.
4874 1998-10-23 Tom Tromey <tromey@cygnus.com>
4876 * prims.cc (arg_vec, main_group, main_thread): New globals.
4877 (JvRunMain): Use them.
4879 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4881 * java/io/DataInputStream.java: Rewritten.
4883 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4884 tertiary bytes with 0x80 per spec.
4886 1998-10-23 Tom Tromey <tromey@cygnus.com>
4888 * java/lang/String.java (init): Changed name of `copy' argument.
4889 * java/lang/natString.cc (init): Inverted sense of `copy'
4892 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4893 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4894 * boehm.cc (ObjectClass): New define.
4895 (ClassClass): Likewise.
4896 (mark_obj): Special-case Object and Class.
4898 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4900 * java/util/BitSet.java: Rewrote from scratch.
4902 * prims.cc (lookupArray): Removed useless cast.
4904 * java/lang/natObject.cc: Use `#pragma implementation'.
4906 * java/lang/String.java (init): Added `copy' argument.
4907 (String): Look in StringBuffer to find char array.
4908 * java/lang/natString.cc (init): Added `copy' argument.
4909 * java/lang/StringBuffer.java: Rewrote from scratch.
4911 * java/lang/Compiler.java: Rewrote from scratch.
4912 * java/lang/Throwable.java: Don't use NativeLang.
4913 * include/javaprims.h (java::lang): Don't mention NativeLang.
4914 * java/lang/Process.java: Rewrote from scratch.
4915 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4917 (currentClassLoader): Likewise.
4918 (currentLoadedClass): Likewise.
4919 * java/lang/natClass.cc (getClassLoader): Commented out.
4920 * java/lang/Class.java (getClassLoader): Commented out.
4921 * java/lang/Compiler.java: Removed.
4922 * java/lang/NativeLang.java: Removed.
4924 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4925 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4926 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4927 (_Jv_hashUtf8String): Now static.
4928 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4929 name of return type.
4931 * java/lang/Class.h (Class): Declare checkMemberAccess.
4932 * Makefile.in: Rebuilt.
4933 * Makefile.am (nat_headers): Added Member.h.
4934 * java/lang/natClass.cc: Include Member.h.
4935 (getDeclaredClasses): Call checkMemberAccess.
4936 * java/lang/Class.java (checkMemberAccess): Call
4937 SecurityManager.checkMemberAccess.
4939 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4941 * java/lang/SecurityManager.java: Rewritten.
4943 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4945 * java/applet/Applet.java, java/applet/AppletContext.java,
4946 java/applet/AppletStub.java, java/applet/AudioClip.java,
4947 java/awt/AWTError.java, java/awt/AWTException.java,
4948 java/awt/BorderLayout.java, java/awt/Button.java,
4949 java/awt/Canvas.java, java/awt/CardLayout.java,
4950 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4951 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4952 java/awt/Color.java, java/awt/Component.java,
4953 java/awt/Container.java, java/awt/Dialog.java,
4954 java/awt/Dimension.java, java/awt/Event.java,
4955 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4956 java/awt/Font.java, java/awt/FontMetrics.java,
4957 java/awt/Frame.java, java/awt/Graphics.java,
4958 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4959 java/awt/GridLayout.java, java/awt/Image.java,
4960 java/awt/Insets.java, java/awt/Label.java,
4961 java/awt/LayoutManager.java, java/awt/List.java,
4962 java/awt/MediaTracker.java, java/awt/Menu.java,
4963 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4964 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4965 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4966 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4967 java/awt/TextArea.java, java/awt/TextComponent.java,
4968 java/awt/TextField.java, java/awt/Toolkit.java,
4969 java/awt/Window.java, java/awt/image/ColorModel.java,
4970 java/awt/image/CropImageFilter.java,
4971 java/awt/image/DirectColorModel.java,
4972 java/awt/image/FilteredImageSource.java,
4973 java/awt/image/ImageConsumer.java,
4974 java/awt/image/ImageFilter.java,
4975 java/awt/image/ImageObserver.java,
4976 java/awt/image/ImageProducer.java,
4977 java/awt/image/IndexColorModel.java,
4978 java/awt/image/MemoryImageSource.java,
4979 java/awt/image/PixelGrabber.java,
4980 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4981 java/awt/peer/CanvasPeer.java,
4982 java/awt/peer/CheckboxMenuItemPeer.java,
4983 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4984 java/awt/peer/ComponentPeer.java,
4985 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4986 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4987 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4988 java/awt/peer/MenuBarPeer.java,
4989 java/awt/peer/MenuComponentPeer.java,
4990 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4991 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4992 java/awt/peer/TextAreaPeer.java,
4993 java/awt/peer/TextComponentPeer.java,
4994 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4995 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4996 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4997 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4998 java/net/MalformedURLException.java, java/net/NativeNet.java,
4999 java/net/ProtocolException.java, java/net/ServerSocket.java,
5000 java/net/Socket.java, java/net/SocketException.java,
5001 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
5002 java/net/URL.java, java/net/URLConnection.java,
5003 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
5004 java/net/URLStreamHandlerFactory.java,
5005 java/net/UnknownHostException.java,
5006 java/net/UnknownServiceException.java: Removed.
5008 1998-10-22 Tom Tromey <tromey@cygnus.com>
5010 * prims.cc (_Jv_AllocObject): Register finalizer if class'
5011 finalizer is not Object.finalize.
5012 (internalAddClass): Don't set `final' member of class.
5013 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
5014 other places that know about finalize() location.
5015 * java/lang/Class.h (Class): Removed `final' field.
5017 * aclocal.m4, configure: Rebuilt.
5018 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
5019 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
5021 * configure.in (AC_OUTPUT): Pass CXX to config.status.
5022 * Makefile.in: Rebuilt.
5023 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
5025 1998-10-21 Tom Tromey <tromey@cygnus.com>
5027 * java/lang/Object.java (finalize): Move to be first method in
5030 * configure: Rebuilt.
5031 * configure.in (GCINCS): Include contents of boehm-cflags file.
5033 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5035 * java/lang/ArrayIndexOutOfBoundsException.java
5036 (ArrayIndexOutOfBoundsException): Fixed string literal.
5037 * java/lang/StringIndexOutOfBoundsException.java
5038 (StringIndexOutOfBoundsException): Fixed string literal.
5040 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5042 * natFileDescriptorEcos.cc added.
5043 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5045 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5047 * acconfig.h: test for __int32_t and __uint32_t added.
5048 * include/config.h.in: test for __int32_t and __uint32_t added.
5049 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5050 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5051 * configure.in: test for __int32_t and __uint32_t added.
5052 * configure: test for __int32_t and __uint32_t added.
5054 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5056 * configure.in: Test for --enable ecos and link
5057 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5058 natFileDescriptorPosix.cc
5060 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5062 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5064 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5067 * java/io/CharArrayReader.java (close): Synchronize on lock
5068 object per Reader contract.
5069 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5070 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5071 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5072 Ensure that arg passed in isn't negative.
5074 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5075 constructing the superclass.
5077 * java/io/PushbackReader.java (close): Synchronize on lock
5078 object per Reader contract.
5079 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5080 (ready): Synchronize on lock obj. Throw IOException if reader
5082 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5083 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5084 Ensure that arg passed in isn't negative.
5085 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5087 * java/io/StringReader.java: Created.
5089 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5091 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5093 (read): Removed synchronized modifier to match JCL.
5094 (reset): Removed synchronized modifier to match JCL.
5095 (skip): Removed synchronized modifier to match JCL.
5097 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5099 * java/io/PushbackReader.java (PushbackReader): Made
5100 constructors public.
5102 1998-10-17 Tom Tromey <tromey@cygnus.com>
5104 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5105 constructors public.
5107 1998-10-16 Anthony Green <green@cygnus.com>
5109 * aclocal.m4, configure: Rebuilt.
5110 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5112 * configure.host: Rewrote.
5113 * Makefile.in: Rebuilt.
5114 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5115 (AM_CFLAGS): New macro.
5116 ($(c_files)): Use COMPILE macro.
5117 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5118 automake problem(s).
5120 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5122 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5124 * java/io/CharArrayReader.java: Created.
5126 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5128 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5129 size check to allow 0 per JCL.
5131 * java/io/PushbackReader.java: Created.
5133 1998-10-16 Tom Tromey <tromey@cygnus.com>
5135 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5136 <sys/time.h> includes.
5137 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5138 * include/no-threads.h: Conditionalize <unistd.h> include on
5141 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5143 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5146 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5148 * java/io/FilterReader.java: Created.
5150 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5152 * java/io/PushbackInputStream.java: Rewritten.
5154 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5155 that size passed to constructor is legal.
5156 (read): Check that args passed in are legal.
5157 (skip): Rewritten to get rid of the temporary buffer.
5158 (refill): Added marklimit check to grow the buffer.
5160 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5162 (bytesAvail): Removed.
5163 (read): Changed bytesAvail to Math.min.
5164 (skip): Changed bytesAvail to Math.min.
5166 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5167 from the throws clause.
5168 (skip): Rewritten to use a temporary buffer.
5170 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5172 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5175 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5177 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5178 to write the double one word at a time.
5180 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5182 * java/io/BufferedInputStream.java: Rewritten.
5184 1998-10-12 Tom Tromey <tromey@cygnus.com>
5186 * jni.cc: Include config.h and stddef.h.
5188 * java/lang/Class.h (_dispatchTable): Removed again.
5189 Removed all ACC_* defines again.
5191 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5193 * Makefile.am (nat_files): Add netField.o.
5194 (libjava_a_SOURCES): Add jni.cc.
5195 (java/lang/reflect/Field.h): New rule.
5196 * Makefile.in: Re-generated.
5197 * include/javaprims.h: Add some extra class and typedefs.
5198 * include/jni.h: New file.
5201 * include/java-field.h: New file.
5202 * include/jvm.h: #include <java-field.h>.
5203 * boehm.cc: #include <java-field.h>.
5204 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5205 * java/lang/reflect/Member.java: New class.
5206 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5207 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5209 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5211 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5212 testsuite/Makefile.in: Rebuilt.
5213 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5214 * configure.host: Created.
5216 1998-10-10 Tom Tromey <tromey@cygnus.com>
5218 * java/lang/natObject.cc (sync_init): Always allocate a new
5221 1998-10-09 Tom Tromey <tromey@cygnus.com>
5223 * java/io/ByteArrayInputStream.java (mark): Renamed from
5226 * java/io/FileOutputStream.java (finalize): Removed.
5227 * java/io/FileDescriptor.java (finalize): New method.
5229 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5231 * ByteArrayInputStream.java: Corrected status comment.
5233 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5235 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5237 1998-10-08 Tom Tromey <tromey@cygnus.com>
5239 * prims.cc (lookupArray): Use static array to initialize list of
5242 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5244 * prims.cc (lookupArray): Initialize the msize for new
5247 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5249 * configure: Rebuilt.
5250 * configure.in: Check for fsync and sleep.
5251 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5253 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5254 HAVE_SLEEP. Include config.h.
5256 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5257 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5260 1998-10-08 Tom Tromey <tromey@cygnus.com>
5262 * java/io/natFile.cc: Don't include SecurityManager.h.
5263 (performList): Renamed.
5264 (performMkdir): Likewise.
5265 (performRenameTo): Likewise.
5266 (performDelete): Likewise.
5268 * java/io/File.java (performDelete): Renamed from natDelete.
5269 (list): Now written in Java.
5270 (performList): New method.
5271 (performMkdir): New method.
5272 (mkdir): Now written in Java.
5273 (performRenameTo): New method.
5274 (renameTo): Now written in Java.
5276 1998-10-06 Tom Tromey <tromey@cygnus.com>
5278 * Makefile.in: Rebuilt.
5279 * Makefile.am (ETAGS_ARGS): New macro.
5280 (TAGS_DEPENDENCIES): Likewise.
5282 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5284 * Makefile.in: Rebuilt.
5285 * Makefile.am: Use -classpath option with javac.
5287 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5289 * java/io/FileOutputStream.java (finalize): Call
5292 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5294 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5296 * java/lang/mprec.c: Ditto.
5298 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5301 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5303 * java/io/InputStream.java (skip): Make local var i a long.
5305 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5307 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5308 * prims.cc (lookupArray): Use memcpy, not memmove.
5309 * include/config.h.in: Rebuilt.
5310 * acconfig.h (HAVE_MEMCPY): Added.
5311 * configure: Rebuilt.
5312 * configure.in: Check for memcpy again.
5314 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5315 String.compareTo, not ==.
5317 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5318 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5319 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5320 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5321 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5322 into new array's dtable.
5323 (_Jv_AllocObject): Use _Jv_DispatchTable.
5324 (_Jv_NewPrimArray): Likewise.
5325 (_Jv_NewObjectArray): Likewise.
5327 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5329 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5330 offending index value.
5331 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5333 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5334 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5336 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5338 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5340 * java/io/OutputStream.java (write): Use off and len parameters to
5341 output partial byte array.
5343 * java/io/BufferedReader.java, java/io/FileReader.java,
5344 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5345 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5346 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5347 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5349 * include/javaprims.h (java::lang): Added
5350 ExceptionInInitializerError, IllegalStateException,
5351 NoSuchFieldException, and UnsupportedOperationException.
5353 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5355 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5358 * include/java-array.h (__JArray): Added clone method.
5359 * prims.cc (CloneableClass): New define.
5360 (lookupArray): Initialize array class to indicate that it
5361 implements Cloneable.
5363 * java/lang/Class.h: Removed all ACC_* defines.
5364 * prims.cc: Include Modifier.h.
5365 (_Jv_LookupInterfaceMethod): Use methods in
5366 java.lang.reflect.Modifier, not ACC_ defines.
5368 * java/lang/Class.h (Class): Declare getClasses,
5369 getDeclaredClasses, getDeclaringClass, getModifiers,
5370 * java/lang/Class.java: Rewrote from scratch.
5372 * include/javaprims.h (java::lang): Added reflect and
5374 * Makefile.in: Rebuilt.
5375 * Makefile.am (nat_headers): Added Modifier.h.
5377 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5380 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5382 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5383 instead of test and abort.
5385 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5386 remove compiler warning.
5388 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5390 * java/lang/natDouble.cc: zero terminate string.
5391 * strtod.c: Set errno if no digits are found in fraction.
5393 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5395 * java/lang/reflect/Modifier.java: New file.
5397 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5398 * java/lang/VerifyError.java: Rewrote from scratch.
5399 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5400 * java/lang/UnknownError.java: Rewrote from scratch.
5401 * java/lang/StackOverflowError.java: Rewrote from scratch.
5402 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5403 * java/lang/InternalError.java: Rewrote from scratch.
5404 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5405 * java/lang/ExceptionInInitializerError.java: New file.
5406 * java/lang/Error.java: Rewrote from scratch.
5407 * java/lang/ClassFormatError.java: Rewrote from scratch.
5408 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5409 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5410 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5411 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5412 * java/lang/LinkageError.java: Rewrote from scratch.
5413 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5415 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5417 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5418 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5420 * include/cni.h (JvAllocObject): Moved from prims.cc.
5422 * prims.cc (JvAllocObject): Moved to cni.h.
5423 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5424 (finalize_name): Removed.
5426 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5428 * java/lang/Class.h (Class): Added size() method.
5429 * prims.cc (_Jv_MonitorEnter): Removed.
5430 (_Jv_MonitorExit): Removed.
5431 * java/lang/Object.h (JvSyncInfo): Removed.
5432 * Makefile.in: Rebuilt.
5433 * Makefile.am (nat_headers): Added Cloneable.h,
5434 CloneNotSupportedException.h.
5435 * java/lang/Object.h: Rewrote.
5436 * java/lang/natObject.cc: Rewrote from scratch.
5437 * java/lang/Object.java: Rewrote from scratch.
5439 * java/io/natFile.cc: Conditionally include <dirent.h>.
5440 (list): If no <dirent.h>, always return NULL.
5441 * configure: Rebuilt.
5442 * configure.in: Check for dirent.h.
5444 * prims.cc (lookupArray): Don't use sprintf.
5446 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5453 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5454 name conflict with method.
5456 * include/javaprims.h (java::util): Added HashtableEntry.
5458 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5460 * java/util/Hashtable.java: Rewritten.
5462 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5464 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5468 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5471 * posix-threads.cc (_Jv_CondWait): Now returns int.
5472 * include/javaprims.h (java::lang): Added
5473 IllegalMonitorStateException.
5474 * Makefile.in: Rebuilt.
5475 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5476 * include/no-threads.h (_Jv_CondDestroy): Removed.
5477 (_Jv_MutexDestroy): Removed.
5478 (_Jv_CondWait): Now returns int.
5479 (_Jv_CondNotify): Likewise. Added mutex argument.
5480 (_Jv_CondNotifyAll): Likewise.
5481 (_Jv_MutexLock): Always succeed.
5482 (_Jv_MutexUnlock): Likewise.
5483 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5484 (_Jv_HaveMutexDestroy): Define.
5485 (_Jv_CondNotify): Now returns int. Added mutex argument.
5486 (_Jv_CondNotifyAll): Likewise.
5487 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5488 (_Jv_MutexDestroy): Removed.
5489 (_Jv_CondWait): Now returns int.
5490 (_Jv_CondNotify): Likewise. Added mutex argument.
5491 (_Jv_CondNotifyAll): Likewise.
5492 * java/lang/natObject.cc (finalize_sync_info): New function.
5493 (init_mutex): Initialize `init' and register finalizer if
5496 (init_mutex): Use it.
5498 (notifyAll): Use it.
5500 (notify): Throw IllegalMonitorStateException on failure.
5501 (notifyAll): Likewise.
5502 (wait): Likewise. Also, throw InterruptedException if
5504 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5505 InterruptedException.h, IllegalArgumentException.h.
5506 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5508 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5509 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5510 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5511 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5512 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5513 * quick-threads.cc: Renamed all `JvPriv' functions.
5514 * prims.cc: Renamed all `JvPriv' functions.
5515 * posix-threads.cc: Renamed all `JvPriv' functions.
5516 * nogc.cc: Renamed all `JvPriv' functions.
5517 * no-threads.cc: Renamed all `JvPriv' functions.
5518 * boehm.cc: Renamed all `JvPriv' functions.
5519 * include/quick-threads.h: Renamed all `JvPriv' functions.
5520 * include/posix-threads.h: Renamed all `JvPriv' functions.
5521 * include/no-threads.h: Renamed all `JvPriv' functions.
5522 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5524 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5526 (JvPrivCondNotify): Do nothing.
5527 (JvPrivCondNotifyAll): Do nothing.
5529 * prims.cc (processClass): Handle case where state is
5532 * java/lang/natFirstThread.cc: Include <stdlib.h>
5534 * configure: Rebuilt.
5535 * configure.in: Fixed sense of --enable-libjava-debug.
5537 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5538 it can be used afterward by the assertion.
5540 * configure: Rebuilt.
5541 * configure.in: When cross-compiling, assume alloca.
5543 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5544 __builtin_alloca (autoconf docs are wrong here).
5546 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5548 (available): Use `FD_ZERO' (typo fix).
5550 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5552 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5553 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5555 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5556 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5559 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5561 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5563 * java/lang/natDouble.cc: Declare alloca safely.
5565 * configure, include/config.h.in: Rebuilt.
5566 * configure.in: Add alloca check.
5568 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5570 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5571 condition while calling notify.
5572 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5573 (interrupt): Hold mutex for interrupt condition while calling
5576 * java/lang/natString.cc (init): Allocate and try to read `count'
5577 characters, not `count - offset' characters.
5579 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5580 Correctly compute `count'.
5582 * java/lang/Boolean.java (getBoolean): Return false if property
5585 * java/lang/System.java (setProperties): Set prop_init.
5587 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5589 * java/io/PrintStream.java (println): Use line.separator, not
5591 * java/lang/System.java (out, err): Make both autoflush streams.
5592 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5594 * include/config.h.in: Rebuilt.
5595 * acconfig.h (HAVE_MEMCPY): Removed.
5596 * configure: Rebuilt.
5597 * configure.in: Never define HAVE_MEMCPY.
5599 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5601 (_Jv_AllocString): Use JvAllocObject again.
5602 * java/lang/Class.h (thread): New field.
5603 (_Jv_AllocString): No longer a friend.
5604 * prims.cc (processClass): Removed dead code. Changed to more
5605 closely follow the Java Language Specification.
5606 (processClass): Return early if already at the right state.
5608 * prims.cc (JvNewStringUTF): Removed.
5609 * include/cni.h (JvNewStringUTF): New function.
5610 (_Jv_NewStringUTF): Declare as `extern "C"'.
5611 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5613 * java/lang/natDouble.cc: Added copyright info and header
5614 comment. Include <stdlib.h>.
5615 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5616 bytes as are chars in string.
5618 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5620 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5624 * java/lang/System.java (init_properties): Now native.
5625 * java/lang/natSystem.cc (init_properties): New method.
5626 Include java/util/Properties.h.
5628 * Makefile.in: Rebuilt.
5629 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5630 OutputStreamWriter.h, ByteArrayInputStream.h,
5631 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5632 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5633 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5634 Properties.h, Hashtable.h, Dictionary.h.
5637 * include/javaprims.h (java::io): Added Reader, Writer,
5638 InputStreamReader, OutputStreamWriter,
5639 UnsupportedEncodingException, ByteArrayInputStream,
5640 ByteArrayOutputStream, EOFException, SyncFailedException,
5641 PushbackInputStream.
5642 (java::lang): Added Cloneable.
5643 (java::util): Added NoSuchElementException, VectorEnumeration,
5644 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5646 * java/io/PipedReader.java: New file.
5648 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5650 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5653 * java/io/io-defs.h: Removed.
5655 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5656 (FileInputStream): Use new constructor. Can throw IOException.
5658 * java/lang/System.java (getProperty): Don't throw
5659 NullPointerException.
5661 * java/io/RandomAccessFile.java: Rewrote from scratch.
5663 * java/io/natFileDescriptor.cc: Include EOFException.h.
5665 (length): New method.
5666 (getFilePointer): New method.
5668 (available): New method.
5669 * java/io/FileDescriptor.java (SET, CUR): New constants.
5670 (seek, length, getFilePointer, read, available): New decls.
5672 * java/io/PipedWriter.java: New file.
5673 * java/io/StringWriter.java: New file.
5674 * java/io/CharArrayWriter.java: New file.
5675 * java/io/CharConversionException.java: New file.
5676 * java/io/BufferedWriter.java: New file.
5677 * java/io/FilterWriter.java: New file.
5678 * java/io/FileWriter.java: New file.
5680 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5681 OutputStreamWriter.h, NullPointerException.h,
5682 ByteArrayInputStream.h, InputStreamReader.h.
5683 (getBytes): New method.
5684 (init): Throw NullPointerException.
5685 (init): New function.
5686 * java/lang/String.java (getBytes): Added missing decl.
5687 (getBytes): New method.
5688 (String): Added byte[]-based constructors.
5689 (copyValueOf): Wrote.
5690 (init): Declare variant which takes byte array and encoding.
5691 Import java.io.UnsupportedEncodingException.
5693 * java/io/File.java: Rewrote from scratch.
5694 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5695 * java/io/FileDescriptor.java: Rewrote from scratch.
5696 * java/io/FilenameFilter.java: Rewrote from scratch.
5698 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5700 * java/io/SyncFailedException.java: New file.
5701 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5702 * java/io/InterruptedIOException.java: Rewrote from scratch.
5703 * java/io/FileNotFoundException.java: Rewrote from scratch.
5704 * java/io/EOFException.java: Rewrote from scratch.
5705 * java/io/IOException.java: Rewrote from scratch.
5706 * java/io/PrintStream.java: Rewrote from scratch.
5707 * java/io/DataOutputStream.java: Rewrote from scratch.
5708 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5709 * java/io/FilterOutputStream.java: Rewrote from scratch.
5710 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5711 * java/io/PipedOutputStream.java: Rewrote from scratch.
5712 * java/io/FileOutputStream.java: Rewrote from scratch.
5713 * java/io/OutputStream.java: Rewrote from scratch.
5714 * java/io/DataOutput.java: Rewrote from scratch.
5716 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5718 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5720 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5722 * configure.in: Add --enable-libjava-debug
5724 * Makefile.am (nat_headers): Add java/lang/Float.h and
5727 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5729 * Makefile.in, configure, include/config.h.in: Rebuilt.
5731 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5733 * java/lang/Float.java: Rewritten
5734 * java/lang/Double.java: Rewritten
5735 * java/lang/natFloat.cc: toString() added.
5736 * java/lang/natDouble.cc: toString() added.
5737 * java/lang/natDouble.cc: doubleValueOf() added.
5738 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5739 java/lang/strtod.c: added.
5740 * ieeefp.h: __sparc added.
5741 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5743 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5745 * include/javaprims.h (java::lang): Added
5746 CloneNotSupportedException.
5748 * java/lang/Object.java (clone): No longer native. Implemented.
5749 * java/lang/natObject.cc (clone): Removed.
5751 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5753 * prims.cc: Don't make definitions `extern "C"'.
5754 (_Jv_RegisterClass): Renamed from registerClass.
5755 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5756 (_Jv_NewArray): Likewise.
5757 (_Jv_NewMultiArray): Likewise.
5758 (_Jv_CheckCast): Likewise.
5759 (_Jv_LookupInterfaceMethod): Likewise.
5760 (_Jv_CheckArrayStore): Likewise.
5761 (_Jv_RegisterClass): Likewise.
5763 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5764 * configure: Rebuilt.
5765 * configure.in: Don't check for fmod; it is provided by the fdlibm
5767 * prims.cc (fmod): Removed.
5769 * java/lang/natString.cc (charAt): Use _Jv_uint.
5770 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5771 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5772 (equalUtf8Consts): Likewise.
5773 (internalAddClass): Use _Jv_uint.
5774 (processClass): Likewise.
5775 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5776 (_Jv_uint): Renamed from uint32.
5777 (struct _Jv_Utf8Const): Changed members to use new type names.
5779 * configure: Rebuilt.
5780 * configure.in: Don't check for memcpy. Require memmove and a way
5782 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5784 (currentTimeMillis): Don't use #error.
5786 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5788 * java/lang/Math.java: static member random renamed to random_ to
5789 avoid conflict with member function of the same name.
5790 * include/javaprims.h: java.util.Random added.
5792 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5794 * include/java-chartables.h: Regenerated.
5795 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5798 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5800 * java/lang/Math.java: Rewritten.
5801 * java/lang/natMath.cc: New file.
5802 * Files added from fdlibm:
5803 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5804 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5805 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5806 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5807 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5808 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5809 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5810 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5811 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5812 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5813 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5814 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5815 java/lang/k_cos.c, java/lang/sf_ceil.c,
5816 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5817 java/lang/ieeefp.h, java/lang/fdlibm.h
5818 * Makefile.am: rules added for compiling C files from fdlibm.
5820 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5822 * chartables.pl: Minor documentation fixes.
5824 * configure: Rebuilt.
5825 * configure.in: Fixed --help output for --enable-fast-character.
5827 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5829 * configure: Rebuilt.
5830 * configure.in: Recognize --enable-fast-character.
5831 * acconfig.h (COMPACT_CHARACTER): New define.
5832 * include/config.h.in: Rebuilt.
5833 * include/java-chartables.h: New file.
5834 * Makefile.in: Rebuilt.
5835 * Makefile.am (nat_files): Added natCharacter.o.
5836 * java/lang/natCharacter.cc: New file.
5837 * chartables.pl (set_attribute): New function.
5838 (@attributes, @second_attributes): New globals.
5839 ($ROMAN_START, $ROMAN_END): Likewise.
5840 (process_char): Call set_attribute when required.
5841 (print_char): Just print hex value.
5842 (print_block): Generate C++ syntax.
5843 (print_numerics): Likewise.
5844 (print_single_map): Likewise.
5845 (print_all_block): Likewise.
5846 (print_case_table): Likewise.
5847 (print_fast_tables): New function.
5848 Generate C++ code suitable for a header file.
5849 * java/lang/Character.java (table_search): Removed.
5850 (digit_value): Now native.
5851 (getNumericValue): Likewise.
5852 (getType): Likewise.
5853 Removed all automatically-generated tables.
5854 (Tamil_Digit_One): Removed.
5855 (isSpaceChar): Now native.
5856 (isTitleCase): Likewise.
5857 (isLowerCase): Likewise.
5858 (isUpperCase): Likewise.
5859 (toLowerCase): Likewise.
5860 (toTitleCase): Likewise.
5861 (toUpperCase): Likewise.
5862 (isDefined): Fixed sense of test.
5864 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5866 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5868 (regionMatches): Likewise.
5870 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5872 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5874 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5876 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5879 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5882 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5884 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5886 * prims.cc (instanceof_class): Removed.
5887 (instanceof_array): Likewise.
5888 (instanceof): Likewise.
5889 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5890 (_Jv_CheckCast): Likewise.
5891 * java/lang/natClass.cc (isAssignableFrom): New method.
5892 * java/lang/Class.java (isAssignableFrom): Now native.
5894 * include/cni.h (JvThrow): Use `extern inline'.
5895 (JvAllocObject): Likewise.
5896 (JvInitClass): Likewise.
5898 * java/lang/natSystem.cc (arraycopy): Only check class of source
5901 * prims.cc (_Jv_CheckArrayStore): Wrote.
5902 (_Jv_MonitorEnter): Prefer `JvThrow'.
5903 Include ArrayStoreException.h.
5904 (_Jv_CheckCast): Indentation cleanup.
5906 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5908 * chartables.pl: New file.
5909 * java/lang/Character.java: Rewrote from scratch.
5911 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5913 * java/lang/ArithmeticException.java,
5914 java/lang/ArrayIndexOutOfBoundsException.java,
5915 java/lang/ArrayStoreException.java,
5916 java/lang/ClassCastException.java,
5917 java/lang/ClassNotFoundException.java,
5918 java/lang/CloneNotSupportedException.java,
5919 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5920 java/lang/IllegalArgumentException.java,
5921 java/lang/IllegalMonitorStateException.java,
5922 java/lang/IllegalThreadStateException.java,
5923 java/lang/IndexOutOfBoundsException.java,
5924 java/lang/InstantiationException.java,
5925 java/lang/InterruptedException.java,
5926 java/lang/NegativeArraySizeException.java,
5927 java/lang/NoSuchMethodException.java,
5928 java/lang/NullPointerException.java,
5929 java/lang/NumberFormatException.java,
5930 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5931 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5933 * java/lang/IllegalStateException.java,
5934 java/lang/NoSuchFieldException.java,
5935 java/lang/UnsupportedOperationException.java: Created.
5937 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5939 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5940 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5942 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5944 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5946 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5948 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5950 * Makefile.in: Rebuilt.
5952 * include/javaprims.h (java::lang): Added
5953 StringIndexOutOfBoundsException.
5955 * java/lang/String.java: Added header comment and FIXME comment for
5956 missing constructors/methods.
5957 (endsWith): Adjusted offset into string to look at just the last chars.
5958 Commented out undocumented method.
5960 * java/lang/natString.cc: Added includes for
5961 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5962 (String::init): Throw StringIndexOutOfBoundsException.
5963 (String::charAt): Throw StringIndexOutOfBoundsException.
5964 (String::substring): Throw StringIndexOutOfBoundsException.
5965 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5966 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5967 (String::compareTo): Return difference/offset between chars/strings.
5969 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5971 * java/lang/Boolean.java (TYPE): Added comment.
5973 * java/lang/Byte.java (decode): Added - commented out until dependent
5974 code for Integer is written.
5975 (compareTo): JDK 1.2 methods written.
5976 (hashCode): Added comment to note that values have been verified.
5978 * java/lang/Short.java (decode): Added - commented out until dependent
5979 code for Integer is written.
5980 (compareTo): JDK 1.2 methods written.
5981 (hashCode): Added comment to note that values have been verified.
5983 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5985 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5987 * include/javaprims.h (java::lang): Added VirtualMachineError,
5989 * Makefile.in: Rebuilt.
5990 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5991 VirtualMachineError.h.
5992 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5993 (lookupArray): Likewise.
5994 (makeUtf8Const): Likewise.
5995 (_Jv_AllocObject): Likewise.
5996 (_Jv_NewObjectArray): Likewise.
5997 Include OutOfMemoryError.h.
5999 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
6000 to use JvNewStringLatin1.
6002 * java/io/io-defs.h: Include java/lang/IOException.h.
6003 * Makefile.in: Rebuilt.
6004 * Makefile.am (nat_headers): Added
6005 ArrayIndexOutOfBoundsException.h,
6006 ClassFormatError.h,ClassNotFoundException.h,
6007 ClassCircularityError.h, ClassCastException.h,
6008 IncompatibleClassChangeError.h, AbstractMethodError.h,
6009 IllegalAccessError.h, LinkageError.h, Error.h,
6010 NegativeArraySizeException.h, IOException.h.
6011 * include/cni.h (SignalError): Removed declaration.
6012 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
6013 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
6014 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
6015 (newInstance): Likewise.
6016 (forName): Likewise.
6017 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
6019 (read): Use JvThrow, not SignalError.
6024 (open_read): Likewise.
6025 (open_write): Likewise.
6028 (newstr): New function.
6029 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
6031 (lastModifiedUnchecked): Likewise.
6032 (lengthUnchecked): Likewise.
6033 * include/javaprims.h (sorry): Removed declaration.
6034 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
6035 ClassFormatError, ClassNotFoundException, ClassCircularityError,
6036 ClassCastException, IncompatibleClassChangeError,
6037 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
6038 * prims.cc (instanceof_array): Use JvFail, not sorry.
6040 Include ArrayIndexOutOfBoundsException.h,
6041 ClassFormatError.h,ClassNotFoundException.h,
6042 ClassCircularityError.h, ClassCastException.h,
6043 IncompatibleClassChangeError.h, AbstractMethodError.h,
6044 IllegalAccessError.h, NegativeArraySizeException.h.
6045 (_Jv_ThrowBadArrayIndex): Implemented.
6046 (JvNewStringUTF): Use JvFail, not sorry.
6047 (_Jv_FindClass): Likewise.
6048 (_Jv_NewArray): Likewise.
6049 (throwException): Removed.
6050 (getClass): Use JvThrow.
6051 (processClass): Likewise.
6052 (_Jv_NewObjectArray): Likewise.
6053 (_Jv_NewMultiArray): Likewise.
6054 (_Jv_CheckCast): Likewise.
6055 (_Jv_LookupInterfaceMethod): Likewise.
6056 (SignalError): Removed.
6057 (getClass): Use _Jv_NewStringUtf8Const to create String.
6059 * java/lang/natSystem.cc (arraycopy): Throw
6060 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6062 * Makefile.in: Rebuilt.
6063 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6065 * include/java-array.h: Mention gcjh, not gjavah.
6067 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6068 (canReadUnchecked): Likewise.
6069 (canWriteUnchecked): Likewise.
6070 (isFileUnchecked): Likewise.
6071 * java/io/natFileDescriptor.cc: Don't include cni.h.
6073 * java/lang/Thread.java (run__): Declare.
6074 * java/lang/natThread.cc (run__): New method, to avoid compiler
6076 (start): Use run__, not run_.
6078 * java/io/io-defs.h: Include cni.h and jvm.h.
6080 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6082 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6083 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6084 to natString.cc (with suitable renaming, inlines etc).
6085 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6086 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6087 * java/lang/String.h: Removed - now generated using gjavah.
6088 * java/lang/String.java: Re-written from scratch. Many native methods.
6089 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6090 * java/lang/natString.cc: Many functions re-written for "compact
6091 strings" representation, or native java.lang.String methods added.
6092 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6093 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6094 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6095 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6096 * include/cni.h: Add inline method.
6097 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6098 * include/javaprims.h: Moved some stuff frm String.h.
6099 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6100 * Makefile.am (nat_header): Added Character.h and String.h.
6101 (String.h): Add new rule.
6103 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6105 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6107 * posix-threads.cc: Include cni.h, jvm.h.
6108 * quick-threads.cc: Include cni.h, jvm.h.
6109 * nogc.cc: Include cni.h, not javaprims.h.
6110 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6111 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6112 include java-assert.h.
6113 * java/lang/natSystem.cc: Include cni.h. Don't include
6115 * java/lang/natRuntime.cc: Include cni.h. Don't include
6117 * prims.cc: Rearranged #include ordering. Don't include
6118 java-array.h or java-assert.h.
6119 * boehm.cc: Include config.h, cni.h.
6120 * exception.cc: Include config.h, cni.h.
6121 * include/jvm.h: Include java-assert.h.
6122 * include/cni.h: Include java/lang/Object.h. Don't include
6123 java-threads.h or java-array.h.
6125 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6127 * java/lang/Boolean.java: Rewritten.
6129 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6131 * java/lang/natFirstThread.cc (main_func): New typedef.
6132 (run): Use main_func, not JvPrivThreadStartFunc.
6133 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6135 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6137 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6140 Can't throw Java exceptions with C++ `throw':
6141 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6142 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6143 (setPriority): Likewise.
6147 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6148 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6150 Can't catch Java exceptions from C++:
6151 * java/lang/natThread.cc (finish_): New method.
6153 * java/lang/Thread.java (run_): Rewrote in Java.
6154 (finish_): New native method.
6156 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6158 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6160 * include/javaprims.h (java::io): Added Serializable.
6162 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6164 * java/util/EmptyStackException.java,
6165 java/util/NoSuchElementException.java: Rewritten.
6167 * java/util/ConcurrentModificationException.java,
6168 java/util/MissingResourceException.java,
6169 java/util/TooManyListenersException.java: Created.
6171 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6173 * include/cni.h (JvThrow): New function.
6174 * include/javaprims.h (_Jv_Throw): Declare.
6176 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6178 * java/util/Observable.java: Rewritten.
6180 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6182 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6183 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6184 Include NullPointerException.h.
6186 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6188 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6189 assignability checks. Don't bother using memcpy.
6191 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6193 * include/quick-threads.h (JvPrivThreadWait): New function.
6194 * include/no-threads.h (JvPrivThreadWait): New function.
6195 * include/posix-threads.h (JvPrivThreadWait): New function.
6196 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6198 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6200 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6201 offsets by size of type that is being copied.
6203 * java/lang/natThread.cc (start): Don't pass `object' argument to
6205 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6206 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6208 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6209 always pass thread as object.
6210 * include/quick-threads.h, include/posix-threads.h,
6211 include/no-threads.h (JvPrivThreadStart): Removed `object'
6214 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6216 * java/util/Dictionary.java: Rewritten.
6218 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6220 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6221 (JvPrivThreadDestroy): Likewise.
6223 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6225 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6227 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6229 * java/lang/natSystem.cc: Rewrote from scratch.
6230 * java/lang/System.java: Rewrote from scratch.
6231 * java/lang/Class.h (Class): Declare isAssignableFrom.
6232 * include/javaprims.h (java::lang): Added ArrayStoreException,
6233 IndexOutOfBoundsException.
6234 * Makefile.in: Rebuilt.
6235 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6236 IndexOutOfBoundsException.h.
6237 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6238 * include/jvm.h (_Jv_HashCode): New function.
6240 * java/lang/natThread.cc (suspend): Call checkAccess.
6242 * java/lang/Thread.java (setDaemon): Call checkAccess.
6244 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6246 * java/lang/Runtime.java: Rewrote from scratch.
6247 * java/lang/natRuntime.cc: Rewrote from scratch.
6249 * nogc.cc (JvPrivGCTotalMemory): New function.
6250 (JvPrivGCFreeMemory): Likewise.
6251 (total): New global.
6252 (JvPrivAllocObj): Increment total.
6253 (JvPrivAllocArray): Likewise.
6254 (JvPrivAllocBytes): Likewise.
6255 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6256 * boehm.cc (JvPrivGCTotalMemory): New function.
6257 (sum_blocks): Likewise.
6258 (JvPrivGCFreeMemory): Likewise.
6260 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6262 * include/javaprims.h (java::lang): Added FirstThread.
6263 * java/lang/natFirstThread.cc: New file.
6264 * java/lang/FirstThread.java: New file.
6265 * prims.cc (main_signature): Removed.
6266 (main_name): Removed.
6267 #include FirstThread.h.
6268 * Makefile.in: Rebuilt.
6269 * Makefile.am (TFRIEND): Removed.
6270 (java/lang/Thread.h): Likewise.
6271 (FTFRIEND): New macro.
6272 (java/lang/FirstThread.h): New target.
6273 (nat_files): Added natFirstThread.o.
6274 (nat_headers): Added FirstThread.h.
6275 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6276 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6278 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6282 * java/lang/natThread.cc (start): Synchronize the thread.
6283 (stop): Synchronize the thread.
6285 * java/lang/ThreadDeath.java: Rewrote from scratch.
6287 * Makefile.in: Rebuilt.
6288 * Makefile.am (TGFRIEND): New macro.
6289 (java/lang/ThreadGroup.h): New target.
6290 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6292 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6294 * nogc.cc: Include config.h.
6296 * java/lang/ThreadGroup.java: Rewrote from scratch.
6298 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6300 * java/lang/Thread.java (checkAccess): Only call in to security
6301 manager if it exists.
6302 (Thread): Don't check access when creating the first thread. Add
6303 this thread to the appropriate ThreadGroup.
6305 * java/lang/natThread.cc (run_): Call uncaughtException method on
6308 * java/lang/Runnable.java: Rewrote from scratch.
6309 * java/lang/Thread.java: Updated copyright comment to correct
6312 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6314 * java/util/Random.java: Rewritten.
6316 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6318 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6319 trailing 0 in array[].
6321 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6323 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6324 and RUNTESTFLAGS from AM_MAKEFLAGS.
6325 (SUBDIRS): Conditionally include testsuite.
6326 * Makefile.in: Rebuilt.
6328 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6330 * java/lang/Object.h: Include java-assert.h.
6332 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6334 * Makefile.am: Add testsuite directory.
6335 * configure.in: Build testsuite/Makefile.
6336 * Makefile.in, configure: Rebuilt.
6338 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6340 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6341 * include/jvm.h (_Jv_StartFirstThread): Declare.
6343 * include/javaprims.h (java::lang): Added Exception,
6346 * Makefile.in: Rebuilt.
6347 * Makefile.am (nat_headers): Added NullPointerException.h,
6348 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6349 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6350 (java/lang/Thread.h): New target.
6351 (TFRIEND): New macro
6353 * include/java-assert.h (JvFail): Use 0 and not NULL.
6355 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6356 instead of assuming we are a friend of Thread.
6357 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6358 instead of assuming we are a friend of Thread.
6360 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6362 * java/lang/natThread.cc: Rewrote from scratch.
6363 * java/lang/Thread.java: Rewrote from scratch.
6364 * prims.cc (JvRunMain): Use new Thread constructor.
6365 * include/javaprims.h (java::lang): Added InterruptedException.
6366 * Makefile.in: Rebuilt.
6367 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6368 * java/lang/Thread.h: Removed.
6369 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6370 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6372 * posix-threads.cc (JvPrivThreadJoin): Removed.
6373 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6374 (really_start): Don't notify join_cond.
6375 (JvPrivThreadStart): Added `data' argument.
6376 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6377 (JvPrivThreadJoin): Likewise.
6378 Use JvFail instead of sorry.
6379 (JvPrivThreadSuspend): Removed.
6380 (JvPrivThreadResume): Removed.
6381 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6382 (JvPrivThreadJoin): Likewise.
6383 (JvPrivThreadSuspend): Use JvFail.
6384 (JvPrivThreadResume): Likewise.
6385 (JvPrivThreadSuspend): Removed.
6386 (JvPrivThreadResume): Likewise.
6387 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6388 (JvPrivThread_t): Removed join_mutex, join_cond.
6389 Use JvFail instead of sorry.
6390 (JvPrivThreadSuspend): Removed.
6391 (JvPrivThreadResume): Likewise.
6393 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6395 * java/util/Observer.java: Rewritten
6396 * java/util/Enumeration.java: Rewritten
6398 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6400 * java/util/StringTokenizer.java: Rewritten
6401 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6402 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6403 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6405 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6407 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6410 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6411 Include java-assert.h.
6412 * include/java-assert.h: New file.
6413 * prims.cc (_Jv_Abort): New function.
6414 Include java-assert.h, not assert.h.
6415 (_Jv_MonitorExit): Use JvAssert.
6416 (resolveConstants): Likewise.
6417 (processClass): Likewise.
6418 (JvRunMain): Assert that method is found.
6420 * configure: Rebuilt.
6421 * configure.in: Check for test subdir.
6422 * Makefile.in: Rebuilt.
6423 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6425 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6426 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6428 * prims.cc (resolveConstants): Removed unused variables.
6429 (processClass): Likewise.
6431 * include/quick-threads.h (JvPrivThreadCurrent): Use
6433 * quick-threads.cc (destroy_data): New function.
6434 (JvPrivInitThreads): Create key.
6435 (JvPrivThreadKey): New global.
6436 (JvPrivThreadStart): Use coop_setspecific.
6438 * include/quick-threads.h, include/posix-threads.h,
6439 include/no-threads.h, no-threads.cc, quick-threads.cc,
6440 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6442 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6444 * include/no-threads.h (JvPrivThreadInitData): Don't set
6447 * include/quick-threads.h (JvPrivCondWait): coop function now
6449 (JvPrivThreadJoin): Likewise.
6451 * java/lang/Thread.h (Thread): Updated declaration of
6453 * include/quick-threads.h, include/posix-threads.h: Updated
6454 declaration of JvPrivThreadStart.
6455 * include/no-threads.h (JvPrivThreadStart): Changed definition
6457 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6458 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6459 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6461 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6463 * quick-threads.cc (qthrow): New function.
6464 (JvPrivInitThreads): New function.
6465 (started): New global.
6466 (JvPrivThreadStart): Call coop_start if required.
6467 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6468 (JvPrivThreadDestroy): Likewise.
6469 (JvPrivInitThreads): Removed.
6470 * include/posix-threads.h (JvPrivThreadCancel): Added error
6472 * java/lang/natThread.cc (stop_): Pass exception to
6475 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6477 * include/javaprims.h (java::lang): Added
6478 IllegalArgumentException, IllegalThreadStateException, Math,
6479 NullPointerException, ThreadDeath.
6480 (java::util): Added Enumeration.
6482 * Makefile.in: Rebuilt.
6483 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6485 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6487 (threadsv): Renamed from threads to avoid clash in C++ header.
6488 (groupsv): Likewise.
6489 * include/no-threads.h (JvPrivThreadStart): Removed.
6490 * no-threads.cc (JvPrivThreadStart): New function.
6491 * java/lang/Thread.java (Thread): New constructor for internal use.
6492 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6493 (Thread): Declare constructor.
6494 * prims.cc (JvRunMain): Create the initial Thread and
6496 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6497 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6498 Removed `daemon' argument.
6500 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6501 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6503 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6505 * Makefile.in: Rebuilt.
6506 * Makefile.am (INCLUDES): Include THREADINCS.
6508 * configure: Rebuilt.
6509 * configure.in: Recognize `qt' as a threads package.
6511 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6513 * java/util/Stack.java (pop): Null out topmost node for robustness.
6515 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6517 * java/util/Stack.java: Rewritten.
6518 * java/util/Vector.java (isEmpty): Simplified expression.
6520 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6522 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6523 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6525 * include/java-array.h (JvNewObjectArray): Created inline to
6528 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6531 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6533 * java/util/Vector.java: Rewritten.
6534 * java/io/Serializable.java: Created.
6536 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6538 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6539 Infinity is 1/0, not 1/1.
6541 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6543 * configure: Rebuilt.
6544 * configure.in: Removed duplicate AC_ARG_WITH.
6546 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6548 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6550 (_Jv_InitClass): Renamed from soft_initialise_class.
6551 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6552 (_Jv_CheckCast): Renamed from soft_checkcast.
6553 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6554 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6555 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6556 * include/cni.h (JvInitClass): New function.
6557 (_Jv_InitClass): Renamed from soft_initialise_class.
6559 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6561 * configure: Rebuilt.
6562 * configure.in (CXX): Don't set.
6563 * Makefile.in: Rebuilt.
6564 * Makefile.am (AM_CXXFLAGS): New macro.
6566 * Makefile.in: Rebuilt.
6567 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6568 nogc.o): New target.
6570 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6572 (mark_array): Likewise.
6574 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6576 * java/lang/Class.h (JvMethod): Removed some unused fields.
6577 (JvField.info): Removed unused idx union variant.
6579 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6581 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6584 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6586 * configure.in, configure (CXX): Add -fvtable-thunks.
6588 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6590 * java/lang/Object.java (finalize): Move first.
6591 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6592 (Object): Re-arrange order to match Object.java.
6594 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6596 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6597 * java/lang/natString.cc (hashChars): Likewise.
6599 * prims.cc (RuntimeClass): New macro.
6600 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6602 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6604 * Makefile.in: Rebuilt.
6605 * Makefile.am (AM_MAKEFLAGS): New macro.
6607 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6609 * nogc.cc: Include <javaprims.h>.
6611 * Makefile.in: Rebuilt.
6612 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6614 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6616 * exception.cc (terminate): Removed.
6617 (unexpected): Removed.
6619 * configure: Rebuilt.
6620 * configure.in: Handle case where target subdir is ".".
6622 * configure: Rebuilt.
6623 * configure.in: Compute COMPPATH based on --with-target-subdir
6624 option. Added --with-target-subdir and --with-cross-host. Use
6625 --with-cross-host to determine when a cross compiler is in use.
6627 * Makefile.in: Rebuilt.
6628 * Makefile.am (GJAVAH): Include COMPPATH.
6629 * configure: Rebuilt.
6630 * configure.in: Subst COMPPATH.
6632 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6634 * prims.cc (lockMutex): Removed.
6635 (unlockMutex): Likewise.
6636 (processClass): Lock the class using a JvSynchronize object.
6638 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6640 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6641 (gc_free_fixed): Removed.
6642 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6643 freeing old value of strhash.
6645 * exception.cc (_Jv_type_matcher): Cast first argument to
6648 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6650 * include/java-array.h (jstringArray): New type.
6651 * java/lang/natSystem.cc (setProperty): Removed.
6652 (initProperties): Directly call JvNewStringLatin1 for arguments.
6653 * java/util/natDate.cc: Include java/util/Date.h, not
6656 * java/io/FileDescriptor.java (available): No longer static.
6657 * java/lang/natDouble.cc (Double): Removed class definition.
6658 * include/javaprims.h (java::lang::Number): Declare.
6659 (java::lang::NumberFormatException): Likewise.
6660 (java::io::FilenameFilter): Likewise.
6661 (java::lang::Character): Likewise.
6662 (java::lang::Error): Likewise.
6663 (java::lang::SecurityManager): Likewise.
6664 (java::util::Vector): Likewise.
6665 (java::io::FileNotFoundException): Likewise.
6666 (java::io::IOException): Likewise.
6667 (java::lang::NativeLang): Likewise.
6668 (java::lang::UnsatisfiedLinkError): Likewise.
6669 (java::util::StringTokenizer): Likewise.
6670 (java::io::InputStream, java::io::OutputStream): Likewise.
6671 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6672 (java::util::Hashtable): Likewise.
6673 * Makefile.in: Rebuilt.
6674 * Makefile.am (nat_headers): Added java/lang/Double.h,
6675 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6676 (MOSTLYCLEANFILES): Added nat_headers.
6677 * include/jvm.h: Moved many defines, declarations, and functions
6678 to java/lang/Class.h.
6679 (struct JvSyncInfo): Moved to java/lang/Object.h.
6680 (UTF8_GET): Moved to java/lang/String.h.
6682 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6684 * java/io/io-defs.h: Don't include java-io.h.
6685 * include/java-io.h: Removed.
6686 * include/javaprims.h: Include java::io.
6688 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6690 * include/java-io.h (File): Removed
6691 (FileDescriptor): Likewise.
6693 * java/io/io-defs.h: Include java/io/File.h and
6694 java/io/FileDescriptor.h.
6696 * Makefile.in: Rebuilt.
6697 * Makefile.am (GJAVAH): New macro.
6698 (.class.h): New rule.
6699 (SUFFIXES): Added .h.
6700 (nat_headers): New macro.
6701 ($(nat_headers)): New target.
6702 (BUILT_SOURCES): Added nat_headers.
6704 * include/java-util.h: Removed.
6706 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6708 * include/java-io.h: Changed to avoid java-lang.h.
6709 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6711 * java/lang/natSystem.cc: Include java/lang/System.h, not
6713 * java/lang/natString.cc: Include java/lang/String.h, not
6715 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6717 * java/lang/natClass.cc: Include java/lang/Class.h, not
6719 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6721 * java/lang/natObject.cc: Include java/lang/Object.h, not
6723 * exception.cc: Don't include java-lang.h.
6724 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6725 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6726 * nogc.cc: Don't include java-lang.h.
6727 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6728 * prims.cc (processClass): Don't use `init_type'; just cast to
6730 Include java/lang/Class.h and jvm.h, not java-lang.h.
6731 (JvAllocObject): Wrote single-argument version.
6732 (PrimClass): Inherit from Class.
6733 (initPrimClass): Removed.
6734 * include/java-lang.h: Removed.
6735 * include/jvm.h: Declare struct _dispatchTable.
6736 * include/cni.h: Don't declare _Jv_MonitorEnter,
6737 _Jv_MonitorExit, struct _dispatchTable.
6738 * include/javaprims.h: Moved all typedefs here, from cni.h.
6739 * java/lang/Class.h: New file.
6740 * include/java-array.h: New file.
6741 * java/lang/Object.h: New file.
6743 * prims.cc (classFromSig): Now static.
6745 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6747 * include/cni.h: Don't mention soft_new.
6748 * include/java-lang.h (Object): Don't mention soft_new. Mention
6749 _Jv_NewPrimArray, not newPrimArray.
6750 * prims.cc (soft_new): Removed.
6751 (_Jv_NewArray): Renamed from soft_newarray.
6752 (soft_anewarray): Use JvNewObjectArray.
6753 (newArray): Likewise.
6754 (newRefArray): Removed.
6755 (_Jv_NewPrimArray): Renamed from newPrimArray.
6756 (equalUtf8Consts): Now static.
6757 (soft_instanceof): Removed.
6758 * java/lang/natDouble.cc (doubleToString): Now static.
6760 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6761 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6764 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6766 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6768 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6770 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6771 (JvPrivMutexUnlock): Likewise.
6772 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6773 Return value now jint.
6774 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6777 * Makefile.in: Rebuilt.
6778 * Makefile.am: Don't allow `jV' names.
6779 (maintainer-check): Depend on libjava.a.
6780 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6782 * Makefile.in: Rebuilt.
6783 * Makefile.am (NM): New macro.
6784 (maintainer-check): New target.
6786 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6788 * configure: Rebuilt.
6789 * configure.in: Use --enable-threads, not --enable-gc. Fix
6790 documentation for --enable-threads. Changed option to work like
6791 identical option in gcc/configure.
6793 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6795 * boehm.cc (mark_array): Use JvGetArrayLength.
6797 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6799 * exception.cc: New file (mostly written by Andrew MacLeod),
6800 exception handling support.
6801 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6802 Remove -fexceptions - it is now the default.
6804 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6805 (JvAllocObject): Renamed to _Jv_AllocObject.
6806 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6807 (loadClass): Renamed to _Jv_FindClass.
6808 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6809 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6810 * include/java-lang.h (JvGetArrayLength): New CNI function.
6811 * include/jvm.h (_Jv_FindClass): Added declaration.
6813 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6815 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6817 * java/lang/natClass.cc (getName): Add implementation.
6818 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6820 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6822 * Makefile.in: Rebuilt.
6823 * Makefile.am (.class.o): Added -fexceptions.
6825 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6827 * configure: Rebuilt.
6828 * configure.in: Don't check for __nanosleep.
6829 * posix-threads.cc (nanosleep): Never define.
6831 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6833 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6836 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6838 * java/lang/natThread.cc (enumerate): Uncommented.
6839 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6840 (interrupt): Call it.
6842 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6844 * configure: Rebuilt.
6845 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6847 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6849 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6850 * include/java-lang.h (Thread): Added `interrupted_' method.
6851 * java/lang/Thread.java (interrupted_): New method.
6852 * java/lang/natThread.cc (join): Possibly throw interrupted
6853 exception after join finishes.
6854 (interrupted_): New method.
6855 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6857 (JvPrivThreadJoin): New function.
6858 (really_start): Notify all threads waiting for this thread.
6859 (struct starter): Added `data' member.
6860 (JvPrivThreadStart): Set it.
6861 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6863 (JvPrivThreadJoin): No longer inline.
6864 (JvPrivThreadInterrupt): New function.
6866 * include/no-threads.h (JvPrivThreadSleep): Removed.
6867 * posix-threads.cc (JvPrivThreadSleep): Removed.
6869 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6871 * configure: Rebuilt.
6872 * configure.in (THREADOBJS): Initialize to no-threads.o in
6874 * posix-threads.cc (key): New global.
6875 (JvPrivInitThreads): New function.
6876 (really_start): Set thread-specific data to point to object.
6877 (JvPrivThreadStart): Added `daemon' argument.
6878 (JvPrivThreadSleep): Added `data' argument.
6879 * include/posix-threads.h (JvPrivInitThreads): Removed
6881 (JvPrivThreadCurrent): New function.
6882 * include/no-threads.h (JvPrivThreadInitData): Initialize
6883 JvPrivOnlyThread. Added `thread' argument.
6884 (JvPrivThreadCurrent): New function.
6885 (JvPrivThreadStart): Added `daemon' argument.
6886 * no-threads.cc: New file.
6887 * java/lang/natThread.cc (init_data): New function.
6889 (start): Set `alive' member.
6890 (stop_): Clear `alive' member.
6891 (destroy): Likewise.
6892 (currentThread): Implemented.
6893 (start): Pass `daemon' argument to JvPrivThreadStart.
6895 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6896 (Thread): Added `init_data' method.
6897 * java/lang/Thread.java (alive, data): New instance variables.
6898 (init_data): New private method.
6899 (isAlive): No longer native.
6901 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6903 * include/java-lang.h (JvRunMain): Declare.
6904 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6905 * prims.cc (JvRunMain): New function.
6906 (main_signature, main_name): New globals.
6908 * boehm.cc (mark_array): Use `elements' function and not
6909 operator[] on jarray.
6911 * posix-threads.cc: Include <config.h>. Define nanosleep if
6914 * configure: Rebuilt.
6915 * configure.in: Check for _nanosleep.
6917 * configure: Rebuilt.
6918 * configure.in: Check for pthread_mutexattr_settype.
6920 * include/cni.h (class JvSynchronize): New class.
6921 * java/lang/Thread.java (sleep): Throws InterruptedException.
6922 (join): Throws InterruptedException.
6923 (resume): Not native.
6924 (resume_): New method.
6925 (start): Now synchronized.
6926 (stop_): New method.
6927 (Thread): Synchronize when accessing threadNumber.
6929 * java/lang/natThread.cc (throwException): New macro.
6930 (sleep): Throw InterruptedException.
6933 * include/java-lang.h (Runtime): Added interrupted().
6935 * boehm.cc (call_finalizer): Correctly initialize jobj.
6936 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6938 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6941 * configure: Rebuilt.
6942 * configure.in: Added support for --disable-threads.
6943 * include/no-threads.h: New file.
6945 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6947 * Makefile.in: Rebuilt.
6948 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6949 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6950 (libjava_a_LIBADD): Added THREADOBJS.
6951 * configure: Rebuilt.
6952 * configure.in: Added --with-threads option.
6953 * posix-threads.cc: New file.
6954 * include/posix-threads.h: New file.
6955 * include/java-lang.h (Object): Added static member sync_mutex,
6956 member sync_info, method init_mutex.
6957 (struct JvSyncInfo): New struct.
6958 Include "java-threads.h".
6959 * prims.cc (soft_monitorenter): Wrote.
6960 (soft_monitorexit): Likewise.
6961 * java/lang/natObject.cc (init_mutex): New method.
6965 (sync_mutex): Define.
6966 Include "java-threads.h".
6968 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6970 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6971 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6973 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6975 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6976 Added extern "Java" in places to tell G++ Object is a "Java" type.
6977 Other minor renaming and fixes.
6978 * include/java-io.h (FileDescriptor): Add friend class declarations.
6979 G++ no longer allows non-Java types in method parameters and results
6980 of Java classes. Converted most offending methods to friends.
6981 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6982 * java/lang/natSystem.cc (setProperty): Make friend.
6983 * java/lang/natString.cc, include/java-lang.h (String): Rename
6984 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6985 * include/java-lang.h (JArray): Remove getData and eoprator[].
6986 Add elements friend function instead.
6987 * java/lang/natSystem.cc (arraycopy): Use elements function.
6988 * java/io/natFileDescriptor.cc (read, write): Likewise.
6989 * include/java-lang.h (Object): Remove unused make method.
6990 (System::setProperty(char*,char*)): Turn into friend function.
6991 (Class): Rename newObject by JvAllocObject.
6992 * prims.cc: Update to use JvAllocObject, and elements.
6994 * java/lang/natDouble.cc: Fix double -> jdouble.
6996 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6998 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
7000 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
7002 * java/lang/natRuntime.cc (finalize_on_exit): Define.
7003 * include/java-lang.h (Runtime): finalize_on_exit and
7004 runFinalizersOnExit now static.
7005 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
7007 (finalize_on_exit): Now static.
7009 * boehm.cc (mark_obj): Get class using getClass() method on
7011 (_dispatchTable): Removed.
7013 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
7015 * java/io/natFileDescriptor.cc (open_read): Only call open if
7017 (open_write): Likewise.
7019 * Makefile.in: Rebuilt.
7020 * Makefile.am ($(nat_files)): Depend on config.h.
7022 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
7024 * prims.cc (ObjectClass): Now a macro; updated for new class name
7026 (StringClass): Likewise.
7027 (ClassClass): Likewise.
7029 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
7031 * java/io/natFileDescriptor.cc (available): Do nothing unless
7032 HAVE_SELECT defined.
7033 * java/util/natDate.cc (setTime): Conditional on
7035 (toString): Conditional on HAVE_TIME.
7036 * aclocal.m4, configure: Rebuilt.
7037 * acinclude.m4: New file.
7038 * configure.in: Don't actually call AM_EXEEXT. Call
7039 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
7040 --with-target-subdir option. Check for select and open
7043 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7045 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7046 (call_finalizer): Likewise.
7047 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7048 * prims.cc (newObject): Pass actual method pointer to
7049 JvPrivRegisterFinalizer.
7050 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7051 (JvPrivRegisterFinalizer): Changed interface.
7053 * Makefile.in: Rebuilt.
7054 * Makefile.am (MOSTLYCLEANFILES): New macro.
7055 (CLEANFILES): Removed javao_files.
7057 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7059 * nogc.cc: New file.
7060 * Makefile.in: Rebuilt.
7061 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7062 (EXTRA_libjava_a_SOURCES): New macro.
7063 (libjava_a_SOURCES): Removed boehm.cc.
7064 (libjava_a_DEPENDENCIES): Added GCOBJS.
7065 (libjava_a_LIBADD): Likewise.
7066 * configure: Rebuilt.
7067 * configure.in: Added code for --enable-gc=TYPE.
7069 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7071 * boehm.cc (mark_array): Don't further dereference pointer from
7074 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7075 * Makefile.in: Rebuilt.
7076 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7077 one for boehm-gc build directory.
7079 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7081 * include/java-lang.h (finalize_on_exit): New instance variable in
7082 java::lang::Runtime.
7083 (runFinalizersOnExit): New method.
7084 * java/lang/Runtime.java (finalize_on_exit): New instance
7086 (runAllFinalizers_): New private method.
7087 (runFinalizersOnExit): New method.
7088 * boehm.cc (JvPrivRunFinalizers): New function.
7089 (JvPrivRunAllFinalizers): Likewise.
7090 (JvPrivRunGC): Likewise.
7091 * java/lang/natRuntime.cc: Include "jvm.h".
7092 (gc): Call JvPrivRunGC.
7093 (runFinalization): Call JvPrivRunFinalizers.
7094 (runFinalizersOnExit): New method.
7095 (exit_): Call JvPrivRunAllFinalizers if required.
7096 * include/jvm.h: Declare JvPrivRunFinalizers,
7097 JvPrivRunAllFinalizers, JvPrivRunGC.
7099 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7101 * boehm.cc (JvPrivRegisterFinalizer): New function.
7102 (call_finalizer): Likewise.
7103 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7104 * prims.cc (finalize_name): New global.
7105 (newObject): Just call other newObject.
7106 (newObject): Register finalizer if it exists.
7108 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7110 * prims.cc (gc_malloc): Removed.
7111 (makeUtf8Const): Use JvPrivAllocBytes.
7112 (lookupArray): Likewise.
7113 (newPrimArray): Likewise.
7114 (JvNewObjectArray): Use JvPrivAllocArray.
7115 (newObject): Use JvPrivAllocObj.
7116 (newObject): Likewise.
7117 Changed Method -> JvMethod everywhere.
7118 Changed Field -> JvField everywhere.
7119 * include/java-lang.h (Object): Changed type of `fields' to
7121 (jmethodID, jfieldID): New typedefs.
7122 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7124 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7126 (METHOD_NATIVECODE): Moved from java-lang.h.
7127 (class JvField): New class.
7128 (JvGetFirstInstanceField): New function.
7129 (JvFieldIsRef): Likewise.
7130 (JvGetObjectField): Likewise.
7131 (JvNumInstanceFields): Likewise.
7133 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7135 * boehm.cc: New file.
7136 * Makefile.in: Rebuilt.
7137 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7138 (INCLUDES): Added -I options to find boehm-gc files.
7140 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7142 * configure: Rebuilt.
7143 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7145 * Makefile.in: Rebuilt.
7146 * Makefile.am (nat_files): New macro.
7147 (libjava_a_DEPENDENCIES): Use it.
7148 (libjava_a_LIBADD): Likewise.
7149 ($(nat_files)): New static pattern rule.
7150 (class_files): Run separate find to find .class files.
7151 (javao_files): Compute based on class_files.
7152 (BUILT_SOURCES): New macro.
7154 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7156 * Makefile.am (java_files): New macro.
7157 (class_files): Likewise.
7158 (javao_files): Likewise.
7159 (libjava_a_DEPENDENCIES): Include $(javao_files).
7160 (libjava_a_LIBADD): Likewise.
7161 (classes.stamp): Depend on $(java_files); only recompile changed
7164 (CLEANFILES): Don't run find; use macros. Don't mention
7166 (.class.o): New target.
7167 (compiled.stamp): Removed.
7169 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7171 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7172 LineNumberReader}>java: Newly-implemented standard classes.
7174 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7176 * Makefile.in: Rebuilt.
7177 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7179 * Makefile.in: Rebuilt.
7180 * Makefile.am (hack): New macro.
7181 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7183 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7185 * include/config.h.in: New file.
7186 * include/config.h: Removed.
7187 * acconfig.h: New file.
7188 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7189 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7190 libjava_a_LIBADD): New macros.
7191 (INCLUDES): New macro.
7194 (SUFFIXES): Removed.
7196 (libjava.a): Removed.
7198 * configure: Rebuilt.
7199 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7200 Look for headers and functions we require. Create
7203 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7205 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7206 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7207 soft_lookupinterfacemethod): New functions.
7208 (PrimClass): Actually initialize the primitive classes.
7209 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7211 * include/java-util.h: Removed java::util definition.
7212 * include/cni.h: Moved java::util here and added Properties.
7213 Added more function prototypes.
7214 * include/java-lang.h: Added mroe methods and friend declarations.
7215 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7216 * include/jvm.h (strLengthUtf8): Add declaration.
7218 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7220 * java/lang/{Byte,Short,Void}.java: New classes.
7221 * java/lang/Character.java (isJavaIdentifierStart,
7222 JavaIdentifierPart): New static methods.
7223 * java/lang/Number.java (byteValue, shortValue): New methods.
7225 * java/lang/String.java (intern, hashCode): Make native.
7226 * java/lang/natString.cc: New file. Handle the string pool.
7227 * Makefile.am: Build natString.o. Use CXXFLAGS.
7229 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7230 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7231 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7232 * java/lang/System.java (setProperty): New private method.
7233 (initProperties): Take argument, and make native.
7234 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7235 (currentTimeMillis): Make more robust.
7237 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7238 * java/io/UnsupportedEncodingException.java: New exception class.
7240 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7241 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7243 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7245 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7246 * prims.cc: Added bunch of stuff.
7247 * include/cni.h: Added various definitions.
7248 * include/java-lang.h: Added Method, various friends, some macros.
7250 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7251 * java/lang/System.java (arraycopy): Make native.
7253 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7255 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7256 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7257 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7258 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7260 * java/lang/Runtime.java: Declare methods as native instead of
7262 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7263 * java/lang/System.java: Comment out some stuff, for now.
7264 * java/lang/Thread.java: Re-write. Use native methods.
7265 * java/lang/NativeLang.java: Remove most of it.
7267 * java/util/natDate.cc: Native (C++) methods for Date.
7268 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7269 * java/util/Date.java: Complete re-write.
7271 * java/io/io-defs.h: New header file.
7272 * java/io/FileDescriptor.java: Add a bunch of private methods,
7273 mostly moved from NativeIO.java and natNativeIO.cc.
7274 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7275 * java/io/File.java: Use new code.
7276 * java/io/{FileInputStream.java.FileOutputStream.java,
7277 RandomAccessFile.java}: Use new private FileDescriptor methods.
7278 * java/io/NativeIO.java: Removed, no longer used.
7280 * java/io/StreamTokenizer.java (numericChars): Make char array.
7282 * include/*.h: Various header files used by the C++ native code.
7284 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7285 New autoconf+automake-based setup.
7286 * prims.cc: New file for Java "primitives".