1 2000-01-06 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natClass.cc (_getConstructors): Correctly check
4 whether method name is the init name.
5 (getMethod): Look at accflags on method in `klass', not `this'.
7 2000-01-05 Tom Tromey <tromey@cygnus.com>
9 * java/lang/natClass.cc (getMethod): Compute offset relative to
10 `klass's methods table, not `this's table.
12 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
13 In unwrapping/widening case, check whether `k' is null, not
14 whether it is primitive. Initialize `num' from `argelts', not
15 `paramelts'. Correct create and pass arguments to ffi_call.
16 Don't let presence of `this' argument affect index used to look in
18 (COPY): Set appropriate element in `values' vector.
20 * java/lang/natClass.cc: Include <gcj/method.h>.
22 * java/lang/Class.h (_getMethods): Correctly declare as private,
25 * java/lang/Class.h (_getMethods): Declare.
26 * java/lang/Class.java (_getMethods): Declare.
27 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
28 (getDeclaredClasses): Always return empty array.
29 (_getMethods): New method.
31 (getDeclaredMethod): Return `rmethod'.
32 (finit_name): New global.
33 (getDeclaredMethods): Check for finit_name.
34 (_getMethods): Likewise.
35 (getMethod): Only return public methods.
37 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
38 jboolean and select correct ffi type on that basis.
39 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
40 Constructor call always has `void' return type.
42 2000-01-04 Tom Tromey <tromey@cygnus.com>
44 * java/lang/Class.h (getSignature): Updated.
45 * java/lang/Class.java (getSignature): Updated.
46 * java/lang/natClass.cc (getSignature): Added `is_constructor'
48 (getConstructor): Ensure constructor is public.
49 (_getConstructors): Check for public-ness of constructor when
50 `declared' is false, not when it is true.
52 2000-01-04 Warren Levy <warrenl@cygnus.com>
54 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
56 (receive): Set the sender's address in the DatagramPacket.
58 2000-01-04 Tom Tromey <tromey@cygnus.com>
60 * java/lang/reflect/natConstructor.cc (newInstance): Pass
61 declaring class as return_type argument to
62 _Jv_CallNonvirtualMethodA.
63 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
64 constructor case, create object and use it as `this' argument.
65 * java/lang/Class.h (_getConstructors): Declare.
66 (_getFields): Declare.
67 * java/lang/Class.java (getConstructors): Wrote.
68 (_getConstructors): New native method.
69 (getDeclaredConstructors): Wrote.
70 (_getFields): Declare new native method.
71 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
73 (getMethod): Work correctly when class is primitive.
74 (getDeclaredMethods): Likewise. Compute offset using `method',
76 (getDeclaredMethod): Likewise.
77 (getConstructor): Wrote.
78 (ConstructorClass): New define.
79 (getDeclaredConstructor): Wrote.
80 (_getConstructors): New method.
81 (_getFields): New method.
84 * Makefile.in: Rebuilt.
85 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
87 * prims.cc: Remove `#pragma implementation'.
88 * gcj/array.h: Remove `#pragma interface'.
90 * prims.cc (_Jv_equaln): New function.
91 * java/lang/Class.java (getSignature): Declare.
92 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
93 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
95 (getSignature): New method.
96 (getDeclaredMethod): Wrote.
98 Include StringBuffer.h.
99 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
100 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
102 (getSignature): Declare.
103 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
104 (_Jv_equaln): Declare.
105 (_Jv_CallNonvirtualMethodA): Declare.
106 * Makefile.in: Rebuilt.
107 * Makefile.am (nat_source_files): Added natConstructor.cc.
108 (java/lang/reflect/Constructor.h): New target.
109 * java/lang/reflect/natConstructor.cc: New file.
110 * java/lang/reflect/Constructor.java (newInstance): Now native.
111 (declaringClass): Renamed from decl_class.
112 (offset): Renamed from index.
113 (getType): New native method.
114 (getModifiers): Now native.
115 (getParameterTypes): Call getType if required.
116 (hashCode): Include hash code from declaring class.
117 (modifiers): Removed.
118 (toString): Call getType if required.
119 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
120 * java/lang/reflect/natMethod.cc (hack_call): New method.
121 Removed `#if 0' around FFI code.
122 Include <gnu/gcj/RawData.h>.
123 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
124 IllegalArgumentException when argument object and class disagree.
125 (_Jv_GetTypesFromSignature): New function.
127 (ObjectClass): New define.
128 (_Jv_CallNonvirtualMethodA): New function.
129 * java/lang/reflect/Method.java (hack_trampoline): New method.
130 (hack_call): New native method.
132 1999-12-21 Per Bothner <per@bothner.com>
134 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
135 offset in new Method.
137 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
139 * java/lang/natObject.cc (notify): Throw message with
140 IllegalMonitorStateException.
143 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
144 (isInterrupted_): New function, which does clear interrupt_flag.
145 (interrupt): Use `isInterrupted_'.
146 * java/lang/natThread.cc (interrupt): Add comment.
147 (join): Set `prev' in joiner loop.
148 Change various calls to `isInterrupted' to use `isInterrupted_'.
149 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
150 on linux. Set result to 0 on an interrupt. Test interrupted status
151 of java Thread object directly.
152 FLAG_INTERRUPTED: removed.
153 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
154 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
155 (_Jv_InitThreads): Don't block SIGINT.
156 (_Jv_ThreadWait): Don't configure SIGINT handler.
158 1999-12-21 Tom Tromey <tromey@cygnus.com>
160 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
162 1999-12-20 Tom Tromey <tromey@cygnus.com>
164 * java/lang/reflect/Modifier.java (STRICT): New constant.
165 (isStrict): New method.
166 (toString): Added `strict'.
168 1999-12-23 Anthony Green <green@cygnus.com>
170 * configure: Rebuilt.
171 * configure.in (LIBDATASTARTSPEC): Force data_start in with
174 1999-12-19 Anthony Green <green@cygnus.com>
176 * libgcjdata.c: New file.
177 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
178 * configure: Rebuilt.
179 * configure.in (LIBDATASTARTSPEC): Force data with a known name
181 * Makefile.in: Rebuilt.
182 * Makefile.am: Build libgcjdata.a.
184 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
185 * configure: Rebuilt.
186 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
189 1999-12-17 Tom Tromey <tromey@cygnus.com>
191 * java/lang/reflect/Method.java (toString): Call getType if
192 required. Partial fix for PR libgcj/111. From Per Bothner.
194 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
196 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
198 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
199 null String constructor parameter.
200 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
201 for exception messages.
202 BooleanClass: declare.
203 (setOption): Use BooleanClass instead of Class.forName() for
205 (bind): Cast 4th parameter of setsockopt to `char *' for
206 compatibility with older Solaris headers.
207 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
208 sprintf calls for exception messages.
209 BooleanClass, IntegerClass: declare.
210 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
213 1999-12-15 Tom Tromey <tromey@cygnus.com>
215 * java/lang/natSystem.cc (init_properties): Don't set user.name or
216 user.home if NO_GETUID defined. Only set user.dir if getcwd
219 * include/config.h.in: Rebuilt.
220 * acconfig.h (NO_GETUID): New define.
221 * configure.in: Rebuilt.
222 * configure.in: Define NO_GETUID in cross case. Check for getcwd
225 1999-12-08 Tom Tromey <tromey@cygnus.com>
227 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
228 where no recursive mutexes exist. Fixes PR libgcj/117.
230 1999-12-05 Anthony Green <green@cygnus.com>
232 * include/jvm.h: Declare many functions with
233 __attribute__((__malloc__)).
234 * gcj/javaprims.h: Ditto.
236 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
238 * THANKS: Giving credit where credit is due.
240 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
242 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
244 * java/lang/natString.cc (equalsIgnoreCase): return false if
245 anotherString is null.
246 * java/lang/Boolean.java (valueOf): return FALSE if argument is
249 1999-11-30 Tom Tromey <tromey@cygnus.com>
251 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
252 mutex to initialize. Initialize `count' if required.
255 1999-11-27 Per Bothner <per@bothner.com>
257 * exception.cc: Remove prototype declarations for malloc and free.
258 These clash with recent versions of glibc, which specifies `throws ()'
259 when __cplusplus is defined. Instead, #include <stdlib.h>.
261 1999-11-24 Tom Tromey <tromey@cygnus.com>
263 * prims.cc (_Jv_NewObjectArray): Use
264 _Jv_GetArrayElementFromElementType.
265 (_Jv_NewPrimArray): Likewise.
266 * java/lang/natObject.cc (clone): Use
267 _Jv_GetArrayElementFromElementType instead of sizeof.
268 * java/lang/natSystem.cc (arraycopy): Use
269 _Jv_GetArrayElementFromElementType.
270 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
273 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
275 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
276 Exception messages. PR java.net/57.
277 (bind): set SO_REUSEADDR before bind.
278 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
279 overruns. PR java.net/57.
281 1999-11-19 Tom Tromey <tromey@cygnus.com>
283 * Makefile.am (DIVIDESPEC): Removed.
284 (EXCEPTIONSPEC): Removed.
286 1999-11-19 Andrew Haley <aph@cygnus.com>
288 * Makefile.am (JCFLAGS): Add -L$(here)
290 * Makefile.in: Rebuild.
292 1999-11-18 Tom Tromey <tromey@cygnus.com>
294 * java/lang/natDouble.cc: Include <config.h>.
296 * include/config.h.in: Rebuilt.
297 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
298 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
300 * configure: Rebuilt.
301 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
302 requested by configure.host. Don't put `-D' option into
303 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
305 * configure: Rebuilt.
306 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
309 1999-11-18 Andrew Haley <aph@cygnus.com>
311 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
312 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
314 * Makefile.in: Rebuild
315 * acconfig.h: remove SJLJ_EXCEPTIONS
316 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
317 Do not AC_DEFINE SJLJ_EXCEPTIONS.
318 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
319 * gcj/Makefile.in, include/Makefile.in: rebuild.
320 * include/config.h.in: remove SJLJ_EXCEPTIONS.
322 1999-11-18 Andrew Haley <aph@cygnus.com>
324 * gij.cc (main): Rename label to prevent conflict.
326 * exception.cc (_Jv_type_matcher): Don't check the table if we're
327 using setjmp/longjmp exceptions: there isn't one.
329 1999-11-17 Andrew Haley <aph@cygnus.com>
331 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
332 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
333 (__sjthrow): Add declaration.
334 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
338 * Makefile.in: Rebuild
339 * acconfig.h: Add SJLJ_EXCEPTIONS
340 * configure.in: Add SJLJ_EXCEPTIONS
341 * configure: Rebuild.
342 * gcj/Makefile.in: Rebuild.
343 * gcj/cni.h: Add support for sjlj-exceptions.
344 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
345 * include/Makefile.in: Rebuild.
346 * include/default-signal.h: Add support for sjlj-exceptions.
348 1999-11-18 Tom Tromey <tromey@cygnus.com>
350 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
352 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
354 (method_cache): Made larger.
356 1999-11-11 Tom Tromey <tromey@cygnus.com>
358 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
359 initializing mutex. Initialize `count' when required.
361 1999-11-07 Anthony Green <green@trip.cygnus.com>
363 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
366 1999-11-05 Tom Tromey <tromey@cygnus.com>
368 * java/lang/natThread.cc (destroy): Removed incorrect comment.
370 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
372 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
373 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
376 1999-11-05 Tom Tromey <tromey@cygnus.com>
378 * java/lang/natThread.cc (stop): Removed argument name.
380 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
381 `private'; now has default access.
382 * Makefile.in: Rebuilt.
383 * Makefile.am (java/lang/ThreadGroup.h): Removed.
385 1999-11-04 Tom Tromey <tromey@cygnus.com>
387 * java/lang/natClass.cc (method_cache_count): Removed.
388 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
389 (_Jv_AddMethodToCache): Don't loop.
391 * configure.in: Removed `qt' threads case.
392 * include/quick-threads.h: Removed.
393 * quick-threads.cc: Removed.
395 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
396 (_Jv_ThreadDestroy): Likewise.
397 * include/no-threads.h (_Jv_ThreadCancel): Removed.
398 (_Jv_ThreadDestroy): Likewise.
399 * include/posix-threads.h (struct _Jv_Thread_t): Removed
401 (_Jv_ThreadCancel): Removed decl.
402 (_Jv_ThreadDestroy): Removed.
403 * posix-threads.cc (_Jv_ThreadCancel): Removed.
404 (throw_cleanup): Removed.
405 (really_start): Don't push or pop cleanup.
406 (_Jv_ThreadInitData): Don't initialize `exception' field.
407 * java/lang/Thread.java (stop): Officially unimplemented.
408 * java/lang/natThread.cc (stop): Officially unimplemented.
410 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
412 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
415 1999-11-02 Tom Tromey <tromey@cygnus.com>
417 * boehm.cc: Don't include boehm-config.h.
419 1999-11-01 Tom Tromey <tromey@cygnus.com>
421 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
422 (sum_blocks): Removed.
423 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
425 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
427 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
429 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
430 * java/io/InputStreamReader (InputStreamReader): ditto.
432 1999-10-22 Tom Tromey <tromey@cygnus.com>
434 * Makefile.in: Rebuilt.
435 * Makefile.am (java/lang/ClassLoader.h): New target.
436 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
439 * include/java-props.h (_Jv_Compiler_Properties): Changed
441 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
442 * include/jvm.h (_Jv_GCSetInitialHeapSize,
443 _Jv_GCSetMaximumHeapSize): Declare.
444 (JvRunMain, _Jv_RunMain): Declare.
445 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
446 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
447 (_Jv_GCSetMaximumHeapSize): Likewise.
448 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
449 (_Jv_GCSetMaximumHeapSize): Likewise.
450 * prims.cc (parse_heap_size): New function.
451 (_Jv_SetInitialHeapSize): Likewise.
452 (_Jv_SetMaximumHeapSize): Likewise.
453 (_Jv_Compiler_Properties): New global.
454 * gij.cc (help): New function.
456 (heap_size): Likewise.
457 (heap_max_size): Likewise.
458 (main): Parse arguments. Set _Jv_Compiler_Properties.
459 Include <config.h>, <java-props.h>.
460 (_Jv_Compiler_Properties): Removed.
462 1999-10-18 Tom Tromey <tromey@cygnus.com>
464 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
466 (redirect): New static field.
467 * java/lang/ClassLoader.java (getSystemClassLoader): Now
469 (getVMClassLoader0): Removed.
470 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
472 (getSystemClassLoader): Implemented.
474 1999-10-16 Anthony Green <green@cygnus.com>
476 * java/lang/ClassLoader.java (getSystemResource): Use
477 getSystemClassLoader instead of ClassLoader.system.
478 (getSystemResourceAsStream): Ditto.
480 * java/lang/natClassLoader.cc (redirect): Make static and
481 remove #ifdef INTERPRETER so it is always defined.
482 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
483 returns a VMClassLoader.
485 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
486 PropertyResourceBundle if a properties file is found before a
487 ResourceBundle class.
489 1999-10-15 Tom Tromey <tromey@cygnus.com>
491 * gij.cc (main): Formatting fixes.
492 (_Jv_Compiler_Properties): Define.
493 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
495 (init_properties): Set properites from _Jv_Compiler_Properties.
496 * include/java-props.h (_Jv_Compiler_Properties,
497 _Jv_Environment_Properties): Declare.
499 * include/java-props.h: Added copyright.
501 1999-10-13 Anthony Green <green@cygnus.com>
503 * libtool-version: Catch up by incrementing current.
505 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
506 * configure, include/config.h.in: Rebuilt.
507 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
508 * configure.in: Added --disable-getenv-properties and new define
509 `DISABLE_GETENV_PROPERTIES'.
511 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
512 (next_property_key): New function.
513 (next_property_value): New function.
514 (process_gcj_properties): New function.
515 (JvRunMain): Call process_gcj_properties.
518 * java/lang/natSystem.cc (init_properties): Set properties defined
521 * include/java-props.h: New file.
523 * java/lang/natSystem.cc (init_properties): Add new properties to
524 conform with Java Product Versioning Specification.
526 1999-10-12 Tom Tromey <tromey@cygnus.com>
528 * configure: Rebuilt.
529 * configure.in: Fixed test for --disable-java-net.
531 1999-10-06 Tom Tromey <tromey@cygnus.com>
533 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
534 when building Canadian cross.
535 (NATIVE): Don't define when cross-compiling.
537 1999-10-04 Tom Tromey <tromey@cygnus.com>
539 * java/net/natPlainSocketImpl.cc: Don't include headers if
540 java.net is disabled.
542 * Makefile.in: Rebuilt.
543 * Makefile.am (ZINCS): Removed. This is defined in configure.in
544 when needed, and must be left empty when not needed.
546 1999-10-01 Anthony Green <green@cygnus.com>
548 * THANKS: Refreshed from htdocs version.
550 1999-10-01 Steve Chamberlain <sac@pobox.com>
552 * Makefile.in: Rebuilt.
553 * Makefile.am (ZINCS): Define
555 * configure: Rebuilt.
556 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
558 * java/lang/ieeefp.h: Add definitions for picoJava.
560 1999-10-01 Tom Tromey <tromey@cygnus.com>
562 * configure: Rebuilt.
563 * configure.in: Set classpath when invoking gcj. Use changequote
564 around sed invocation.
566 * java/net/natPlainSocketImpl.cc: Stub native functions if
567 DISABLE_JAVA_NET is defined.
568 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
569 typo in exception string.
570 (getTimeToLive): Likewise.
571 Stub native functions if DISABLE_JAVA_NET is defined.
572 * java/net/natInetAddress.cc: Stub native functions if
573 DISABLE_JAVA_NET is defined.
574 * configure.host: Disable java.net for mips-tx39.
575 * configure, include/config.h.in: Rebuilt.
576 * acconfig.h (DISABLE_JAVA_NET): Undefine.
577 * configure.in: Added --disable-java-net and new define
580 1999-09-30 Tom Tromey <tromey@cygnus.com>
582 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
584 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
588 1999-09-28 Tom Tromey <tromey@cygnus.com>
590 * configure: Rebuilt.
591 * configure.in (PROCESS): In POSIX case, only set if not already
593 * configure.host (PROCESS): Set in mips-tx39 case.
595 * aclocal.m4, configure: Rebuilt.
596 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
597 appropriate AC_PROG_ symbol.
599 1999-09-24 Tom Tromey <tromey@cygnus.com>
601 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
603 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
605 Fix for PR java.util/47:
606 * configure, include/config.h: Rebuilt.
607 * configure.in: Don't look for ctime or ctime_r.
608 * Makefile.in: Rebuilt.
609 * Makefile.am (nat_source_files): Don't mention natDate.cc.
610 * java/util/natDate.cc: Removed.
611 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
613 (getAvailableIDs): Rewrote.
614 (getTimeZone): Rewrote.
615 * java/util/Date.java (toGMTString): New method.
616 (toLocaleString): New method.
619 1999-09-23 Tom Tromey <tromey@cygnus.com>
621 * configure: Rebuilt.
622 * configure.in: Print message when checking to see if gcj can
623 handle -fuse-divide-subroutine.
625 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
627 * java/lang/FirstThread.java (run0): Renamed to `run'.
630 * prims.cc (main_init): New function.
631 (JvRunMain): Call it.
632 (_Jv_RunMain): Likewise.
634 (main_init): Ignore SIGPIPE. Fixes PR 51.
636 1999-09-22 Tom Tromey <tromey@cygnus.com>
638 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
640 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
642 * java/text/MessageFormat.java (MessageFormat(String)): Set the
644 * java/text/NumberFormat.java: Check that object is a Number. If
645 not, throw IllegialArgumentException.
647 1999-09-21 Tom Tromey <tromey@cygnus.com>
649 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
650 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
652 * include/posix-threads.h (_Jv_MutexDestroy): Use
654 (_Jv_MutexLock): Likewise.
655 (_Jv_MutexUnlock): Likewise.
657 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
658 previous patch; it too was incorrect.
659 * java/io/PrintStream.java (PrintStream): Likewise.
661 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
662 refer to `this' before calling superclass constructor.
663 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
664 before calling superclass constructor.
666 1999-09-20 Tom Tromey <tromey@cygnus.com>
668 * configure: Rebuilt.
669 * configure.in: Send output of `-fuse-divide-subroutine' test
670 compilation to /dev/null.
672 1999-09-14 Tom Tromey <tromey@cygnus.com>
674 * include/java-insns.h: Turned constants into an enum. Added
675 multiple-inclusion protection.
677 1999-09-10 Tom Tromey <tromey@cygnus.com>
679 * configure: Rebuilt.
680 * configure.in: Build include/Makefile.
681 * Makefile.in: Rebuilt.
682 * Makefile.am (SUBDIRS): Added gcj and include.
683 (install-data-local): New target.
684 (extra_headers): New macro.
685 * include/Makefile.in: New file.
686 * include/Makefile.am: New file.
688 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
689 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
691 * boehm.cc: Don't include java-threads.h or gcj/field.h.
692 * resolve.cc: Include config.h.
693 * defineclass.cc: Include config.h.
694 * include/java-interp.h: Don't include config.h.
695 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
698 * gcj/javaprims.h: Regenerated namespace decls.
699 * classes.pl (scan): Don't put `;' after closing brace.
701 * Makefile.in: Rebuilt.
702 * Makefile.am (INCLUDES): Added -I for top_srcdir.
703 * configure.in: Create gcj/Makefile.
704 * gcj/Makefile.in: New file.
705 * gcj/Makefile.am: New file.
706 * java/lang/Object.h: Don't include any other headers.
707 * gcj/array.h: Renamed from include/java-array.h.
708 * gcj/field.h: Renamed from include/java-field.h.
709 * gcj/method.h: Renamed from include/java-method.h.
710 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
711 Updated all files to reflect new include structure.
713 1999-09-09 Tom Tromey <tromey@cygnus.com>
715 * configure: Rebuilt.
716 * configure.in: Fixed typo; variable is THREADSPEC and not
719 1999-09-08 Tom Tromey <tromey@cygnus.com>
721 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
722 previous change and implemented a correct test in the __m_count
725 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
728 1999-09-07 Tom Tromey <tromey@cygnus.com>
730 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
731 code and don't set errno.
733 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
734 not `r'. Changed `done_sleeping' to a `bool'.
736 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
738 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
739 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
740 by another thread, rather than by the GC.
741 (_Jv_CondWait): Prevent premature thread wakeup by GC.
742 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
743 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
746 1999-09-03 Tom Tromey <tromey@cygnus.com>
748 * configure: Rebuilt.
749 * configure.in: Check for fstat function.
750 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
753 1999-09-02 Tom Tromey <tromey@cygnus.com>
755 * include/java-array.h (jobjectArrayjchar): Removed unused
758 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
759 _Jv_PrepareCompiledClass while holding class mutex.
761 1999-09-01 Tom Tromey <tromey@cygnus.com>
763 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
764 (_Jv_PthreadGetMutex): Use it.
765 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
766 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
767 (_Jv_MutexLock): Likewise.
768 (_Jv_MutexUnlock): Likewise.
769 * include/config.h.in: Rebuilt.
770 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
771 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
772 * configure: Rebuilt.
773 * libgcj.spec.in: Don't mention INTERPSPEC.
774 * configure.in (INTERPSPEC): Removed.
775 Only run pthreads-related checks when using POSIX threads. Check
776 for m_count and __m_count in mutex structure.
778 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
780 * java/lang/natClass.cc: Fixed notification of threads
781 when class initialization is complete.
783 1999-09-01 Tom Tromey <tromey@cygnus.com>
785 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
786 * resolve.cc: Removed constants defined by
787 java.lang.reflect.Modifier.
788 Include <java/lang/reflect/Modifier.h>.
789 (_Jv_ResolvePoolEntry): Use values from Modifier.
790 (_Jv_DetermineVTableIndex): Likewise.
791 (_Jv_PrepareClass): Likewise.
793 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
794 java.lang.reflect.Modifier.
795 Include <java/lang/reflect/Modifier.h>.
796 (checkExtends): Use values from Modifier.
797 (checkImplements): Likewise.
798 (handleField): Likewise.
799 (handleConstantValueAttribute): Likewise.
800 (handleFieldsEnd): Likewise.
801 (handleMethod ): Likewise.
802 (handleMethodsEnd): Likewise.
803 (handleClassBegin): Likewise.
804 * interpret.cc: Removed constants defined by
805 java.lang.reflect.Modifier.
806 (continue1): Use values from Modifier.
807 * java/lang/natClassLoader.cc: Removed constants defined by
808 java.lang.reflect.Modifier.
810 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
811 JV_STATE_NOTHING, not `0'.
812 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
814 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
815 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
817 (_Jv_PthreadGetMutex): New function.
818 (_Jv_PthreadCheckMonitor): Use it.
819 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
820 (_Jv_MutexLock): Update `count'.
821 (_Jv_MutexUnlock): Likewise.
822 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
825 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
827 * Makefile.am (.java.lo): Add rule.
829 * Makefile.in: Rebuilt.
831 1999-09-01 Tom Tromey <tromey@cygnus.com>
833 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
834 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
836 (_Jv_CondNotify): Use it.
837 (_Jv_CondNotifyAll): Likewise.
839 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
841 1999-08-31 Tom Tromey <tromey@cygnus.com>
843 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
846 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
848 * posix-threads.cc: Include <errno.h>.
850 1999-08-23 Tom Tromey <tromey@cygnus.com>
852 * boehm.cc: Undefine TRUE and FALSE.
854 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
856 1999-08-21 Tom Tromey <tromey@cygnus.com>
858 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
861 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
863 * configure.in: Check for in_addr_t in netinet/in.h too. Check
865 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
866 (HAVE_STRUCT_IP_MREQ): Added.
867 * configure, include/config.h.in: Rebuilt.
868 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
870 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
871 Disable if ip_mreq is not available.
873 * configure.in: Check types ssize_t and in_addr_t.
874 * acconfig.h: Undefine them.
875 * configure, include/config.h.in: Rebuilt.
877 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
878 function that detects the signature of getpwuid_r.
879 (init_properties): Use it.
880 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
883 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
885 * interpret.cc (continue1): Implement explicit dispatch table.
886 insn_target: Explicit interpreter switch table.
887 SAVE_PC: New macro, moves pc saving code into instructions that
889 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
890 PC_REGISTER_ASM: New macro.
891 INLINE_SWITCH: New macro. Constrols dispatching strategy.
892 opcode: Remove local variable.
893 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
894 (POKEI): Use _Jv_word.
895 (iinc): Use _Jv_word.
896 (dupx): Change reference argument (sp) to pointer.
899 * interpret.cc: Remove instruction timing instrumentation.
901 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
902 comment. Don't use _Jv_ClassNameSamePackage.
904 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
905 URLPathEntry, CacheEntry}: Removed.
907 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
909 (.java.lo): Rule removed.
911 * Makefile.in: Rebuilt.
913 1999-08-19 Tom Tromey <tromey@cygnus.com>
915 * java/lang/natThread.cc (class locker): New class.
916 (join): Use a locker around _Jv_CondWait.
919 1999-08-18 Tom Tromey <tromey@cygnus.com>
921 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
922 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
924 1999-08-18 Tom Tromey <tromey@cygnus.com>
926 * include/javaprims.h ("Java"): Regenerated namespace decls.
928 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
930 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
931 from _Jv_InternClassStrings.
933 * prims.cc (_Jv_RunMain): New function.
934 (JvRunMain): Remove gij-support.
936 * gij.cc (main): Use _Jv_RunMain.
938 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
940 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
941 argument in temp variable.
942 (continue1): For all op_x2y insns, use temp variable for
943 intermediate value. Also remove some comments.
945 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
946 (forName): Don't call _Jv_InitClass.
948 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
950 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
952 * java/util/jar/JarInputStream.java: New file.
954 * java/util/jar/JarEntry.java: New file.
956 * java/util/jar/JarFile.java: New file.
958 * java/net/URLClassLoader.java: New file.
960 * java/net/JarURLConnection.java: New file.
962 * gnu/gcj/protocol/jar/Handler.java: New file.
964 * gnu/gcj/protocol/jar/Connection.java: New file.
966 * java/security/SecureClassLoader.java: New file.
968 * java/lang/ClassLoader.java (parent): New variable.
969 (ClassLoader (ClassLoader)): new constructor.
970 (findClass): New method.
971 (loadClass): Add default 1.2 implementation.
972 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
973 (readfully): Removed.
975 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
976 (findSystemClass): New method.
977 (VMClassLoader): Constructor rewritten.
979 All other methods removed.
981 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
982 to gnu::gcj::runtime::VMClassLoader.
983 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
985 (VMClassLoader::findSystemClass): renamed from findBootClass.
987 * Makefile.am: Add new files.
988 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
990 * Makefile.in: Rebuilt.
992 1999-08-17 Tom Tromey <tromey@cygnus.com>
994 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
996 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
999 1999-08-16 Tom Tromey <tromey@cygnus.com>
1001 * configure: Rebuilt.
1002 * configure.in: Set DIVIDESPEC to empty string if compiler does
1003 not support -fuse-divide-subroutine.
1005 1999-08-14 Per Bothner <per@bothner.com>
1007 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1008 * java/lang/natClass.cc (initializeClass): Likewise.
1009 * java/lang/ClassLoader.java (resolveClass0): New static method.
1010 (resolveClass): Call resolveClass0.
1011 (findSystemClass): No longer static.
1013 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1015 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1017 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1019 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1022 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1024 * Makefile: Rebuilt.
1025 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1028 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1031 * configure: Rebuilt.
1032 * configure.in: Properly align --help output, fix capitalization
1034 * acinclude.m4: Likewise.
1036 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1038 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1040 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1041 (_Jv_callInterpretedMethod): Unused. Remove.
1042 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1044 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1045 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1046 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1047 * interpret.cc: use _Jv_word.
1048 * defineclass.cc: use_Jv_word.
1049 * resolve.cc: Use _Jv_word.
1050 (_Jv_ResolvePoolEntry): Return _Jv_word.
1051 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1052 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1054 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1057 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1059 * configure: Rebuilt.
1060 * configure.in (sched_yield): Try librt first, then libposix4.
1061 Add -lrt, -lposix4 to THREADSPEC.
1063 1999-08-08 Anthony Green <green@cygnus.com>
1065 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1067 1999-08-08 Anthony Green <green@cygnus.com>
1069 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1072 1999-08-08 Anthony Green <green@cygnus.com>
1076 * include/config.h.in: Rebuilt.
1077 * acconfig.h: Add INTERPRETER.
1079 * Makefile.in: Rebuilt.
1080 * Makefile.am (libffi_files): Identify the libffi object files for
1081 inclusion in libgcj.
1082 (LIBFFIINCS): Define.
1084 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1085 Dummy definition for configurations without an interpreter.
1087 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1088 java::lang::Boolean constructor.
1090 * include/java-interp.h: Always include java-cpool.h.
1092 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1093 when INTERPRETER not defined.
1095 * java/lang/Class.h (finalize): Define.
1097 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1098 IOException from File.getCanonicalPath.
1099 (getStream): Likewise.
1102 * THANKS: More thanks.
1104 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1106 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1108 (_Jv_PrepareClass): Allow non-abstract classes to
1109 have abstract subclasses.
1110 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1112 * interpret.cc (continue1/perform_invoke): Don't sign extend
1114 (continue1/lshl,lshr): Push long, not int.
1115 (continue1/ulshr): Use UINT64, not long long.
1116 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1118 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1119 * java/lang/FirstThread.java (run): Add top-level exception
1121 (run0): Renamed from run.
1123 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1125 * configure.in (--with-interpreter): Added.
1126 * include/config.h.in (INTERPRETER): Added.
1128 * java/lang/ClassLoader.java: File replaced.
1129 * java/lang/VMClassLoader.java: New file.
1130 * java/lang/natClassLoader.cc: New file.
1131 * gnu/gcj/runtime/MethodInvocation.java: New file.
1132 * gnu/gcj/util/path/SearchPath.java: New file.
1133 * gnu/gcj/util/path/PathEntry.java: New file.
1134 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1135 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1136 * gnu/gcj/util/path/URLPathEntry.java: New file.
1137 * gnu/gcj/util/path/CacheEntry.java: New file.
1138 * include/java-interp.h: New file.
1139 * include/java-cpool.h: New file.
1140 * include/java-insns.h: New file.
1141 * defineclass.cc: New file.
1142 * interpret.cc: New file.
1143 * resolve.cc: New file.
1145 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1146 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1147 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1149 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1150 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1152 (initializeClass): Use new JV_ prefixed names. Also, call
1153 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1155 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1156 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1157 JV_STATE_LINKED): New.
1158 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1159 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1160 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1161 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1162 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1163 _Jv_InterpMethodInvocation): New friends for interpreter.
1165 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1166 include/java-cpool.h and renamed with JV_ prefix.
1168 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1170 (_Jv_UnregisterClass): New decl.
1172 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1173 class loader argument.
1174 (_Jv_FindClass): Use class loader.
1176 * prims.cc (_Jv_makeUtf8Const): New function.
1177 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1178 (_Jv_NewPrimArray): Ditto.
1179 (_Jv_FindClassFromSignature): Ditto.
1180 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1181 * java/lang/reflect/natMethod.cc (getType): Ditto.
1183 * include/java-field.h (_Jv_Field::isRef): Make robust for
1184 non-resolved contexts.
1186 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1187 Also, don't mark class->next field.
1189 * java/lang/VirtualMachineError.java: Added FIXME note.
1191 * configure.in (INTERPSPEC): New spec.
1192 * libgcj.spec.in: Added INTERPSPEC.
1193 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1194 gnu/gcj/runtime/MethodInvocation.
1195 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1196 (ordinary_java_source_files): Added above mentioned java classes.
1198 * configure: Rebuilt.
1199 * Makefile.in: Rebuilt.
1201 1999-08-06 Tom Tromey <tromey@cygnus.com>
1203 * configure: Rebuilt.
1204 * configure.in: Look for sched_yield in -lrt.
1206 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1208 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1209 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1210 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1212 (toString): Print correctly when `country' is empty.
1214 1999-08-04 Per Bothner <per@bothner.com>
1216 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1218 1999-08-02 Tom Tromey <tromey@cygnus.com>
1220 * aclocal.m4, configure: Rebuilt for new libtool.
1222 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1224 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1225 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1226 * java/net/ServerSocket.java: Define ANY_IF.
1227 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1228 all network interfaces.
1229 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1230 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1232 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1234 * java/io/natFile.cc (performMkdir): Remove FIXME.
1235 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1237 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1239 * configure.in: Check for bstring.h.
1240 * configure, include/config.h.in: Rebuilt.
1241 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1242 * java/net/natPlainSocketImpl.cc: Likewise.
1244 1999-07-31 Tom Tromey <tromey@cygnus.com>
1249 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1251 * configure.in: Check for struct hostent_data and need for
1252 -D_REENTRANT for gethostbyname_r declaration.
1253 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1254 (lookup): Use hostent_data for fixed_buffer.
1255 * configure, include/config.h.in: Rebuilt.
1257 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1259 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1260 available. Don't cast memmove args to (void*).
1261 * configure.in: Do not abort if memmove is not available.
1263 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1265 * java/lang/natString.cc (substring): optimize where substring is
1267 * java/io/File.java (getName): don't return separator with file name.
1268 * java/io/natFile.cc (attr): fix overflow.
1270 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1272 * mauve-libgcj: Disable Object Serialization tests.
1274 1999-07-20 Warren Levy <warrenl@cygnus.com>
1276 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1277 Default to using PlainDatagramSocketImpl.
1278 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1280 1999-07-19 Tom Tromey <tromey@cygnus.com>
1282 * include/stamp-h.in: New file.
1284 1999-07-12 Tom Tromey <tromey@cygnus.com>
1286 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1289 1999-07-07 Andrew Haley <aph@cygnus.com>
1291 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1292 bytes to make it point after the instruction where the trap
1294 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1296 1999-07-07 Tom Tromey <tromey@cygnus.com>
1298 * mauve-libgcj: Explicitly enable formerly disabled java.text
1301 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1304 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1306 * java/net/URL.java (equals): Compare strings using String.equals.
1307 * java/net/URL.java (sameFile): Ditto.
1309 1999-07-02 Warren Levy <warrenl@cygnus.com>
1311 * configure: Rebuilt.
1312 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1313 * include/config.h.in: Rebuilt.
1314 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1315 (mcastGrp): Updated FIXME comments.
1316 (setOption): Fixed typo.
1317 (getOption):Implemented IP_MULTICAST_IF.
1319 1999-07-02 Warren Levy <warrenl@cygnus.com>
1321 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1322 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1323 (getTimeToLive): Implemented.
1324 (setOption): Implemented IP_MULTICAST_IF.
1326 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1328 * java/lang/String.java (toString): Check for this == null and throw
1329 NullPointerException.
1331 1999-07-01 Warren Levy <warrenl@cygnus.com>
1333 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1334 to count and revised comments to match.
1335 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1336 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1337 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1338 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1339 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1340 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1342 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1344 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1345 properly as count rather than outlength.
1346 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1347 output on overflow rather than buffer fill.
1348 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1349 if markPos is 0 and there is still room in the buffer.
1351 1999-07-01 Andrew Haley <aph@cygnus.com>
1353 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1354 This is a workaround for a bug in glibc's pthreads package which
1355 doesn't deliver any sigcontext information to a signal handler.
1357 1999-06-24 Tom Tromey <tromey@cygnus.com>
1359 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1360 * java/lang/fdlibm.h (HUGE): Conditionally define.
1362 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1364 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1365 * java/lang/e_log.c: Don't use __uint32_t.
1367 1999-05-27 Eric Christopher <echristo@cygnus.com>
1369 * configure: Rebuilt
1370 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1371 * acconfig.h: Rebuilt
1372 * include/config.h.in: Rebuilt
1374 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1375 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1376 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1377 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1378 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1379 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1380 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1381 and namespace collision with __uint32_t
1383 1999-06-23 Tom Tromey <tromey@cygnus.com>
1385 * java/util/zip/InflaterInputStream.java (read): Throw
1386 ZipException if inflater throws a DataFormatException.
1388 1999-06-23 Warren Levy <warrenl@cygnus.com>
1390 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1391 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1392 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1393 is not final per JDK.
1394 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1396 * java/util/zip/DataFormatException.java: Class extends Exception.
1397 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1398 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1399 * java/util/zip/ZipInputStream.java: ditto.
1400 (closeEntry): Changed method name to match JDK spec.
1402 1999-06-21 Tom Tromey <tromey@cygnus.com>
1404 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1407 * Makefile.in: Rebuilt.
1408 * Makefile.am (toolexeclibdir): Define as libdir when
1410 * configure: Rebuilt.
1411 * configure.in (USE_LIBDIR): New conditional.
1413 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1415 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1416 hostname in returned InetAddress objects.
1417 (getLocalHostname): Fix typo.
1418 * java/net/InetAddress.java (getByName): Set hostname on return
1420 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1423 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1425 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1426 interfaces if host==NULL.
1427 (accept): Throw message with InterruptedIOException.
1428 (getOption): Cache localAddress.
1429 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1430 'address' for DatagramSocket.
1431 (setTimeToLive): Fix compiler warnings.
1432 (getOption): Cache localAddress.
1433 * java/net/Socket.java (getLocalAddress): Don't need local
1434 InetAddress object. Add FIXME comment about calling checkConnect().
1435 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1436 connection queue to 50 as per JDK 1.2 docs.
1437 (ServerSocket(int,int)): Listen on all network interfaces by
1438 default, per JDK 1.2 docs.
1439 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1440 Add localAddress caching.
1442 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1444 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1446 (write(byte[],int,int)): ditto.
1448 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1450 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1452 1999-06-11 Warren Levy <warrenl@cygnus.com>
1454 * mauve-libgcj: Activated java.net Mauve tests.
1456 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1458 * java/net/natInetAddress.cc (aton): Fix typos.
1459 (lookup): Use a bigger buffer size for gethostbyname_r on all
1460 versions of glibc. Updated FIXME comment explaining this.
1461 Modified while loops to not set herr = ERANGE to work around glibc
1462 problems. Use user specified hostname in InetAddress result when
1463 available (consistent with JDK).
1465 1999-06-10 Warren Levy <warrenl@cygnus.com>
1467 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1468 Throw FileNotFoundException instead of IOException.
1470 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1472 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1473 in static field name.
1474 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1475 throughout rather than ParseException.
1477 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1479 * java/lang/Runtime.java (exec): Convert prog name and arguments
1481 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1482 environment array conversion. Preserve current environment if envp
1483 not passed. Preserve PATH unless explicitly specified.
1484 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1485 followed by EOF. Set a flag when a line is terminated by '\r' and
1486 ignore following '\n' if set.
1488 1999-06-02 Warren Levy <warrenl@cygnus.com>
1490 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1491 Ignore context if spec is an absolute URL. Fix braindead
1493 (hashCode): Use JDK 1.2 style algorithm.
1494 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1495 context URL properly.
1497 1999-05-30 Anthony Green <green@cygnus.com>
1499 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1500 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1502 1999-05-28 Warren Levy <warrenl@cygnus.com>
1504 * java/net/DatagramSocket.java (laddr): Removed.
1505 (DatagramSocket): Removed attempts to get or set laddr if null.
1506 (getLocalAddress): Reimplemented per spec.
1507 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1509 (joinGroup): Throw NullPointerException if any argument is null.
1510 (leaveGroup): ditto.
1511 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1512 * java/net/PlainSocketImpl.java (timeout): Added.
1513 (getInputStream): Added FIXME comment on how to support timeouts
1515 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1516 * java/net/Socket.java: Added FIXME comments to identify
1517 conflicting specs between the JCL and JDK 1.2 documents.
1518 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1519 if host is null. Get localport value resolved by kernel if bind
1521 (receive): Implemented support for timeouts in UDP.
1522 (setOption): Implemented based on natPlainSocketImpl version.
1524 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1525 resolved by kernel if bind lport is 0.
1526 (connect): Get localport value resolved by kernel if bind wasn't
1527 done to set localport.
1528 (accept): Implemented support for timeouts for ServerSocket.
1529 (setOption): Save value for SO_TIMEOUT.
1530 (getOption): Return timeout for SO_TIMEOUT.
1532 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1534 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1535 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1536 (setOption): Made abstract.
1537 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1538 to avoid cpp conflicts in native code.
1539 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1540 cpp conflicts in native code.
1541 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1542 * java/net/Socket.java (getLocalAddress): Implemented.
1543 (setTcpNoDelay): Implemented.
1544 (getTcpNoDelay): Implemented.
1545 (setSoLinger): Implemented.
1546 (getSoLinger): Implemented.
1547 (getSoTimeout): Verify class type.
1548 (setSendBufferSize): Implemented.
1549 (getSendBufferSize): Implemented.
1550 (setReceiveBufferSize): Implemented.
1551 (getReceiveBufferSize): Implemented.
1552 (toString): Prepended "Socket".
1553 * java/net/SocketImpl.java (toString): Rewritten.
1554 (getOption): Made abstract.
1555 (setOption): Made abstract.
1556 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1557 (setOption): Implemented.
1558 (getOption): Implemented.
1560 1999-05-26 Warren Levy <warrenl@cygnus.com>
1562 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1563 address when null. Set SO_REUSEADDR for multicasts.
1564 (getSoTimeout): Implemented.
1565 (setSoTimeout): Implemented.
1566 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1567 * java/net/MulticastSocket.java (getInterface): Implemented.
1568 (setInterface): Implemented.
1569 (setTimeToLive): Check for invalid ttl.
1570 (joinGroup): Verify multicast address and security.
1571 (leaveGroup): Verify multicast address and security.
1572 (send): Implemented.
1573 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1579 (getTTL): Implemented as non-native.
1583 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1584 (getSoTimeout): Implemented.
1585 (setSocketFactory): Made synchronized.
1586 * java/net/Socket.java (setSoTimeout): Implemented.
1587 (getSoTimeout): Implemented.
1588 (close): Made synchronized.
1589 (setSocketImplFactory): Made synchronized.
1590 * java/net/SocketImpl.java: Implement SocketOptions interface.
1591 * java/net/natInetAddress.cc: Corrected module name at top of file.
1592 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1593 (bind): Added FIXME.
1594 (peek): Implemented.
1600 (setOption): Implemented for SO_REUSEADDR.
1601 (getOption): Implemented for SO_REUSEADDR.
1603 1999-05-24 Tom Tromey <tromey@cygnus.com>
1605 * java/util/ResourceBundle.java (getBundle): Throw
1606 NullPointerException if baseName is null.
1608 1999-05-22 Tom Tromey <tromey@cygnus.com>
1610 * java/util/zip/ZipInputStream.java (fill): New method.
1611 (compressed_len): New instance variable.
1612 (getNextStream): Set it.
1613 (read): Reset inflater on EOF. Only read via `super' if entry is
1615 (skip): Only skip via `super' if entry is deflated.
1616 * java/util/zip/Deflater.java (last_input_count): Removed.
1617 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1619 (needsInput): Don't use last_input_count.
1620 (setInput): Don't set last_input_count.
1621 * java/util/zip/natInflater.cc (getRemaining): Return correct
1623 (inflate): Return 0 if input array is length 0.
1624 (setInput): Don't set last_input_count.
1625 * java/util/zip/Inflater.java (last_input_count): Removed.
1627 1999-05-21 Tom Tromey <tromey@cygnus.com>
1629 * Makefile.in: Rebuilt.
1630 * Makefile.am (INCLUDES): Added $(ZINCS).
1631 * configure: Rebuilt.
1632 * configure.in (ZINCS): New subst.
1634 1999-05-21 Andrew Haley <aph@cygnus.com>
1636 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1637 to signal options to allow the same exceptions to be rethrown
1640 1999-05-20 Andrew Haley <aph@cygnus.com>
1642 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1644 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1645 (INIT_FPE): Exception string made more informative.
1646 * include/sparc-signal.h (INIT_FPE): Exception string made more
1648 * testsuite/libjava.lang/Divide_1.java: New file.
1649 * testsuite/libjava.lang/Divide_1.out: New file.
1651 1999-05-19 Tom Tromey <tromey@cygnus.com>
1653 * aclocal.m4, configure: Rebuilt.
1654 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1656 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1659 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1661 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1663 (update): Fail in default case. Always initialize `strat'.
1665 * mauve-libgcj: Enable java.util.zip.
1667 1999-05-18 Warren Levy <warrenl@cygnus.com>
1669 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1670 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1671 PlainDatagramSocketImpl.java, and SocketOptions.java.
1672 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1673 * Makefile.in: Rebuilt.
1675 * java/net/DatagramPacket.java: New file.
1676 * java/net/DatagramSocket.java: New file.
1677 * java/net/DatagramSocketImpl.java: New file.
1678 * java/net/MulticastSocket.java: New file.
1679 * java/net/PlainDatagramSocketImpl.java: New file.
1680 * java/net/SocketOptions.java: New file.
1681 * java/net/natPlainDatagramSocketImpl.cc: New file.
1683 1999-05-18 Tom Tromey <tromey@cygnus.com>
1685 * java/util/zip/ZipOutputStream.java (level): Initial value is
1686 Deflater.DEFAULT_COMPRESSION.
1687 (close): New method.
1688 (closeEntry): Likewise.
1690 (put_version): Likewise.
1691 (write_entry): Likewise.
1692 (put2, put4): Now return `int'.
1693 (comment): Default to empty string.
1694 (bytes_written): New instance variable.
1696 * java/util/zip/ZipEntry.java (setComment): Limit length of
1698 (setCrc): Check CRC validity.
1699 (setExtra): Check argument validity.
1700 (setMethod): Likewise.
1701 (setSize): Likewise.
1702 (ZipEntry): Likewise.
1703 * include/javaprims.h: Updated namespace declarations.
1704 * Makefile.in: Rebuilt.
1705 * Makefile.am (ordinary_java_source_files): Mention new files.
1706 (nat_source_files): Likewise.
1707 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1710 (getInputStream): Handle compressed entries.
1711 * java/util/zip/GZIPOutputStream.java: New file.
1712 * java/util/zip/GZIPInputStream.java: New file.
1713 * java/util/zip/DataFormatException.java: New file.
1714 * java/util/zip/CheckedInputStream.java: New file.
1715 * java/util/zip/CheckedOutputStream.java: New file.
1716 * java/util/zip/InflaterInputStream.java: Implemented.
1717 * java/util/zip/natInflater.cc: New file.
1718 * java/util/zip/Deflater.java: Implemented.
1719 * java/util/zip/natDeflater.cc: New file.
1720 * java/util/zip/DeflaterOutputStream.java: Implemented.
1722 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1723 ZipException, not IOException.
1724 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1727 1999-05-17 Tom Tromey <tromey@cygnus.com>
1729 * java/lang/natSystem.cc (init_properties): URL now points to
1732 1999-05-12 Per Bothner <bothner@cygnus.com>
1734 * java/util/Calendar.java (set): First call computeFields if needed.
1735 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1737 1999-05-12 Tom Tromey <tromey@cygnus.com>
1739 * configure: Rebuilt.
1740 * configure.in: Look for -ldl when using the Boehm collector.
1741 Look for sched_yield in -lposix4.
1743 1999-05-12 Per Bothner <bothner@cygnus.com>
1745 * java/io/File.java (mkdirs): Handle a null parent directory.
1747 1999-05-12 Tom Tromey <tromey@cygnus.com>
1749 * include/javaprims.h: Updated namespace declarations.
1750 * classes.pl (scan): Uniquify class list.
1751 * Makefile.in, configure: Rebuilt.
1752 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1753 (built_java_source_files): New macro.
1754 (nat_headers): Added built_java_source_files.
1755 (javao_files): Likewise.
1756 (EXTRA_libgcj_la_SOURCES): Likewise.
1757 (libgcj.zip): Create built class files.
1758 ($(built_java_source_files:.java=.class)): New target.
1759 (jv_convert_LDADD): Added -L$(here)/.libs.
1760 * configure.in: Create links for ConcreteProcess.java and
1761 natConcreteProcess.cc.
1762 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1763 * java/lang/natEcosProcess.cc: New file.
1764 * java/lang/EcosProcess.java: New file.
1765 * java/lang/PosixProcess.java: New file.
1766 * java/lang/natPosixProcess.cc: New file.
1768 1999-05-12 Warren Levy <warrenl@cygnus.com>
1770 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1771 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1772 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1773 (connect): Throw ConnectException.
1775 1999-05-11 Tom Tromey <tromey@cygnus.com>
1777 * Makefile.in: Rebuilt.
1778 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1779 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1782 * Makefile.in: Rebuilt.
1783 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1784 and it causes problems with libtool.
1786 * Makefile.in, configure: Rebuilt.
1787 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1788 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1789 (jv_convert_DEPENDENCIES): Added ZDEPS.
1790 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1792 (THREADSPEC): Added `-L' to point to qthreads build directory.
1796 * configure, Makefile.in: Rebuilt.
1797 * Makefile.am (toolexeclib_DATA): New macro.
1798 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1799 Recognize --with-system-zlib.
1800 (GCSPEC): New subst.
1801 (THREADSPEC): New subst.
1802 (SYSTEMSPEC): New subst.
1803 (ZLIBSPEC): New subst.
1804 * libgcj.spec.in: New file.
1806 1999-05-10 Tom Tromey <tromey@cygnus.com>
1808 * java/io/InputStreamReader.java (read): If length is 0, return
1809 0. Reset `wpos' and `wcount' when buffer has been filled and
1812 * java/util/Properties.java (save): Removed `FIXME' comment.
1813 (load): Invalid characters in \u now treated as terminators.
1814 Make sure to append character resulting from `\' handling.
1815 Cast to `char' when appending to key or value.
1816 (skip_ws): Inverted test for whitespace.
1818 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1820 (readLine): Likewise.
1821 (readFully): Implemented.
1823 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1825 * java/awt/natToolkit.cc: Added copyright header.
1826 * java/util/zip/InflaterInputStream.java: Added copyright header.
1828 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1830 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1832 (getNextStream): Likewise.
1834 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1836 (getBundle): Don't explicitly throw null pointer exception.
1838 * gnu/gcj/RawData.java: Added copyright header.
1840 * include/jni.h (_Jv_va_list): Always define as va_list.
1842 1999-05-9 Anthony Green <green@cygnus.com>
1844 * java/text/DateFormat.java (computeInstance): Separate time
1846 (getDateTimeInstance): Ditto.
1847 (getDateTimeInstance(int,int)): New method.
1849 * Makefile.in: Rebuilt.
1850 * Makefile.am (ordinary_java_source_files): Add new classes.
1852 * java/util/PropertyResourceBundle.java: New file.
1853 * gnu/gcj/util/EnumerationChain.java: New file.
1855 1999-05-07 Tom Tromey <tromey@cygnus.com>
1857 * acconfig.h (GCJVERSION): New undef.
1858 * java/lang/natSystem.cc (init_properties): Define java.version,
1859 java.class.version, os.name, os.arch, os.version.
1860 Include <sys/utsname.h> if required.
1861 * configure: Rebuilt.
1862 * configure.in: Compute and define GCJVERSION.
1864 * java/lang/natSystem.cc (default_file_encoding): Now static.
1866 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1868 * libtool-version: New file.
1869 * Makefile.in: Rebuilt.
1870 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1873 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1874 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1877 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1878 (we pick those up already).
1880 1999-05-05 Per Bothner <bothner@cygnus.com>
1882 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1883 stub classes. (This is enough to get Kawa to compile against libgcj.)
1885 * gnu/gcj/RawData.java: New class.
1886 * doc/cni.sgml: Document RawData.
1888 * java/util/zip/InflaterInputStream.java: New stub class.
1889 * java/util/zip/ZipInputStream.java: New class. Partly works.
1890 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1891 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1892 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1893 * java/util/zip/ZipOutputStream.java: Start implementation.
1895 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1896 (default_file_encoding): New global, initial value is above macro.
1897 (init_properties): Default file.encoding to default_file_encoding.
1899 * Makefile.am: Add new classes.
1901 1999-05-05 Tom Tromey <tromey@cygnus.com>
1903 * Makefile.in: Rebuilt.
1904 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1905 (clean-local): New target
1907 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1908 (load, loadLibrary): Now native.
1910 * java/lang/Runtime.java (load, loadLibrary): Now native.
1911 (init): New native method.
1912 (Runtime): Use init.
1913 * prims.cc: Include <ltdl.h> if required.
1914 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1916 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1918 * configure.in: Switch from irix threads to posix threads
1919 * configure: Regenerate.
1921 1999-04-30 Tom Tromey <tromey@cygnus.com>
1923 * Makefile.in: Rebuilt.
1924 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1926 1999-04-29 Tom Tromey <tromey@cygnus.com>
1928 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1931 * java/util/Locale.java (Locale(String,String)): Implement in
1932 terms of 3-argument version; variant now defaults to empty
1934 (toString): Assume variant is not null.
1935 (equals): Assume all strings are not null.
1936 (Locale): Throw NullPointerException if any argument is null.
1938 * java/util/ResourceBundle.java (getBundle): Don't try the base
1939 name; now implicit in partialGetBundle call.
1940 (trySomeGetBundle): Search for parent bundles and call setParent
1942 (partialGetBundle): Added `langStop' argument. Use
1943 `Locale.toString' to compute bundleName.
1944 (resource_cache): New static field.
1945 (partialGetBundle): Cache the returned resource bundle. Now
1948 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1951 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1952 * java/text/natCollator.cc (decomposeCharacter): `base' now
1954 * Makefile.in: Rebuilt.
1955 * Makefile.am (ordinary_java_source_files): Added
1956 CollationElementIterator, CollationKey, Collator,
1958 (nat_source_files): Added natCollator.cc.
1959 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1960 (compare): Pass `this' to CollationElementIterator constructor.
1961 (getCollationElementIterator): Likewise.
1962 (ceiNext): Fix off-by-one error when finding initial substring.
1963 (next): Correctly mask off bits when computing return value.
1964 Fixed return values when one string is shorter than the other.
1965 * java/text/CollationElementIterator.java (collator): New field.
1966 (CollationElementIterator): Added collator argument.
1967 (next): Call ceiNext on collator object.
1969 1999-04-26 Tom Tromey <tromey@cygnus.com>
1971 * natCollator.cc: New file.
1973 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1974 (GregorianCalendar): Use it in all constructors.
1975 * java/util/Calendar.java (Calendar): Changed argument name to
1976 `zone' to match code.
1978 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1979 * java/text/CollationKey.java: New file.
1980 * java/text/CollationElementIterator.java: New file.
1981 * java/text/Collator.java: New file.
1982 * java/text/RuleBasedCollator.java: New file.
1984 * Makefile.in: Rebuilt.
1985 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1986 (jv_convert_LDADD): Explicltly add -lm -lc.
1988 1999-04-26 Tom Tromey <tromey@cygnus.com>
1990 * configure, Makefile.in: Rebuilt.
1991 * configure.in: Added AM_PROG_LIBTOOL.
1992 (GCOBJS): Use `.lo' form of files.
1993 (THREADOBJS): Likewise.
1994 (GCDEPS): Use `.la' form of library.
1995 (GCLIBS): Set to be the same as GCDEPS.
1996 (THREADDEPS): Use `.la' form of library.
1997 (THREADLIBS): Set to be the same as THREADDEPS.
1998 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1999 toolexeclib_LIBRARIES.
2000 (libgcj_la_SOURCES): Renamed for libtoolization.
2001 (EXTRA_libgcj_la_SOURCES): Likewise.
2002 (libgcj_la_DEPENDENCIES): Likewise.
2003 (libgcj_la_LIBADD): Likewise.
2004 ($(nat_files)): Use LTCXXCOMPILE.
2005 ($(c_files)): Use LTCOMPILE.
2006 (GCJCOMPILE): New macro.
2008 (.java.o): Likewise.
2009 ($(javao_files)): Likewise.
2010 (jv_convert_LINK): Use LIBTOOL.
2011 (nat_files): Use `.lo' files.
2012 (c_files): Likewise.
2013 (javao_files): Likewise.
2014 (.class.lo): Renamed.
2015 (.java.lo): Likewise.
2016 ($(nat_files)): Depend on %.lo.
2017 ($(c_files)): Likewise.
2018 ($(javao_files)): Likewise.
2019 (jv_convert_LDADD): Link against .lo files.
2020 (jv_convert_DEPENDENCIES): Depend on .lo files.
2021 (maintainer-check): Depend on libgcj.la, but examine .a file.
2022 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2023 (libgcj_la_LDFLAGS): New macro.
2025 1999-04-23 Warren Levy <warrenl@cygnus.com>
2027 * Makefile.am: Added URLDecoder and URLEncoder.
2028 * Makefile.in: Rebuilt.
2030 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2031 setSocketImplFactory to match spec.
2032 * java/net/Socket.java (getSoLinger): Changed return type to
2035 * java/net/URLDecoder.java: New file.
2036 * java/net/URLEncoder.java: New file.
2038 1999-04-21 Tom Tromey <tromey@cygnus.com>
2040 * java/lang/natString.cc (getBytes): Reverted earlier change and
2041 applied correct fix from Per Bothner.
2043 * java/lang/String.java: Don't throw
2044 UnsupportedEncodingException.
2046 * java/lang/natString.cc (getBytes): Correctly size result
2047 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2049 1999-04-20 Andrew Haley <aph@cygnus.com>
2051 * include/sparc-signal.h: new file.
2052 * configure.in: include/sparc-signal.h added.
2053 * configure: regenerated.
2054 * prims.cc (JvRunMain): signal handling code rewritten to be more
2056 (catch_segv): ditto.
2058 * include/i386-signal.h: reorganized.
2059 * include/default-signal.h: reorganized.
2061 1999-04-19 Tom Tromey <tromey@cygnus.com>
2063 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2064 once. From Anthony Green.
2066 1999-04-19 Andrew Haley <aph@cygnus.com>
2068 * Makefile.in: Processed with new automake.
2070 1999-04-19 Tom Tromey <tromey@cygnus.com>
2072 * include/javaprims.h: Removed security namespace.
2074 1999-04-20 Anthony Green <green@cygnus.com>
2076 * java/io/PrintStream.java (println): Remove extra println.
2078 1999-04-19 Anthony Green <green@cygnus.com>
2080 * Makefile.in: Rebuilt.
2081 * Makefile.am (ordinary_java_source_files): Add new security files.
2083 * java/security/NoSuchAlgorithmException.java,
2084 java/security/MessageDigest.java: New files.
2086 * include/javaprims.h: Add security namespace.
2088 1999-04-16 Per Bothner <bothner@cygnus.com>
2090 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2091 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2092 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2093 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2094 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2095 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2096 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2097 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2098 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2099 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2100 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2101 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2102 * Makefile.am: Various changes for new files and conversions.
2104 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2105 New overloading, allows greater efficiency.
2106 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2107 New overloading (for efficiency - avoids copying).
2109 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2110 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2112 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2113 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2114 (writeChars): Don't be quite so eager to flush.
2115 * java/io/PrintStream.java: Rewrite. Now more similar to
2116 OutputStreamWriter, using explicit UnicodeToBytes converter.
2117 Also, autoflush does not need to flush so often.
2118 * java/lang/natString.cc (getBytes): More efficient algorithm.
2119 (init(jbyteArray,jint,jint,jstring)): More efficient.
2121 1999-04-15 Warren Levy <warrenl@cygnus.com>
2123 * Makefile.am (ordinary_java_source_files): Added new Connection
2124 and Handler classes in gnu.gcj.protocol.file package.
2125 * Makefile.in: Rebuilt.
2127 * gnu/gcj/protocol/file/Connection.java: New file.
2128 * gnu/gcj/protocol/file/Handler.java: New file.
2129 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2130 if doInput allows input.
2131 (getOutputStream): Check if doOutput allows output.
2132 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2134 1999-04-14 Tom Tromey <tromey@cygnus.com>
2136 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2137 buffer larger to work around bug.
2138 From Bryce McKinlay <bryce@albatross.co.nz>.
2140 1999-04-14 Andrew Haley <aph@cygnus.com>
2142 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2143 NaNs are always converted to the same long value.
2144 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2147 1999-04-13 Tom Tromey <tromey@cygnus.com>
2149 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2150 instead switch on actual element type.
2152 * Makefile.in: Rebuilt.
2153 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2155 1999-04-13 Andrew Haley <aph@cygnus.com>
2157 * include/i386-signal.h, include/default-signal.h: New files.
2158 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2160 (catch_fpe): New function.
2161 * configure.in: Make link to appropriate include/java-signal.h.
2162 * configure: Rebuilt.
2163 * Makefile.am: include/java-signal.h added to dependency list.
2164 * Makefile.in: Rebuilt.
2166 1999-04-12 Urban Widmark <urban@svenskatest.se>
2168 * java/io/DataInputStream.java (readLine): Corrected handling of
2169 empty lines, from null to "".
2171 1999-04-12 Tom Tromey <tromey@cygnus.com>
2173 * Makefile.in: Rebuilt.
2174 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2176 * java/lang/natSystem.cc (SystemClass): New define.
2177 (init_properties): Synchronize.
2179 1999-04-08 Geoff Berry <gcb@gnu.org>
2181 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2182 * natPlainSocketImpl.cc (accept): Add missing else if check
2185 1999-04-08 Tom Tromey <tromey@cygnus.com>
2187 * java/lang/Long.java (parseLong): Corrected overflow detection
2189 * java/lang/Integer.java (parseInt): Corrected overflow detection
2192 * java/io/PrintStream.java (print): Handle null string argument.
2193 (println): Likewise.
2195 1999-04-07 Warren Levy <warrenl@cygnus.com>
2197 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2198 Set count to 0 when InputStreamReader returns -1 for EOF.
2200 1999-04-07 Tom Tromey <tromey@cygnus.com>
2202 * mauve-libgcj: Omit java.text.Collator,
2203 java.text.RuleBasedCollator.
2205 1999-04-06 Tom Tromey <tromey@cygnus.com>
2207 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2208 IOException from getHttpHeaders().
2209 (getHeaderFieldKey): Likewise.
2211 * include/javaprims.h: Regenerated declarations.
2213 * Makefile.in: Rebuilt.
2214 * Makefile.am (ordinary_java_source_files): Updated for removed
2217 1999-04-06 Per Bothner <bothner@cygnus.com>
2219 * java/util/zip/Adler32.java: New class.
2220 * java/util/zip/CRC32.java: Add working method bodies.
2221 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2222 * Makefile.in: Re-generate.
2224 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2226 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2227 from version in removed www hierarchy.
2228 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2229 version in removed www hierarchy.
2231 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2232 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2233 * gnu/gcj/www/protocol/http: Removed dir.
2234 * gnu/gcj/www/protocol: Removed dir.
2235 * gnu/gcj/www: Removed dir.
2237 * java/net/HttpURLConnection.java: Revised comments to indicate
2238 missing JDK 1.2 methods.
2240 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2241 hierarchy rather than the gnu/gcj/www/protocol one.
2242 * java/net/URLConnection.java: Updated status comments.
2243 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2244 the gnu/gcj/www/content one.
2246 1999-04-06 Per Bothner <bothner@cygnus.com>
2248 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2249 The gen-from-JIS program is in $(CONVERT_DIR).
2251 1999-04-06 Tom Tromey <tromey@cygnus.com>
2253 * mauve-libgcj: Renamed from mauve-libjava.
2255 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2257 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2258 (getResponseMessage): Implemented.
2259 (getResponseVals): New private method.
2261 * java/net/URLConnection.java (getContent): Implemented.
2262 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2264 1999-04-05 Tom Tromey <tromey@cygnus.com>
2266 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2267 (jv_convert_SOURCES): Renamed.
2268 (EXTRA_jv_convert_SOURCES): Likewise.
2269 (jv_convert_LDFLAGS): Likewise.
2270 (jv_convert_LINK): Likewise.
2271 (jv_convert_LDADD): Likewise.
2272 (jv_convert_DEPENDENCIES): Likewise.
2274 * Makefile.in: Rebuilt.
2275 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2278 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2280 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2281 method for comparison.
2283 * java/net/URLConnection.java (getContentLength): Implemented.
2284 (getContentType): Implemented.
2285 (getContentEncoding): Implemented.
2286 (getExpiration): Implemented.
2287 (getDate): Implemented.
2288 (getLastModified): Implemented.
2289 (getHeaderFieldInt): Implemented.
2290 (getHeaderFieldDate): Implemented.
2292 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2294 * java/net/URLConnection.java (toString): Implemented.
2295 (setContentHandlerFactory): Implemented.
2296 (setContentHandler): Wrote new private helper method.
2298 1999-04-01 Tom Tromey <tromey@cygnus.com>
2300 * Makefile.in: Rebuilt.
2301 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2302 of 1999-03-31; we always want to build all the .class files.
2303 Depend on java_source_files, not libgcj.zip.
2304 (nat_headers): Define in terms of ordinary_java_source_files.
2306 1999-03-31 Tom Tromey <tromey@cygnus.com>
2308 * Makefile.in: Rebuilt.
2309 * Makefile.am (special_java_source_files): New macro.
2310 (java_source_files): Use it.
2311 (ordinary_java_source_files): New macro.
2312 (java_source_files): Use it.
2313 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2314 creating headers for those files with hand-maintained headers.
2316 * include/javaprims.h: Regenerated namespace declarations.
2317 * classes.pl (scan): Include [0-9] in regexp for matching class
2318 names; for java.util.zip.CRC32.
2320 * Makefile.in: Rebuilt.
2321 * Makefile.am (nat_headers): Redefined to generate all possible
2324 * java/util/zip/ZipException.java: In package java.util.zip, not
2327 1999-03-30 Tom Tromey <tromey@cygnus.com>
2329 * configure: Rebuilt.
2330 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2331 eh-common.h when not building in tree with gcc.
2333 * Makefile.in: Rebuilt.
2334 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2335 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2337 ($(java_source_files:.java=.class)): New target.
2339 * Makefile.in: Rebuilt.
2340 * Makefile.am (java_source_files): Added
2341 java/net/HttpURLConnection.java and
2342 gnu/gcj/www/protocol/http/Connection.java.
2344 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2346 * gnu/gcj/www/protocol/http/Connection.java: New file.
2347 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2348 * java/net/HttpURLConnection.java: New file.
2349 * java/net/URLConnection.java (getHeaderField): Implemented default.
2350 (getHeaderFieldKey): Implemented default method.
2352 1999-03-30 Tom Tromey <tromey@cygnus.com>
2354 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2356 * java/util/zip/Deflater.java: Added copyright header.
2357 * java/util/zip/CRC32.java: Added copyright header.
2359 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2360 that it is automatically generated.
2361 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2363 * gnu/gcj/convert/BytesToUnicode.java,
2364 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2365 gnu/gcj/convert/Input_EUCJIS.java,
2366 gnu/gcj/convert/Input_UTF8.java,
2367 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2368 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2369 gnu/gcj/convert/Output_8859_1.java,
2370 gnu/gcj/convert/Output_JavaSrc.java,
2371 gnu/gcj/convert/Output_UTF8.java,
2372 gnu/gcj/convert/UnicodeToBytes.java,
2373 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2375 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2377 * Makefile.in, configure: Rebuilt.
2378 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2379 not if test subdir exists.
2380 (--enable-gcj-classes): Removed; gcj always used to generate
2382 (JAVA, JAVAC): Removed.
2383 (--enable-single-compilation, --enable-source-compilation):
2386 (NATIVE): New conditional.
2387 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2388 `install-exec' to work.
2389 (toolexeclibdir): Likewise.
2390 (toollib_LIBRARIES): Likewise.
2391 (AM_MAKEFLAGS): Don't pass tooldir.
2393 (javao_files): Redefined.
2394 (java_source_files): New macro.
2395 (c_source_files): New macro.
2396 (c_files): Redefined in terms of c_source_files.
2397 (java_io_files, java_lang_files, java_net_files, java_text_files,
2398 java_util_files, gnu_files, java_files): Removed.
2399 (class_io_files, class_lang_files, class_net_files,
2400 class_text_files, class_util_files, class_gnu_files, class_files):
2402 (nat_source_files): New macro.
2403 (nat_files): Redefined in terms of nat_source_files.
2404 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2405 java_source_files. Removed no-such-file.c.
2407 (ETAGS_ARGS): Removed.
2408 (TAGS_DEPENDENCIES): Likewise.
2409 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2411 (src_io_files, src_lang_files, src_text_files, src_util_files,
2412 src_gnu_files): Removed.
2413 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2414 (BUILT_SOURCES): Removed.
2415 (header-check): New target.
2417 (noinst_PROGRAMS): New macro.
2418 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2420 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2421 (gen-from-JIS): Build in top directory.
2422 (convert_source_files): New macro.
2423 (convert_SOURCES): New macro.
2424 (convert_LDFLAGS): Likewise.
2425 (convert_LINK): Likewise.
2426 (convert_LDADD): Likewise.
2427 (convert_DEPENDENCIES): Likewise.
2429 (gen-from-JIS): Removed.
2430 (gen_from_JIS_SOURCES): New macro.
2431 (gen_from_JIS_LDADD): Likewise.
2432 (gen_from_JIS_DEPENDENCIES): Likewise.
2434 * configure: Rebuilt.
2435 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2436 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2437 when defining conditional.
2439 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2441 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2442 The Unicode Consortium does not permit their re-distribution.
2443 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2444 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2446 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2448 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2450 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2452 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2453 from Unicode Consortium.
2454 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2455 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2456 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2457 New tables, generated using gen-from-JIS.
2458 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2459 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2460 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2461 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2463 * gnu/gcj/convert/Convert.java: New application.
2464 * Makefile.am, Makefile.in (convert): New program, using Convert.
2465 Build the various JIS conversion tables (in maintainer mode).
2467 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2469 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2471 * java/net/URL.java (URL): Deal with null property value. Use "."
2472 as separator in building class name.
2473 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2474 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2475 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2476 beginning of the substring rather than 'start'.
2478 1999-03-26 Tom Tromey <tromey@cygnus.com>
2480 * include/java-chartables.h: Rebuilt.
2481 * include/java-chardecomp.h: New file.
2482 * chartables.pl: Generate output files directly. Added support
2483 for generating decomposition header.
2484 (canonical_decomposition, full_decomposition): New globals.
2485 (DECOMPOSITION): New constant.
2486 (process_char): Call add_decomposition.
2487 (add_decomposition): New sub.
2488 (write_decompositions): New sub.
2490 1999-03-25 Tom Tromey <tromey@cygnus.com>
2492 * java/text/CollationElementIterator.java: New file.
2494 * mauve-libjava: Omit StringTest.
2496 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2498 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2499 without a '/' when parsing protocol. Handle ref outside of parseURL.
2500 (hashCode): Implemented.
2501 (set): Don't expand -1 to default port.
2502 (getDefaultPort): Removed.
2504 * java/net/URLStreamHandler.java (parseURL): Implemented.
2505 (toExternalForm): Implemented.
2507 1999-03-23 Tom Tromey <tromey@cygnus.com>
2509 * java/text/BreakIterator.java (getSentenceInstance):
2511 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2513 * Makefile.in: Rebuilt.
2514 * Makefile.am (nat_headers): Added IllegalAccessException.
2515 * java/lang/natClass.cc (newInstance): Throw
2516 IllegalAccessException, not IllegalAccessError.
2517 Include IllegalAccessException.h.
2519 1999-03-22 Tom Tromey <tromey@cygnus.com>
2521 * gnu/gcj/text/LineBreakIterator.java: New file.
2522 * java/text/BreakIterator.java (getLineInstance): Implemented.
2524 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2525 copy constructor private.
2526 (previous, next): Removed erroneous comment about line
2528 (previous): Correctly recognize break between non-letter on the
2529 left and letter on the right. Handle apostrophes correctly.
2531 * java/text/BreakIterator.java (getWordInstance): Implemented.
2532 * gnu/gcj/text/WordBreakIterator.java: New file.
2533 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2535 * gnu/gcj/text/BaseBreakIterator.java: New file.
2537 1999-03-19 Tom Tromey <tromey@cygnus.com>
2539 * java/text/BreakIterator.java: New file (partially stubbed out).
2540 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2542 * include/config.h.in: Rebuilt.
2543 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2544 (HAVE_TIMEZONE): Likewise.
2545 * configure: Rebuilt.
2546 * configure.in: Added timezone checks.
2547 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2550 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2552 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2553 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2554 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2555 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2556 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2557 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2558 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2559 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2561 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2562 (BSD_COMP): Kludge needed for Solaris2.
2564 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2566 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2567 URL(java.net.URL, string, URLStreamHandler) and call it with a
2568 null handler. In latter constructor, added SecurityManager check.
2569 (set): Expect null handler on bad protocol rather than an exception.
2570 (setURLStreamHandler): Simplified exception handling; return null
2571 on invalid protocol.
2573 1999-03-18 Tom Tromey <tromey@cygnus.com>
2575 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2577 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2579 Include PrintStream.h, InputStream.h.
2580 * java/lang/System.java (ForwardingInputStream,
2581 ForwardingOutputStream): Removed.
2582 (setErr, setIn, setOut): Now native.
2584 Reverted patch from 1999-02-12 to work around problem in
2586 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2587 (_Jv_eh_free): Use free.
2589 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2590 for path name. Minor formatting fixes.
2592 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2594 * prims.cc (fail_on_finalization): New function.
2595 (_Jv_GCWatch): Likewise.
2597 * prims.cc (JvRunMain): Initialize `nullp'.
2598 (nullp): New global.
2599 (catch_segv): Throw nullp.
2601 * Makefile.in: Rebuilt.
2602 * Makefile.am (ZIP): In "null target" case, zip is found in the
2605 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2609 * java/lang/StringBuffer.java (StringBuffer): Don't use
2610 ensureCapacity to set initial capacity.
2611 (capacity): Subtract `length' from return result.
2613 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2615 * java/io/natFileDescriptorPosix.cc (open): Throw
2616 FileNotFoundException, but with filename and errno in msg.
2618 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2620 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2621 functionality folded into java/net/URL.java per spec.
2623 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2624 than EEXIST for throwing FileNotFoundException.
2626 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2627 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2629 * java/net/URLStreamHandler.java (parseURL): Added stub.
2631 1999-03-15 Andrew Haley <aph@cygnus.com>
2633 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2636 1999-03-15 Andrew Haley <aph@cygnus.com>
2638 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2641 1999-03-12 Tom Tromey <tromey@cygnus.com>
2643 * prims.cc (catch_segv): New function.
2644 Include <signal.h> if HANDLE_SEGV defined. Include
2645 NullPointerException.h.
2646 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2649 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2650 a SimpleDateFormat, not just a DateFormat.
2651 (defaultCenturyStart, formatData, pattern): Now private.
2652 (append): Now `final'. Use `NumberFormat.format'.
2654 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2656 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2659 * java/text/MessageFormat.java (format): Use default MessageFormat
2661 (parse, parseObject): Wrote.
2663 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2666 1999-03-12 Andrew Haley <aph@cygnus.com>
2668 * java/lang/String.java (indexOf): Replace with native method for
2670 * java/lang/natString.cc (IndexOf): As above.
2672 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2673 Argument check corrected.
2674 (init(jbyteArray,jint,jint,jstring)): Likewise.
2676 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2677 1.2 compliant method.
2679 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2681 * java/lang/Float.java (byteValue, shortValue): Likewise.
2683 1999-03-11 Tom Tromey <tromey@cygnus.com>
2685 * java/text/DecimalFormat.java (parse): Wrote.
2687 * java/text/ChoiceFormat.java (parse): Set error index on
2688 ParsePosition object.
2690 * java/lang/Integer.java (parseInt): Throw exception on overflow
2691 when intermediate result is most negative number. Changed
2692 overflow detection as well.
2693 * java/lang/Long.java (parseLong): Likewise.
2695 * configure, Makefile.in: Rebuilt.
2696 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2697 CANADIAN when building in source tree that doesn't include gcc.
2698 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2701 * java/text/ChoiceFormat.java (nextDouble): Correct some
2702 off-by-one errors when masking or adding.
2704 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2705 parameter, if given. Use `%', not IEEEremainder.
2706 (scanFix): Throw error if multiplier already set.
2707 (computePattern): Wrote.
2709 1999-03-11 Andrew Haley <aph@cygnus.com>
2711 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2713 (nextDouble): Corrected masking logic. Handle interaction between
2714 `next' and negative numbers.
2716 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2718 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2719 * java/net/URL.java: Added general comments.
2721 1999-03-10 Tom Tromey <tromey@cygnus.com>
2723 * java/text/ChoiceFormat.java (parse): Wrote.
2725 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2727 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2728 Create ChoiceFormat objects.
2729 (format): Special-case ChoiceFormat.
2730 (scanFormatElement): Include { and } in generated style string.
2732 1999-03-09 Tom Tromey <tromey@cygnus.com>
2734 * java/text/ChoiceFormat.java: New file.
2736 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2738 * java/net/BindException.java: Created.
2739 * java/net/ConnectException.java: Created.
2740 * java/net/ContentHandler.java: Created.
2741 * java/net/ContentHandlerFactory.java: Created.
2742 * java/net/FileNameMap.java: Created.
2743 * java/net/MalformedURLException.java: Created.
2744 * java/net/NoRouteToHostException.java: Created.
2745 * java/net/ProtocolException.java: Created.
2746 * java/net/ServerSocket.java (@author): Fixed typo.
2747 * java/net/Socket.java (@author): Fixed typo.
2748 * java/net/SocketImpl.java (@author): Fixed typo.
2749 * java/net/SocketImplFactory.java (@author): Fixed typo.
2750 * java/net/URL.java: Created - nearly complete.
2751 * java/net/URLConnection.java: Created - near-empty stub.
2752 * java/net/URLStreamHandler.java: Created - incomplete stub.
2753 * java/net/URLStreamHandlerFactory.java: Created.
2754 * java/net/UnknownServiceException.java: Created.
2756 1999-03-09 Tom Tromey <tromey@cygnus.com>
2758 * java/lang/System.java (ForwardingInputStream): New class.
2759 (ForwardingOutputStream): Likewise.
2760 (in, out, err): Now `final' forwarding streams.
2761 (setIn, setOut, setErr): Use appropriate method on forwarding
2764 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2767 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2769 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2770 * java/util/zip/Checksum.java: New interface (complete).
2771 * java/util/zip/Deflater.java: New class (near-empty stub).
2772 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2773 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2774 * java/util/zip/ZipEntry.java: New class (complete).
2775 * java/util/zip/ZipException.java: New class (complete).
2776 * java/util/zip/ZipFile.java: New class (incomplete stub).
2777 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2779 1999-03-09 Tom Tromey <tromey@cygnus.com>
2781 * java/text/MessageFormat.java (MessageFormatElement): Removed
2782 `public' specifiers.
2784 * java/text/DecimalFormat.java (scanFormat): Increment index
2785 before processing exponential format. Fixed a couple typos in
2787 (format): Correct normalization of exponent.
2789 1999-03-08 Tom Tromey <tromey@cygnus.com>
2791 * java/text/SimpleDateFormat.java (parse): Throw
2792 IllegalArgumentException, not ParseException.
2794 1999-03-05 Tom Tromey <tromey@cygnus.com>
2796 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2797 when constructing DateFormatSymbols. Initialize numberFormat
2798 field of superclass.
2800 * java/text/DateFormat.java (equals): Rewrote.
2801 (getAvailableLocales): New method.
2802 (getDateInstance): New methods.
2803 (getDateTimeInstance): Likewise.
2804 (getTimeInstance): Likewise.
2805 (getInstance): New method.
2806 (computeInstance): New method.
2808 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2810 (safeGetResource): New method.
2811 (DateFormatSymbols): Use Locale paramater.
2812 (equals): Now protected.
2813 Made instance variables private.
2815 1999-03-04 Tom Tromey <tromey@cygnus.com>
2817 * java/text/DecimalFormat.java: New file.
2819 * java/text/NumberFormat.java (groupingUsed,
2820 maximumFractionDigits, maximumIntegerDigits,
2821 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2823 (setDecimalSeparatorAlwaysShown, setMultiplier,
2824 setPositivePrefix): Removed.
2825 (setMinimumFractionDigits, setMaximumFractionDigits):
2827 (format): Now final.
2828 Added many new methods.
2830 * Makefile.in: Rebuilt.
2831 * Makefile.am (gnu_files): New macro.
2832 (java_files): Added gnu_files.
2833 (class_gnu_files): New macro.
2834 (class_files): Use it.
2835 (src_gnu_files): New macro.
2836 (gnu.o): New target.
2837 (javao_files): Added gnu.o.
2839 * gnu/gcj/text/LocaleData_en_US.java: New file.
2840 * gnu/gcj/text/LocaleData_en.java: New file.
2841 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2842 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2843 (safeGetString): New method.
2844 (safeGetChar): Likewise.
2846 1999-03-03 Tom Tromey <tromey@cygnus.com>
2848 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2851 * java/text/FieldPosition.java (equals): Don't check for null
2852 object; instanceof does this.
2854 * java/util/Locale.java (clone): New method.
2857 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2859 * doc/cni.sgml: New file.
2861 1999-03-03 Tom Tromey <tromey@cygnus.com>
2863 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2865 * java/text/DecimalFormatSymbols.java: New file.
2867 1999-03-02 Tom Tromey <tromey@cygnus.com>
2869 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2871 * configure: Rebuilt.
2872 * configure.in: Check for sys/filio.h.
2874 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2876 (load): Always throw UnsatisfiedLinkError.
2877 (loadLibrary): Likewise.
2879 1999-03-02 Anthony Green <green@cygnus.com>
2881 * LIBGCJ_LICENSE: New file.
2882 * LIBJAVA_LICENSE: Removed.
2883 * Many files: libjava now libgcj.
2885 1999-03-02 Tom Tromey <tromey@cygnus.com>
2887 * include/java-chartables.h: Rebuilt.
2888 * chartables.pl (print_block): Make table `const'.
2889 (print_numerics): Likewise.
2890 (print_single_map): Likewise.
2891 (print_all_block): Likewise.
2892 (print_case_table): Likewise.
2893 (print_fast_tables): Likewise.
2894 * java/lang/natCharacter.cc (table_search): `table' argument now
2897 1999-03-01 Tom Tromey <tromey@cygnus.com>
2899 * java/util/Date.java (before, after): Inverted logic.
2901 * java/util/Date.java (parse): Handle case where first character
2902 in string is open parenthesis.
2903 (skipParens): Rewrote.
2905 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2906 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2908 * java/util/Date.java (parse): Correctly compute beginning of
2911 * java/util/Hashtable.java (get): Throw NullPointerException if
2913 (containsKey): Likewise.
2915 * java/util/Properties.java (list): Truncate value to 37
2916 characters and add `...'.
2918 * java/lang/Byte.java (parseByte): Pass `radix' to
2921 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2923 Include System.h, PrintStream.h.
2925 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2928 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2930 * configure: Rebuilt.
2931 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2934 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2936 * java/lang/SecurityManager.java: Import java.net.*.
2937 (checkMulticast): New methods.
2939 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2941 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2942 (nat_files): Add java/lang/reflect/natArray.o.
2943 (nat_headers): Add Field.h and NoSuchFieldException.h.
2945 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2946 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2947 (_Jv_FromReflectedField): Fix buglet.
2948 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2949 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2950 * prims.cc (_Jv_Abort): Include message in print-out.
2952 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2953 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2954 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2956 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2957 * include/config.h.in (HAVE_PWD_H): New feature macro.
2958 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2959 user.name, user.home, user.dir.
2961 * java/lang/reflect/Array.java: New class.
2962 * java/lang/reflect/natArray.cc: New native methods.
2963 * include/javaprims.h: Declare java::lang::reflect::Array.
2965 * java/lang/Class.h (getField): New private method. Add friends.
2966 * java/lang/Class.java (getField): Add private overload.
2967 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2968 getDeclaredMethods): Add working implementations.
2969 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2970 Finish implementation, except for access control.
2972 * java/lang/reflect/Modifier.java (toString): New overload.
2973 * include/java-method.h: New file.
2974 * java/lang/reflect/Method.java (index): Replaced by offset field.
2975 Remove various private fields - get them from _Jv_Field instead.
2976 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2977 New method implementations.
2979 * java/text/NumberFormat.java: Add a bunch of methods.
2981 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2983 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2985 1999-02-26 Tom Tromey <tromey@cygnus.com>
2987 * include/config.h.in: Rebuilt.
2988 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2989 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2990 HAVE_GETHOSTBYADDR_R): New defines.
2991 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2992 gethostbyaddr_r if available.
2994 * configure: Rebuilt.
2995 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2997 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3001 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3002 * prims.cc (_Jv_AllocBytesChecked): New function.
3004 * Makefile.in: Rebuilt.
3005 * Makefile.am (SUBDIRS): Removed `test'.
3006 * configure: Rebuilt.
3007 * configure.in: Don't build test/Makefile.
3008 * test/*: Removed all files.
3010 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3012 * java/lang/reflect/Constructor.java: Make class final to match spec.
3013 * java/lang/reflect/Method.java: Ditto.
3015 1999-02-25 Tom Tromey <tromey@cygnus.com>
3017 * java/net/natInetAddress.cc: Include <sys/types.h> before
3019 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3022 * java/net/natInetAddress.cc: Declare gethostname if required.
3023 * include/config.h.in: Rebuilt.
3024 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3025 * configure: Rebuilt.
3026 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3027 declared in unistd.h.
3029 1999-02-24 Tom Tromey <tromey@cygnus.com>
3031 * Makefile.in: Rebuilt.
3032 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3033 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3034 from private to "none".
3036 * include/javaprims.h: Regenerated class declarations with new
3038 * classes.pl (scan): Only generate decls for java.lang, java.io,
3041 1999-02-24 Tom Tromey <tromey@cygnus.com>
3043 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3044 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3046 1999-02-23 Tom Tromey <tromey@cygnus.com>
3048 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3049 not already defined.
3050 * java/io/natFile.cc (_REENTRANT): Only define if not already
3052 * include/config.h.in: Rebuilt.
3053 * acconfig.h (HAVE_BOEHM_GC): New define.
3054 * configure: Rebuilt.
3055 * configure.in: Define HAVE_BOEHM_GC if using it.
3056 * posix-threads.cc: Include boehm-config.h and gc.h if
3058 * include/posix-threads.h: Added explanatory note about Boehm GC.
3060 * java/io/BufferedReader.java (readLine): Only return null when
3061 EOF seen before any characters read. (In particular, an empty
3062 line should not return null.)
3064 * java/io/BufferedInputStream.java (read): Only refill once per
3067 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3068 java.lang.Character.classify12, java.lang.String.hash,
3069 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3070 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3072 * java/text/StringCharacterIterator.java (setIndex): No error if
3074 (next): Check for `pos == end', not `end - 1'.
3075 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3076 for null text in each constructor.
3077 (clone): Fixed order of arguments to constructor.
3079 1999-02-22 Tom Tromey <tromey@cygnus.com>
3081 * include/config.h.in: Rebuilt.
3082 * acconfig.h (HAVE_INET6): New define.
3083 (HAVE_SOCKLEN_T): Likewise.
3084 * java/net/PlainSocketImpl.java: Added copyright header.
3085 * java/net/natPlainSocketImpl.cc: Added copyright header.
3086 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3088 (connect): Likewise.
3090 (socklen_t): New typedef.
3091 (accept): Use socklen_t.
3092 * java/net/natInetAddress.cc: Added copyright header.
3093 (HAVE_GETHOSTNAME): Don't define.
3094 (HAVE_INET_ADDR): Likewise.
3095 (lookup): Fixed typo.
3096 (aton): Don't use `address' as name of local variable.
3097 (lookup): Use HAVE_INET6, not AF_INET6.
3099 * configure: Rebuilt.
3100 * configure.in: Look for functions inet_aton, inet_addr,
3101 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3102 Check for socklen_t typedef.
3104 * exception.cc (__throw): Declare as __noreturn__.
3106 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3108 * Makefile.am, Makefile.in: Also build java/net.
3109 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3111 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3112 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3114 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3115 * include/cni.h (JvMalloc, JvFree): New inline functions.
3116 (JvThrow): Add __noreturn__ attribute.
3117 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3118 (_Jv_Throw): Add __noreturn__ attribute.
3120 * java/net/PlainSocketImpl.java: Init fnum to -1.
3121 * java/net/ServerSocket.java: Add missing throws clauses.
3122 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3123 don't call create on the latter. Instead, other constructors
3124 have to explicitly call SocketImpl.create.
3125 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3126 from size_t to int, to match ::accept prototype.
3127 * java/net/natInetAddress.cc: Use JvFree rather than free.
3130 1999-02-22 Tom Tromey <tromey@cygnus.com>
3132 * include/javaprims.h: Added new classes.
3133 * java/text/StringCharacterIterator.java: New file.
3134 * java/text/CharacterIterator.java: New file.
3136 * java/text/ParseException.java (errorOffset): Now private.
3138 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3140 * java/net: New package.
3141 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3142 Socket.java,SocketException.java,SocketImpl.java,
3143 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3144 natPlainSocketImpl.cc}: New classes.
3146 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3147 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3148 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3149 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3151 * classes.pl: Translate package into "namespace", not "class".
3152 * include/javaprims.h: Update class list, using "namespace".
3154 1999-02-21 Tom Tromey <tromey@cygnus.com>
3156 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3157 Define when appropriate.
3159 1999-02-20 Tom Tromey <tromey@cygnus.com>
3161 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3162 as a single byte and \u07ff as two bytes.
3163 (_Jv_GetStringUTFLength): Likewise.
3164 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3165 with 0x0f, not 0x1f.
3167 1999-02-19 Tom Tromey <tromey@cygnus.com>
3169 * java/io/DataOutputStream.java (writeUTF): When encoding
3170 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3171 * java/io/DataInputStream.java (readUTF): Mask second byte of
3172 3-byte character with 0x3f, not 0x1f.
3174 * java/io/DataInputStream.java (readLong): Cast result of
3175 readUnsignedByte to long before using.
3177 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3180 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3181 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3182 argument to avoid warning.
3183 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3184 argument to avoid warning.
3186 1999-02-18 Tom Tromey <tromey@cygnus.com>
3188 * mauve-libjava: Omit java.io.DataInputOutput and
3189 java.io.Utf8Encoding.
3191 1999-02-17 Tom Tromey <tromey@cygnus.com>
3193 * Makefile.in: Rebuilt.
3194 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3195 * java/io/natFileDescriptorPosix.cc: Include
3196 InterruptedIOException.h, Thread.h.
3197 (write): Throw InterruptedIOException when required.
3199 * posix-threads.cc: Include <signal.h>.
3200 (_Jv_ThreadInterrupt): New function.
3202 (handle_intr): New function.
3203 (_Jv_InitThreads): Register handle_intr via sigaction.
3204 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3205 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3206 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3207 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3209 1999-02-19 Andrew Haley <aph@cygnus.com>
3211 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3213 (ThreadGroup (int)): Set the maximum priority of the initial
3216 1999-02-18 Andrew Haley <aph@cygnus.com>
3218 * java/lang/natClass.cc (forName): Check for the case where a
3219 classname is the name of an array and call FindClassFromSignature
3222 1999-02-18 Andrew Haley <aph@cygnus.com>
3224 * java/lang/StringBuffer (insert (int, String)): Move up any
3225 characters above the insert position and increase the length of
3226 the string buffer by the length of the argument.
3227 (insert (int, char[])): Likewise.
3228 (insert (int, char)): Likewise.
3229 (StringBuffer (String)): The initial capacity of the string buffer
3230 is 16 plus the length of the argument.
3231 (getChars): Add a JDK 1.2 FIXME.
3233 1999-02-18 Andrew Haley <aph@cygnus.com>
3235 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3238 1999-02-18 Andrew Haley <aph@cygnus.com>
3240 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3241 instead of floating-point equality. This is necessary for
3242 correct floating-point Hashtables.
3243 * java/lang/Float.java (equals): Ditto.
3245 1999-02-16 Tom Tromey <tromey@cygnus.com>
3247 * java/util/Properties.java (list): Truncate value to 37
3248 characters and add "...".
3250 1999-02-16 Tom Tromey <tromey@cygnus.com>
3252 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3253 if initCap is negative.
3254 (contains): Implement JDK1.2-style handling of null argument.
3255 (removeElement): Likewise.
3256 (indexOf): Likewise. Also, correctly handle case where idx is
3258 (lastIndexOf): Likewise.
3260 1999-02-16 Tom Tromey <tromey@cygnus.com>
3262 * java/lang/natString.cc (init): Increment source pointer in
3265 1999-02-16 Tom Tromey <tromey@cygnus.com>
3267 * exception.cc: Include NullPointerException.h.
3268 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3270 1999-02-16 Tom Tromey <tromey@cygnus.com>
3272 * Makefile.in: Rebuilt.
3273 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3275 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3277 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3278 we're compiling canadian.
3279 * configure: Regenerated.
3281 1999-02-12 Andrew Haley <aph@cygnus.com>
3283 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3284 deleted from libgcj.
3286 1999-02-12 Tom Tromey <tromey@cygnus.com>
3288 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3289 (_Jv_eh_free): Don't call free.
3290 Don't declare malloc or free.
3292 1999-02-11 Tom Tromey <tromey@cygnus.com>
3294 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3296 1999-02-11 Andrew Haley <aph@cygnus.com>
3298 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3299 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3300 needed by java.lang.*.
3301 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3302 wf_fmod.o: Removed from libjava.a.
3304 1999-02-11 Tom Tromey <tromey@cygnus.com>
3306 * include/javaprims.h: Reverted previous change; with it
3307 exception.cc can't compile.
3309 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3311 * include/config.h.in: Rebuilt.
3312 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3314 * configure: Rebuilt.
3315 * configure.in: Check for sched_yield. Look in thread library for
3316 all thread functions.
3318 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3319 no recursive mutexes.
3320 (_Jv_MutexDestroy): Define when required.
3321 (_Jv_MutexLock): Likewise.
3322 (_Jv_MutexUnlock): Likewise.
3323 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3324 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3325 (_Jv_Mutex_t): New structure.
3326 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3327 (_Jv_MutexLock): Likewise.
3328 (_Jv_MutexUnlock): Likewise.
3330 1999-02-10 Tom Tromey <tromey@cygnus.com>
3332 * aclocal.m4, configure, Makefile.in: Rebuilt.
3333 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3335 * configure.in: Changed to track library changes.
3336 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3337 (AM_CXXFLAGS): Likewise.
3338 (data_DATA): Likewise.
3339 (AM_CFLAGS): Likewise.
3340 (JC1FLAGS): Likewise.
3341 (libgcj_a_SOURCES): Likewise.
3342 (EXTRA_libgcj_a_SOURCES): Likewise.
3343 (libgcj_a_DEPENDENCIES): Likewise.
3344 (libgcj_a_LIBADD): Likewise.
3345 (libgcj.zip): Likewise.
3346 (CLEANFILES): Likewise.
3347 ($(nat_headers)): Likewise.
3348 (java/lang/FirstThread.h): Likewise.
3349 (java/lang/ThreadGroup.h): Likewise.
3350 (java/lang/String.h): Likewise.
3351 (java/lang/reflect/Field.h): Likewise.
3352 (BUILT_SOURCES): Likewise.
3353 (maintainer-check): Likewise.
3354 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3355 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3357 * java/util/natGregorianCalendar.cc (computeFields): Only use
3358 gmtime_r and localtime_r when configured for posix threads.
3360 * java/io/natFile.cc (get_entry): Only use readdir_r when
3361 configured for posix threads.
3363 * java/util/natGregorianCalendar.cc: Update copyright notice.
3364 * java/util/TimeZone.java: Ditto.
3365 * java/util/SimpleTimeZone.java: Ditto.
3367 1999-02-08 Tom Tromey <tromey@cygnus.com>
3369 * java/io/PrintStream.java (line_separator): New constant.
3370 (print): Use line_separator, not `file.separator' property.
3371 (println): Use line_separator.
3373 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3374 when trying to instantiate Class.
3376 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3377 NullPointerException if argument is null.
3379 * java/lang/Thread.java (setName): Throw NullPointerException, not
3380 IllegalArgumentException.
3383 1999-02-08 Andrew Haley <aph@cygnus.com>
3385 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3386 create new Classes with Class.newInstance().
3388 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3389 semiciolon to end of an array Class's signature if the elements of
3390 the array aren't themselves arrays.
3392 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3393 array of objects is always sizeof(jobject), not the size of the
3394 object to which the reference points.
3396 1999-02-08 Tom Tromey <tromey@cygnus.com>
3398 * java/util/BitSet.java (and): Throw NullPointerException when
3403 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3404 if argument is negative.
3405 (clear): Correctly compute `offset'. Throw
3406 IndexOutOfBoundsException when required.
3408 (get): Likewise. Also, return correct value.
3409 (ensure): Changed meaning of argument.
3410 (toString): Wrap contents in `{}'; put spaces after commas.
3411 (hashCode): Don't try to examine elements off the end of array.
3412 (or): Correctly include bits past the end of this bit set.
3415 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3417 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3418 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3420 1999-02-04 Andrew Haley <aph@cygnus.com>
3422 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3423 '/' in signatures to '.'
3424 (Class::getName): Likewise,
3425 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3427 * java/lang/natFirstThread.cc (run): Change '/' in main's
3430 1999-02-03 Andrew Haley <aph@cygnus.com>
3432 * configure.host: -ffloat-store added when compiling libjava on
3433 x86. fdlibm apparently relies on this.
3435 * java/lang/ThreadGroup.java (add): throw an exception if the
3436 ThreadGroup has been destroyed.
3438 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3441 1999-01-27 Tom Tromey <tromey@cygnus.com>
3443 * java/lang/StringBuffer.java (StringBuffer): Handle null
3446 1999-01-21 Tom Tromey <tromey@cygnus.com>
3448 * java/lang/natFirstThread.cc (run): Don't require main to be
3451 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3453 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3455 1999-01-20 Tom Tromey <tromey@cygnus.com>
3457 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3461 (unintern): Likewise.
3462 (_Jv_NewStringUtf8Const): Likewise.
3464 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3465 Character.isLetter, to see if character is self-quoting. Also,
3466 correctly handle quoted characters.
3467 (parse): Fixed typo. Also now throws ParseException.
3469 1999-01-15 Tom Tromey <tromey@cygnus.com>
3471 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3473 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3474 _Jv_SyncInfo has `init' member.
3476 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3479 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3480 IllegalMonitorStateException if unlock fails.
3482 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3484 (_Jv_NewObjectArray): Likewise.
3486 1999-01-14 Tom Tromey <tromey@cygnus.com>
3488 * java/lang/Character.java (isJavaIdentifierPart): Allow
3489 LETTER_NUMBER characters.
3491 * chartables.pl (process_char): Fixed error messages.
3493 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3494 * chartables.pl: Updated comments. Changed detection of non-digit
3495 numeric values (no longer miss \u00b2 and friends).
3497 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3498 currency symbols and connector punctuation.
3499 (isIdentifierIgnorable): Make 7f-9f ignorable.
3501 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3502 (_Jv_NewPrimArray): Likewise.
3503 (SIZE_T_MAX): New define.
3505 * java/lang/ClassLoader.java (system): Now private and final.
3507 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3510 * configure: Rebuilt.
3511 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3513 * exception.cc: Include gansidecl.h.
3515 1999-01-14 Andrew Haley <aph@cygnus.com>
3517 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3518 corrected: they didn't treat -0.0 and NaNs correctly.
3520 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3522 * nogc.cc: Use calloc to zero out memory.
3524 1999-01-11 Tom Tromey <tromey@cygnus.com>
3526 * java/lang/natClass.cc (isInstance): Return false if this class
3527 is primitive, not if class of `obj' is primitive.
3528 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3530 * java/io/SequenceInputStream.java (close): Handle case where `in'
3533 * java/text/DateFormat.java (format): New method.
3535 * mauve-libjava: Omit java.text.DateFormat.
3537 1999-01-08 Tom Tromey <tromey@cygnus.com>
3539 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3541 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3543 (_Jv_CondNotifyAll): Likewise.
3545 * configure: Rebuilt.
3546 * configure.in: Change --enable-source-compilation logic to work
3549 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3551 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3552 and RUNTESTFLAGS from AM_MAKEFLAGS.
3553 * configure.in: AM_RUNTESTFLAGS added.
3554 * configure.host: AM_RUNTESTFLAGS added.
3555 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3556 * configure: rebuilt.
3557 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3559 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3560 argv[] made conditional because embedded targets may not have
3562 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3563 explanatory comments added in call to super.
3565 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3566 exception thrown in the test harness itself added.
3567 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3569 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3571 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3573 1999-01-06 Tom Tromey <tromey@cygnus.com>
3575 * java/io/natFile.cc (get_entry): New function.
3576 (performList): Use get_entry.
3577 * include/config.h.in: Rebuilt.
3578 * acconfig.h (HAVE_READDIR_R): New define.
3579 * configure: Rebuilt.
3580 * configure.in: Look for readdir_r.
3582 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3584 * java/util/natDate.cc: Added copyright header.
3586 1999-01-05 Tom Tromey <tromey@cygnus.com>
3588 * include/config.h.in: Rebuilt.
3589 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3590 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3591 * configure: Rebuilt.
3592 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3593 unlink, and realpath.
3594 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3595 (stat): Conditionalize on HAVE_STAT.
3597 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3598 (performMkdir): Conditionalize on HAVE_MKDIR.
3599 (performRenameTo): Conditionalize on HAVE_RENAME.
3600 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3602 * include/config.h.in: Rebuilt.
3603 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3604 * configure: Rebuilt.
3605 * configure.in: Check for gmtime_r and localtime_r. For cross
3606 builds, assume they exist.
3608 * mauve-libjava: Include java.text.DateFormatSymbols again.
3609 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3610 from setAmPmStrings.
3612 * mauve-libjava: Omit java.text.DateFormatSymbols.
3614 1999-01-04 Tom Tromey <tromey@cygnus.com>
3616 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3618 * java/io/LineNumberReader.java (read): Decrement `count' in
3621 * java/io/BufferedWriter.java (write): Correctly determine when
3622 incoming data would overrun buffer. Flush buffer if write causes
3625 * java/io/BufferedOutputStream.java (write): Increment `count'
3626 after copying data into buffer.
3628 * java/io/FilterOutputStream.java (close): Call flush first.
3630 * java/io/PipedReader.java (read): If read causes `out' to catch
3631 up with `in', then set `in' to -1.
3633 * java/io/LineNumberInputStream.java (read): If no bytes read,
3634 return -1. If no bytes requested, return 0.
3636 * java/lang/StringBuffer.java (insert): If `str' is null, use
3639 1998-12-30 Anthony Green <green@cygnus.com>
3642 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3644 1998-12-23 Tom Tromey <tromey@cygnus.com>
3646 * java/io/PushbackInputStream.java (read): `off' already includes
3649 1998-12-17 Tom Tromey <tromey@cygnus.com>
3651 * Makefile.in: Rebuilt.
3652 * Makefile.am (GCJ_canadian): Include target_alias.
3654 * java/lang/natFirstThread.cc (run): Require main's class to be
3657 1998-12-16 Tom Tromey <tromey@cygnus.com>
3659 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3661 * java/util/ResourceBundle.java (getBundle): Throw
3662 NullPointerException if locale argument is null.
3664 * java/lang/natClass.cc (forName): Throw NullPointerException if
3666 Include NullPointerException.h.
3668 1998-12-14 Tom Tromey <tromey@cygnus.com>
3670 * java/lang/Character.java (Character): Implement Comparable.
3671 (compareTo): New methods.
3673 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3674 correct country and language codes.
3675 (UK, US): New constants.
3676 (setDefault): Language codes are lower-case.
3678 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3679 (getDeclaredConstructors): Likewise.
3680 (getDeclaredField): Likewise.
3681 (getDeclaredFields): Likewise.
3682 (getDeclaredMethod): Likewise.
3683 (getDeclaredMethods): Likewise.
3684 (getField): Likewise.
3685 (getFields): Likewise.
3686 (getMethod): Likewise.
3687 (getMethods): Likewise.
3688 * java/lang/Class.java: Declare new methods.
3689 * java/lang/Class.h: Declare new methods.
3691 * java/lang/natString.cc: Removed `#pragma implementation'.
3692 * include/cni.h (_Jv_GetStringChars): New function.
3693 * Makefile.in: Rebuilt.
3694 * Makefile.am (java/lang/String.h): Don't generate definition for
3697 * java/lang/natString.cc: Added `#pragma implementation'.
3699 * Makefile.in: Rebuilt.
3700 * Makefile.am (libjava.zip): Put build directory first in class
3701 path to avoid bug in compiler.
3703 1998-12-14 Anthony Green <green@cygnus.com>
3705 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3707 * include/javaprims.h: Add EventObject, ListResourceBundle and
3710 1998-12-13 Anthony Green <green@cygnus.com>
3712 * mauve-libjava: Run the ResourceBundle tests.
3714 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3717 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3719 * configure.in, configure: Make --enable-gcj-classes and
3720 --enable-source-compilation the default. (Nervously...) Yeah!
3721 Based on a patch from Tom Tromey.
3723 1998-12-13 Tom Tromey <tromey@cygnus.com>
3725 * java/util/EventObject.java: New file.
3726 * java/util/EventListener.java: New file.
3728 * include/javaprims.h: Updated class declarations.
3729 * Makefile.in: Rebuilt.
3730 * Makefile.am (nat_headers): Added Constructor.h.
3731 (java/lang/String.h): Don't inline String::length().
3732 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3733 * java/lang/Class.java (initializeClass, hackRunInitializers,
3734 hackTrampoline): No need to mark `final'.
3735 (getConstructor, getConstructors): Declare.
3736 * java/lang/reflect/Field.java (equals): New method.
3737 * java/lang/natClass.cc (getConstructor): New method.
3738 (getConstructors): Likewise.
3739 Include Method.h, Field.h, Constructor.h.
3740 * java/lang/reflect/Constructor.java: New file.
3741 * java/lang/reflect/Method.java (toString): No space before open
3743 (equals): Simplified.
3745 1998-12-13 Anthony Green <green@cygnus.com>
3747 * java/util/ResourceBundle.java: New file.
3748 * java/util/ListResourceBundle.java: New file.
3750 1998-12-12 Tom Tromey <tromey@cygnus.com>
3752 * java/lang/System.java (in, out, err): Now buffered streams by
3755 * include/javaprims.h: Updated class declarations.
3756 * Makefile.in: Rebuilt.
3757 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3758 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3760 (nat_files): Added natMethod.o.
3761 * java/lang/reflect/natMethod.cc: New file.
3762 * java/lang/reflect/Field.java (Field): Now extends
3764 * java/lang/reflect/AccessibleObject.java: New file.
3765 * java/lang/reflect/InvocationTargetException.java: New file.
3767 1998-12-11 Tom Tromey <tromey@cygnus.com>
3769 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3770 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3771 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3773 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3775 1998-12-09 Tom Tromey <tromey@cygnus.com>
3777 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3780 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3781 character is already titlecase.
3783 * java/lang/Character.java (isJavaLetter): Follow spec.
3784 (isJavaLetterOrDigit): Likewise.
3786 * java/util/GregorianCalendar.java (gregorianCutover): Append
3789 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3791 1998-12-08 Tom Tromey <tromey@cygnus.com>
3793 * java/lang/reflect/Modifier.java (toString): Replace second
3794 `static' with `synchronized'.
3796 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3797 * java/lang/Object.h (Object::hack12_6): Declare.
3798 * java/lang/Object.java (hack12_6): New function.
3800 1998-12-07 Tom Tromey <tromey@cygnus.com>
3802 * include/java-array.h (__JArray::clone): Removed decl.
3803 * prims.cc (__JArray::clone): Removed.
3804 * java/lang/natObject.cc (clone): Incorporate code to clone an
3807 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3808 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3809 Correctly use dtable_method_count.
3811 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3813 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3816 1998-12-06 Anthony Green <green@cygnus.com>
3818 * mauve-libjava: Don't test ResourceBundle.
3820 1998-12-04 Tom Tromey <tromey@cygnus.com>
3822 More JDK 1.2 spec fixes:
3823 * java/util/Date.java (millis): Now private.
3824 * java/text/DateFormat.java (DateFormat): Constructor now
3826 * java/lang/Void.java (Void): New private constructor.
3827 * java/lang/System.java (System): New private constructor.
3828 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3830 (currentClassLoader): New method.
3831 (currentLoadedClass): New method.
3832 * java/lang/Math.java (Math): New private constructor.
3833 * java/lang/Compiler.java (Compiler): New private constructor.
3834 * java/lang/Class.java (Class): New private constructor.
3835 * java/lang/Double.java (toString): Removed access specifier from
3836 two-argument `toString' method.
3838 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3840 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3841 causes it to be flushed from an fp register (where it may be
3842 longer than double precision) to a double in memory. This is
3843 essential to ensure correct rounding behaviour.
3845 1998-12-04 Tom Tromey <tromey@cygnus.com>
3847 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3850 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3851 explaining apparent divergence from JDK 1.2.
3853 1998-12-04 Per Bothner <bothner@cygnus.com>
3855 * include/no-threads.h: Remove unused parameter names.
3856 This silences a bunch of warnings.
3858 1998-12-04 Tom Tromey <tromey@cygnus.com>
3860 * include/config.h.in: Rebuilt.
3861 * acconfig.h (HAVE_CTIME_R): New symbol.
3863 1998-12-03 Tom Tromey <tromey@cygnus.com>
3865 * mauve-libjava: Added many more categories to reject.
3867 Changes to follow JDK1.2 spec:
3868 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3869 setErr, setIn, setOut): No need to be `final'.
3870 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3871 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3872 * java/lang/Object.java (wait): `nanos' argument is an int.
3873 * java/lang/VirtualMachineError.java: Class is abstract.
3874 * java/lang/ThreadDeath.java: Made constructors public.
3875 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3878 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3880 * java/text/DateFormatSymbols.java (getAmPmStrings,
3881 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3883 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3885 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3886 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3887 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3890 * java/lang/IllegalThreadStateException.java
3891 (IllegalThreadStateException): Changed extending class to match spec.
3893 * java/lang/NumberFormatException.java
3894 (java/lang/NumberFormatException): Changed extending class to match
3897 * java/util/Observer.java (Observer): Changed sig to match JCL.
3899 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3901 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3902 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3903 signature to match JDK 1.1 and 1.2.
3905 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3907 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3908 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3909 * Makefile.in, configure: Rebuilt.
3911 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3914 1998-12-02 Tom Tromey <tromey@cygnus.com>
3916 * mauve-libjava: New file.
3918 The remaining `-W -Wall' fixes:
3919 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3921 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3923 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3925 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3927 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3929 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3931 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3933 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3935 * java/lang/mprec.c (Balloc): Removed unused variable.
3936 (mult): Added parentheses per gcc suggestion.
3937 (pow5mult): Likewise.
3942 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3943 suggestion. Added cast to `int' to avoid signed/unsigned
3945 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3947 (IsAssignableFrom): Likewise.
3948 (_Jv_JNI_GetObjectField): Likewise.
3949 (_Jv_JNI_GetByteField): Likewise.
3950 (_Jv_JNI_GetShortField): Likewise.
3951 (_Jv_JNI_GetIntField): Likewise.
3952 (_Jv_JNI_GetLongField): Likewise.
3953 (_Jv_JNI_GetStringLength): Likewise.
3954 (_Jv_JNI_ToReflectedField): Likewise.
3955 (_Jv_JNI_FromReflectedField): Likewise.
3956 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3958 * Makefile.in: Rebuilt.
3959 * Makefile.am (AM_CFLAGS): Define conditionally.
3960 (WARNINGS): New macro.
3961 (AM_CXXFLAGS): Include WARNINGS.
3962 * configure: Rebuilt.
3963 * configure.in (USING_GCC): New conditional.
3965 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3967 * java/lang/Character.java: Changed classification constants to
3968 type `byte' to match JDK 1.2 docs.
3970 1998-12-01 Tom Tromey <tromey@cygnus.com>
3972 Some fixes to be `-W -Wall' clean:
3973 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3974 (_Jv_MarkArray): Likewise.
3975 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3976 (to_upper_title): Likewise.
3977 (isTitleCase): Likewise.
3978 (toTitleCase): Likewise.
3979 (getNumericValue): Likewise.
3980 (isLowerCase): Likewise.
3981 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3982 (avoids compiler warning).
3983 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3985 (getDeclaringClass): Likewise.
3986 (_Jv_LookupInterfaceMethod): Likewise.
3987 (_Jv_NewClass): Removed name of unused parameter.
3988 * exception.cc (_Jv_type_matcher): Removed unused variable.
3989 (_Jv_setup_eh_info): Removed name of unused parameter.
3990 * prims.cc (_Jv_NewArray): Always return a value.
3991 (_Jv_FindClassFromSignature): Likewise.
3992 * include/java-field.h (getNameUtf8Const): Removed name of unused
3994 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3996 (_Jv_ThreadSetPriority): Likewise.
3998 * java/lang/natString.cc (hashChars): Now static.
4000 * java/lang/FirstThread.java (FirstThread): Now final.
4002 * java/io/File.java (performMkdir, performRenameTo): Now private.
4004 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4005 if no time function defined.
4007 * configure: Rebuilt.
4008 * configure.in: Look for ctime_r, ctime.
4009 * java/util/Date.java (toString): Now native.
4010 * java/util/natDate.cc (toString): Rewrote.
4012 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4014 * Add LDFLAGS line to allow TX39 test cases to link when cross
4017 1998-11-23 Anthony Green <green@cygnus.com>
4019 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4020 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4021 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4022 include/java-array.h, include/java-assert.h, include/java-field.h,
4023 include/javaprims.h, include/jni.h, include/jvm.h,
4024 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4025 include/quick-threads.h, java/io/BufferedInputStream.java,
4026 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4027 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4028 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4029 java/io/CharArrayWriter.java,
4030 java/io/CharConversionException.java, java/io/DataInput.java,
4031 java/io/DataInputStream.java, java/io/DataOutput.java,
4032 java/io/DataOutputStream.java, java/io/EOFException.java,
4033 java/io/File.java, java/io/FileDescriptor.java,
4034 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4035 java/io/FileOutputStream.java, java/io/FileReader.java,
4036 java/io/FileWriter.java, java/io/FilenameFilter.java,
4037 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4038 java/io/FilterReader.java, java/io/FilterWriter.java,
4039 java/io/IOException.java, java/io/InputStream.java,
4040 java/io/InputStreamReader.java,
4041 java/io/InterruptedIOException.java,
4042 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4043 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4044 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4045 java/io/PipedReader.java, java/io/PipedWriter.java,
4046 java/io/PrintStream.java, java/io/PrintWriter.java,
4047 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4048 java/io/RandomAccessFile.java, java/io/Reader.java,
4049 java/io/SequenceInputStream.java, java/io/Serializable.java,
4050 java/io/StreamTokenizer.java,
4051 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4052 java/io/StringWriter.java, java/io/SyncFailedException.java,
4053 java/io/UTFDataFormatException.java,
4054 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4055 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4056 java/io/natFileDescriptorPosix.cc,
4057 java/lang/AbstractMethodError.java,
4058 java/lang/ArithmeticException.java,
4059 java/lang/ArrayIndexOutOfBoundsException.java,
4060 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4061 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4062 java/lang/Class.java, java/lang/ClassCastException.java,
4063 java/lang/ClassCircularityError.java,
4064 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4065 java/lang/ClassNotFoundException.java,
4066 java/lang/CloneNotSupportedException.java,
4067 java/lang/Cloneable.java, java/lang/Comparable.java,
4068 java/lang/Compiler.java, java/lang/Double.java,
4069 java/lang/Error.java, java/lang/Exception.java,
4070 java/lang/ExceptionInInitializerError.java,
4071 java/lang/FirstThread.java, java/lang/Float.java,
4072 java/lang/IllegalAccessError.java,
4073 java/lang/IllegalAccessException.java,
4074 java/lang/IllegalArgumentException.java,
4075 java/lang/IllegalMonitorStateException.java,
4076 java/lang/IllegalStateException.java,
4077 java/lang/IllegalThreadStateException.java,
4078 java/lang/IncompatibleClassChangeError.java,
4079 java/lang/IndexOutOfBoundsException.java,
4080 java/lang/InstantiationError.java,
4081 java/lang/InstantiationException.java, java/lang/Integer.java,
4082 java/lang/InternalError.java, java/lang/InterruptedException.java,
4083 java/lang/LinkageError.java, java/lang/Long.java,
4084 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4085 java/lang/NoClassDefFoundError.java,
4086 java/lang/NoSuchFieldError.java,
4087 java/lang/NoSuchFieldException.java,
4088 java/lang/NoSuchMethodError.java,
4089 java/lang/NoSuchMethodException.java,
4090 java/lang/NullPointerException.java, java/lang/Number.java,
4091 java/lang/NumberFormatException.java, java/lang/Object.h,
4092 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4093 java/lang/Process.java, java/lang/Runnable.java,
4094 java/lang/Runtime.java, java/lang/RuntimeException.java,
4095 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4096 java/lang/Short.java, java/lang/StackOverflowError.java,
4097 java/lang/String.java, java/lang/StringBuffer.java,
4098 java/lang/StringIndexOutOfBoundsException.java,
4099 java/lang/System.java, java/lang/Thread.java,
4100 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4101 java/lang/Throwable.java, java/lang/UnknownError.java,
4102 java/lang/UnsatisfiedLinkError.java,
4103 java/lang/UnsupportedOperationException.java,
4104 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4105 java/lang/Void.java, java/lang/natCharacter.cc,
4106 java/lang/natClass.cc, java/lang/natDouble.cc,
4107 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4108 java/lang/natMath.cc, java/lang/natObject.cc,
4109 java/lang/natRuntime.cc, java/lang/natString.cc,
4110 java/lang/natSystem.cc, java/lang/natThread.cc,
4111 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4112 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4113 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4114 java/text/FieldPosition.java, java/text/Format.java,
4115 java/text/NumberFormat.java, java/text/ParseException.java,
4116 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4117 java/util/BitSet.java, java/util/Calendar.java,
4118 java/util/ConcurrentModificationException.java,
4119 java/util/Date.java, java/util/Dictionary.java,
4120 java/util/EmptyStackException.java, java/util/Enumeration.java,
4121 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4122 java/util/Locale.java, java/util/MissingResourceException.java,
4123 java/util/NoSuchElementException.java, java/util/Observable.java,
4124 java/util/Observer.java, java/util/Properties.java,
4125 java/util/Random.java, java/util/SimpleTimeZone.java,
4126 java/util/Stack.java, java/util/StringTokenizer.java,
4127 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4128 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4131 * exception.cc: Include eh-common.h instead of duplicating
4134 1998-11-23 Tom Tromey <tromey@cygnus.com>
4136 * configure.host: Don't add `-O2' to libjava_flags. Only add
4137 `-Os' to libjava_flags once.
4139 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4141 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4142 * Makefile.in: likewise
4143 * acconfig.h: add ECOS conditional for configure.h
4144 * config.h.in: likewise
4145 * configure: add test for --with-ecos
4146 * configure.in: likewise
4147 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4148 rename call to avoid name clash.
4149 * java/lang/natSystem.cc: add eCos clock support.
4150 * java/util/natGregorianCalendar.cc: add eCos support.
4152 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4154 * Makefile.am, Makefile.in, configure.host: tx39 build option
4157 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4159 * java/io/BufferedReader.java: Added more comments for clarity.
4160 (mark): Used more mnemonic name for local var extraBuffSpace.
4162 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4163 confusion with private method of same name in superclass.
4164 (skipRedundantLF): Set fields in special case to avoid infinite
4165 recursion. Check if markPos has been invalidated in special case.
4166 (readLine): Rewritten to use readLine method of superclass.
4167 (skip): Incorporated code from lineEnd.
4169 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4171 * java/io/BufferedReader.java (readLine): New method.
4172 (lineEnd): new private method.
4173 (mark): Track special case for readLine of getting '\r' at the
4180 * java/io/InputStreamReader.java (read): Return number chars skipped
4181 rather than requested.
4183 * java/lang/StringBuffer.java (append): Update count and differentiate
4184 between field and local variable.
4186 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4187 seconds. Deal with military style time.
4188 (parse): Consistently treat all timezones in minutes until final
4189 calculation. Flag as non-local timezone. Return value in milliseconds.
4190 (setTime): Adjust for year offset from 1900.
4191 (UTC): Adjust for year offset from 1900.
4193 1998-11-17 Tom Tromey <tromey@cygnus.com>
4195 * configure: Rebuilt.
4196 * configure.in: Switch on host, not target.
4198 * Makefile.in: Rebuilt.
4199 * Makefile.am (GCJ_no): New macro.
4200 (GCJ): Use @CANADIAN@.
4201 (GCJH_no): New macro
4202 (GCJH_canadian): New macro.
4203 (GCJH): Use @CANADIAN@.
4204 (ZIP_no): New macro.
4205 (ZIP_canadian): New macro.
4206 (ZIP): Use @CANADIAN@.
4207 * aclocal.m4, configure: Rebuilt.
4208 * configure.in (CANADIAN): Compute and subst.
4210 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4212 * java/io/FileDescriptor.java (finalize): Only close file
4213 descriptor if valid.
4215 1998-11-17 Tom Tromey <tromey@cygnus.com>
4217 * prims.cc (_Jv_InitRuntime): Removed.
4219 1998-11-16 Tom Tromey <tromey@cygnus.com>
4221 * java/io/FileOutputStream.java (close): Only close file
4222 descriptor if valid.
4223 (finalize): New method.
4225 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4226 (_Jv_NewPrimArray): Likewise.
4227 * boehm.cc (_Jv_RegisterFinalizer): Use
4228 GC_REGISTER_FINALIZER_NO_ORDER.
4229 (GC_GENERIC_MALLOC): New define.
4230 (_Jv_AllocObj): Use it.
4231 (_Jv_AllocArray): Likewise.
4232 (_Jv_AllocBytes): Likewise.
4233 (_Jv_MarkObj): Just return if vtbl not set.
4234 (_Jv_MarkArray): Likewise.
4235 (MAYBE_MARK): New macro; use everywhere.
4236 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4238 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4240 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4241 to a jlong before calculation to prevent overflow.
4243 1998-11-16 Tom Tromey <tromey@cygnus.com>
4245 * Makefile.in: Rebuilt.
4246 * Makefile.am (nat_headers): Fixed typo.
4248 1998-11-15 Tom Tromey <tromey@cygnus.com>
4250 * java/lang/Class.h (Class::getName): Removed definition.
4251 * Makefile.in: Rebuilt.
4252 * Makefile.am (nat_headers): Added InstantiationException.h,
4253 NoSuchMethodException.h.
4254 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4255 (init_name): New global.
4256 (hackRunInitializers): Use clinit_name.
4257 Include InstantiationException.h, NoSuchMethodException.h.
4258 (newInstance): Do some error checking (but not all). Call
4260 (forName): Throw exception if class not found.
4261 (getName): New method.
4262 (forName): Transform class name from external format to internal
4263 format before lookup.
4265 1998-11-15 Anthony Green <green@cygnus.com>
4267 * java/lang/Class.h (Class::forName): Method is static.
4269 * java/lang/natClass.cc (newInstance): Add simple implementation.
4272 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4274 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4275 int), for compatibility with jc1.
4277 1998-11-14 Tom Tromey <tromey@cygnus.com>
4279 * include/config.h.in: Rebuilt.
4280 * acconfig.h (LINUX_THREADS): New define.
4281 * configure: Rebuilt.
4282 * configure.in: Define LINUX_THREADS if using POSIX threads on
4283 Linux. Look for pthread_mutexattr_setkind_np function.
4284 * posix-threads.cc (throw_cleanup): New function.
4285 (really_start): Push cleanup function.
4286 (_Jv_ThreadCancel): New function.
4287 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4288 (_Jv_ThreadInitData): Set `exception' field in new structure.
4289 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4291 (_Jv_ThreadWait): New function.
4292 (_Jv_InitThreads): Initialize daemon globals.
4293 (FLAG_DAEMON): New macro.
4294 (really_start): Notify daemon_cond when non-daemon thread exits.
4295 Include <java/lang/System.h>.
4296 (struct starter): `object' field now a thread.
4297 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4298 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4299 (_Jv_ThreadWait): Removed definition.
4300 (_Jv_Thread_t): Added `exception' field.
4301 (_Jv_ThreadCancel): Removed definition.
4303 1998-11-13 Tom Tromey <tromey@cygnus.com>
4305 * Makefile.in: Rebuilt.
4306 * Makefile.am (libjava.zip): Compute javac before changing
4309 * Makefile.in: Rebuilt.
4310 * Makefile.am (libjava.zip): Include directory entries.
4312 * Makefile.in: Rebuilt.
4313 * Makefile.am (expanded): New macro.
4316 1998-11-12 Tom Tromey <tromey@cygnus.com>
4318 * prims.cc (clone): New function.
4319 * include/java-array.h (__JArray::clone): Removed definition.
4321 * java/lang/natObject.cc (clone): Don't assert that class is not
4322 an array; array's `clone' method just calls this one.
4324 * Makefile.in: Rebuilt.
4325 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4326 Now creates zip file. Changed all users.
4328 (data_DATA): New macro.
4330 1998-11-11 Tom Tromey <tromey@cygnus.com>
4332 * configure: Rebuilt.
4333 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4335 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4337 * java/io/InputStream.java (reset): Add msg to thrown exception.
4339 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4341 * java/io/LineNumberInputStream.java: Rewritten.
4343 * java/io/StringBufferInputStream.java: Removed extraneous import.
4345 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4347 * java/io/StringBufferInputStream.java: Rewritten.
4349 * java/util/Date.java (parseMonth): Optimize.
4350 (parseDayOfWeek): Created.
4351 (parse): Optimize to use parseDayOfWeek.
4353 1998-11-11 Tom Tromey <tromey@cygnus.com>
4355 * java/lang/StringBuffer.java (append): Handle case where STR is
4358 * include/javaprims.h: Regenerated class declarations.
4360 * configure: Rebuilt.
4361 * configure.in: Added --enable-gcj-classes,
4362 --enable-single-compilation, --enable-source-compilation flags.
4363 * Makefile.in: Rebuilt.
4364 * Makefile.am (java_io_files): New macro.
4365 (java_lang_files): Likewise.
4366 (java_text_files): Likewise.
4367 (java_util_files): Likewise.
4368 (java_files): Use new macros.
4369 (java-io.o): New target.
4370 (java-lang.o): Likewise.
4371 (java-text.o): Likewise.
4372 (java-util.o): Likewise.
4373 (src_io_files): New macro.
4374 (src_lang_files): Likewise.
4375 (src_text_files): Likewise.
4376 (src_util_files): Likewise.
4377 (class_io_files): New macro.
4378 (class_lang_files): Likewise.
4379 (class_text_files): Likewise.
4380 (class_util_files): Likewise.
4381 (class_files): Use new macros.
4382 (javao_files): Define conditionally.
4383 (.java.o): New target.
4384 ($(javao_files)): New target.
4386 (GCJH): Added $(EXEEXT).
4387 (CLASSPATH_ENV): Removed.
4388 (GCJCOMPILE): New macro.
4390 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4392 * java/util/Date.java (parse): Written from scratch.
4394 1998-11-11 Tom Tromey <tromey@cygnus.com>
4396 * java/lang/Throwable.java (toString): Correct sense of test for
4397 determining when to include detail message in result.
4399 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4402 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4404 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4406 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4407 (_Jv_RegisterClass): Use it.
4408 * include/jvm.h (_Jv_RegisterClasses): Declare.
4409 * java/lang/natObject.cc (init): Removed.
4410 (sync_init): Never call _Jv_InitializeSyncMutex.
4411 (_Jv_InitializeSyncMutex): Don't set `init'.
4412 * prims.cc (JvRunMain): Don't run init functions.
4414 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4416 * java/lang/natClass.cc (initializeClass): Set state before
4417 resolving constants.
4419 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4420 (STATE_RESOLVED): New macro.
4421 (initializeClass): Call resolveConstants.
4422 (hackRunInitializers): Don't call resolveConstants.
4423 (_Jv_FindArrayClass): Move short-circuit return for primitive
4424 element types earlier in function.
4426 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4428 * prims.cc (no_memory): New global.
4429 (_Jv_makeUtf8Const): Throw no_memory.
4430 (_Jv_AllocObject): Likewise.
4431 (_Jv_NewObjectArray): Likewise.
4432 (_Jv_NewPrimArray): Likewise.
4433 (JvRunMain): Initialize no_memory.
4435 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4437 * java/io/FileInputStream.java: Corrected date comment.
4438 * java/io/SequenceInputStream.java: Rewritten.
4440 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4442 * java/lang/FirstThread.java (die): New method.
4443 * java/lang/natFirstThread.cc (die): Removed.
4445 (run): Use `DIE', not `die'.
4447 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4449 * java/io/CharArrayReader.java (read): Move check into synchronized
4450 block to prevent a close while in progress.
4453 * java/io/PushbackReader.java (read): Ditto.
4456 * java/io/StringReader.java (mark): Ditto.
4461 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4463 * java/io/PipedInputStream.java: Updated status.
4464 (connect): Added code to prevent infinite recursion and to
4465 differentiate exception causes.
4466 (read): Added code to differentiate exception causes.
4467 (receive): Made exception pass string with the cause.
4469 * java/io/PipedOutputStream.java: Updated status.
4470 (connect): Added code to call connect at the other end of the pipe.
4472 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4474 * java/io/PipedInputStream.java (connect): Throw exception if
4475 already connected to the same output stream.
4476 (read): Do bounds checking first.
4478 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4480 * java/io/PipedInputStream.java: Added private boolean outClosed.
4481 (available): Removed check if output stream is open.
4482 (close): Mark the buffer as empty so available returns 0.
4483 (read): Check if the output stream was closed and then return EOF
4484 when the buffer is empty.
4485 (receive): Mark the output stream as closed when passed a -1.
4487 * java/io/PipedOutputStream.java (close): Notify the input stream
4488 that there's no more data coming.
4489 (connect): Added a FIXME comment to note more coordination needed
4490 with PipedInputStream.
4491 (flush): Added a FIXME comment to mark what this method might do
4494 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4496 * java/io/PipedInputStream.java: Rewritten.
4498 1998-10-30 Tom Tromey <tromey@cygnus.com>
4500 * java/lang/Throwable.java: Rewrote from scratch.
4502 * java/lang/Class.h (Class): Don't mention newMultiArray.
4503 * prims.cc (newMultiArray): Removed.
4504 (_Jv_NewMultiArray): Removed.
4505 (newArray): Removed.
4506 (new_multi_array): New function.
4507 (_Jv_NewMultiArray): Rewrote from scratch.
4509 * include/javaprims.h: Regenerated class declarations.
4510 * classes.pl (scan): Don't declare PrimClass.
4511 * include/cni.h (JvPrimClass): Use new names for classes.
4512 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4513 added _Jv_PrimClass.
4514 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4515 (_Jv_initPrimClass): Removed.
4516 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4517 (_Jv_AllocObject): Added comment.
4518 (_Jv_NewObjectArray): Likewise.
4519 (_Jv_NewPrimArray): Likewise.
4521 1998-10-29 Tom Tromey <tromey@cygnus.com>
4523 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4524 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4526 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4528 * java/lang/natObject.cc (init): New global.
4529 (sync_init): Call _Jv_InitializeSyncMutex if required.
4531 * Makefile.in: Rebuilt.
4532 * Makefile.am (nat_headers): Added ClassLoader.h.
4533 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4534 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4535 internalAddClass, lookupArray no longer friends.
4536 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4537 _Jv_FindArrayClass now friends.
4538 * java/lang/natClass.cc (HASH_LEN): New macro.
4539 (HASH_UTF): Likewise.
4540 (loaded_classes): New global.
4541 (_Jv_FindClass): New function.
4542 (ClassClass): New define.
4543 (_Jv_FindClassInCache): New function.
4544 (_Jv_RegisterClass): Likewise.
4545 (_Jv_NewClass): Likewise.
4547 (ObjectClass): New define.
4548 (CloneableClass): New define.
4549 * prims.cc (_Jv_FindClass): Removed.
4550 (simpleLookupClass): Removed.
4551 (insertClass): Removed.
4552 (CLASSHASHSZ): Removed.
4553 (classPool): Removed.
4554 (_Jv_RegisterClass): Removed.
4555 (internalAddClass): Removed.
4556 (ClassClass): Removed.
4557 (RuntimeClass): Removed.
4558 (lookupArray): Removed.
4559 (CloneableClass): Removed.
4560 (CLASSMAXSIG): Removed.
4561 Rearranged file to group related functions together.
4562 (_Jv_IsInstanceOf): Moved to natClass.cc.
4563 (abort_final): Removed.
4564 Removed some unused includes.
4565 (classFromSig): Removed.
4566 (_Jv_FindClassFromSignature): New function.
4567 (_Jv_initPrimClass): Renamed.
4568 (getClass): Removed.
4570 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4572 * java/io/FileDescriptor.java (finalize): Throws IOException
4573 instead of Throwable.
4575 * java/io/FileInputStream.java: Rewritten.
4577 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4578 at the end of a comment.
4580 1998-10-29 Tom Tromey <tromey@cygnus.com>
4582 * include/javaprims.h: Regenerated class declarations.
4583 * classes.pl (scan): Don't special-case ClassLoader.
4585 * prims.cc (processClass): Removed.
4586 (_Jv_InitClass): Removed.
4587 Removed all CSTATE_ macros.
4588 (resolveConstants): Removed.
4590 (_Jv_NewMultiArray): Cleaned up.
4591 * Makefile.in: Rebuilt.
4592 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4593 * java/lang/Class.h (Class): Declare new methods. processClass no
4595 * java/lang/Class.java (hackTrampoline): New method.
4596 (initializeClass): Declare.
4597 (hackRunInitializers): Declare.
4598 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4599 (initializeClass): New method.
4600 (hackRunInitializers): New method.
4601 (init_name, void_signature): Moved from prims.cc.
4602 (_Jv_InitClass): New function.
4603 (isAssignableFrom): Don't call processClass.
4604 (STATE_NOTHING): New macro.
4605 (resolveConstants): New function.
4607 (ErrorClass): New define.
4609 * java/lang/Class.java (getClassLoader): Declare.
4610 * java/lang/ClassLoader.java: Rewrote from scratch.
4612 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4613 AbstractMethodError.h, IllegalAccessError.h,
4614 NoClassDefFoundError.h.
4615 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4616 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4617 longer static. Changed return type.
4618 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4619 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4620 * prims.cc (findMethodLocal): Removed.
4621 (processClass): Use _Jv_GetMethodLocal.
4623 1998-10-28 Tom Tromey <tromey@cygnus.com>
4625 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4626 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4628 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4629 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4631 * include/jni.h: Added copyright header.
4632 * include/javaprims.h: Added copyright header.
4633 * include/java-field.h: Added copyright header.
4634 * include/java-array.h: Added copyright header.
4635 * include/cni.h: Added copyright header.
4637 * include/javaprims.h: Regenerated class declarations using
4638 classes.pl; now they are complete.
4639 * classes.pl: New file.
4641 * java/lang/natMath.cc: Include <config.h>.
4642 * java/lang/reflect/natField.cc: Include <config.h>.
4643 * java/util/NativeUtil.java: Removed.
4644 * Makefile.in: Rebuilt.
4645 * Makefile.am (nat_headers): Added Math.h.
4646 * java/lang/Math.h: Removed.
4647 * java/util/natGregorianCalendar.cc: Added copyright header.
4649 * java/lang/natFloat.cc: Added copyright header.
4650 * java/lang/Byte.java: Added copyright header.
4651 * java/lang/Void.java: Added copyright header.
4652 * java/lang/Short.java: Added copyright header.
4654 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4656 * include/javaprims.h (java::io): Added bunch of missing classes.
4658 * java/io/DataInputStream.java (readLine): Added a special case
4659 for handling BufferedInputStream data to reduce the likelihood
4660 of a pushback error.
4661 (skipBytes): Added code to handle negative number of skip bytes.
4663 * java/io/StreamTokenizer.java: Rewritten.
4665 1998-10-28 Tom Tromey <tromey@cygnus.com>
4667 * java/util/natGregorianCalendar.cc (computeFields): Call
4668 getRawOffset as a method.
4670 * include/javaprims.h (java::io): Added FilterOutputStream.
4671 * Makefile.in: Rebuilt.
4672 * Makefile.am (nat_headers): Added PrintStream.h,
4673 FilterOutputStream.h.
4674 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4676 (die): New function.
4677 (run): Die if `main' not found, is not public, or is not static.
4679 * boehm.cc (_Jv_MarkObj): Use new field names.
4680 * include/java-field.h (JvGetFirstInstanceField): Use new field
4682 (JvNumInstanceFields): Likewise.
4683 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4684 (getInterfaces): Likewise.
4685 * prims.cc (CLASS_CONSTANTS): Removed.
4686 (CLASS_CONST_SIZE): Likewise.
4687 (CLASS_CONST_TAG): Likewise.
4688 (CLASS_CONST_DATA): Likewise.
4689 (CLASS_CONST_UTF8): Likewise.
4690 (WORD2UTF): Likewise.
4691 (CLASS_CLASS): Likewise.
4692 (CLASS_PRIM_SIG): Likewise.
4693 (CLASS_ARRAY_CACHE): Likewise.
4694 (HASH_CHARS): Likewise.
4695 (hashClassName): Likewise.
4696 Many changes to use new field names.
4697 * java/lang/Class.h (Class): Renamed fields to track compiler.
4699 1998-10-27 Tom Tromey <tromey@cygnus.com>
4701 * java/lang/natClass.cc: Use #pragma implementation.
4702 (getComponentType): Moved into header.
4703 (getModifiers): Likewise.
4704 (getName): Likewise.
4705 (getSuperclass): Likewise.
4706 (isArray): Likewise.
4707 (isPrimitive): Likewise.
4708 * include/jvm.h (_Jv_FindClass): Declare.
4709 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4710 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4711 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4712 * java/lang/Class.h: Rewrote from scratch.
4713 * prims.cc: Many changes to work with new Class.h.
4714 * include/java-field.h (CLASS_FIELDS): Removed.
4715 (CLASS_SFIELDS): Likewise.
4716 (CLASS_IFIELDS): Likewise.
4717 (CLASS_NFIELDS): Likewise.
4718 (CLASS_NIFIELDS): Likewise.
4719 (CLASS_NSFIELDS): Likewise.
4720 (CLASS_FSIZE): Likewise.
4721 (JvGetFirstInstanceField): Rewrote.
4722 (JvNumInstanceFields): Likewise.
4724 * java/lang/Object.h: Added copyright comment.
4726 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4728 * java/text: New package directory.
4729 * java/text/FieldPosition.java: New class.
4730 * java/text/ParsePosition.java: New class.
4731 * java/text/ParseException.java: New Exception class.
4732 * java/text/Format.java: New class.
4733 * java/text/NumberFormat.java: New (empty placeholder) class.
4734 * java/text/DateFormatSymbols.java: New class (no Locales support).
4735 * java/text/DateFormat.java: New Format class (incomplete).
4736 * java/text/SimpleDateFormat.java: New DateFormat class.
4738 * include/javaprims.h (java::test): Added new package and classes.
4739 * java/util/Calendar.java (clone): New method.
4740 * java/util/Date.java (toString): Added non-native implementation.
4741 (parse): Made public instead of synchronized.
4742 * java/util/natDate.cc (toString): Removed.
4743 * java/util/natGregorianCalendar.cc (computeFields):
4744 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4746 1998-10-27 Tom Tromey <tromey@cygnus.com>
4748 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4750 * prims.cc (lookupArray): Added explanatory comment.
4751 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4752 class. Mark the class of each object.
4753 (_Jv_MarkArray): Mark the object's class.
4755 * configure: Rebuilt.
4756 * configure.in: Create java-gc.h.
4757 * include/boehm-gc.h: New file.
4758 * include/no-gc.h: New file.
4759 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4761 * java/lang/Object.h: Include java-gc.h.
4762 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4763 friends, if defined.
4764 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4766 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4768 1998-10-26 Tom Tromey <tromey@cygnus.com>
4770 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4771 paragraph separators, not numbers.
4773 * java/io/Writer.java (write): Removed write(char) to avoid
4775 * java/util/Properties.java: Rewrote from scratch.
4776 * include/javaprims.h (java::io): Added PrintWriter,
4777 BufferedWriter, PushbackReader.
4779 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4781 * java/lang/System.java: exit() is a static method.
4783 1998-10-26 Tom Tromey <tromey@cygnus.com>
4785 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4787 (_Jv_NewStringUtf8Const): Likewise.
4788 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4789 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4791 * java/lang/Object.h (Object): Add mark_array as friend function.
4792 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4793 _Jv_AllocBytes, to ensure that header is marked.
4794 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4796 (mark_array): Push sync_info field for array.
4798 1998-10-24 Tom Tromey <tromey@cygnus.com>
4800 * java/lang/String.java (String): Updated for StringBuffer
4802 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4804 * java/lang/StringBuffer.java: Renamed fields to conform to
4805 serialization spec: buffer->value, next->count, copy->shared.
4807 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4809 * java/util/TimeZone.java: New class.
4810 * java/util/SimpleTimeZone.java: New class.
4811 * java/util/Locale.java: New file.
4812 * java/util/Calendar.java: Make almost complete.
4813 * java/util/GregorianCalendar.java
4814 * java/util/natGregorianCalendar.cc: New file.
4815 * java/util/Date.java: Re-written from scratch.
4816 * java/util/natDate.cc (setTime): Removed - no longer native.
4817 * include/javaprims.h (java::util): Add new classes.
4818 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4819 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4821 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4823 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4824 returning it as a jint.
4826 1998-10-23 Tom Tromey <tromey@cygnus.com>
4828 * prims.cc (arg_vec, main_group, main_thread): New globals.
4829 (JvRunMain): Use them.
4831 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4833 * java/io/DataInputStream.java: Rewritten.
4835 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4836 tertiary bytes with 0x80 per spec.
4838 1998-10-23 Tom Tromey <tromey@cygnus.com>
4840 * java/lang/String.java (init): Changed name of `copy' argument.
4841 * java/lang/natString.cc (init): Inverted sense of `copy'
4844 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4845 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4846 * boehm.cc (ObjectClass): New define.
4847 (ClassClass): Likewise.
4848 (mark_obj): Special-case Object and Class.
4850 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4852 * java/util/BitSet.java: Rewrote from scratch.
4854 * prims.cc (lookupArray): Removed useless cast.
4856 * java/lang/natObject.cc: Use `#pragma implementation'.
4858 * java/lang/String.java (init): Added `copy' argument.
4859 (String): Look in StringBuffer to find char array.
4860 * java/lang/natString.cc (init): Added `copy' argument.
4861 * java/lang/StringBuffer.java: Rewrote from scratch.
4863 * java/lang/Compiler.java: Rewrote from scratch.
4864 * java/lang/Throwable.java: Don't use NativeLang.
4865 * include/javaprims.h (java::lang): Don't mention NativeLang.
4866 * java/lang/Process.java: Rewrote from scratch.
4867 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4869 (currentClassLoader): Likewise.
4870 (currentLoadedClass): Likewise.
4871 * java/lang/natClass.cc (getClassLoader): Commented out.
4872 * java/lang/Class.java (getClassLoader): Commented out.
4873 * java/lang/Compiler.java: Removed.
4874 * java/lang/NativeLang.java: Removed.
4876 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4877 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4878 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4879 (_Jv_hashUtf8String): Now static.
4880 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4881 name of return type.
4883 * java/lang/Class.h (Class): Declare checkMemberAccess.
4884 * Makefile.in: Rebuilt.
4885 * Makefile.am (nat_headers): Added Member.h.
4886 * java/lang/natClass.cc: Include Member.h.
4887 (getDeclaredClasses): Call checkMemberAccess.
4888 * java/lang/Class.java (checkMemberAccess): Call
4889 SecurityManager.checkMemberAccess.
4891 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4893 * java/lang/SecurityManager.java: Rewritten.
4895 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4897 * java/applet/Applet.java, java/applet/AppletContext.java,
4898 java/applet/AppletStub.java, java/applet/AudioClip.java,
4899 java/awt/AWTError.java, java/awt/AWTException.java,
4900 java/awt/BorderLayout.java, java/awt/Button.java,
4901 java/awt/Canvas.java, java/awt/CardLayout.java,
4902 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4903 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4904 java/awt/Color.java, java/awt/Component.java,
4905 java/awt/Container.java, java/awt/Dialog.java,
4906 java/awt/Dimension.java, java/awt/Event.java,
4907 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4908 java/awt/Font.java, java/awt/FontMetrics.java,
4909 java/awt/Frame.java, java/awt/Graphics.java,
4910 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4911 java/awt/GridLayout.java, java/awt/Image.java,
4912 java/awt/Insets.java, java/awt/Label.java,
4913 java/awt/LayoutManager.java, java/awt/List.java,
4914 java/awt/MediaTracker.java, java/awt/Menu.java,
4915 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4916 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4917 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4918 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4919 java/awt/TextArea.java, java/awt/TextComponent.java,
4920 java/awt/TextField.java, java/awt/Toolkit.java,
4921 java/awt/Window.java, java/awt/image/ColorModel.java,
4922 java/awt/image/CropImageFilter.java,
4923 java/awt/image/DirectColorModel.java,
4924 java/awt/image/FilteredImageSource.java,
4925 java/awt/image/ImageConsumer.java,
4926 java/awt/image/ImageFilter.java,
4927 java/awt/image/ImageObserver.java,
4928 java/awt/image/ImageProducer.java,
4929 java/awt/image/IndexColorModel.java,
4930 java/awt/image/MemoryImageSource.java,
4931 java/awt/image/PixelGrabber.java,
4932 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4933 java/awt/peer/CanvasPeer.java,
4934 java/awt/peer/CheckboxMenuItemPeer.java,
4935 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4936 java/awt/peer/ComponentPeer.java,
4937 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4938 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4939 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4940 java/awt/peer/MenuBarPeer.java,
4941 java/awt/peer/MenuComponentPeer.java,
4942 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4943 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4944 java/awt/peer/TextAreaPeer.java,
4945 java/awt/peer/TextComponentPeer.java,
4946 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4947 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4948 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4949 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4950 java/net/MalformedURLException.java, java/net/NativeNet.java,
4951 java/net/ProtocolException.java, java/net/ServerSocket.java,
4952 java/net/Socket.java, java/net/SocketException.java,
4953 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4954 java/net/URL.java, java/net/URLConnection.java,
4955 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4956 java/net/URLStreamHandlerFactory.java,
4957 java/net/UnknownHostException.java,
4958 java/net/UnknownServiceException.java: Removed.
4960 1998-10-22 Tom Tromey <tromey@cygnus.com>
4962 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4963 finalizer is not Object.finalize.
4964 (internalAddClass): Don't set `final' member of class.
4965 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4966 other places that know about finalize() location.
4967 * java/lang/Class.h (Class): Removed `final' field.
4969 * aclocal.m4, configure: Rebuilt.
4970 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4971 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4973 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4974 * Makefile.in: Rebuilt.
4975 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4977 1998-10-21 Tom Tromey <tromey@cygnus.com>
4979 * java/lang/Object.java (finalize): Move to be first method in
4982 * configure: Rebuilt.
4983 * configure.in (GCINCS): Include contents of boehm-cflags file.
4985 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4987 * java/lang/ArrayIndexOutOfBoundsException.java
4988 (ArrayIndexOutOfBoundsException): Fixed string literal.
4989 * java/lang/StringIndexOutOfBoundsException.java
4990 (StringIndexOutOfBoundsException): Fixed string literal.
4992 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4994 * natFileDescriptorEcos.cc added.
4995 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4997 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4999 * acconfig.h: test for __int32_t and __uint32_t added.
5000 * include/config.h.in: test for __int32_t and __uint32_t added.
5001 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5002 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5003 * configure.in: test for __int32_t and __uint32_t added.
5004 * configure: test for __int32_t and __uint32_t added.
5006 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5008 * configure.in: Test for --enable ecos and link
5009 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5010 natFileDescriptorPosix.cc
5012 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5014 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5016 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5019 * java/io/CharArrayReader.java (close): Synchronize on lock
5020 object per Reader contract.
5021 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5022 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5023 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5024 Ensure that arg passed in isn't negative.
5026 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5027 constructing the superclass.
5029 * java/io/PushbackReader.java (close): Synchronize on lock
5030 object per Reader contract.
5031 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5032 (ready): Synchronize on lock obj. Throw IOException if reader
5034 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5035 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5036 Ensure that arg passed in isn't negative.
5037 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5039 * java/io/StringReader.java: Created.
5041 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5043 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5045 (read): Removed synchronized modifier to match JCL.
5046 (reset): Removed synchronized modifier to match JCL.
5047 (skip): Removed synchronized modifier to match JCL.
5049 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5051 * java/io/PushbackReader.java (PushbackReader): Made
5052 constructors public.
5054 1998-10-17 Tom Tromey <tromey@cygnus.com>
5056 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5057 constructors public.
5059 1998-10-16 Anthony Green <green@cygnus.com>
5061 * aclocal.m4, configure: Rebuilt.
5062 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5064 * configure.host: Rewrote.
5065 * Makefile.in: Rebuilt.
5066 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5067 (AM_CFLAGS): New macro.
5068 ($(c_files)): Use COMPILE macro.
5069 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5070 automake problem(s).
5072 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5074 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5076 * java/io/CharArrayReader.java: Created.
5078 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5080 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5081 size check to allow 0 per JCL.
5083 * java/io/PushbackReader.java: Created.
5085 1998-10-16 Tom Tromey <tromey@cygnus.com>
5087 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5088 <sys/time.h> includes.
5089 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5090 * include/no-threads.h: Conditionalize <unistd.h> include on
5093 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5095 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5098 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5100 * java/io/FilterReader.java: Created.
5102 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5104 * java/io/PushbackInputStream.java: Rewritten.
5106 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5107 that size passed to constructor is legal.
5108 (read): Check that args passed in are legal.
5109 (skip): Rewritten to get rid of the temporary buffer.
5110 (refill): Added marklimit check to grow the buffer.
5112 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5114 (bytesAvail): Removed.
5115 (read): Changed bytesAvail to Math.min.
5116 (skip): Changed bytesAvail to Math.min.
5118 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5119 from the throws clause.
5120 (skip): Rewritten to use a temporary buffer.
5122 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5124 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5127 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5129 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5130 to write the double one word at a time.
5132 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5134 * java/io/BufferedInputStream.java: Rewritten.
5136 1998-10-12 Tom Tromey <tromey@cygnus.com>
5138 * jni.cc: Include config.h and stddef.h.
5140 * java/lang/Class.h (_dispatchTable): Removed again.
5141 Removed all ACC_* defines again.
5143 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5145 * Makefile.am (nat_files): Add netField.o.
5146 (libjava_a_SOURCES): Add jni.cc.
5147 (java/lang/reflect/Field.h): New rule.
5148 * Makefile.in: Re-generated.
5149 * include/javaprims.h: Add some extra class and typedefs.
5150 * include/jni.h: New file.
5153 * include/java-field.h: New file.
5154 * include/jvm.h: #include <java-field.h>.
5155 * boehm.cc: #include <java-field.h>.
5156 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5157 * java/lang/reflect/Member.java: New class.
5158 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5159 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5161 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5163 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5164 testsuite/Makefile.in: Rebuilt.
5165 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5166 * configure.host: Created.
5168 1998-10-10 Tom Tromey <tromey@cygnus.com>
5170 * java/lang/natObject.cc (sync_init): Always allocate a new
5173 1998-10-09 Tom Tromey <tromey@cygnus.com>
5175 * java/io/ByteArrayInputStream.java (mark): Renamed from
5178 * java/io/FileOutputStream.java (finalize): Removed.
5179 * java/io/FileDescriptor.java (finalize): New method.
5181 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5183 * ByteArrayInputStream.java: Corrected status comment.
5185 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5187 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5189 1998-10-08 Tom Tromey <tromey@cygnus.com>
5191 * prims.cc (lookupArray): Use static array to initialize list of
5194 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5196 * prims.cc (lookupArray): Initialize the msize for new
5199 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5201 * configure: Rebuilt.
5202 * configure.in: Check for fsync and sleep.
5203 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5205 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5206 HAVE_SLEEP. Include config.h.
5208 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5209 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5212 1998-10-08 Tom Tromey <tromey@cygnus.com>
5214 * java/io/natFile.cc: Don't include SecurityManager.h.
5215 (performList): Renamed.
5216 (performMkdir): Likewise.
5217 (performRenameTo): Likewise.
5218 (performDelete): Likewise.
5220 * java/io/File.java (performDelete): Renamed from natDelete.
5221 (list): Now written in Java.
5222 (performList): New method.
5223 (performMkdir): New method.
5224 (mkdir): Now written in Java.
5225 (performRenameTo): New method.
5226 (renameTo): Now written in Java.
5228 1998-10-06 Tom Tromey <tromey@cygnus.com>
5230 * Makefile.in: Rebuilt.
5231 * Makefile.am (ETAGS_ARGS): New macro.
5232 (TAGS_DEPENDENCIES): Likewise.
5234 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5236 * Makefile.in: Rebuilt.
5237 * Makefile.am: Use -classpath option with javac.
5239 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5241 * java/io/FileOutputStream.java (finalize): Call
5244 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5246 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5248 * java/lang/mprec.c: Ditto.
5250 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5253 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5255 * java/io/InputStream.java (skip): Make local var i a long.
5257 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5259 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5260 * prims.cc (lookupArray): Use memcpy, not memmove.
5261 * include/config.h.in: Rebuilt.
5262 * acconfig.h (HAVE_MEMCPY): Added.
5263 * configure: Rebuilt.
5264 * configure.in: Check for memcpy again.
5266 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5267 String.compareTo, not ==.
5269 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5270 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5271 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5272 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5273 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5274 into new array's dtable.
5275 (_Jv_AllocObject): Use _Jv_DispatchTable.
5276 (_Jv_NewPrimArray): Likewise.
5277 (_Jv_NewObjectArray): Likewise.
5279 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5281 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5282 offending index value.
5283 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5285 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5286 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5288 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5290 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5292 * java/io/OutputStream.java (write): Use off and len parameters to
5293 output partial byte array.
5295 * java/io/BufferedReader.java, java/io/FileReader.java,
5296 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5297 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5298 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5299 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5301 * include/javaprims.h (java::lang): Added
5302 ExceptionInInitializerError, IllegalStateException,
5303 NoSuchFieldException, and UnsupportedOperationException.
5305 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5307 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5310 * include/java-array.h (__JArray): Added clone method.
5311 * prims.cc (CloneableClass): New define.
5312 (lookupArray): Initialize array class to indicate that it
5313 implements Cloneable.
5315 * java/lang/Class.h: Removed all ACC_* defines.
5316 * prims.cc: Include Modifier.h.
5317 (_Jv_LookupInterfaceMethod): Use methods in
5318 java.lang.reflect.Modifier, not ACC_ defines.
5320 * java/lang/Class.h (Class): Declare getClasses,
5321 getDeclaredClasses, getDeclaringClass, getModifiers,
5322 * java/lang/Class.java: Rewrote from scratch.
5324 * include/javaprims.h (java::lang): Added reflect and
5326 * Makefile.in: Rebuilt.
5327 * Makefile.am (nat_headers): Added Modifier.h.
5329 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5332 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5334 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5335 instead of test and abort.
5337 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5338 remove compiler warning.
5340 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5342 * java/lang/natDouble.cc: zero terminate string.
5343 * strtod.c: Set errno if no digits are found in fraction.
5345 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5347 * java/lang/reflect/Modifier.java: New file.
5349 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5350 * java/lang/VerifyError.java: Rewrote from scratch.
5351 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5352 * java/lang/UnknownError.java: Rewrote from scratch.
5353 * java/lang/StackOverflowError.java: Rewrote from scratch.
5354 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5355 * java/lang/InternalError.java: Rewrote from scratch.
5356 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5357 * java/lang/ExceptionInInitializerError.java: New file.
5358 * java/lang/Error.java: Rewrote from scratch.
5359 * java/lang/ClassFormatError.java: Rewrote from scratch.
5360 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5361 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5362 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5363 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5364 * java/lang/LinkageError.java: Rewrote from scratch.
5365 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5367 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5369 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5370 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5372 * include/cni.h (JvAllocObject): Moved from prims.cc.
5374 * prims.cc (JvAllocObject): Moved to cni.h.
5375 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5376 (finalize_name): Removed.
5378 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5380 * java/lang/Class.h (Class): Added size() method.
5381 * prims.cc (_Jv_MonitorEnter): Removed.
5382 (_Jv_MonitorExit): Removed.
5383 * java/lang/Object.h (JvSyncInfo): Removed.
5384 * Makefile.in: Rebuilt.
5385 * Makefile.am (nat_headers): Added Cloneable.h,
5386 CloneNotSupportedException.h.
5387 * java/lang/Object.h: Rewrote.
5388 * java/lang/natObject.cc: Rewrote from scratch.
5389 * java/lang/Object.java: Rewrote from scratch.
5391 * java/io/natFile.cc: Conditionally include <dirent.h>.
5392 (list): If no <dirent.h>, always return NULL.
5393 * configure: Rebuilt.
5394 * configure.in: Check for dirent.h.
5396 * prims.cc (lookupArray): Don't use sprintf.
5398 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5405 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5406 name conflict with method.
5408 * include/javaprims.h (java::util): Added HashtableEntry.
5410 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5412 * java/util/Hashtable.java: Rewritten.
5414 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5416 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5420 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5423 * posix-threads.cc (_Jv_CondWait): Now returns int.
5424 * include/javaprims.h (java::lang): Added
5425 IllegalMonitorStateException.
5426 * Makefile.in: Rebuilt.
5427 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5428 * include/no-threads.h (_Jv_CondDestroy): Removed.
5429 (_Jv_MutexDestroy): Removed.
5430 (_Jv_CondWait): Now returns int.
5431 (_Jv_CondNotify): Likewise. Added mutex argument.
5432 (_Jv_CondNotifyAll): Likewise.
5433 (_Jv_MutexLock): Always succeed.
5434 (_Jv_MutexUnlock): Likewise.
5435 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5436 (_Jv_HaveMutexDestroy): Define.
5437 (_Jv_CondNotify): Now returns int. Added mutex argument.
5438 (_Jv_CondNotifyAll): Likewise.
5439 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5440 (_Jv_MutexDestroy): Removed.
5441 (_Jv_CondWait): Now returns int.
5442 (_Jv_CondNotify): Likewise. Added mutex argument.
5443 (_Jv_CondNotifyAll): Likewise.
5444 * java/lang/natObject.cc (finalize_sync_info): New function.
5445 (init_mutex): Initialize `init' and register finalizer if
5448 (init_mutex): Use it.
5450 (notifyAll): Use it.
5452 (notify): Throw IllegalMonitorStateException on failure.
5453 (notifyAll): Likewise.
5454 (wait): Likewise. Also, throw InterruptedException if
5456 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5457 InterruptedException.h, IllegalArgumentException.h.
5458 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5460 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5461 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5462 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5463 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5464 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5465 * quick-threads.cc: Renamed all `JvPriv' functions.
5466 * prims.cc: Renamed all `JvPriv' functions.
5467 * posix-threads.cc: Renamed all `JvPriv' functions.
5468 * nogc.cc: Renamed all `JvPriv' functions.
5469 * no-threads.cc: Renamed all `JvPriv' functions.
5470 * boehm.cc: Renamed all `JvPriv' functions.
5471 * include/quick-threads.h: Renamed all `JvPriv' functions.
5472 * include/posix-threads.h: Renamed all `JvPriv' functions.
5473 * include/no-threads.h: Renamed all `JvPriv' functions.
5474 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5476 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5478 (JvPrivCondNotify): Do nothing.
5479 (JvPrivCondNotifyAll): Do nothing.
5481 * prims.cc (processClass): Handle case where state is
5484 * java/lang/natFirstThread.cc: Include <stdlib.h>
5486 * configure: Rebuilt.
5487 * configure.in: Fixed sense of --enable-libjava-debug.
5489 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5490 it can be used afterward by the assertion.
5492 * configure: Rebuilt.
5493 * configure.in: When cross-compiling, assume alloca.
5495 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5496 __builtin_alloca (autoconf docs are wrong here).
5498 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5500 (available): Use `FD_ZERO' (typo fix).
5502 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5504 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5505 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5507 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5508 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5511 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5513 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5515 * java/lang/natDouble.cc: Declare alloca safely.
5517 * configure, include/config.h.in: Rebuilt.
5518 * configure.in: Add alloca check.
5520 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5522 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5523 condition while calling notify.
5524 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5525 (interrupt): Hold mutex for interrupt condition while calling
5528 * java/lang/natString.cc (init): Allocate and try to read `count'
5529 characters, not `count - offset' characters.
5531 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5532 Correctly compute `count'.
5534 * java/lang/Boolean.java (getBoolean): Return false if property
5537 * java/lang/System.java (setProperties): Set prop_init.
5539 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5541 * java/io/PrintStream.java (println): Use line.separator, not
5543 * java/lang/System.java (out, err): Make both autoflush streams.
5544 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5546 * include/config.h.in: Rebuilt.
5547 * acconfig.h (HAVE_MEMCPY): Removed.
5548 * configure: Rebuilt.
5549 * configure.in: Never define HAVE_MEMCPY.
5551 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5553 (_Jv_AllocString): Use JvAllocObject again.
5554 * java/lang/Class.h (thread): New field.
5555 (_Jv_AllocString): No longer a friend.
5556 * prims.cc (processClass): Removed dead code. Changed to more
5557 closely follow the Java Language Specification.
5558 (processClass): Return early if already at the right state.
5560 * prims.cc (JvNewStringUTF): Removed.
5561 * include/cni.h (JvNewStringUTF): New function.
5562 (_Jv_NewStringUTF): Declare as `extern "C"'.
5563 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5565 * java/lang/natDouble.cc: Added copyright info and header
5566 comment. Include <stdlib.h>.
5567 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5568 bytes as are chars in string.
5570 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5572 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5576 * java/lang/System.java (init_properties): Now native.
5577 * java/lang/natSystem.cc (init_properties): New method.
5578 Include java/util/Properties.h.
5580 * Makefile.in: Rebuilt.
5581 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5582 OutputStreamWriter.h, ByteArrayInputStream.h,
5583 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5584 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5585 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5586 Properties.h, Hashtable.h, Dictionary.h.
5589 * include/javaprims.h (java::io): Added Reader, Writer,
5590 InputStreamReader, OutputStreamWriter,
5591 UnsupportedEncodingException, ByteArrayInputStream,
5592 ByteArrayOutputStream, EOFException, SyncFailedException,
5593 PushbackInputStream.
5594 (java::lang): Added Cloneable.
5595 (java::util): Added NoSuchElementException, VectorEnumeration,
5596 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5598 * java/io/PipedReader.java: New file.
5600 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5602 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5605 * java/io/io-defs.h: Removed.
5607 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5608 (FileInputStream): Use new constructor. Can throw IOException.
5610 * java/lang/System.java (getProperty): Don't throw
5611 NullPointerException.
5613 * java/io/RandomAccessFile.java: Rewrote from scratch.
5615 * java/io/natFileDescriptor.cc: Include EOFException.h.
5617 (length): New method.
5618 (getFilePointer): New method.
5620 (available): New method.
5621 * java/io/FileDescriptor.java (SET, CUR): New constants.
5622 (seek, length, getFilePointer, read, available): New decls.
5624 * java/io/PipedWriter.java: New file.
5625 * java/io/StringWriter.java: New file.
5626 * java/io/CharArrayWriter.java: New file.
5627 * java/io/CharConversionException.java: New file.
5628 * java/io/BufferedWriter.java: New file.
5629 * java/io/FilterWriter.java: New file.
5630 * java/io/FileWriter.java: New file.
5632 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5633 OutputStreamWriter.h, NullPointerException.h,
5634 ByteArrayInputStream.h, InputStreamReader.h.
5635 (getBytes): New method.
5636 (init): Throw NullPointerException.
5637 (init): New function.
5638 * java/lang/String.java (getBytes): Added missing decl.
5639 (getBytes): New method.
5640 (String): Added byte[]-based constructors.
5641 (copyValueOf): Wrote.
5642 (init): Declare variant which takes byte array and encoding.
5643 Import java.io.UnsupportedEncodingException.
5645 * java/io/File.java: Rewrote from scratch.
5646 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5647 * java/io/FileDescriptor.java: Rewrote from scratch.
5648 * java/io/FilenameFilter.java: Rewrote from scratch.
5650 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5652 * java/io/SyncFailedException.java: New file.
5653 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5654 * java/io/InterruptedIOException.java: Rewrote from scratch.
5655 * java/io/FileNotFoundException.java: Rewrote from scratch.
5656 * java/io/EOFException.java: Rewrote from scratch.
5657 * java/io/IOException.java: Rewrote from scratch.
5658 * java/io/PrintStream.java: Rewrote from scratch.
5659 * java/io/DataOutputStream.java: Rewrote from scratch.
5660 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5661 * java/io/FilterOutputStream.java: Rewrote from scratch.
5662 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5663 * java/io/PipedOutputStream.java: Rewrote from scratch.
5664 * java/io/FileOutputStream.java: Rewrote from scratch.
5665 * java/io/OutputStream.java: Rewrote from scratch.
5666 * java/io/DataOutput.java: Rewrote from scratch.
5668 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5670 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5672 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5674 * configure.in: Add --enable-libjava-debug
5676 * Makefile.am (nat_headers): Add java/lang/Float.h and
5679 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5681 * Makefile.in, configure, include/config.h.in: Rebuilt.
5683 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5685 * java/lang/Float.java: Rewritten
5686 * java/lang/Double.java: Rewritten
5687 * java/lang/natFloat.cc: toString() added.
5688 * java/lang/natDouble.cc: toString() added.
5689 * java/lang/natDouble.cc: doubleValueOf() added.
5690 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5691 java/lang/strtod.c: added.
5692 * ieeefp.h: __sparc added.
5693 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5695 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5697 * include/javaprims.h (java::lang): Added
5698 CloneNotSupportedException.
5700 * java/lang/Object.java (clone): No longer native. Implemented.
5701 * java/lang/natObject.cc (clone): Removed.
5703 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5705 * prims.cc: Don't make definitions `extern "C"'.
5706 (_Jv_RegisterClass): Renamed from registerClass.
5707 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5708 (_Jv_NewArray): Likewise.
5709 (_Jv_NewMultiArray): Likewise.
5710 (_Jv_CheckCast): Likewise.
5711 (_Jv_LookupInterfaceMethod): Likewise.
5712 (_Jv_CheckArrayStore): Likewise.
5713 (_Jv_RegisterClass): Likewise.
5715 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5716 * configure: Rebuilt.
5717 * configure.in: Don't check for fmod; it is provided by the fdlibm
5719 * prims.cc (fmod): Removed.
5721 * java/lang/natString.cc (charAt): Use _Jv_uint.
5722 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5723 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5724 (equalUtf8Consts): Likewise.
5725 (internalAddClass): Use _Jv_uint.
5726 (processClass): Likewise.
5727 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5728 (_Jv_uint): Renamed from uint32.
5729 (struct _Jv_Utf8Const): Changed members to use new type names.
5731 * configure: Rebuilt.
5732 * configure.in: Don't check for memcpy. Require memmove and a way
5734 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5736 (currentTimeMillis): Don't use #error.
5738 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5740 * java/lang/Math.java: static member random renamed to random_ to
5741 avoid conflict with member function of the same name.
5742 * include/javaprims.h: java.util.Random added.
5744 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5746 * include/java-chartables.h: Regenerated.
5747 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5750 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5752 * java/lang/Math.java: Rewritten.
5753 * java/lang/natMath.cc: New file.
5754 * Files added from fdlibm:
5755 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5756 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5757 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5758 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5759 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5760 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5761 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5762 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5763 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5764 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5765 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5766 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5767 java/lang/k_cos.c, java/lang/sf_ceil.c,
5768 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5769 java/lang/ieeefp.h, java/lang/fdlibm.h
5770 * Makefile.am: rules added for compiling C files from fdlibm.
5772 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5774 * chartables.pl: Minor documentation fixes.
5776 * configure: Rebuilt.
5777 * configure.in: Fixed --help output for --enable-fast-character.
5779 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5781 * configure: Rebuilt.
5782 * configure.in: Recognize --enable-fast-character.
5783 * acconfig.h (COMPACT_CHARACTER): New define.
5784 * include/config.h.in: Rebuilt.
5785 * include/java-chartables.h: New file.
5786 * Makefile.in: Rebuilt.
5787 * Makefile.am (nat_files): Added natCharacter.o.
5788 * java/lang/natCharacter.cc: New file.
5789 * chartables.pl (set_attribute): New function.
5790 (@attributes, @second_attributes): New globals.
5791 ($ROMAN_START, $ROMAN_END): Likewise.
5792 (process_char): Call set_attribute when required.
5793 (print_char): Just print hex value.
5794 (print_block): Generate C++ syntax.
5795 (print_numerics): Likewise.
5796 (print_single_map): Likewise.
5797 (print_all_block): Likewise.
5798 (print_case_table): Likewise.
5799 (print_fast_tables): New function.
5800 Generate C++ code suitable for a header file.
5801 * java/lang/Character.java (table_search): Removed.
5802 (digit_value): Now native.
5803 (getNumericValue): Likewise.
5804 (getType): Likewise.
5805 Removed all automatically-generated tables.
5806 (Tamil_Digit_One): Removed.
5807 (isSpaceChar): Now native.
5808 (isTitleCase): Likewise.
5809 (isLowerCase): Likewise.
5810 (isUpperCase): Likewise.
5811 (toLowerCase): Likewise.
5812 (toTitleCase): Likewise.
5813 (toUpperCase): Likewise.
5814 (isDefined): Fixed sense of test.
5816 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5818 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5820 (regionMatches): Likewise.
5822 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5824 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5826 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5828 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5831 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5834 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5836 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5838 * prims.cc (instanceof_class): Removed.
5839 (instanceof_array): Likewise.
5840 (instanceof): Likewise.
5841 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5842 (_Jv_CheckCast): Likewise.
5843 * java/lang/natClass.cc (isAssignableFrom): New method.
5844 * java/lang/Class.java (isAssignableFrom): Now native.
5846 * include/cni.h (JvThrow): Use `extern inline'.
5847 (JvAllocObject): Likewise.
5848 (JvInitClass): Likewise.
5850 * java/lang/natSystem.cc (arraycopy): Only check class of source
5853 * prims.cc (_Jv_CheckArrayStore): Wrote.
5854 (_Jv_MonitorEnter): Prefer `JvThrow'.
5855 Include ArrayStoreException.h.
5856 (_Jv_CheckCast): Indentation cleanup.
5858 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5860 * chartables.pl: New file.
5861 * java/lang/Character.java: Rewrote from scratch.
5863 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5865 * java/lang/ArithmeticException.java,
5866 java/lang/ArrayIndexOutOfBoundsException.java,
5867 java/lang/ArrayStoreException.java,
5868 java/lang/ClassCastException.java,
5869 java/lang/ClassNotFoundException.java,
5870 java/lang/CloneNotSupportedException.java,
5871 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5872 java/lang/IllegalArgumentException.java,
5873 java/lang/IllegalMonitorStateException.java,
5874 java/lang/IllegalThreadStateException.java,
5875 java/lang/IndexOutOfBoundsException.java,
5876 java/lang/InstantiationException.java,
5877 java/lang/InterruptedException.java,
5878 java/lang/NegativeArraySizeException.java,
5879 java/lang/NoSuchMethodException.java,
5880 java/lang/NullPointerException.java,
5881 java/lang/NumberFormatException.java,
5882 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5883 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5885 * java/lang/IllegalStateException.java,
5886 java/lang/NoSuchFieldException.java,
5887 java/lang/UnsupportedOperationException.java: Created.
5889 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5891 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5892 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5894 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5896 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5898 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5900 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5902 * Makefile.in: Rebuilt.
5904 * include/javaprims.h (java::lang): Added
5905 StringIndexOutOfBoundsException.
5907 * java/lang/String.java: Added header comment and FIXME comment for
5908 missing constructors/methods.
5909 (endsWith): Adjusted offset into string to look at just the last chars.
5910 Commented out undocumented method.
5912 * java/lang/natString.cc: Added includes for
5913 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5914 (String::init): Throw StringIndexOutOfBoundsException.
5915 (String::charAt): Throw StringIndexOutOfBoundsException.
5916 (String::substring): Throw StringIndexOutOfBoundsException.
5917 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5918 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5919 (String::compareTo): Return difference/offset between chars/strings.
5921 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5923 * java/lang/Boolean.java (TYPE): Added comment.
5925 * java/lang/Byte.java (decode): Added - commented out until dependent
5926 code for Integer is written.
5927 (compareTo): JDK 1.2 methods written.
5928 (hashCode): Added comment to note that values have been verified.
5930 * java/lang/Short.java (decode): Added - commented out until dependent
5931 code for Integer is written.
5932 (compareTo): JDK 1.2 methods written.
5933 (hashCode): Added comment to note that values have been verified.
5935 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5937 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5939 * include/javaprims.h (java::lang): Added VirtualMachineError,
5941 * Makefile.in: Rebuilt.
5942 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5943 VirtualMachineError.h.
5944 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5945 (lookupArray): Likewise.
5946 (makeUtf8Const): Likewise.
5947 (_Jv_AllocObject): Likewise.
5948 (_Jv_NewObjectArray): Likewise.
5949 Include OutOfMemoryError.h.
5951 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5952 to use JvNewStringLatin1.
5954 * java/io/io-defs.h: Include java/lang/IOException.h.
5955 * Makefile.in: Rebuilt.
5956 * Makefile.am (nat_headers): Added
5957 ArrayIndexOutOfBoundsException.h,
5958 ClassFormatError.h,ClassNotFoundException.h,
5959 ClassCircularityError.h, ClassCastException.h,
5960 IncompatibleClassChangeError.h, AbstractMethodError.h,
5961 IllegalAccessError.h, LinkageError.h, Error.h,
5962 NegativeArraySizeException.h, IOException.h.
5963 * include/cni.h (SignalError): Removed declaration.
5964 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5965 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5966 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5967 (newInstance): Likewise.
5968 (forName): Likewise.
5969 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5971 (read): Use JvThrow, not SignalError.
5976 (open_read): Likewise.
5977 (open_write): Likewise.
5980 (newstr): New function.
5981 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5983 (lastModifiedUnchecked): Likewise.
5984 (lengthUnchecked): Likewise.
5985 * include/javaprims.h (sorry): Removed declaration.
5986 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5987 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5988 ClassCastException, IncompatibleClassChangeError,
5989 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5990 * prims.cc (instanceof_array): Use JvFail, not sorry.
5992 Include ArrayIndexOutOfBoundsException.h,
5993 ClassFormatError.h,ClassNotFoundException.h,
5994 ClassCircularityError.h, ClassCastException.h,
5995 IncompatibleClassChangeError.h, AbstractMethodError.h,
5996 IllegalAccessError.h, NegativeArraySizeException.h.
5997 (_Jv_ThrowBadArrayIndex): Implemented.
5998 (JvNewStringUTF): Use JvFail, not sorry.
5999 (_Jv_FindClass): Likewise.
6000 (_Jv_NewArray): Likewise.
6001 (throwException): Removed.
6002 (getClass): Use JvThrow.
6003 (processClass): Likewise.
6004 (_Jv_NewObjectArray): Likewise.
6005 (_Jv_NewMultiArray): Likewise.
6006 (_Jv_CheckCast): Likewise.
6007 (_Jv_LookupInterfaceMethod): Likewise.
6008 (SignalError): Removed.
6009 (getClass): Use _Jv_NewStringUtf8Const to create String.
6011 * java/lang/natSystem.cc (arraycopy): Throw
6012 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6014 * Makefile.in: Rebuilt.
6015 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6017 * include/java-array.h: Mention gcjh, not gjavah.
6019 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6020 (canReadUnchecked): Likewise.
6021 (canWriteUnchecked): Likewise.
6022 (isFileUnchecked): Likewise.
6023 * java/io/natFileDescriptor.cc: Don't include cni.h.
6025 * java/lang/Thread.java (run__): Declare.
6026 * java/lang/natThread.cc (run__): New method, to avoid compiler
6028 (start): Use run__, not run_.
6030 * java/io/io-defs.h: Include cni.h and jvm.h.
6032 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6034 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6035 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6036 to natString.cc (with suitable renaming, inlines etc).
6037 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6038 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6039 * java/lang/String.h: Removed - now generated using gjavah.
6040 * java/lang/String.java: Re-written from scratch. Many native methods.
6041 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6042 * java/lang/natString.cc: Many functions re-written for "compact
6043 strings" representation, or native java.lang.String methods added.
6044 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6045 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6046 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6047 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6048 * include/cni.h: Add inline method.
6049 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6050 * include/javaprims.h: Moved some stuff frm String.h.
6051 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6052 * Makefile.am (nat_header): Added Character.h and String.h.
6053 (String.h): Add new rule.
6055 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6057 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6059 * posix-threads.cc: Include cni.h, jvm.h.
6060 * quick-threads.cc: Include cni.h, jvm.h.
6061 * nogc.cc: Include cni.h, not javaprims.h.
6062 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6063 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6064 include java-assert.h.
6065 * java/lang/natSystem.cc: Include cni.h. Don't include
6067 * java/lang/natRuntime.cc: Include cni.h. Don't include
6069 * prims.cc: Rearranged #include ordering. Don't include
6070 java-array.h or java-assert.h.
6071 * boehm.cc: Include config.h, cni.h.
6072 * exception.cc: Include config.h, cni.h.
6073 * include/jvm.h: Include java-assert.h.
6074 * include/cni.h: Include java/lang/Object.h. Don't include
6075 java-threads.h or java-array.h.
6077 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6079 * java/lang/Boolean.java: Rewritten.
6081 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6083 * java/lang/natFirstThread.cc (main_func): New typedef.
6084 (run): Use main_func, not JvPrivThreadStartFunc.
6085 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6087 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6089 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6092 Can't throw Java exceptions with C++ `throw':
6093 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6094 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6095 (setPriority): Likewise.
6099 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6100 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6102 Can't catch Java exceptions from C++:
6103 * java/lang/natThread.cc (finish_): New method.
6105 * java/lang/Thread.java (run_): Rewrote in Java.
6106 (finish_): New native method.
6108 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6110 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6112 * include/javaprims.h (java::io): Added Serializable.
6114 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6116 * java/util/EmptyStackException.java,
6117 java/util/NoSuchElementException.java: Rewritten.
6119 * java/util/ConcurrentModificationException.java,
6120 java/util/MissingResourceException.java,
6121 java/util/TooManyListenersException.java: Created.
6123 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6125 * include/cni.h (JvThrow): New function.
6126 * include/javaprims.h (_Jv_Throw): Declare.
6128 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6130 * java/util/Observable.java: Rewritten.
6132 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6134 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6135 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6136 Include NullPointerException.h.
6138 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6140 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6141 assignability checks. Don't bother using memcpy.
6143 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6145 * include/quick-threads.h (JvPrivThreadWait): New function.
6146 * include/no-threads.h (JvPrivThreadWait): New function.
6147 * include/posix-threads.h (JvPrivThreadWait): New function.
6148 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6150 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6152 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6153 offsets by size of type that is being copied.
6155 * java/lang/natThread.cc (start): Don't pass `object' argument to
6157 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6158 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6160 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6161 always pass thread as object.
6162 * include/quick-threads.h, include/posix-threads.h,
6163 include/no-threads.h (JvPrivThreadStart): Removed `object'
6166 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6168 * java/util/Dictionary.java: Rewritten.
6170 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6172 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6173 (JvPrivThreadDestroy): Likewise.
6175 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6177 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6179 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6181 * java/lang/natSystem.cc: Rewrote from scratch.
6182 * java/lang/System.java: Rewrote from scratch.
6183 * java/lang/Class.h (Class): Declare isAssignableFrom.
6184 * include/javaprims.h (java::lang): Added ArrayStoreException,
6185 IndexOutOfBoundsException.
6186 * Makefile.in: Rebuilt.
6187 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6188 IndexOutOfBoundsException.h.
6189 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6190 * include/jvm.h (_Jv_HashCode): New function.
6192 * java/lang/natThread.cc (suspend): Call checkAccess.
6194 * java/lang/Thread.java (setDaemon): Call checkAccess.
6196 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6198 * java/lang/Runtime.java: Rewrote from scratch.
6199 * java/lang/natRuntime.cc: Rewrote from scratch.
6201 * nogc.cc (JvPrivGCTotalMemory): New function.
6202 (JvPrivGCFreeMemory): Likewise.
6203 (total): New global.
6204 (JvPrivAllocObj): Increment total.
6205 (JvPrivAllocArray): Likewise.
6206 (JvPrivAllocBytes): Likewise.
6207 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6208 * boehm.cc (JvPrivGCTotalMemory): New function.
6209 (sum_blocks): Likewise.
6210 (JvPrivGCFreeMemory): Likewise.
6212 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6214 * include/javaprims.h (java::lang): Added FirstThread.
6215 * java/lang/natFirstThread.cc: New file.
6216 * java/lang/FirstThread.java: New file.
6217 * prims.cc (main_signature): Removed.
6218 (main_name): Removed.
6219 #include FirstThread.h.
6220 * Makefile.in: Rebuilt.
6221 * Makefile.am (TFRIEND): Removed.
6222 (java/lang/Thread.h): Likewise.
6223 (FTFRIEND): New macro.
6224 (java/lang/FirstThread.h): New target.
6225 (nat_files): Added natFirstThread.o.
6226 (nat_headers): Added FirstThread.h.
6227 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6228 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6230 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6234 * java/lang/natThread.cc (start): Synchronize the thread.
6235 (stop): Synchronize the thread.
6237 * java/lang/ThreadDeath.java: Rewrote from scratch.
6239 * Makefile.in: Rebuilt.
6240 * Makefile.am (TGFRIEND): New macro.
6241 (java/lang/ThreadGroup.h): New target.
6242 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6244 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6246 * nogc.cc: Include config.h.
6248 * java/lang/ThreadGroup.java: Rewrote from scratch.
6250 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6252 * java/lang/Thread.java (checkAccess): Only call in to security
6253 manager if it exists.
6254 (Thread): Don't check access when creating the first thread. Add
6255 this thread to the appropriate ThreadGroup.
6257 * java/lang/natThread.cc (run_): Call uncaughtException method on
6260 * java/lang/Runnable.java: Rewrote from scratch.
6261 * java/lang/Thread.java: Updated copyright comment to correct
6264 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6266 * java/util/Random.java: Rewritten.
6268 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6270 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6271 trailing 0 in array[].
6273 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6275 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6276 and RUNTESTFLAGS from AM_MAKEFLAGS.
6277 (SUBDIRS): Conditionally include testsuite.
6278 * Makefile.in: Rebuilt.
6280 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6282 * java/lang/Object.h: Include java-assert.h.
6284 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6286 * Makefile.am: Add testsuite directory.
6287 * configure.in: Build testsuite/Makefile.
6288 * Makefile.in, configure: Rebuilt.
6290 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6292 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6293 * include/jvm.h (_Jv_StartFirstThread): Declare.
6295 * include/javaprims.h (java::lang): Added Exception,
6298 * Makefile.in: Rebuilt.
6299 * Makefile.am (nat_headers): Added NullPointerException.h,
6300 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6301 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6302 (java/lang/Thread.h): New target.
6303 (TFRIEND): New macro
6305 * include/java-assert.h (JvFail): Use 0 and not NULL.
6307 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6308 instead of assuming we are a friend of Thread.
6309 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6310 instead of assuming we are a friend of Thread.
6312 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6314 * java/lang/natThread.cc: Rewrote from scratch.
6315 * java/lang/Thread.java: Rewrote from scratch.
6316 * prims.cc (JvRunMain): Use new Thread constructor.
6317 * include/javaprims.h (java::lang): Added InterruptedException.
6318 * Makefile.in: Rebuilt.
6319 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6320 * java/lang/Thread.h: Removed.
6321 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6322 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6324 * posix-threads.cc (JvPrivThreadJoin): Removed.
6325 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6326 (really_start): Don't notify join_cond.
6327 (JvPrivThreadStart): Added `data' argument.
6328 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6329 (JvPrivThreadJoin): Likewise.
6330 Use JvFail instead of sorry.
6331 (JvPrivThreadSuspend): Removed.
6332 (JvPrivThreadResume): Removed.
6333 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6334 (JvPrivThreadJoin): Likewise.
6335 (JvPrivThreadSuspend): Use JvFail.
6336 (JvPrivThreadResume): Likewise.
6337 (JvPrivThreadSuspend): Removed.
6338 (JvPrivThreadResume): Likewise.
6339 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6340 (JvPrivThread_t): Removed join_mutex, join_cond.
6341 Use JvFail instead of sorry.
6342 (JvPrivThreadSuspend): Removed.
6343 (JvPrivThreadResume): Likewise.
6345 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6347 * java/util/Observer.java: Rewritten
6348 * java/util/Enumeration.java: Rewritten
6350 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6352 * java/util/StringTokenizer.java: Rewritten
6353 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6354 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6355 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6357 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6359 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6362 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6363 Include java-assert.h.
6364 * include/java-assert.h: New file.
6365 * prims.cc (_Jv_Abort): New function.
6366 Include java-assert.h, not assert.h.
6367 (_Jv_MonitorExit): Use JvAssert.
6368 (resolveConstants): Likewise.
6369 (processClass): Likewise.
6370 (JvRunMain): Assert that method is found.
6372 * configure: Rebuilt.
6373 * configure.in: Check for test subdir.
6374 * Makefile.in: Rebuilt.
6375 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6377 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6378 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6380 * prims.cc (resolveConstants): Removed unused variables.
6381 (processClass): Likewise.
6383 * include/quick-threads.h (JvPrivThreadCurrent): Use
6385 * quick-threads.cc (destroy_data): New function.
6386 (JvPrivInitThreads): Create key.
6387 (JvPrivThreadKey): New global.
6388 (JvPrivThreadStart): Use coop_setspecific.
6390 * include/quick-threads.h, include/posix-threads.h,
6391 include/no-threads.h, no-threads.cc, quick-threads.cc,
6392 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6394 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6396 * include/no-threads.h (JvPrivThreadInitData): Don't set
6399 * include/quick-threads.h (JvPrivCondWait): coop function now
6401 (JvPrivThreadJoin): Likewise.
6403 * java/lang/Thread.h (Thread): Updated declaration of
6405 * include/quick-threads.h, include/posix-threads.h: Updated
6406 declaration of JvPrivThreadStart.
6407 * include/no-threads.h (JvPrivThreadStart): Changed definition
6409 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6410 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6411 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6413 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6415 * quick-threads.cc (qthrow): New function.
6416 (JvPrivInitThreads): New function.
6417 (started): New global.
6418 (JvPrivThreadStart): Call coop_start if required.
6419 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6420 (JvPrivThreadDestroy): Likewise.
6421 (JvPrivInitThreads): Removed.
6422 * include/posix-threads.h (JvPrivThreadCancel): Added error
6424 * java/lang/natThread.cc (stop_): Pass exception to
6427 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6429 * include/javaprims.h (java::lang): Added
6430 IllegalArgumentException, IllegalThreadStateException, Math,
6431 NullPointerException, ThreadDeath.
6432 (java::util): Added Enumeration.
6434 * Makefile.in: Rebuilt.
6435 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6437 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6439 (threadsv): Renamed from threads to avoid clash in C++ header.
6440 (groupsv): Likewise.
6441 * include/no-threads.h (JvPrivThreadStart): Removed.
6442 * no-threads.cc (JvPrivThreadStart): New function.
6443 * java/lang/Thread.java (Thread): New constructor for internal use.
6444 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6445 (Thread): Declare constructor.
6446 * prims.cc (JvRunMain): Create the initial Thread and
6448 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6449 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6450 Removed `daemon' argument.
6452 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6453 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6455 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6457 * Makefile.in: Rebuilt.
6458 * Makefile.am (INCLUDES): Include THREADINCS.
6460 * configure: Rebuilt.
6461 * configure.in: Recognize `qt' as a threads package.
6463 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6465 * java/util/Stack.java (pop): Null out topmost node for robustness.
6467 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6469 * java/util/Stack.java: Rewritten.
6470 * java/util/Vector.java (isEmpty): Simplified expression.
6472 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6474 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6475 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6477 * include/java-array.h (JvNewObjectArray): Created inline to
6480 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6483 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6485 * java/util/Vector.java: Rewritten.
6486 * java/io/Serializable.java: Created.
6488 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6490 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6491 Infinity is 1/0, not 1/1.
6493 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6495 * configure: Rebuilt.
6496 * configure.in: Removed duplicate AC_ARG_WITH.
6498 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6500 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6502 (_Jv_InitClass): Renamed from soft_initialise_class.
6503 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6504 (_Jv_CheckCast): Renamed from soft_checkcast.
6505 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6506 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6507 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6508 * include/cni.h (JvInitClass): New function.
6509 (_Jv_InitClass): Renamed from soft_initialise_class.
6511 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6513 * configure: Rebuilt.
6514 * configure.in (CXX): Don't set.
6515 * Makefile.in: Rebuilt.
6516 * Makefile.am (AM_CXXFLAGS): New macro.
6518 * Makefile.in: Rebuilt.
6519 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6520 nogc.o): New target.
6522 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6524 (mark_array): Likewise.
6526 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6528 * java/lang/Class.h (JvMethod): Removed some unused fields.
6529 (JvField.info): Removed unused idx union variant.
6531 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6533 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6536 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6538 * configure.in, configure (CXX): Add -fvtable-thunks.
6540 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6542 * java/lang/Object.java (finalize): Move first.
6543 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6544 (Object): Re-arrange order to match Object.java.
6546 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6548 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6549 * java/lang/natString.cc (hashChars): Likewise.
6551 * prims.cc (RuntimeClass): New macro.
6552 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6554 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6556 * Makefile.in: Rebuilt.
6557 * Makefile.am (AM_MAKEFLAGS): New macro.
6559 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6561 * nogc.cc: Include <javaprims.h>.
6563 * Makefile.in: Rebuilt.
6564 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6566 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6568 * exception.cc (terminate): Removed.
6569 (unexpected): Removed.
6571 * configure: Rebuilt.
6572 * configure.in: Handle case where target subdir is ".".
6574 * configure: Rebuilt.
6575 * configure.in: Compute COMPPATH based on --with-target-subdir
6576 option. Added --with-target-subdir and --with-cross-host. Use
6577 --with-cross-host to determine when a cross compiler is in use.
6579 * Makefile.in: Rebuilt.
6580 * Makefile.am (GJAVAH): Include COMPPATH.
6581 * configure: Rebuilt.
6582 * configure.in: Subst COMPPATH.
6584 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6586 * prims.cc (lockMutex): Removed.
6587 (unlockMutex): Likewise.
6588 (processClass): Lock the class using a JvSynchronize object.
6590 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6592 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6593 (gc_free_fixed): Removed.
6594 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6595 freeing old value of strhash.
6597 * exception.cc (_Jv_type_matcher): Cast first argument to
6600 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6602 * include/java-array.h (jstringArray): New type.
6603 * java/lang/natSystem.cc (setProperty): Removed.
6604 (initProperties): Directly call JvNewStringLatin1 for arguments.
6605 * java/util/natDate.cc: Include java/util/Date.h, not
6608 * java/io/FileDescriptor.java (available): No longer static.
6609 * java/lang/natDouble.cc (Double): Removed class definition.
6610 * include/javaprims.h (java::lang::Number): Declare.
6611 (java::lang::NumberFormatException): Likewise.
6612 (java::io::FilenameFilter): Likewise.
6613 (java::lang::Character): Likewise.
6614 (java::lang::Error): Likewise.
6615 (java::lang::SecurityManager): Likewise.
6616 (java::util::Vector): Likewise.
6617 (java::io::FileNotFoundException): Likewise.
6618 (java::io::IOException): Likewise.
6619 (java::lang::NativeLang): Likewise.
6620 (java::lang::UnsatisfiedLinkError): Likewise.
6621 (java::util::StringTokenizer): Likewise.
6622 (java::io::InputStream, java::io::OutputStream): Likewise.
6623 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6624 (java::util::Hashtable): Likewise.
6625 * Makefile.in: Rebuilt.
6626 * Makefile.am (nat_headers): Added java/lang/Double.h,
6627 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6628 (MOSTLYCLEANFILES): Added nat_headers.
6629 * include/jvm.h: Moved many defines, declarations, and functions
6630 to java/lang/Class.h.
6631 (struct JvSyncInfo): Moved to java/lang/Object.h.
6632 (UTF8_GET): Moved to java/lang/String.h.
6634 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6636 * java/io/io-defs.h: Don't include java-io.h.
6637 * include/java-io.h: Removed.
6638 * include/javaprims.h: Include java::io.
6640 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6642 * include/java-io.h (File): Removed
6643 (FileDescriptor): Likewise.
6645 * java/io/io-defs.h: Include java/io/File.h and
6646 java/io/FileDescriptor.h.
6648 * Makefile.in: Rebuilt.
6649 * Makefile.am (GJAVAH): New macro.
6650 (.class.h): New rule.
6651 (SUFFIXES): Added .h.
6652 (nat_headers): New macro.
6653 ($(nat_headers)): New target.
6654 (BUILT_SOURCES): Added nat_headers.
6656 * include/java-util.h: Removed.
6658 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6660 * include/java-io.h: Changed to avoid java-lang.h.
6661 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6663 * java/lang/natSystem.cc: Include java/lang/System.h, not
6665 * java/lang/natString.cc: Include java/lang/String.h, not
6667 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6669 * java/lang/natClass.cc: Include java/lang/Class.h, not
6671 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6673 * java/lang/natObject.cc: Include java/lang/Object.h, not
6675 * exception.cc: Don't include java-lang.h.
6676 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6677 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6678 * nogc.cc: Don't include java-lang.h.
6679 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6680 * prims.cc (processClass): Don't use `init_type'; just cast to
6682 Include java/lang/Class.h and jvm.h, not java-lang.h.
6683 (JvAllocObject): Wrote single-argument version.
6684 (PrimClass): Inherit from Class.
6685 (initPrimClass): Removed.
6686 * include/java-lang.h: Removed.
6687 * include/jvm.h: Declare struct _dispatchTable.
6688 * include/cni.h: Don't declare _Jv_MonitorEnter,
6689 _Jv_MonitorExit, struct _dispatchTable.
6690 * include/javaprims.h: Moved all typedefs here, from cni.h.
6691 * java/lang/Class.h: New file.
6692 * include/java-array.h: New file.
6693 * java/lang/Object.h: New file.
6695 * prims.cc (classFromSig): Now static.
6697 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6699 * include/cni.h: Don't mention soft_new.
6700 * include/java-lang.h (Object): Don't mention soft_new. Mention
6701 _Jv_NewPrimArray, not newPrimArray.
6702 * prims.cc (soft_new): Removed.
6703 (_Jv_NewArray): Renamed from soft_newarray.
6704 (soft_anewarray): Use JvNewObjectArray.
6705 (newArray): Likewise.
6706 (newRefArray): Removed.
6707 (_Jv_NewPrimArray): Renamed from newPrimArray.
6708 (equalUtf8Consts): Now static.
6709 (soft_instanceof): Removed.
6710 * java/lang/natDouble.cc (doubleToString): Now static.
6712 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6713 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6716 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6718 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6720 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6722 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6723 (JvPrivMutexUnlock): Likewise.
6724 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6725 Return value now jint.
6726 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6729 * Makefile.in: Rebuilt.
6730 * Makefile.am: Don't allow `jV' names.
6731 (maintainer-check): Depend on libjava.a.
6732 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6734 * Makefile.in: Rebuilt.
6735 * Makefile.am (NM): New macro.
6736 (maintainer-check): New target.
6738 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6740 * configure: Rebuilt.
6741 * configure.in: Use --enable-threads, not --enable-gc. Fix
6742 documentation for --enable-threads. Changed option to work like
6743 identical option in gcc/configure.
6745 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6747 * boehm.cc (mark_array): Use JvGetArrayLength.
6749 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6751 * exception.cc: New file (mostly written by Andrew MacLeod),
6752 exception handling support.
6753 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6754 Remove -fexceptions - it is now the default.
6756 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6757 (JvAllocObject): Renamed to _Jv_AllocObject.
6758 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6759 (loadClass): Renamed to _Jv_FindClass.
6760 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6761 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6762 * include/java-lang.h (JvGetArrayLength): New CNI function.
6763 * include/jvm.h (_Jv_FindClass): Added declaration.
6765 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6767 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6769 * java/lang/natClass.cc (getName): Add implementation.
6770 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6772 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6774 * Makefile.in: Rebuilt.
6775 * Makefile.am (.class.o): Added -fexceptions.
6777 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6779 * configure: Rebuilt.
6780 * configure.in: Don't check for __nanosleep.
6781 * posix-threads.cc (nanosleep): Never define.
6783 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6785 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6788 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6790 * java/lang/natThread.cc (enumerate): Uncommented.
6791 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6792 (interrupt): Call it.
6794 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6796 * configure: Rebuilt.
6797 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6799 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6801 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6802 * include/java-lang.h (Thread): Added `interrupted_' method.
6803 * java/lang/Thread.java (interrupted_): New method.
6804 * java/lang/natThread.cc (join): Possibly throw interrupted
6805 exception after join finishes.
6806 (interrupted_): New method.
6807 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6809 (JvPrivThreadJoin): New function.
6810 (really_start): Notify all threads waiting for this thread.
6811 (struct starter): Added `data' member.
6812 (JvPrivThreadStart): Set it.
6813 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6815 (JvPrivThreadJoin): No longer inline.
6816 (JvPrivThreadInterrupt): New function.
6818 * include/no-threads.h (JvPrivThreadSleep): Removed.
6819 * posix-threads.cc (JvPrivThreadSleep): Removed.
6821 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6823 * configure: Rebuilt.
6824 * configure.in (THREADOBJS): Initialize to no-threads.o in
6826 * posix-threads.cc (key): New global.
6827 (JvPrivInitThreads): New function.
6828 (really_start): Set thread-specific data to point to object.
6829 (JvPrivThreadStart): Added `daemon' argument.
6830 (JvPrivThreadSleep): Added `data' argument.
6831 * include/posix-threads.h (JvPrivInitThreads): Removed
6833 (JvPrivThreadCurrent): New function.
6834 * include/no-threads.h (JvPrivThreadInitData): Initialize
6835 JvPrivOnlyThread. Added `thread' argument.
6836 (JvPrivThreadCurrent): New function.
6837 (JvPrivThreadStart): Added `daemon' argument.
6838 * no-threads.cc: New file.
6839 * java/lang/natThread.cc (init_data): New function.
6841 (start): Set `alive' member.
6842 (stop_): Clear `alive' member.
6843 (destroy): Likewise.
6844 (currentThread): Implemented.
6845 (start): Pass `daemon' argument to JvPrivThreadStart.
6847 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6848 (Thread): Added `init_data' method.
6849 * java/lang/Thread.java (alive, data): New instance variables.
6850 (init_data): New private method.
6851 (isAlive): No longer native.
6853 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6855 * include/java-lang.h (JvRunMain): Declare.
6856 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6857 * prims.cc (JvRunMain): New function.
6858 (main_signature, main_name): New globals.
6860 * boehm.cc (mark_array): Use `elements' function and not
6861 operator[] on jarray.
6863 * posix-threads.cc: Include <config.h>. Define nanosleep if
6866 * configure: Rebuilt.
6867 * configure.in: Check for _nanosleep.
6869 * configure: Rebuilt.
6870 * configure.in: Check for pthread_mutexattr_settype.
6872 * include/cni.h (class JvSynchronize): New class.
6873 * java/lang/Thread.java (sleep): Throws InterruptedException.
6874 (join): Throws InterruptedException.
6875 (resume): Not native.
6876 (resume_): New method.
6877 (start): Now synchronized.
6878 (stop_): New method.
6879 (Thread): Synchronize when accessing threadNumber.
6881 * java/lang/natThread.cc (throwException): New macro.
6882 (sleep): Throw InterruptedException.
6885 * include/java-lang.h (Runtime): Added interrupted().
6887 * boehm.cc (call_finalizer): Correctly initialize jobj.
6888 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6890 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6893 * configure: Rebuilt.
6894 * configure.in: Added support for --disable-threads.
6895 * include/no-threads.h: New file.
6897 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6899 * Makefile.in: Rebuilt.
6900 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6901 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6902 (libjava_a_LIBADD): Added THREADOBJS.
6903 * configure: Rebuilt.
6904 * configure.in: Added --with-threads option.
6905 * posix-threads.cc: New file.
6906 * include/posix-threads.h: New file.
6907 * include/java-lang.h (Object): Added static member sync_mutex,
6908 member sync_info, method init_mutex.
6909 (struct JvSyncInfo): New struct.
6910 Include "java-threads.h".
6911 * prims.cc (soft_monitorenter): Wrote.
6912 (soft_monitorexit): Likewise.
6913 * java/lang/natObject.cc (init_mutex): New method.
6917 (sync_mutex): Define.
6918 Include "java-threads.h".
6920 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6922 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6923 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6925 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6927 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6928 Added extern "Java" in places to tell G++ Object is a "Java" type.
6929 Other minor renaming and fixes.
6930 * include/java-io.h (FileDescriptor): Add friend class declarations.
6931 G++ no longer allows non-Java types in method parameters and results
6932 of Java classes. Converted most offending methods to friends.
6933 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6934 * java/lang/natSystem.cc (setProperty): Make friend.
6935 * java/lang/natString.cc, include/java-lang.h (String): Rename
6936 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6937 * include/java-lang.h (JArray): Remove getData and eoprator[].
6938 Add elements friend function instead.
6939 * java/lang/natSystem.cc (arraycopy): Use elements function.
6940 * java/io/natFileDescriptor.cc (read, write): Likewise.
6941 * include/java-lang.h (Object): Remove unused make method.
6942 (System::setProperty(char*,char*)): Turn into friend function.
6943 (Class): Rename newObject by JvAllocObject.
6944 * prims.cc: Update to use JvAllocObject, and elements.
6946 * java/lang/natDouble.cc: Fix double -> jdouble.
6948 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6950 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6952 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6954 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6955 * include/java-lang.h (Runtime): finalize_on_exit and
6956 runFinalizersOnExit now static.
6957 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6959 (finalize_on_exit): Now static.
6961 * boehm.cc (mark_obj): Get class using getClass() method on
6963 (_dispatchTable): Removed.
6965 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6967 * java/io/natFileDescriptor.cc (open_read): Only call open if
6969 (open_write): Likewise.
6971 * Makefile.in: Rebuilt.
6972 * Makefile.am ($(nat_files)): Depend on config.h.
6974 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6976 * prims.cc (ObjectClass): Now a macro; updated for new class name
6978 (StringClass): Likewise.
6979 (ClassClass): Likewise.
6981 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6983 * java/io/natFileDescriptor.cc (available): Do nothing unless
6984 HAVE_SELECT defined.
6985 * java/util/natDate.cc (setTime): Conditional on
6987 (toString): Conditional on HAVE_TIME.
6988 * aclocal.m4, configure: Rebuilt.
6989 * acinclude.m4: New file.
6990 * configure.in: Don't actually call AM_EXEEXT. Call
6991 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6992 --with-target-subdir option. Check for select and open
6995 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6997 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6998 (call_finalizer): Likewise.
6999 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7000 * prims.cc (newObject): Pass actual method pointer to
7001 JvPrivRegisterFinalizer.
7002 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7003 (JvPrivRegisterFinalizer): Changed interface.
7005 * Makefile.in: Rebuilt.
7006 * Makefile.am (MOSTLYCLEANFILES): New macro.
7007 (CLEANFILES): Removed javao_files.
7009 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7011 * nogc.cc: New file.
7012 * Makefile.in: Rebuilt.
7013 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7014 (EXTRA_libjava_a_SOURCES): New macro.
7015 (libjava_a_SOURCES): Removed boehm.cc.
7016 (libjava_a_DEPENDENCIES): Added GCOBJS.
7017 (libjava_a_LIBADD): Likewise.
7018 * configure: Rebuilt.
7019 * configure.in: Added code for --enable-gc=TYPE.
7021 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7023 * boehm.cc (mark_array): Don't further dereference pointer from
7026 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7027 * Makefile.in: Rebuilt.
7028 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7029 one for boehm-gc build directory.
7031 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7033 * include/java-lang.h (finalize_on_exit): New instance variable in
7034 java::lang::Runtime.
7035 (runFinalizersOnExit): New method.
7036 * java/lang/Runtime.java (finalize_on_exit): New instance
7038 (runAllFinalizers_): New private method.
7039 (runFinalizersOnExit): New method.
7040 * boehm.cc (JvPrivRunFinalizers): New function.
7041 (JvPrivRunAllFinalizers): Likewise.
7042 (JvPrivRunGC): Likewise.
7043 * java/lang/natRuntime.cc: Include "jvm.h".
7044 (gc): Call JvPrivRunGC.
7045 (runFinalization): Call JvPrivRunFinalizers.
7046 (runFinalizersOnExit): New method.
7047 (exit_): Call JvPrivRunAllFinalizers if required.
7048 * include/jvm.h: Declare JvPrivRunFinalizers,
7049 JvPrivRunAllFinalizers, JvPrivRunGC.
7051 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7053 * boehm.cc (JvPrivRegisterFinalizer): New function.
7054 (call_finalizer): Likewise.
7055 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7056 * prims.cc (finalize_name): New global.
7057 (newObject): Just call other newObject.
7058 (newObject): Register finalizer if it exists.
7060 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7062 * prims.cc (gc_malloc): Removed.
7063 (makeUtf8Const): Use JvPrivAllocBytes.
7064 (lookupArray): Likewise.
7065 (newPrimArray): Likewise.
7066 (JvNewObjectArray): Use JvPrivAllocArray.
7067 (newObject): Use JvPrivAllocObj.
7068 (newObject): Likewise.
7069 Changed Method -> JvMethod everywhere.
7070 Changed Field -> JvField everywhere.
7071 * include/java-lang.h (Object): Changed type of `fields' to
7073 (jmethodID, jfieldID): New typedefs.
7074 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7076 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7078 (METHOD_NATIVECODE): Moved from java-lang.h.
7079 (class JvField): New class.
7080 (JvGetFirstInstanceField): New function.
7081 (JvFieldIsRef): Likewise.
7082 (JvGetObjectField): Likewise.
7083 (JvNumInstanceFields): Likewise.
7085 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7087 * boehm.cc: New file.
7088 * Makefile.in: Rebuilt.
7089 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7090 (INCLUDES): Added -I options to find boehm-gc files.
7092 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7094 * configure: Rebuilt.
7095 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7097 * Makefile.in: Rebuilt.
7098 * Makefile.am (nat_files): New macro.
7099 (libjava_a_DEPENDENCIES): Use it.
7100 (libjava_a_LIBADD): Likewise.
7101 ($(nat_files)): New static pattern rule.
7102 (class_files): Run separate find to find .class files.
7103 (javao_files): Compute based on class_files.
7104 (BUILT_SOURCES): New macro.
7106 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7108 * Makefile.am (java_files): New macro.
7109 (class_files): Likewise.
7110 (javao_files): Likewise.
7111 (libjava_a_DEPENDENCIES): Include $(javao_files).
7112 (libjava_a_LIBADD): Likewise.
7113 (classes.stamp): Depend on $(java_files); only recompile changed
7116 (CLEANFILES): Don't run find; use macros. Don't mention
7118 (.class.o): New target.
7119 (compiled.stamp): Removed.
7121 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7123 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7124 LineNumberReader}>java: Newly-implemented standard classes.
7126 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7128 * Makefile.in: Rebuilt.
7129 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7131 * Makefile.in: Rebuilt.
7132 * Makefile.am (hack): New macro.
7133 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7135 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7137 * include/config.h.in: New file.
7138 * include/config.h: Removed.
7139 * acconfig.h: New file.
7140 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7141 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7142 libjava_a_LIBADD): New macros.
7143 (INCLUDES): New macro.
7146 (SUFFIXES): Removed.
7148 (libjava.a): Removed.
7150 * configure: Rebuilt.
7151 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7152 Look for headers and functions we require. Create
7155 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7157 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7158 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7159 soft_lookupinterfacemethod): New functions.
7160 (PrimClass): Actually initialize the primitive classes.
7161 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7163 * include/java-util.h: Removed java::util definition.
7164 * include/cni.h: Moved java::util here and added Properties.
7165 Added more function prototypes.
7166 * include/java-lang.h: Added mroe methods and friend declarations.
7167 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7168 * include/jvm.h (strLengthUtf8): Add declaration.
7170 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7172 * java/lang/{Byte,Short,Void}.java: New classes.
7173 * java/lang/Character.java (isJavaIdentifierStart,
7174 JavaIdentifierPart): New static methods.
7175 * java/lang/Number.java (byteValue, shortValue): New methods.
7177 * java/lang/String.java (intern, hashCode): Make native.
7178 * java/lang/natString.cc: New file. Handle the string pool.
7179 * Makefile.am: Build natString.o. Use CXXFLAGS.
7181 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7182 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7183 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7184 * java/lang/System.java (setProperty): New private method.
7185 (initProperties): Take argument, and make native.
7186 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7187 (currentTimeMillis): Make more robust.
7189 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7190 * java/io/UnsupportedEncodingException.java: New exception class.
7192 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7193 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7195 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7197 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7198 * prims.cc: Added bunch of stuff.
7199 * include/cni.h: Added various definitions.
7200 * include/java-lang.h: Added Method, various friends, some macros.
7202 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7203 * java/lang/System.java (arraycopy): Make native.
7205 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7207 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7208 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7209 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7210 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7212 * java/lang/Runtime.java: Declare methods as native instead of
7214 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7215 * java/lang/System.java: Comment out some stuff, for now.
7216 * java/lang/Thread.java: Re-write. Use native methods.
7217 * java/lang/NativeLang.java: Remove most of it.
7219 * java/util/natDate.cc: Native (C++) methods for Date.
7220 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7221 * java/util/Date.java: Complete re-write.
7223 * java/io/io-defs.h: New header file.
7224 * java/io/FileDescriptor.java: Add a bunch of private methods,
7225 mostly moved from NativeIO.java and natNativeIO.cc.
7226 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7227 * java/io/File.java: Use new code.
7228 * java/io/{FileInputStream.java.FileOutputStream.java,
7229 RandomAccessFile.java}: Use new private FileDescriptor methods.
7230 * java/io/NativeIO.java: Removed, no longer used.
7232 * java/io/StreamTokenizer.java (numericChars): Make char array.
7234 * include/*.h: Various header files used by the C++ native code.
7236 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7237 New autoconf+automake-based setup.
7238 * prims.cc: New file for Java "primitives".