1 2000-01-07 Tom Tromey <tromey@cygnus.com>
3 * java/lang/natClass.cc (getClasses): Wrote.
5 2000-01-06 Tom Tromey <tromey@cygnus.com>
7 * java/lang/natClass.cc (_getConstructors): Correctly check
8 whether method name is the init name.
9 (getMethod): Look at accflags on method in `klass', not `this'.
11 2000-01-05 Tom Tromey <tromey@cygnus.com>
13 * java/lang/natClass.cc (getMethod): Compute offset relative to
14 `klass's methods table, not `this's table.
16 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA):
17 In unwrapping/widening case, check whether `k' is null, not
18 whether it is primitive. Initialize `num' from `argelts', not
19 `paramelts'. Correct create and pass arguments to ffi_call.
20 Don't let presence of `this' argument affect index used to look in
22 (COPY): Set appropriate element in `values' vector.
24 * java/lang/natClass.cc: Include <gcj/method.h>.
26 * java/lang/Class.h (_getMethods): Correctly declare as private,
29 * java/lang/Class.h (_getMethods): Declare.
30 * java/lang/Class.java (_getMethods): Declare.
31 * java/lang/natClass.cc (getDeclaringClass): Always return NULL.
32 (getDeclaredClasses): Always return empty array.
33 (_getMethods): New method.
35 (getDeclaredMethod): Return `rmethod'.
36 (finit_name): New global.
37 (getDeclaredMethods): Check for finit_name.
38 (_getMethods): Likewise.
39 (getMethod): Only return public methods.
41 * java/lang/reflect/natMethod.cc (get_ffi_type): Test size of
42 jboolean and select correct ffi type on that basis.
43 (_Jv_CallNonvirtualMethodA): Handle `void' return type.
44 Constructor call always has `void' return type.
46 2000-01-04 Tom Tromey <tromey@cygnus.com>
48 * java/lang/Class.h (getSignature): Updated.
49 * java/lang/Class.java (getSignature): Updated.
50 * java/lang/natClass.cc (getSignature): Added `is_constructor'
52 (getConstructor): Ensure constructor is public.
53 (_getConstructors): Check for public-ness of constructor when
54 `declared' is false, not when it is true.
56 2000-01-04 Warren Levy <warrenl@cygnus.com>
58 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
60 (receive): Set the sender's address in the DatagramPacket.
62 2000-01-04 Tom Tromey <tromey@cygnus.com>
64 * java/lang/reflect/natConstructor.cc (newInstance): Pass
65 declaring class as return_type argument to
66 _Jv_CallNonvirtualMethodA.
67 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
68 constructor case, create object and use it as `this' argument.
69 * java/lang/Class.h (_getConstructors): Declare.
70 (_getFields): Declare.
71 * java/lang/Class.java (getConstructors): Wrote.
72 (_getConstructors): New native method.
73 (getDeclaredConstructors): Wrote.
74 (_getFields): Declare new native method.
75 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
77 (getMethod): Work correctly when class is primitive.
78 (getDeclaredMethods): Likewise. Compute offset using `method',
80 (getDeclaredMethod): Likewise.
81 (getConstructor): Wrote.
82 (ConstructorClass): New define.
83 (getDeclaredConstructor): Wrote.
84 (_getConstructors): New method.
85 (_getFields): New method.
88 * Makefile.in: Rebuilt.
89 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
91 * prims.cc: Remove `#pragma implementation'.
92 * gcj/array.h: Remove `#pragma interface'.
94 * prims.cc (_Jv_equaln): New function.
95 * java/lang/Class.java (getSignature): Declare.
96 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
97 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
99 (getSignature): New method.
100 (getDeclaredMethod): Wrote.
102 Include StringBuffer.h.
103 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
104 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
106 (getSignature): Declare.
107 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
108 (_Jv_equaln): Declare.
109 (_Jv_CallNonvirtualMethodA): Declare.
110 * Makefile.in: Rebuilt.
111 * Makefile.am (nat_source_files): Added natConstructor.cc.
112 (java/lang/reflect/Constructor.h): New target.
113 * java/lang/reflect/natConstructor.cc: New file.
114 * java/lang/reflect/Constructor.java (newInstance): Now native.
115 (declaringClass): Renamed from decl_class.
116 (offset): Renamed from index.
117 (getType): New native method.
118 (getModifiers): Now native.
119 (getParameterTypes): Call getType if required.
120 (hashCode): Include hash code from declaring class.
121 (modifiers): Removed.
122 (toString): Call getType if required.
123 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
124 * java/lang/reflect/natMethod.cc (hack_call): New method.
125 Removed `#if 0' around FFI code.
126 Include <gnu/gcj/RawData.h>.
127 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
128 IllegalArgumentException when argument object and class disagree.
129 (_Jv_GetTypesFromSignature): New function.
131 (ObjectClass): New define.
132 (_Jv_CallNonvirtualMethodA): New function.
133 * java/lang/reflect/Method.java (hack_trampoline): New method.
134 (hack_call): New native method.
136 1999-12-21 Per Bothner <per@bothner.com>
138 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
139 offset in new Method.
141 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
143 * java/lang/natObject.cc (notify): Throw message with
144 IllegalMonitorStateException.
147 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
148 (isInterrupted_): New function, which does clear interrupt_flag.
149 (interrupt): Use `isInterrupted_'.
150 * java/lang/natThread.cc (interrupt): Add comment.
151 (join): Set `prev' in joiner loop.
152 Change various calls to `isInterrupted' to use `isInterrupted_'.
153 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
154 on linux. Set result to 0 on an interrupt. Test interrupted status
155 of java Thread object directly.
156 FLAG_INTERRUPTED: removed.
157 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
158 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
159 (_Jv_InitThreads): Don't block SIGINT.
160 (_Jv_ThreadWait): Don't configure SIGINT handler.
162 1999-12-21 Tom Tromey <tromey@cygnus.com>
164 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
166 1999-12-20 Tom Tromey <tromey@cygnus.com>
168 * java/lang/reflect/Modifier.java (STRICT): New constant.
169 (isStrict): New method.
170 (toString): Added `strict'.
172 1999-12-23 Anthony Green <green@cygnus.com>
174 * configure: Rebuilt.
175 * configure.in (LIBDATASTARTSPEC): Force data_start in with
178 1999-12-19 Anthony Green <green@cygnus.com>
180 * libgcjdata.c: New file.
181 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
182 * configure: Rebuilt.
183 * configure.in (LIBDATASTARTSPEC): Force data with a known name
185 * Makefile.in: Rebuilt.
186 * Makefile.am: Build libgcjdata.a.
188 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
189 * configure: Rebuilt.
190 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
193 1999-12-17 Tom Tromey <tromey@cygnus.com>
195 * java/lang/reflect/Method.java (toString): Call getType if
196 required. Partial fix for PR libgcj/111. From Per Bothner.
198 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
200 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
202 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
203 null String constructor parameter.
204 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
205 for exception messages.
206 BooleanClass: declare.
207 (setOption): Use BooleanClass instead of Class.forName() for
209 (bind): Cast 4th parameter of setsockopt to `char *' for
210 compatibility with older Solaris headers.
211 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
212 sprintf calls for exception messages.
213 BooleanClass, IntegerClass: declare.
214 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
217 1999-12-15 Tom Tromey <tromey@cygnus.com>
219 * java/lang/natSystem.cc (init_properties): Don't set user.name or
220 user.home if NO_GETUID defined. Only set user.dir if getcwd
223 * include/config.h.in: Rebuilt.
224 * acconfig.h (NO_GETUID): New define.
225 * configure.in: Rebuilt.
226 * configure.in: Define NO_GETUID in cross case. Check for getcwd
229 1999-12-08 Tom Tromey <tromey@cygnus.com>
231 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
232 where no recursive mutexes exist. Fixes PR libgcj/117.
234 1999-12-05 Anthony Green <green@cygnus.com>
236 * include/jvm.h: Declare many functions with
237 __attribute__((__malloc__)).
238 * gcj/javaprims.h: Ditto.
240 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
242 * THANKS: Giving credit where credit is due.
244 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
246 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
248 * java/lang/natString.cc (equalsIgnoreCase): return false if
249 anotherString is null.
250 * java/lang/Boolean.java (valueOf): return FALSE if argument is
253 1999-11-30 Tom Tromey <tromey@cygnus.com>
255 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
256 mutex to initialize. Initialize `count' if required.
259 1999-11-27 Per Bothner <per@bothner.com>
261 * exception.cc: Remove prototype declarations for malloc and free.
262 These clash with recent versions of glibc, which specifies `throws ()'
263 when __cplusplus is defined. Instead, #include <stdlib.h>.
265 1999-11-24 Tom Tromey <tromey@cygnus.com>
267 * prims.cc (_Jv_NewObjectArray): Use
268 _Jv_GetArrayElementFromElementType.
269 (_Jv_NewPrimArray): Likewise.
270 * java/lang/natObject.cc (clone): Use
271 _Jv_GetArrayElementFromElementType instead of sizeof.
272 * java/lang/natSystem.cc (arraycopy): Use
273 _Jv_GetArrayElementFromElementType.
274 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
277 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
279 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
280 Exception messages. PR java.net/57.
281 (bind): set SO_REUSEADDR before bind.
282 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
283 overruns. PR java.net/57.
285 1999-11-19 Tom Tromey <tromey@cygnus.com>
287 * Makefile.am (DIVIDESPEC): Removed.
288 (EXCEPTIONSPEC): Removed.
290 1999-11-19 Andrew Haley <aph@cygnus.com>
292 * Makefile.am (JCFLAGS): Add -L$(here)
294 * Makefile.in: Rebuild.
296 1999-11-18 Tom Tromey <tromey@cygnus.com>
298 * java/lang/natDouble.cc: Include <config.h>.
300 * include/config.h.in: Rebuilt.
301 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
302 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
304 * configure: Rebuilt.
305 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
306 requested by configure.host. Don't put `-D' option into
307 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
309 * configure: Rebuilt.
310 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
313 1999-11-18 Andrew Haley <aph@cygnus.com>
315 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
316 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
318 * Makefile.in: Rebuild
319 * acconfig.h: remove SJLJ_EXCEPTIONS
320 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
321 Do not AC_DEFINE SJLJ_EXCEPTIONS.
322 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
323 * gcj/Makefile.in, include/Makefile.in: rebuild.
324 * include/config.h.in: remove SJLJ_EXCEPTIONS.
326 1999-11-18 Andrew Haley <aph@cygnus.com>
328 * gij.cc (main): Rename label to prevent conflict.
330 * exception.cc (_Jv_type_matcher): Don't check the table if we're
331 using setjmp/longjmp exceptions: there isn't one.
333 1999-11-17 Andrew Haley <aph@cygnus.com>
335 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
336 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
337 (__sjthrow): Add declaration.
338 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
342 * Makefile.in: Rebuild
343 * acconfig.h: Add SJLJ_EXCEPTIONS
344 * configure.in: Add SJLJ_EXCEPTIONS
345 * configure: Rebuild.
346 * gcj/Makefile.in: Rebuild.
347 * gcj/cni.h: Add support for sjlj-exceptions.
348 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
349 * include/Makefile.in: Rebuild.
350 * include/default-signal.h: Add support for sjlj-exceptions.
352 1999-11-18 Tom Tromey <tromey@cygnus.com>
354 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
356 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
358 (method_cache): Made larger.
360 1999-11-11 Tom Tromey <tromey@cygnus.com>
362 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
363 initializing mutex. Initialize `count' when required.
365 1999-11-07 Anthony Green <green@trip.cygnus.com>
367 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
370 1999-11-05 Tom Tromey <tromey@cygnus.com>
372 * java/lang/natThread.cc (destroy): Removed incorrect comment.
374 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
376 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
377 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
380 1999-11-05 Tom Tromey <tromey@cygnus.com>
382 * java/lang/natThread.cc (stop): Removed argument name.
384 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
385 `private'; now has default access.
386 * Makefile.in: Rebuilt.
387 * Makefile.am (java/lang/ThreadGroup.h): Removed.
389 1999-11-04 Tom Tromey <tromey@cygnus.com>
391 * java/lang/natClass.cc (method_cache_count): Removed.
392 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
393 (_Jv_AddMethodToCache): Don't loop.
395 * configure.in: Removed `qt' threads case.
396 * include/quick-threads.h: Removed.
397 * quick-threads.cc: Removed.
399 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
400 (_Jv_ThreadDestroy): Likewise.
401 * include/no-threads.h (_Jv_ThreadCancel): Removed.
402 (_Jv_ThreadDestroy): Likewise.
403 * include/posix-threads.h (struct _Jv_Thread_t): Removed
405 (_Jv_ThreadCancel): Removed decl.
406 (_Jv_ThreadDestroy): Removed.
407 * posix-threads.cc (_Jv_ThreadCancel): Removed.
408 (throw_cleanup): Removed.
409 (really_start): Don't push or pop cleanup.
410 (_Jv_ThreadInitData): Don't initialize `exception' field.
411 * java/lang/Thread.java (stop): Officially unimplemented.
412 * java/lang/natThread.cc (stop): Officially unimplemented.
414 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
416 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
419 1999-11-02 Tom Tromey <tromey@cygnus.com>
421 * boehm.cc: Don't include boehm-config.h.
423 1999-11-01 Tom Tromey <tromey@cygnus.com>
425 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
426 (sum_blocks): Removed.
427 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
429 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
431 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
433 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
434 * java/io/InputStreamReader (InputStreamReader): ditto.
436 1999-10-22 Tom Tromey <tromey@cygnus.com>
438 * Makefile.in: Rebuilt.
439 * Makefile.am (java/lang/ClassLoader.h): New target.
440 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
443 * include/java-props.h (_Jv_Compiler_Properties): Changed
445 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
446 * include/jvm.h (_Jv_GCSetInitialHeapSize,
447 _Jv_GCSetMaximumHeapSize): Declare.
448 (JvRunMain, _Jv_RunMain): Declare.
449 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
450 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
451 (_Jv_GCSetMaximumHeapSize): Likewise.
452 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
453 (_Jv_GCSetMaximumHeapSize): Likewise.
454 * prims.cc (parse_heap_size): New function.
455 (_Jv_SetInitialHeapSize): Likewise.
456 (_Jv_SetMaximumHeapSize): Likewise.
457 (_Jv_Compiler_Properties): New global.
458 * gij.cc (help): New function.
460 (heap_size): Likewise.
461 (heap_max_size): Likewise.
462 (main): Parse arguments. Set _Jv_Compiler_Properties.
463 Include <config.h>, <java-props.h>.
464 (_Jv_Compiler_Properties): Removed.
466 1999-10-18 Tom Tromey <tromey@cygnus.com>
468 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
470 (redirect): New static field.
471 * java/lang/ClassLoader.java (getSystemClassLoader): Now
473 (getVMClassLoader0): Removed.
474 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
476 (getSystemClassLoader): Implemented.
478 1999-10-16 Anthony Green <green@cygnus.com>
480 * java/lang/ClassLoader.java (getSystemResource): Use
481 getSystemClassLoader instead of ClassLoader.system.
482 (getSystemResourceAsStream): Ditto.
484 * java/lang/natClassLoader.cc (redirect): Make static and
485 remove #ifdef INTERPRETER so it is always defined.
486 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
487 returns a VMClassLoader.
489 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
490 PropertyResourceBundle if a properties file is found before a
491 ResourceBundle class.
493 1999-10-15 Tom Tromey <tromey@cygnus.com>
495 * gij.cc (main): Formatting fixes.
496 (_Jv_Compiler_Properties): Define.
497 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
499 (init_properties): Set properites from _Jv_Compiler_Properties.
500 * include/java-props.h (_Jv_Compiler_Properties,
501 _Jv_Environment_Properties): Declare.
503 * include/java-props.h: Added copyright.
505 1999-10-13 Anthony Green <green@cygnus.com>
507 * libtool-version: Catch up by incrementing current.
509 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
510 * configure, include/config.h.in: Rebuilt.
511 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
512 * configure.in: Added --disable-getenv-properties and new define
513 `DISABLE_GETENV_PROPERTIES'.
515 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
516 (next_property_key): New function.
517 (next_property_value): New function.
518 (process_gcj_properties): New function.
519 (JvRunMain): Call process_gcj_properties.
522 * java/lang/natSystem.cc (init_properties): Set properties defined
525 * include/java-props.h: New file.
527 * java/lang/natSystem.cc (init_properties): Add new properties to
528 conform with Java Product Versioning Specification.
530 1999-10-12 Tom Tromey <tromey@cygnus.com>
532 * configure: Rebuilt.
533 * configure.in: Fixed test for --disable-java-net.
535 1999-10-06 Tom Tromey <tromey@cygnus.com>
537 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
538 when building Canadian cross.
539 (NATIVE): Don't define when cross-compiling.
541 1999-10-04 Tom Tromey <tromey@cygnus.com>
543 * java/net/natPlainSocketImpl.cc: Don't include headers if
544 java.net is disabled.
546 * Makefile.in: Rebuilt.
547 * Makefile.am (ZINCS): Removed. This is defined in configure.in
548 when needed, and must be left empty when not needed.
550 1999-10-01 Anthony Green <green@cygnus.com>
552 * THANKS: Refreshed from htdocs version.
554 1999-10-01 Steve Chamberlain <sac@pobox.com>
556 * Makefile.in: Rebuilt.
557 * Makefile.am (ZINCS): Define
559 * configure: Rebuilt.
560 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
562 * java/lang/ieeefp.h: Add definitions for picoJava.
564 1999-10-01 Tom Tromey <tromey@cygnus.com>
566 * configure: Rebuilt.
567 * configure.in: Set classpath when invoking gcj. Use changequote
568 around sed invocation.
570 * java/net/natPlainSocketImpl.cc: Stub native functions if
571 DISABLE_JAVA_NET is defined.
572 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
573 typo in exception string.
574 (getTimeToLive): Likewise.
575 Stub native functions if DISABLE_JAVA_NET is defined.
576 * java/net/natInetAddress.cc: Stub native functions if
577 DISABLE_JAVA_NET is defined.
578 * configure.host: Disable java.net for mips-tx39.
579 * configure, include/config.h.in: Rebuilt.
580 * acconfig.h (DISABLE_JAVA_NET): Undefine.
581 * configure.in: Added --disable-java-net and new define
584 1999-09-30 Tom Tromey <tromey@cygnus.com>
586 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
588 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
592 1999-09-28 Tom Tromey <tromey@cygnus.com>
594 * configure: Rebuilt.
595 * configure.in (PROCESS): In POSIX case, only set if not already
597 * configure.host (PROCESS): Set in mips-tx39 case.
599 * aclocal.m4, configure: Rebuilt.
600 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
601 appropriate AC_PROG_ symbol.
603 1999-09-24 Tom Tromey <tromey@cygnus.com>
605 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
607 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
609 Fix for PR java.util/47:
610 * configure, include/config.h: Rebuilt.
611 * configure.in: Don't look for ctime or ctime_r.
612 * Makefile.in: Rebuilt.
613 * Makefile.am (nat_source_files): Don't mention natDate.cc.
614 * java/util/natDate.cc: Removed.
615 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
617 (getAvailableIDs): Rewrote.
618 (getTimeZone): Rewrote.
619 * java/util/Date.java (toGMTString): New method.
620 (toLocaleString): New method.
623 1999-09-23 Tom Tromey <tromey@cygnus.com>
625 * configure: Rebuilt.
626 * configure.in: Print message when checking to see if gcj can
627 handle -fuse-divide-subroutine.
629 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
631 * java/lang/FirstThread.java (run0): Renamed to `run'.
634 * prims.cc (main_init): New function.
635 (JvRunMain): Call it.
636 (_Jv_RunMain): Likewise.
638 (main_init): Ignore SIGPIPE. Fixes PR 51.
640 1999-09-22 Tom Tromey <tromey@cygnus.com>
642 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
644 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
646 * java/text/MessageFormat.java (MessageFormat(String)): Set the
648 * java/text/NumberFormat.java: Check that object is a Number. If
649 not, throw IllegialArgumentException.
651 1999-09-21 Tom Tromey <tromey@cygnus.com>
653 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
654 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
656 * include/posix-threads.h (_Jv_MutexDestroy): Use
658 (_Jv_MutexLock): Likewise.
659 (_Jv_MutexUnlock): Likewise.
661 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
662 previous patch; it too was incorrect.
663 * java/io/PrintStream.java (PrintStream): Likewise.
665 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
666 refer to `this' before calling superclass constructor.
667 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
668 before calling superclass constructor.
670 1999-09-20 Tom Tromey <tromey@cygnus.com>
672 * configure: Rebuilt.
673 * configure.in: Send output of `-fuse-divide-subroutine' test
674 compilation to /dev/null.
676 1999-09-14 Tom Tromey <tromey@cygnus.com>
678 * include/java-insns.h: Turned constants into an enum. Added
679 multiple-inclusion protection.
681 1999-09-10 Tom Tromey <tromey@cygnus.com>
683 * configure: Rebuilt.
684 * configure.in: Build include/Makefile.
685 * Makefile.in: Rebuilt.
686 * Makefile.am (SUBDIRS): Added gcj and include.
687 (install-data-local): New target.
688 (extra_headers): New macro.
689 * include/Makefile.in: New file.
690 * include/Makefile.am: New file.
692 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
693 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
695 * boehm.cc: Don't include java-threads.h or gcj/field.h.
696 * resolve.cc: Include config.h.
697 * defineclass.cc: Include config.h.
698 * include/java-interp.h: Don't include config.h.
699 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
702 * gcj/javaprims.h: Regenerated namespace decls.
703 * classes.pl (scan): Don't put `;' after closing brace.
705 * Makefile.in: Rebuilt.
706 * Makefile.am (INCLUDES): Added -I for top_srcdir.
707 * configure.in: Create gcj/Makefile.
708 * gcj/Makefile.in: New file.
709 * gcj/Makefile.am: New file.
710 * java/lang/Object.h: Don't include any other headers.
711 * gcj/array.h: Renamed from include/java-array.h.
712 * gcj/field.h: Renamed from include/java-field.h.
713 * gcj/method.h: Renamed from include/java-method.h.
714 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
715 Updated all files to reflect new include structure.
717 1999-09-09 Tom Tromey <tromey@cygnus.com>
719 * configure: Rebuilt.
720 * configure.in: Fixed typo; variable is THREADSPEC and not
723 1999-09-08 Tom Tromey <tromey@cygnus.com>
725 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
726 previous change and implemented a correct test in the __m_count
729 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
732 1999-09-07 Tom Tromey <tromey@cygnus.com>
734 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
735 code and don't set errno.
737 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
738 not `r'. Changed `done_sleeping' to a `bool'.
740 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
742 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
743 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
744 by another thread, rather than by the GC.
745 (_Jv_CondWait): Prevent premature thread wakeup by GC.
746 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
747 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
750 1999-09-03 Tom Tromey <tromey@cygnus.com>
752 * configure: Rebuilt.
753 * configure.in: Check for fstat function.
754 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
757 1999-09-02 Tom Tromey <tromey@cygnus.com>
759 * include/java-array.h (jobjectArrayjchar): Removed unused
762 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
763 _Jv_PrepareCompiledClass while holding class mutex.
765 1999-09-01 Tom Tromey <tromey@cygnus.com>
767 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
768 (_Jv_PthreadGetMutex): Use it.
769 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
770 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
771 (_Jv_MutexLock): Likewise.
772 (_Jv_MutexUnlock): Likewise.
773 * include/config.h.in: Rebuilt.
774 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
775 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
776 * configure: Rebuilt.
777 * libgcj.spec.in: Don't mention INTERPSPEC.
778 * configure.in (INTERPSPEC): Removed.
779 Only run pthreads-related checks when using POSIX threads. Check
780 for m_count and __m_count in mutex structure.
782 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
784 * java/lang/natClass.cc: Fixed notification of threads
785 when class initialization is complete.
787 1999-09-01 Tom Tromey <tromey@cygnus.com>
789 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
790 * resolve.cc: Removed constants defined by
791 java.lang.reflect.Modifier.
792 Include <java/lang/reflect/Modifier.h>.
793 (_Jv_ResolvePoolEntry): Use values from Modifier.
794 (_Jv_DetermineVTableIndex): Likewise.
795 (_Jv_PrepareClass): Likewise.
797 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
798 java.lang.reflect.Modifier.
799 Include <java/lang/reflect/Modifier.h>.
800 (checkExtends): Use values from Modifier.
801 (checkImplements): Likewise.
802 (handleField): Likewise.
803 (handleConstantValueAttribute): Likewise.
804 (handleFieldsEnd): Likewise.
805 (handleMethod ): Likewise.
806 (handleMethodsEnd): Likewise.
807 (handleClassBegin): Likewise.
808 * interpret.cc: Removed constants defined by
809 java.lang.reflect.Modifier.
810 (continue1): Use values from Modifier.
811 * java/lang/natClassLoader.cc: Removed constants defined by
812 java.lang.reflect.Modifier.
814 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
815 JV_STATE_NOTHING, not `0'.
816 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
818 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
819 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
821 (_Jv_PthreadGetMutex): New function.
822 (_Jv_PthreadCheckMonitor): Use it.
823 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
824 (_Jv_MutexLock): Update `count'.
825 (_Jv_MutexUnlock): Likewise.
826 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
829 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
831 * Makefile.am (.java.lo): Add rule.
833 * Makefile.in: Rebuilt.
835 1999-09-01 Tom Tromey <tromey@cygnus.com>
837 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
838 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
840 (_Jv_CondNotify): Use it.
841 (_Jv_CondNotifyAll): Likewise.
843 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
845 1999-08-31 Tom Tromey <tromey@cygnus.com>
847 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
850 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
852 * posix-threads.cc: Include <errno.h>.
854 1999-08-23 Tom Tromey <tromey@cygnus.com>
856 * boehm.cc: Undefine TRUE and FALSE.
858 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
860 1999-08-21 Tom Tromey <tromey@cygnus.com>
862 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
865 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
867 * configure.in: Check for in_addr_t in netinet/in.h too. Check
869 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
870 (HAVE_STRUCT_IP_MREQ): Added.
871 * configure, include/config.h.in: Rebuilt.
872 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
874 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
875 Disable if ip_mreq is not available.
877 * configure.in: Check types ssize_t and in_addr_t.
878 * acconfig.h: Undefine them.
879 * configure, include/config.h.in: Rebuilt.
881 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
882 function that detects the signature of getpwuid_r.
883 (init_properties): Use it.
884 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
887 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
889 * interpret.cc (continue1): Implement explicit dispatch table.
890 insn_target: Explicit interpreter switch table.
891 SAVE_PC: New macro, moves pc saving code into instructions that
893 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
894 PC_REGISTER_ASM: New macro.
895 INLINE_SWITCH: New macro. Constrols dispatching strategy.
896 opcode: Remove local variable.
897 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
898 (POKEI): Use _Jv_word.
899 (iinc): Use _Jv_word.
900 (dupx): Change reference argument (sp) to pointer.
903 * interpret.cc: Remove instruction timing instrumentation.
905 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
906 comment. Don't use _Jv_ClassNameSamePackage.
908 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
909 URLPathEntry, CacheEntry}: Removed.
911 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
913 (.java.lo): Rule removed.
915 * Makefile.in: Rebuilt.
917 1999-08-19 Tom Tromey <tromey@cygnus.com>
919 * java/lang/natThread.cc (class locker): New class.
920 (join): Use a locker around _Jv_CondWait.
923 1999-08-18 Tom Tromey <tromey@cygnus.com>
925 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
926 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
928 1999-08-18 Tom Tromey <tromey@cygnus.com>
930 * include/javaprims.h ("Java"): Regenerated namespace decls.
932 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
934 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
935 from _Jv_InternClassStrings.
937 * prims.cc (_Jv_RunMain): New function.
938 (JvRunMain): Remove gij-support.
940 * gij.cc (main): Use _Jv_RunMain.
942 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
944 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
945 argument in temp variable.
946 (continue1): For all op_x2y insns, use temp variable for
947 intermediate value. Also remove some comments.
949 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
950 (forName): Don't call _Jv_InitClass.
952 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
954 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
956 * java/util/jar/JarInputStream.java: New file.
958 * java/util/jar/JarEntry.java: New file.
960 * java/util/jar/JarFile.java: New file.
962 * java/net/URLClassLoader.java: New file.
964 * java/net/JarURLConnection.java: New file.
966 * gnu/gcj/protocol/jar/Handler.java: New file.
968 * gnu/gcj/protocol/jar/Connection.java: New file.
970 * java/security/SecureClassLoader.java: New file.
972 * java/lang/ClassLoader.java (parent): New variable.
973 (ClassLoader (ClassLoader)): new constructor.
974 (findClass): New method.
975 (loadClass): Add default 1.2 implementation.
976 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
977 (readfully): Removed.
979 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
980 (findSystemClass): New method.
981 (VMClassLoader): Constructor rewritten.
983 All other methods removed.
985 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
986 to gnu::gcj::runtime::VMClassLoader.
987 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
989 (VMClassLoader::findSystemClass): renamed from findBootClass.
991 * Makefile.am: Add new files.
992 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
994 * Makefile.in: Rebuilt.
996 1999-08-17 Tom Tromey <tromey@cygnus.com>
998 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
1000 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
1003 1999-08-16 Tom Tromey <tromey@cygnus.com>
1005 * configure: Rebuilt.
1006 * configure.in: Set DIVIDESPEC to empty string if compiler does
1007 not support -fuse-divide-subroutine.
1009 1999-08-14 Per Bothner <per@bothner.com>
1011 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
1012 * java/lang/natClass.cc (initializeClass): Likewise.
1013 * java/lang/ClassLoader.java (resolveClass0): New static method.
1014 (resolveClass): Call resolveClass0.
1015 (findSystemClass): No longer static.
1017 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
1019 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1021 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
1023 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
1026 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1028 * Makefile: Rebuilt.
1029 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
1032 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
1035 * configure: Rebuilt.
1036 * configure.in: Properly align --help output, fix capitalization
1038 * acinclude.m4: Likewise.
1040 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
1042 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
1044 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1045 (_Jv_callInterpretedMethod): Unused. Remove.
1046 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1048 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1049 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1050 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1051 * interpret.cc: use _Jv_word.
1052 * defineclass.cc: use_Jv_word.
1053 * resolve.cc: Use _Jv_word.
1054 (_Jv_ResolvePoolEntry): Return _Jv_word.
1055 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1056 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1058 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1061 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1063 * configure: Rebuilt.
1064 * configure.in (sched_yield): Try librt first, then libposix4.
1065 Add -lrt, -lposix4 to THREADSPEC.
1067 1999-08-08 Anthony Green <green@cygnus.com>
1069 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1071 1999-08-08 Anthony Green <green@cygnus.com>
1073 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1076 1999-08-08 Anthony Green <green@cygnus.com>
1080 * include/config.h.in: Rebuilt.
1081 * acconfig.h: Add INTERPRETER.
1083 * Makefile.in: Rebuilt.
1084 * Makefile.am (libffi_files): Identify the libffi object files for
1085 inclusion in libgcj.
1086 (LIBFFIINCS): Define.
1088 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1089 Dummy definition for configurations without an interpreter.
1091 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1092 java::lang::Boolean constructor.
1094 * include/java-interp.h: Always include java-cpool.h.
1096 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1097 when INTERPRETER not defined.
1099 * java/lang/Class.h (finalize): Define.
1101 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1102 IOException from File.getCanonicalPath.
1103 (getStream): Likewise.
1106 * THANKS: More thanks.
1108 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1110 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1112 (_Jv_PrepareClass): Allow non-abstract classes to
1113 have abstract subclasses.
1114 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1116 * interpret.cc (continue1/perform_invoke): Don't sign extend
1118 (continue1/lshl,lshr): Push long, not int.
1119 (continue1/ulshr): Use UINT64, not long long.
1120 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1122 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1123 * java/lang/FirstThread.java (run): Add top-level exception
1125 (run0): Renamed from run.
1127 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1129 * configure.in (--with-interpreter): Added.
1130 * include/config.h.in (INTERPRETER): Added.
1132 * java/lang/ClassLoader.java: File replaced.
1133 * java/lang/VMClassLoader.java: New file.
1134 * java/lang/natClassLoader.cc: New file.
1135 * gnu/gcj/runtime/MethodInvocation.java: New file.
1136 * gnu/gcj/util/path/SearchPath.java: New file.
1137 * gnu/gcj/util/path/PathEntry.java: New file.
1138 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1139 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1140 * gnu/gcj/util/path/URLPathEntry.java: New file.
1141 * gnu/gcj/util/path/CacheEntry.java: New file.
1142 * include/java-interp.h: New file.
1143 * include/java-cpool.h: New file.
1144 * include/java-insns.h: New file.
1145 * defineclass.cc: New file.
1146 * interpret.cc: New file.
1147 * resolve.cc: New file.
1149 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1150 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1151 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1153 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1154 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1156 (initializeClass): Use new JV_ prefixed names. Also, call
1157 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1159 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1160 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1161 JV_STATE_LINKED): New.
1162 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1163 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1164 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1165 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1166 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1167 _Jv_InterpMethodInvocation): New friends for interpreter.
1169 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1170 include/java-cpool.h and renamed with JV_ prefix.
1172 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1174 (_Jv_UnregisterClass): New decl.
1176 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1177 class loader argument.
1178 (_Jv_FindClass): Use class loader.
1180 * prims.cc (_Jv_makeUtf8Const): New function.
1181 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1182 (_Jv_NewPrimArray): Ditto.
1183 (_Jv_FindClassFromSignature): Ditto.
1184 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1185 * java/lang/reflect/natMethod.cc (getType): Ditto.
1187 * include/java-field.h (_Jv_Field::isRef): Make robust for
1188 non-resolved contexts.
1190 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1191 Also, don't mark class->next field.
1193 * java/lang/VirtualMachineError.java: Added FIXME note.
1195 * configure.in (INTERPSPEC): New spec.
1196 * libgcj.spec.in: Added INTERPSPEC.
1197 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1198 gnu/gcj/runtime/MethodInvocation.
1199 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1200 (ordinary_java_source_files): Added above mentioned java classes.
1202 * configure: Rebuilt.
1203 * Makefile.in: Rebuilt.
1205 1999-08-06 Tom Tromey <tromey@cygnus.com>
1207 * configure: Rebuilt.
1208 * configure.in: Look for sched_yield in -lrt.
1210 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1212 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1213 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1214 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1216 (toString): Print correctly when `country' is empty.
1218 1999-08-04 Per Bothner <per@bothner.com>
1220 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1222 1999-08-02 Tom Tromey <tromey@cygnus.com>
1224 * aclocal.m4, configure: Rebuilt for new libtool.
1226 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1228 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1229 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1230 * java/net/ServerSocket.java: Define ANY_IF.
1231 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1232 all network interfaces.
1233 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1234 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1236 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1238 * java/io/natFile.cc (performMkdir): Remove FIXME.
1239 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1241 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1243 * configure.in: Check for bstring.h.
1244 * configure, include/config.h.in: Rebuilt.
1245 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1246 * java/net/natPlainSocketImpl.cc: Likewise.
1248 1999-07-31 Tom Tromey <tromey@cygnus.com>
1253 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1255 * configure.in: Check for struct hostent_data and need for
1256 -D_REENTRANT for gethostbyname_r declaration.
1257 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1258 (lookup): Use hostent_data for fixed_buffer.
1259 * configure, include/config.h.in: Rebuilt.
1261 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1263 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1264 available. Don't cast memmove args to (void*).
1265 * configure.in: Do not abort if memmove is not available.
1267 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1269 * java/lang/natString.cc (substring): optimize where substring is
1271 * java/io/File.java (getName): don't return separator with file name.
1272 * java/io/natFile.cc (attr): fix overflow.
1274 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1276 * mauve-libgcj: Disable Object Serialization tests.
1278 1999-07-20 Warren Levy <warrenl@cygnus.com>
1280 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1281 Default to using PlainDatagramSocketImpl.
1282 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1284 1999-07-19 Tom Tromey <tromey@cygnus.com>
1286 * include/stamp-h.in: New file.
1288 1999-07-12 Tom Tromey <tromey@cygnus.com>
1290 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1293 1999-07-07 Andrew Haley <aph@cygnus.com>
1295 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1296 bytes to make it point after the instruction where the trap
1298 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1300 1999-07-07 Tom Tromey <tromey@cygnus.com>
1302 * mauve-libgcj: Explicitly enable formerly disabled java.text
1305 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1308 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1310 * java/net/URL.java (equals): Compare strings using String.equals.
1311 * java/net/URL.java (sameFile): Ditto.
1313 1999-07-02 Warren Levy <warrenl@cygnus.com>
1315 * configure: Rebuilt.
1316 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1317 * include/config.h.in: Rebuilt.
1318 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1319 (mcastGrp): Updated FIXME comments.
1320 (setOption): Fixed typo.
1321 (getOption):Implemented IP_MULTICAST_IF.
1323 1999-07-02 Warren Levy <warrenl@cygnus.com>
1325 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1326 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1327 (getTimeToLive): Implemented.
1328 (setOption): Implemented IP_MULTICAST_IF.
1330 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1332 * java/lang/String.java (toString): Check for this == null and throw
1333 NullPointerException.
1335 1999-07-01 Warren Levy <warrenl@cygnus.com>
1337 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1338 to count and revised comments to match.
1339 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1340 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1341 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1342 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1343 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1344 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1346 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1348 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1349 properly as count rather than outlength.
1350 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1351 output on overflow rather than buffer fill.
1352 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1353 if markPos is 0 and there is still room in the buffer.
1355 1999-07-01 Andrew Haley <aph@cygnus.com>
1357 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1358 This is a workaround for a bug in glibc's pthreads package which
1359 doesn't deliver any sigcontext information to a signal handler.
1361 1999-06-24 Tom Tromey <tromey@cygnus.com>
1363 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1364 * java/lang/fdlibm.h (HUGE): Conditionally define.
1366 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1368 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1369 * java/lang/e_log.c: Don't use __uint32_t.
1371 1999-05-27 Eric Christopher <echristo@cygnus.com>
1373 * configure: Rebuilt
1374 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1375 * acconfig.h: Rebuilt
1376 * include/config.h.in: Rebuilt
1378 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1379 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1380 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1381 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1382 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1383 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1384 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1385 and namespace collision with __uint32_t
1387 1999-06-23 Tom Tromey <tromey@cygnus.com>
1389 * java/util/zip/InflaterInputStream.java (read): Throw
1390 ZipException if inflater throws a DataFormatException.
1392 1999-06-23 Warren Levy <warrenl@cygnus.com>
1394 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1395 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1396 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1397 is not final per JDK.
1398 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1400 * java/util/zip/DataFormatException.java: Class extends Exception.
1401 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1402 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1403 * java/util/zip/ZipInputStream.java: ditto.
1404 (closeEntry): Changed method name to match JDK spec.
1406 1999-06-21 Tom Tromey <tromey@cygnus.com>
1408 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1411 * Makefile.in: Rebuilt.
1412 * Makefile.am (toolexeclibdir): Define as libdir when
1414 * configure: Rebuilt.
1415 * configure.in (USE_LIBDIR): New conditional.
1417 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1419 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1420 hostname in returned InetAddress objects.
1421 (getLocalHostname): Fix typo.
1422 * java/net/InetAddress.java (getByName): Set hostname on return
1424 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1427 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1429 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1430 interfaces if host==NULL.
1431 (accept): Throw message with InterruptedIOException.
1432 (getOption): Cache localAddress.
1433 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1434 'address' for DatagramSocket.
1435 (setTimeToLive): Fix compiler warnings.
1436 (getOption): Cache localAddress.
1437 * java/net/Socket.java (getLocalAddress): Don't need local
1438 InetAddress object. Add FIXME comment about calling checkConnect().
1439 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1440 connection queue to 50 as per JDK 1.2 docs.
1441 (ServerSocket(int,int)): Listen on all network interfaces by
1442 default, per JDK 1.2 docs.
1443 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1444 Add localAddress caching.
1446 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1448 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1450 (write(byte[],int,int)): ditto.
1452 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1454 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1456 1999-06-11 Warren Levy <warrenl@cygnus.com>
1458 * mauve-libgcj: Activated java.net Mauve tests.
1460 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1462 * java/net/natInetAddress.cc (aton): Fix typos.
1463 (lookup): Use a bigger buffer size for gethostbyname_r on all
1464 versions of glibc. Updated FIXME comment explaining this.
1465 Modified while loops to not set herr = ERANGE to work around glibc
1466 problems. Use user specified hostname in InetAddress result when
1467 available (consistent with JDK).
1469 1999-06-10 Warren Levy <warrenl@cygnus.com>
1471 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1472 Throw FileNotFoundException instead of IOException.
1474 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1476 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1477 in static field name.
1478 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1479 throughout rather than ParseException.
1481 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1483 * java/lang/Runtime.java (exec): Convert prog name and arguments
1485 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1486 environment array conversion. Preserve current environment if envp
1487 not passed. Preserve PATH unless explicitly specified.
1488 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1489 followed by EOF. Set a flag when a line is terminated by '\r' and
1490 ignore following '\n' if set.
1492 1999-06-02 Warren Levy <warrenl@cygnus.com>
1494 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1495 Ignore context if spec is an absolute URL. Fix braindead
1497 (hashCode): Use JDK 1.2 style algorithm.
1498 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1499 context URL properly.
1501 1999-05-30 Anthony Green <green@cygnus.com>
1503 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1504 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1506 1999-05-28 Warren Levy <warrenl@cygnus.com>
1508 * java/net/DatagramSocket.java (laddr): Removed.
1509 (DatagramSocket): Removed attempts to get or set laddr if null.
1510 (getLocalAddress): Reimplemented per spec.
1511 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1513 (joinGroup): Throw NullPointerException if any argument is null.
1514 (leaveGroup): ditto.
1515 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1516 * java/net/PlainSocketImpl.java (timeout): Added.
1517 (getInputStream): Added FIXME comment on how to support timeouts
1519 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1520 * java/net/Socket.java: Added FIXME comments to identify
1521 conflicting specs between the JCL and JDK 1.2 documents.
1522 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1523 if host is null. Get localport value resolved by kernel if bind
1525 (receive): Implemented support for timeouts in UDP.
1526 (setOption): Implemented based on natPlainSocketImpl version.
1528 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1529 resolved by kernel if bind lport is 0.
1530 (connect): Get localport value resolved by kernel if bind wasn't
1531 done to set localport.
1532 (accept): Implemented support for timeouts for ServerSocket.
1533 (setOption): Save value for SO_TIMEOUT.
1534 (getOption): Return timeout for SO_TIMEOUT.
1536 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1538 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1539 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1540 (setOption): Made abstract.
1541 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1542 to avoid cpp conflicts in native code.
1543 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1544 cpp conflicts in native code.
1545 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1546 * java/net/Socket.java (getLocalAddress): Implemented.
1547 (setTcpNoDelay): Implemented.
1548 (getTcpNoDelay): Implemented.
1549 (setSoLinger): Implemented.
1550 (getSoLinger): Implemented.
1551 (getSoTimeout): Verify class type.
1552 (setSendBufferSize): Implemented.
1553 (getSendBufferSize): Implemented.
1554 (setReceiveBufferSize): Implemented.
1555 (getReceiveBufferSize): Implemented.
1556 (toString): Prepended "Socket".
1557 * java/net/SocketImpl.java (toString): Rewritten.
1558 (getOption): Made abstract.
1559 (setOption): Made abstract.
1560 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1561 (setOption): Implemented.
1562 (getOption): Implemented.
1564 1999-05-26 Warren Levy <warrenl@cygnus.com>
1566 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1567 address when null. Set SO_REUSEADDR for multicasts.
1568 (getSoTimeout): Implemented.
1569 (setSoTimeout): Implemented.
1570 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1571 * java/net/MulticastSocket.java (getInterface): Implemented.
1572 (setInterface): Implemented.
1573 (setTimeToLive): Check for invalid ttl.
1574 (joinGroup): Verify multicast address and security.
1575 (leaveGroup): Verify multicast address and security.
1576 (send): Implemented.
1577 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1583 (getTTL): Implemented as non-native.
1587 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1588 (getSoTimeout): Implemented.
1589 (setSocketFactory): Made synchronized.
1590 * java/net/Socket.java (setSoTimeout): Implemented.
1591 (getSoTimeout): Implemented.
1592 (close): Made synchronized.
1593 (setSocketImplFactory): Made synchronized.
1594 * java/net/SocketImpl.java: Implement SocketOptions interface.
1595 * java/net/natInetAddress.cc: Corrected module name at top of file.
1596 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1597 (bind): Added FIXME.
1598 (peek): Implemented.
1604 (setOption): Implemented for SO_REUSEADDR.
1605 (getOption): Implemented for SO_REUSEADDR.
1607 1999-05-24 Tom Tromey <tromey@cygnus.com>
1609 * java/util/ResourceBundle.java (getBundle): Throw
1610 NullPointerException if baseName is null.
1612 1999-05-22 Tom Tromey <tromey@cygnus.com>
1614 * java/util/zip/ZipInputStream.java (fill): New method.
1615 (compressed_len): New instance variable.
1616 (getNextStream): Set it.
1617 (read): Reset inflater on EOF. Only read via `super' if entry is
1619 (skip): Only skip via `super' if entry is deflated.
1620 * java/util/zip/Deflater.java (last_input_count): Removed.
1621 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1623 (needsInput): Don't use last_input_count.
1624 (setInput): Don't set last_input_count.
1625 * java/util/zip/natInflater.cc (getRemaining): Return correct
1627 (inflate): Return 0 if input array is length 0.
1628 (setInput): Don't set last_input_count.
1629 * java/util/zip/Inflater.java (last_input_count): Removed.
1631 1999-05-21 Tom Tromey <tromey@cygnus.com>
1633 * Makefile.in: Rebuilt.
1634 * Makefile.am (INCLUDES): Added $(ZINCS).
1635 * configure: Rebuilt.
1636 * configure.in (ZINCS): New subst.
1638 1999-05-21 Andrew Haley <aph@cygnus.com>
1640 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1641 to signal options to allow the same exceptions to be rethrown
1644 1999-05-20 Andrew Haley <aph@cygnus.com>
1646 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1648 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1649 (INIT_FPE): Exception string made more informative.
1650 * include/sparc-signal.h (INIT_FPE): Exception string made more
1652 * testsuite/libjava.lang/Divide_1.java: New file.
1653 * testsuite/libjava.lang/Divide_1.out: New file.
1655 1999-05-19 Tom Tromey <tromey@cygnus.com>
1657 * aclocal.m4, configure: Rebuilt.
1658 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1660 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1663 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1665 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1667 (update): Fail in default case. Always initialize `strat'.
1669 * mauve-libgcj: Enable java.util.zip.
1671 1999-05-18 Warren Levy <warrenl@cygnus.com>
1673 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1674 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1675 PlainDatagramSocketImpl.java, and SocketOptions.java.
1676 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1677 * Makefile.in: Rebuilt.
1679 * java/net/DatagramPacket.java: New file.
1680 * java/net/DatagramSocket.java: New file.
1681 * java/net/DatagramSocketImpl.java: New file.
1682 * java/net/MulticastSocket.java: New file.
1683 * java/net/PlainDatagramSocketImpl.java: New file.
1684 * java/net/SocketOptions.java: New file.
1685 * java/net/natPlainDatagramSocketImpl.cc: New file.
1687 1999-05-18 Tom Tromey <tromey@cygnus.com>
1689 * java/util/zip/ZipOutputStream.java (level): Initial value is
1690 Deflater.DEFAULT_COMPRESSION.
1691 (close): New method.
1692 (closeEntry): Likewise.
1694 (put_version): Likewise.
1695 (write_entry): Likewise.
1696 (put2, put4): Now return `int'.
1697 (comment): Default to empty string.
1698 (bytes_written): New instance variable.
1700 * java/util/zip/ZipEntry.java (setComment): Limit length of
1702 (setCrc): Check CRC validity.
1703 (setExtra): Check argument validity.
1704 (setMethod): Likewise.
1705 (setSize): Likewise.
1706 (ZipEntry): Likewise.
1707 * include/javaprims.h: Updated namespace declarations.
1708 * Makefile.in: Rebuilt.
1709 * Makefile.am (ordinary_java_source_files): Mention new files.
1710 (nat_source_files): Likewise.
1711 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1714 (getInputStream): Handle compressed entries.
1715 * java/util/zip/GZIPOutputStream.java: New file.
1716 * java/util/zip/GZIPInputStream.java: New file.
1717 * java/util/zip/DataFormatException.java: New file.
1718 * java/util/zip/CheckedInputStream.java: New file.
1719 * java/util/zip/CheckedOutputStream.java: New file.
1720 * java/util/zip/InflaterInputStream.java: Implemented.
1721 * java/util/zip/natInflater.cc: New file.
1722 * java/util/zip/Deflater.java: Implemented.
1723 * java/util/zip/natDeflater.cc: New file.
1724 * java/util/zip/DeflaterOutputStream.java: Implemented.
1726 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1727 ZipException, not IOException.
1728 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1731 1999-05-17 Tom Tromey <tromey@cygnus.com>
1733 * java/lang/natSystem.cc (init_properties): URL now points to
1736 1999-05-12 Per Bothner <bothner@cygnus.com>
1738 * java/util/Calendar.java (set): First call computeFields if needed.
1739 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1741 1999-05-12 Tom Tromey <tromey@cygnus.com>
1743 * configure: Rebuilt.
1744 * configure.in: Look for -ldl when using the Boehm collector.
1745 Look for sched_yield in -lposix4.
1747 1999-05-12 Per Bothner <bothner@cygnus.com>
1749 * java/io/File.java (mkdirs): Handle a null parent directory.
1751 1999-05-12 Tom Tromey <tromey@cygnus.com>
1753 * include/javaprims.h: Updated namespace declarations.
1754 * classes.pl (scan): Uniquify class list.
1755 * Makefile.in, configure: Rebuilt.
1756 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1757 (built_java_source_files): New macro.
1758 (nat_headers): Added built_java_source_files.
1759 (javao_files): Likewise.
1760 (EXTRA_libgcj_la_SOURCES): Likewise.
1761 (libgcj.zip): Create built class files.
1762 ($(built_java_source_files:.java=.class)): New target.
1763 (jv_convert_LDADD): Added -L$(here)/.libs.
1764 * configure.in: Create links for ConcreteProcess.java and
1765 natConcreteProcess.cc.
1766 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1767 * java/lang/natEcosProcess.cc: New file.
1768 * java/lang/EcosProcess.java: New file.
1769 * java/lang/PosixProcess.java: New file.
1770 * java/lang/natPosixProcess.cc: New file.
1772 1999-05-12 Warren Levy <warrenl@cygnus.com>
1774 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1775 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1776 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1777 (connect): Throw ConnectException.
1779 1999-05-11 Tom Tromey <tromey@cygnus.com>
1781 * Makefile.in: Rebuilt.
1782 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1783 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1786 * Makefile.in: Rebuilt.
1787 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1788 and it causes problems with libtool.
1790 * Makefile.in, configure: Rebuilt.
1791 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1792 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1793 (jv_convert_DEPENDENCIES): Added ZDEPS.
1794 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1796 (THREADSPEC): Added `-L' to point to qthreads build directory.
1800 * configure, Makefile.in: Rebuilt.
1801 * Makefile.am (toolexeclib_DATA): New macro.
1802 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1803 Recognize --with-system-zlib.
1804 (GCSPEC): New subst.
1805 (THREADSPEC): New subst.
1806 (SYSTEMSPEC): New subst.
1807 (ZLIBSPEC): New subst.
1808 * libgcj.spec.in: New file.
1810 1999-05-10 Tom Tromey <tromey@cygnus.com>
1812 * java/io/InputStreamReader.java (read): If length is 0, return
1813 0. Reset `wpos' and `wcount' when buffer has been filled and
1816 * java/util/Properties.java (save): Removed `FIXME' comment.
1817 (load): Invalid characters in \u now treated as terminators.
1818 Make sure to append character resulting from `\' handling.
1819 Cast to `char' when appending to key or value.
1820 (skip_ws): Inverted test for whitespace.
1822 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1824 (readLine): Likewise.
1825 (readFully): Implemented.
1827 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1829 * java/awt/natToolkit.cc: Added copyright header.
1830 * java/util/zip/InflaterInputStream.java: Added copyright header.
1832 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1834 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1836 (getNextStream): Likewise.
1838 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1840 (getBundle): Don't explicitly throw null pointer exception.
1842 * gnu/gcj/RawData.java: Added copyright header.
1844 * include/jni.h (_Jv_va_list): Always define as va_list.
1846 1999-05-9 Anthony Green <green@cygnus.com>
1848 * java/text/DateFormat.java (computeInstance): Separate time
1850 (getDateTimeInstance): Ditto.
1851 (getDateTimeInstance(int,int)): New method.
1853 * Makefile.in: Rebuilt.
1854 * Makefile.am (ordinary_java_source_files): Add new classes.
1856 * java/util/PropertyResourceBundle.java: New file.
1857 * gnu/gcj/util/EnumerationChain.java: New file.
1859 1999-05-07 Tom Tromey <tromey@cygnus.com>
1861 * acconfig.h (GCJVERSION): New undef.
1862 * java/lang/natSystem.cc (init_properties): Define java.version,
1863 java.class.version, os.name, os.arch, os.version.
1864 Include <sys/utsname.h> if required.
1865 * configure: Rebuilt.
1866 * configure.in: Compute and define GCJVERSION.
1868 * java/lang/natSystem.cc (default_file_encoding): Now static.
1870 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1872 * libtool-version: New file.
1873 * Makefile.in: Rebuilt.
1874 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1877 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1878 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1881 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1882 (we pick those up already).
1884 1999-05-05 Per Bothner <bothner@cygnus.com>
1886 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1887 stub classes. (This is enough to get Kawa to compile against libgcj.)
1889 * gnu/gcj/RawData.java: New class.
1890 * doc/cni.sgml: Document RawData.
1892 * java/util/zip/InflaterInputStream.java: New stub class.
1893 * java/util/zip/ZipInputStream.java: New class. Partly works.
1894 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1895 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1896 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1897 * java/util/zip/ZipOutputStream.java: Start implementation.
1899 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1900 (default_file_encoding): New global, initial value is above macro.
1901 (init_properties): Default file.encoding to default_file_encoding.
1903 * Makefile.am: Add new classes.
1905 1999-05-05 Tom Tromey <tromey@cygnus.com>
1907 * Makefile.in: Rebuilt.
1908 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1909 (clean-local): New target
1911 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1912 (load, loadLibrary): Now native.
1914 * java/lang/Runtime.java (load, loadLibrary): Now native.
1915 (init): New native method.
1916 (Runtime): Use init.
1917 * prims.cc: Include <ltdl.h> if required.
1918 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1920 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1922 * configure.in: Switch from irix threads to posix threads
1923 * configure: Regenerate.
1925 1999-04-30 Tom Tromey <tromey@cygnus.com>
1927 * Makefile.in: Rebuilt.
1928 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1930 1999-04-29 Tom Tromey <tromey@cygnus.com>
1932 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1935 * java/util/Locale.java (Locale(String,String)): Implement in
1936 terms of 3-argument version; variant now defaults to empty
1938 (toString): Assume variant is not null.
1939 (equals): Assume all strings are not null.
1940 (Locale): Throw NullPointerException if any argument is null.
1942 * java/util/ResourceBundle.java (getBundle): Don't try the base
1943 name; now implicit in partialGetBundle call.
1944 (trySomeGetBundle): Search for parent bundles and call setParent
1946 (partialGetBundle): Added `langStop' argument. Use
1947 `Locale.toString' to compute bundleName.
1948 (resource_cache): New static field.
1949 (partialGetBundle): Cache the returned resource bundle. Now
1952 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1955 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1956 * java/text/natCollator.cc (decomposeCharacter): `base' now
1958 * Makefile.in: Rebuilt.
1959 * Makefile.am (ordinary_java_source_files): Added
1960 CollationElementIterator, CollationKey, Collator,
1962 (nat_source_files): Added natCollator.cc.
1963 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1964 (compare): Pass `this' to CollationElementIterator constructor.
1965 (getCollationElementIterator): Likewise.
1966 (ceiNext): Fix off-by-one error when finding initial substring.
1967 (next): Correctly mask off bits when computing return value.
1968 Fixed return values when one string is shorter than the other.
1969 * java/text/CollationElementIterator.java (collator): New field.
1970 (CollationElementIterator): Added collator argument.
1971 (next): Call ceiNext on collator object.
1973 1999-04-26 Tom Tromey <tromey@cygnus.com>
1975 * natCollator.cc: New file.
1977 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1978 (GregorianCalendar): Use it in all constructors.
1979 * java/util/Calendar.java (Calendar): Changed argument name to
1980 `zone' to match code.
1982 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1983 * java/text/CollationKey.java: New file.
1984 * java/text/CollationElementIterator.java: New file.
1985 * java/text/Collator.java: New file.
1986 * java/text/RuleBasedCollator.java: New file.
1988 * Makefile.in: Rebuilt.
1989 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1990 (jv_convert_LDADD): Explicltly add -lm -lc.
1992 1999-04-26 Tom Tromey <tromey@cygnus.com>
1994 * configure, Makefile.in: Rebuilt.
1995 * configure.in: Added AM_PROG_LIBTOOL.
1996 (GCOBJS): Use `.lo' form of files.
1997 (THREADOBJS): Likewise.
1998 (GCDEPS): Use `.la' form of library.
1999 (GCLIBS): Set to be the same as GCDEPS.
2000 (THREADDEPS): Use `.la' form of library.
2001 (THREADLIBS): Set to be the same as THREADDEPS.
2002 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
2003 toolexeclib_LIBRARIES.
2004 (libgcj_la_SOURCES): Renamed for libtoolization.
2005 (EXTRA_libgcj_la_SOURCES): Likewise.
2006 (libgcj_la_DEPENDENCIES): Likewise.
2007 (libgcj_la_LIBADD): Likewise.
2008 ($(nat_files)): Use LTCXXCOMPILE.
2009 ($(c_files)): Use LTCOMPILE.
2010 (GCJCOMPILE): New macro.
2012 (.java.o): Likewise.
2013 ($(javao_files)): Likewise.
2014 (jv_convert_LINK): Use LIBTOOL.
2015 (nat_files): Use `.lo' files.
2016 (c_files): Likewise.
2017 (javao_files): Likewise.
2018 (.class.lo): Renamed.
2019 (.java.lo): Likewise.
2020 ($(nat_files)): Depend on %.lo.
2021 ($(c_files)): Likewise.
2022 ($(javao_files)): Likewise.
2023 (jv_convert_LDADD): Link against .lo files.
2024 (jv_convert_DEPENDENCIES): Depend on .lo files.
2025 (maintainer-check): Depend on libgcj.la, but examine .a file.
2026 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
2027 (libgcj_la_LDFLAGS): New macro.
2029 1999-04-23 Warren Levy <warrenl@cygnus.com>
2031 * Makefile.am: Added URLDecoder and URLEncoder.
2032 * Makefile.in: Rebuilt.
2034 * java/net/ServerSocket.java (setSocketFactory): Renamed from
2035 setSocketImplFactory to match spec.
2036 * java/net/Socket.java (getSoLinger): Changed return type to
2039 * java/net/URLDecoder.java: New file.
2040 * java/net/URLEncoder.java: New file.
2042 1999-04-21 Tom Tromey <tromey@cygnus.com>
2044 * java/lang/natString.cc (getBytes): Reverted earlier change and
2045 applied correct fix from Per Bothner.
2047 * java/lang/String.java: Don't throw
2048 UnsupportedEncodingException.
2050 * java/lang/natString.cc (getBytes): Correctly size result
2051 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2053 1999-04-20 Andrew Haley <aph@cygnus.com>
2055 * include/sparc-signal.h: new file.
2056 * configure.in: include/sparc-signal.h added.
2057 * configure: regenerated.
2058 * prims.cc (JvRunMain): signal handling code rewritten to be more
2060 (catch_segv): ditto.
2062 * include/i386-signal.h: reorganized.
2063 * include/default-signal.h: reorganized.
2065 1999-04-19 Tom Tromey <tromey@cygnus.com>
2067 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2068 once. From Anthony Green.
2070 1999-04-19 Andrew Haley <aph@cygnus.com>
2072 * Makefile.in: Processed with new automake.
2074 1999-04-19 Tom Tromey <tromey@cygnus.com>
2076 * include/javaprims.h: Removed security namespace.
2078 1999-04-20 Anthony Green <green@cygnus.com>
2080 * java/io/PrintStream.java (println): Remove extra println.
2082 1999-04-19 Anthony Green <green@cygnus.com>
2084 * Makefile.in: Rebuilt.
2085 * Makefile.am (ordinary_java_source_files): Add new security files.
2087 * java/security/NoSuchAlgorithmException.java,
2088 java/security/MessageDigest.java: New files.
2090 * include/javaprims.h: Add security namespace.
2092 1999-04-16 Per Bothner <bothner@cygnus.com>
2094 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2095 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2096 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2097 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2098 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2099 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2100 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2101 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2102 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2103 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2104 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2105 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2106 * Makefile.am: Various changes for new files and conversions.
2108 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2109 New overloading, allows greater efficiency.
2110 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2111 New overloading (for efficiency - avoids copying).
2113 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2114 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2116 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2117 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2118 (writeChars): Don't be quite so eager to flush.
2119 * java/io/PrintStream.java: Rewrite. Now more similar to
2120 OutputStreamWriter, using explicit UnicodeToBytes converter.
2121 Also, autoflush does not need to flush so often.
2122 * java/lang/natString.cc (getBytes): More efficient algorithm.
2123 (init(jbyteArray,jint,jint,jstring)): More efficient.
2125 1999-04-15 Warren Levy <warrenl@cygnus.com>
2127 * Makefile.am (ordinary_java_source_files): Added new Connection
2128 and Handler classes in gnu.gcj.protocol.file package.
2129 * Makefile.in: Rebuilt.
2131 * gnu/gcj/protocol/file/Connection.java: New file.
2132 * gnu/gcj/protocol/file/Handler.java: New file.
2133 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2134 if doInput allows input.
2135 (getOutputStream): Check if doOutput allows output.
2136 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2138 1999-04-14 Tom Tromey <tromey@cygnus.com>
2140 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2141 buffer larger to work around bug.
2142 From Bryce McKinlay <bryce@albatross.co.nz>.
2144 1999-04-14 Andrew Haley <aph@cygnus.com>
2146 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2147 NaNs are always converted to the same long value.
2148 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2151 1999-04-13 Tom Tromey <tromey@cygnus.com>
2153 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2154 instead switch on actual element type.
2156 * Makefile.in: Rebuilt.
2157 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2159 1999-04-13 Andrew Haley <aph@cygnus.com>
2161 * include/i386-signal.h, include/default-signal.h: New files.
2162 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2164 (catch_fpe): New function.
2165 * configure.in: Make link to appropriate include/java-signal.h.
2166 * configure: Rebuilt.
2167 * Makefile.am: include/java-signal.h added to dependency list.
2168 * Makefile.in: Rebuilt.
2170 1999-04-12 Urban Widmark <urban@svenskatest.se>
2172 * java/io/DataInputStream.java (readLine): Corrected handling of
2173 empty lines, from null to "".
2175 1999-04-12 Tom Tromey <tromey@cygnus.com>
2177 * Makefile.in: Rebuilt.
2178 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2180 * java/lang/natSystem.cc (SystemClass): New define.
2181 (init_properties): Synchronize.
2183 1999-04-08 Geoff Berry <gcb@gnu.org>
2185 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2186 * natPlainSocketImpl.cc (accept): Add missing else if check
2189 1999-04-08 Tom Tromey <tromey@cygnus.com>
2191 * java/lang/Long.java (parseLong): Corrected overflow detection
2193 * java/lang/Integer.java (parseInt): Corrected overflow detection
2196 * java/io/PrintStream.java (print): Handle null string argument.
2197 (println): Likewise.
2199 1999-04-07 Warren Levy <warrenl@cygnus.com>
2201 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2202 Set count to 0 when InputStreamReader returns -1 for EOF.
2204 1999-04-07 Tom Tromey <tromey@cygnus.com>
2206 * mauve-libgcj: Omit java.text.Collator,
2207 java.text.RuleBasedCollator.
2209 1999-04-06 Tom Tromey <tromey@cygnus.com>
2211 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2212 IOException from getHttpHeaders().
2213 (getHeaderFieldKey): Likewise.
2215 * include/javaprims.h: Regenerated declarations.
2217 * Makefile.in: Rebuilt.
2218 * Makefile.am (ordinary_java_source_files): Updated for removed
2221 1999-04-06 Per Bothner <bothner@cygnus.com>
2223 * java/util/zip/Adler32.java: New class.
2224 * java/util/zip/CRC32.java: Add working method bodies.
2225 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2226 * Makefile.in: Re-generate.
2228 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2230 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2231 from version in removed www hierarchy.
2232 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2233 version in removed www hierarchy.
2235 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2236 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2237 * gnu/gcj/www/protocol/http: Removed dir.
2238 * gnu/gcj/www/protocol: Removed dir.
2239 * gnu/gcj/www: Removed dir.
2241 * java/net/HttpURLConnection.java: Revised comments to indicate
2242 missing JDK 1.2 methods.
2244 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2245 hierarchy rather than the gnu/gcj/www/protocol one.
2246 * java/net/URLConnection.java: Updated status comments.
2247 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2248 the gnu/gcj/www/content one.
2250 1999-04-06 Per Bothner <bothner@cygnus.com>
2252 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2253 The gen-from-JIS program is in $(CONVERT_DIR).
2255 1999-04-06 Tom Tromey <tromey@cygnus.com>
2257 * mauve-libgcj: Renamed from mauve-libjava.
2259 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2261 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2262 (getResponseMessage): Implemented.
2263 (getResponseVals): New private method.
2265 * java/net/URLConnection.java (getContent): Implemented.
2266 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2268 1999-04-05 Tom Tromey <tromey@cygnus.com>
2270 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2271 (jv_convert_SOURCES): Renamed.
2272 (EXTRA_jv_convert_SOURCES): Likewise.
2273 (jv_convert_LDFLAGS): Likewise.
2274 (jv_convert_LINK): Likewise.
2275 (jv_convert_LDADD): Likewise.
2276 (jv_convert_DEPENDENCIES): Likewise.
2278 * Makefile.in: Rebuilt.
2279 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2282 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2284 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2285 method for comparison.
2287 * java/net/URLConnection.java (getContentLength): Implemented.
2288 (getContentType): Implemented.
2289 (getContentEncoding): Implemented.
2290 (getExpiration): Implemented.
2291 (getDate): Implemented.
2292 (getLastModified): Implemented.
2293 (getHeaderFieldInt): Implemented.
2294 (getHeaderFieldDate): Implemented.
2296 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2298 * java/net/URLConnection.java (toString): Implemented.
2299 (setContentHandlerFactory): Implemented.
2300 (setContentHandler): Wrote new private helper method.
2302 1999-04-01 Tom Tromey <tromey@cygnus.com>
2304 * Makefile.in: Rebuilt.
2305 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2306 of 1999-03-31; we always want to build all the .class files.
2307 Depend on java_source_files, not libgcj.zip.
2308 (nat_headers): Define in terms of ordinary_java_source_files.
2310 1999-03-31 Tom Tromey <tromey@cygnus.com>
2312 * Makefile.in: Rebuilt.
2313 * Makefile.am (special_java_source_files): New macro.
2314 (java_source_files): Use it.
2315 (ordinary_java_source_files): New macro.
2316 (java_source_files): Use it.
2317 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2318 creating headers for those files with hand-maintained headers.
2320 * include/javaprims.h: Regenerated namespace declarations.
2321 * classes.pl (scan): Include [0-9] in regexp for matching class
2322 names; for java.util.zip.CRC32.
2324 * Makefile.in: Rebuilt.
2325 * Makefile.am (nat_headers): Redefined to generate all possible
2328 * java/util/zip/ZipException.java: In package java.util.zip, not
2331 1999-03-30 Tom Tromey <tromey@cygnus.com>
2333 * configure: Rebuilt.
2334 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2335 eh-common.h when not building in tree with gcc.
2337 * Makefile.in: Rebuilt.
2338 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2339 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2341 ($(java_source_files:.java=.class)): New target.
2343 * Makefile.in: Rebuilt.
2344 * Makefile.am (java_source_files): Added
2345 java/net/HttpURLConnection.java and
2346 gnu/gcj/www/protocol/http/Connection.java.
2348 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2350 * gnu/gcj/www/protocol/http/Connection.java: New file.
2351 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2352 * java/net/HttpURLConnection.java: New file.
2353 * java/net/URLConnection.java (getHeaderField): Implemented default.
2354 (getHeaderFieldKey): Implemented default method.
2356 1999-03-30 Tom Tromey <tromey@cygnus.com>
2358 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2360 * java/util/zip/Deflater.java: Added copyright header.
2361 * java/util/zip/CRC32.java: Added copyright header.
2363 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2364 that it is automatically generated.
2365 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2367 * gnu/gcj/convert/BytesToUnicode.java,
2368 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2369 gnu/gcj/convert/Input_EUCJIS.java,
2370 gnu/gcj/convert/Input_UTF8.java,
2371 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2372 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2373 gnu/gcj/convert/Output_8859_1.java,
2374 gnu/gcj/convert/Output_JavaSrc.java,
2375 gnu/gcj/convert/Output_UTF8.java,
2376 gnu/gcj/convert/UnicodeToBytes.java,
2377 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2379 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2381 * Makefile.in, configure: Rebuilt.
2382 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2383 not if test subdir exists.
2384 (--enable-gcj-classes): Removed; gcj always used to generate
2386 (JAVA, JAVAC): Removed.
2387 (--enable-single-compilation, --enable-source-compilation):
2390 (NATIVE): New conditional.
2391 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2392 `install-exec' to work.
2393 (toolexeclibdir): Likewise.
2394 (toollib_LIBRARIES): Likewise.
2395 (AM_MAKEFLAGS): Don't pass tooldir.
2397 (javao_files): Redefined.
2398 (java_source_files): New macro.
2399 (c_source_files): New macro.
2400 (c_files): Redefined in terms of c_source_files.
2401 (java_io_files, java_lang_files, java_net_files, java_text_files,
2402 java_util_files, gnu_files, java_files): Removed.
2403 (class_io_files, class_lang_files, class_net_files,
2404 class_text_files, class_util_files, class_gnu_files, class_files):
2406 (nat_source_files): New macro.
2407 (nat_files): Redefined in terms of nat_source_files.
2408 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2409 java_source_files. Removed no-such-file.c.
2411 (ETAGS_ARGS): Removed.
2412 (TAGS_DEPENDENCIES): Likewise.
2413 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2415 (src_io_files, src_lang_files, src_text_files, src_util_files,
2416 src_gnu_files): Removed.
2417 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2418 (BUILT_SOURCES): Removed.
2419 (header-check): New target.
2421 (noinst_PROGRAMS): New macro.
2422 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2424 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2425 (gen-from-JIS): Build in top directory.
2426 (convert_source_files): New macro.
2427 (convert_SOURCES): New macro.
2428 (convert_LDFLAGS): Likewise.
2429 (convert_LINK): Likewise.
2430 (convert_LDADD): Likewise.
2431 (convert_DEPENDENCIES): Likewise.
2433 (gen-from-JIS): Removed.
2434 (gen_from_JIS_SOURCES): New macro.
2435 (gen_from_JIS_LDADD): Likewise.
2436 (gen_from_JIS_DEPENDENCIES): Likewise.
2438 * configure: Rebuilt.
2439 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2440 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2441 when defining conditional.
2443 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2445 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2446 The Unicode Consortium does not permit their re-distribution.
2447 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2448 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2450 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2452 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2454 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2456 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2457 from Unicode Consortium.
2458 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2459 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2460 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2461 New tables, generated using gen-from-JIS.
2462 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2463 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2464 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2465 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2467 * gnu/gcj/convert/Convert.java: New application.
2468 * Makefile.am, Makefile.in (convert): New program, using Convert.
2469 Build the various JIS conversion tables (in maintainer mode).
2471 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2473 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2475 * java/net/URL.java (URL): Deal with null property value. Use "."
2476 as separator in building class name.
2477 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2478 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2479 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2480 beginning of the substring rather than 'start'.
2482 1999-03-26 Tom Tromey <tromey@cygnus.com>
2484 * include/java-chartables.h: Rebuilt.
2485 * include/java-chardecomp.h: New file.
2486 * chartables.pl: Generate output files directly. Added support
2487 for generating decomposition header.
2488 (canonical_decomposition, full_decomposition): New globals.
2489 (DECOMPOSITION): New constant.
2490 (process_char): Call add_decomposition.
2491 (add_decomposition): New sub.
2492 (write_decompositions): New sub.
2494 1999-03-25 Tom Tromey <tromey@cygnus.com>
2496 * java/text/CollationElementIterator.java: New file.
2498 * mauve-libjava: Omit StringTest.
2500 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2502 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2503 without a '/' when parsing protocol. Handle ref outside of parseURL.
2504 (hashCode): Implemented.
2505 (set): Don't expand -1 to default port.
2506 (getDefaultPort): Removed.
2508 * java/net/URLStreamHandler.java (parseURL): Implemented.
2509 (toExternalForm): Implemented.
2511 1999-03-23 Tom Tromey <tromey@cygnus.com>
2513 * java/text/BreakIterator.java (getSentenceInstance):
2515 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2517 * Makefile.in: Rebuilt.
2518 * Makefile.am (nat_headers): Added IllegalAccessException.
2519 * java/lang/natClass.cc (newInstance): Throw
2520 IllegalAccessException, not IllegalAccessError.
2521 Include IllegalAccessException.h.
2523 1999-03-22 Tom Tromey <tromey@cygnus.com>
2525 * gnu/gcj/text/LineBreakIterator.java: New file.
2526 * java/text/BreakIterator.java (getLineInstance): Implemented.
2528 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2529 copy constructor private.
2530 (previous, next): Removed erroneous comment about line
2532 (previous): Correctly recognize break between non-letter on the
2533 left and letter on the right. Handle apostrophes correctly.
2535 * java/text/BreakIterator.java (getWordInstance): Implemented.
2536 * gnu/gcj/text/WordBreakIterator.java: New file.
2537 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2539 * gnu/gcj/text/BaseBreakIterator.java: New file.
2541 1999-03-19 Tom Tromey <tromey@cygnus.com>
2543 * java/text/BreakIterator.java: New file (partially stubbed out).
2544 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2546 * include/config.h.in: Rebuilt.
2547 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2548 (HAVE_TIMEZONE): Likewise.
2549 * configure: Rebuilt.
2550 * configure.in: Added timezone checks.
2551 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2554 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2556 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2557 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2558 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2559 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2560 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2561 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2562 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2563 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2565 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2566 (BSD_COMP): Kludge needed for Solaris2.
2568 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2570 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2571 URL(java.net.URL, string, URLStreamHandler) and call it with a
2572 null handler. In latter constructor, added SecurityManager check.
2573 (set): Expect null handler on bad protocol rather than an exception.
2574 (setURLStreamHandler): Simplified exception handling; return null
2575 on invalid protocol.
2577 1999-03-18 Tom Tromey <tromey@cygnus.com>
2579 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2581 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2583 Include PrintStream.h, InputStream.h.
2584 * java/lang/System.java (ForwardingInputStream,
2585 ForwardingOutputStream): Removed.
2586 (setErr, setIn, setOut): Now native.
2588 Reverted patch from 1999-02-12 to work around problem in
2590 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2591 (_Jv_eh_free): Use free.
2593 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2594 for path name. Minor formatting fixes.
2596 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2598 * prims.cc (fail_on_finalization): New function.
2599 (_Jv_GCWatch): Likewise.
2601 * prims.cc (JvRunMain): Initialize `nullp'.
2602 (nullp): New global.
2603 (catch_segv): Throw nullp.
2605 * Makefile.in: Rebuilt.
2606 * Makefile.am (ZIP): In "null target" case, zip is found in the
2609 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2613 * java/lang/StringBuffer.java (StringBuffer): Don't use
2614 ensureCapacity to set initial capacity.
2615 (capacity): Subtract `length' from return result.
2617 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2619 * java/io/natFileDescriptorPosix.cc (open): Throw
2620 FileNotFoundException, but with filename and errno in msg.
2622 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2624 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2625 functionality folded into java/net/URL.java per spec.
2627 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2628 than EEXIST for throwing FileNotFoundException.
2630 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2631 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2633 * java/net/URLStreamHandler.java (parseURL): Added stub.
2635 1999-03-15 Andrew Haley <aph@cygnus.com>
2637 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2640 1999-03-15 Andrew Haley <aph@cygnus.com>
2642 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2645 1999-03-12 Tom Tromey <tromey@cygnus.com>
2647 * prims.cc (catch_segv): New function.
2648 Include <signal.h> if HANDLE_SEGV defined. Include
2649 NullPointerException.h.
2650 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2653 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2654 a SimpleDateFormat, not just a DateFormat.
2655 (defaultCenturyStart, formatData, pattern): Now private.
2656 (append): Now `final'. Use `NumberFormat.format'.
2658 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2660 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2663 * java/text/MessageFormat.java (format): Use default MessageFormat
2665 (parse, parseObject): Wrote.
2667 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2670 1999-03-12 Andrew Haley <aph@cygnus.com>
2672 * java/lang/String.java (indexOf): Replace with native method for
2674 * java/lang/natString.cc (IndexOf): As above.
2676 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2677 Argument check corrected.
2678 (init(jbyteArray,jint,jint,jstring)): Likewise.
2680 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2681 1.2 compliant method.
2683 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2685 * java/lang/Float.java (byteValue, shortValue): Likewise.
2687 1999-03-11 Tom Tromey <tromey@cygnus.com>
2689 * java/text/DecimalFormat.java (parse): Wrote.
2691 * java/text/ChoiceFormat.java (parse): Set error index on
2692 ParsePosition object.
2694 * java/lang/Integer.java (parseInt): Throw exception on overflow
2695 when intermediate result is most negative number. Changed
2696 overflow detection as well.
2697 * java/lang/Long.java (parseLong): Likewise.
2699 * configure, Makefile.in: Rebuilt.
2700 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2701 CANADIAN when building in source tree that doesn't include gcc.
2702 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2705 * java/text/ChoiceFormat.java (nextDouble): Correct some
2706 off-by-one errors when masking or adding.
2708 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2709 parameter, if given. Use `%', not IEEEremainder.
2710 (scanFix): Throw error if multiplier already set.
2711 (computePattern): Wrote.
2713 1999-03-11 Andrew Haley <aph@cygnus.com>
2715 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2717 (nextDouble): Corrected masking logic. Handle interaction between
2718 `next' and negative numbers.
2720 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2722 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2723 * java/net/URL.java: Added general comments.
2725 1999-03-10 Tom Tromey <tromey@cygnus.com>
2727 * java/text/ChoiceFormat.java (parse): Wrote.
2729 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2731 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2732 Create ChoiceFormat objects.
2733 (format): Special-case ChoiceFormat.
2734 (scanFormatElement): Include { and } in generated style string.
2736 1999-03-09 Tom Tromey <tromey@cygnus.com>
2738 * java/text/ChoiceFormat.java: New file.
2740 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2742 * java/net/BindException.java: Created.
2743 * java/net/ConnectException.java: Created.
2744 * java/net/ContentHandler.java: Created.
2745 * java/net/ContentHandlerFactory.java: Created.
2746 * java/net/FileNameMap.java: Created.
2747 * java/net/MalformedURLException.java: Created.
2748 * java/net/NoRouteToHostException.java: Created.
2749 * java/net/ProtocolException.java: Created.
2750 * java/net/ServerSocket.java (@author): Fixed typo.
2751 * java/net/Socket.java (@author): Fixed typo.
2752 * java/net/SocketImpl.java (@author): Fixed typo.
2753 * java/net/SocketImplFactory.java (@author): Fixed typo.
2754 * java/net/URL.java: Created - nearly complete.
2755 * java/net/URLConnection.java: Created - near-empty stub.
2756 * java/net/URLStreamHandler.java: Created - incomplete stub.
2757 * java/net/URLStreamHandlerFactory.java: Created.
2758 * java/net/UnknownServiceException.java: Created.
2760 1999-03-09 Tom Tromey <tromey@cygnus.com>
2762 * java/lang/System.java (ForwardingInputStream): New class.
2763 (ForwardingOutputStream): Likewise.
2764 (in, out, err): Now `final' forwarding streams.
2765 (setIn, setOut, setErr): Use appropriate method on forwarding
2768 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2771 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2773 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2774 * java/util/zip/Checksum.java: New interface (complete).
2775 * java/util/zip/Deflater.java: New class (near-empty stub).
2776 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2777 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2778 * java/util/zip/ZipEntry.java: New class (complete).
2779 * java/util/zip/ZipException.java: New class (complete).
2780 * java/util/zip/ZipFile.java: New class (incomplete stub).
2781 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2783 1999-03-09 Tom Tromey <tromey@cygnus.com>
2785 * java/text/MessageFormat.java (MessageFormatElement): Removed
2786 `public' specifiers.
2788 * java/text/DecimalFormat.java (scanFormat): Increment index
2789 before processing exponential format. Fixed a couple typos in
2791 (format): Correct normalization of exponent.
2793 1999-03-08 Tom Tromey <tromey@cygnus.com>
2795 * java/text/SimpleDateFormat.java (parse): Throw
2796 IllegalArgumentException, not ParseException.
2798 1999-03-05 Tom Tromey <tromey@cygnus.com>
2800 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2801 when constructing DateFormatSymbols. Initialize numberFormat
2802 field of superclass.
2804 * java/text/DateFormat.java (equals): Rewrote.
2805 (getAvailableLocales): New method.
2806 (getDateInstance): New methods.
2807 (getDateTimeInstance): Likewise.
2808 (getTimeInstance): Likewise.
2809 (getInstance): New method.
2810 (computeInstance): New method.
2812 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2814 (safeGetResource): New method.
2815 (DateFormatSymbols): Use Locale paramater.
2816 (equals): Now protected.
2817 Made instance variables private.
2819 1999-03-04 Tom Tromey <tromey@cygnus.com>
2821 * java/text/DecimalFormat.java: New file.
2823 * java/text/NumberFormat.java (groupingUsed,
2824 maximumFractionDigits, maximumIntegerDigits,
2825 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2827 (setDecimalSeparatorAlwaysShown, setMultiplier,
2828 setPositivePrefix): Removed.
2829 (setMinimumFractionDigits, setMaximumFractionDigits):
2831 (format): Now final.
2832 Added many new methods.
2834 * Makefile.in: Rebuilt.
2835 * Makefile.am (gnu_files): New macro.
2836 (java_files): Added gnu_files.
2837 (class_gnu_files): New macro.
2838 (class_files): Use it.
2839 (src_gnu_files): New macro.
2840 (gnu.o): New target.
2841 (javao_files): Added gnu.o.
2843 * gnu/gcj/text/LocaleData_en_US.java: New file.
2844 * gnu/gcj/text/LocaleData_en.java: New file.
2845 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2846 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2847 (safeGetString): New method.
2848 (safeGetChar): Likewise.
2850 1999-03-03 Tom Tromey <tromey@cygnus.com>
2852 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2855 * java/text/FieldPosition.java (equals): Don't check for null
2856 object; instanceof does this.
2858 * java/util/Locale.java (clone): New method.
2861 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2863 * doc/cni.sgml: New file.
2865 1999-03-03 Tom Tromey <tromey@cygnus.com>
2867 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2869 * java/text/DecimalFormatSymbols.java: New file.
2871 1999-03-02 Tom Tromey <tromey@cygnus.com>
2873 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2875 * configure: Rebuilt.
2876 * configure.in: Check for sys/filio.h.
2878 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2880 (load): Always throw UnsatisfiedLinkError.
2881 (loadLibrary): Likewise.
2883 1999-03-02 Anthony Green <green@cygnus.com>
2885 * LIBGCJ_LICENSE: New file.
2886 * LIBJAVA_LICENSE: Removed.
2887 * Many files: libjava now libgcj.
2889 1999-03-02 Tom Tromey <tromey@cygnus.com>
2891 * include/java-chartables.h: Rebuilt.
2892 * chartables.pl (print_block): Make table `const'.
2893 (print_numerics): Likewise.
2894 (print_single_map): Likewise.
2895 (print_all_block): Likewise.
2896 (print_case_table): Likewise.
2897 (print_fast_tables): Likewise.
2898 * java/lang/natCharacter.cc (table_search): `table' argument now
2901 1999-03-01 Tom Tromey <tromey@cygnus.com>
2903 * java/util/Date.java (before, after): Inverted logic.
2905 * java/util/Date.java (parse): Handle case where first character
2906 in string is open parenthesis.
2907 (skipParens): Rewrote.
2909 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2910 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2912 * java/util/Date.java (parse): Correctly compute beginning of
2915 * java/util/Hashtable.java (get): Throw NullPointerException if
2917 (containsKey): Likewise.
2919 * java/util/Properties.java (list): Truncate value to 37
2920 characters and add `...'.
2922 * java/lang/Byte.java (parseByte): Pass `radix' to
2925 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2927 Include System.h, PrintStream.h.
2929 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2932 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2934 * configure: Rebuilt.
2935 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2938 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2940 * java/lang/SecurityManager.java: Import java.net.*.
2941 (checkMulticast): New methods.
2943 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2945 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2946 (nat_files): Add java/lang/reflect/natArray.o.
2947 (nat_headers): Add Field.h and NoSuchFieldException.h.
2949 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2950 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2951 (_Jv_FromReflectedField): Fix buglet.
2952 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2953 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2954 * prims.cc (_Jv_Abort): Include message in print-out.
2956 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2957 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2958 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2960 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2961 * include/config.h.in (HAVE_PWD_H): New feature macro.
2962 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2963 user.name, user.home, user.dir.
2965 * java/lang/reflect/Array.java: New class.
2966 * java/lang/reflect/natArray.cc: New native methods.
2967 * include/javaprims.h: Declare java::lang::reflect::Array.
2969 * java/lang/Class.h (getField): New private method. Add friends.
2970 * java/lang/Class.java (getField): Add private overload.
2971 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2972 getDeclaredMethods): Add working implementations.
2973 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2974 Finish implementation, except for access control.
2976 * java/lang/reflect/Modifier.java (toString): New overload.
2977 * include/java-method.h: New file.
2978 * java/lang/reflect/Method.java (index): Replaced by offset field.
2979 Remove various private fields - get them from _Jv_Field instead.
2980 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2981 New method implementations.
2983 * java/text/NumberFormat.java: Add a bunch of methods.
2985 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2987 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2989 1999-02-26 Tom Tromey <tromey@cygnus.com>
2991 * include/config.h.in: Rebuilt.
2992 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2993 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2994 HAVE_GETHOSTBYADDR_R): New defines.
2995 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2996 gethostbyaddr_r if available.
2998 * configure: Rebuilt.
2999 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
3001 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
3005 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
3006 * prims.cc (_Jv_AllocBytesChecked): New function.
3008 * Makefile.in: Rebuilt.
3009 * Makefile.am (SUBDIRS): Removed `test'.
3010 * configure: Rebuilt.
3011 * configure.in: Don't build test/Makefile.
3012 * test/*: Removed all files.
3014 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
3016 * java/lang/reflect/Constructor.java: Make class final to match spec.
3017 * java/lang/reflect/Method.java: Ditto.
3019 1999-02-25 Tom Tromey <tromey@cygnus.com>
3021 * java/net/natInetAddress.cc: Include <sys/types.h> before
3023 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
3026 * java/net/natInetAddress.cc: Declare gethostname if required.
3027 * include/config.h.in: Rebuilt.
3028 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
3029 * configure: Rebuilt.
3030 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
3031 declared in unistd.h.
3033 1999-02-24 Tom Tromey <tromey@cygnus.com>
3035 * Makefile.in: Rebuilt.
3036 * Makefile.am (java/io/FileDescriptor.h): Removed target.
3037 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
3038 from private to "none".
3040 * include/javaprims.h: Regenerated class declarations with new
3042 * classes.pl (scan): Only generate decls for java.lang, java.io,
3045 1999-02-24 Tom Tromey <tromey@cygnus.com>
3047 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3048 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3050 1999-02-23 Tom Tromey <tromey@cygnus.com>
3052 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3053 not already defined.
3054 * java/io/natFile.cc (_REENTRANT): Only define if not already
3056 * include/config.h.in: Rebuilt.
3057 * acconfig.h (HAVE_BOEHM_GC): New define.
3058 * configure: Rebuilt.
3059 * configure.in: Define HAVE_BOEHM_GC if using it.
3060 * posix-threads.cc: Include boehm-config.h and gc.h if
3062 * include/posix-threads.h: Added explanatory note about Boehm GC.
3064 * java/io/BufferedReader.java (readLine): Only return null when
3065 EOF seen before any characters read. (In particular, an empty
3066 line should not return null.)
3068 * java/io/BufferedInputStream.java (read): Only refill once per
3071 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3072 java.lang.Character.classify12, java.lang.String.hash,
3073 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3074 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3076 * java/text/StringCharacterIterator.java (setIndex): No error if
3078 (next): Check for `pos == end', not `end - 1'.
3079 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3080 for null text in each constructor.
3081 (clone): Fixed order of arguments to constructor.
3083 1999-02-22 Tom Tromey <tromey@cygnus.com>
3085 * include/config.h.in: Rebuilt.
3086 * acconfig.h (HAVE_INET6): New define.
3087 (HAVE_SOCKLEN_T): Likewise.
3088 * java/net/PlainSocketImpl.java: Added copyright header.
3089 * java/net/natPlainSocketImpl.cc: Added copyright header.
3090 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3092 (connect): Likewise.
3094 (socklen_t): New typedef.
3095 (accept): Use socklen_t.
3096 * java/net/natInetAddress.cc: Added copyright header.
3097 (HAVE_GETHOSTNAME): Don't define.
3098 (HAVE_INET_ADDR): Likewise.
3099 (lookup): Fixed typo.
3100 (aton): Don't use `address' as name of local variable.
3101 (lookup): Use HAVE_INET6, not AF_INET6.
3103 * configure: Rebuilt.
3104 * configure.in: Look for functions inet_aton, inet_addr,
3105 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3106 Check for socklen_t typedef.
3108 * exception.cc (__throw): Declare as __noreturn__.
3110 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3112 * Makefile.am, Makefile.in: Also build java/net.
3113 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3115 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3116 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3118 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3119 * include/cni.h (JvMalloc, JvFree): New inline functions.
3120 (JvThrow): Add __noreturn__ attribute.
3121 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3122 (_Jv_Throw): Add __noreturn__ attribute.
3124 * java/net/PlainSocketImpl.java: Init fnum to -1.
3125 * java/net/ServerSocket.java: Add missing throws clauses.
3126 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3127 don't call create on the latter. Instead, other constructors
3128 have to explicitly call SocketImpl.create.
3129 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3130 from size_t to int, to match ::accept prototype.
3131 * java/net/natInetAddress.cc: Use JvFree rather than free.
3134 1999-02-22 Tom Tromey <tromey@cygnus.com>
3136 * include/javaprims.h: Added new classes.
3137 * java/text/StringCharacterIterator.java: New file.
3138 * java/text/CharacterIterator.java: New file.
3140 * java/text/ParseException.java (errorOffset): Now private.
3142 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3144 * java/net: New package.
3145 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3146 Socket.java,SocketException.java,SocketImpl.java,
3147 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3148 natPlainSocketImpl.cc}: New classes.
3150 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3151 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3152 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3153 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3155 * classes.pl: Translate package into "namespace", not "class".
3156 * include/javaprims.h: Update class list, using "namespace".
3158 1999-02-21 Tom Tromey <tromey@cygnus.com>
3160 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3161 Define when appropriate.
3163 1999-02-20 Tom Tromey <tromey@cygnus.com>
3165 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3166 as a single byte and \u07ff as two bytes.
3167 (_Jv_GetStringUTFLength): Likewise.
3168 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3169 with 0x0f, not 0x1f.
3171 1999-02-19 Tom Tromey <tromey@cygnus.com>
3173 * java/io/DataOutputStream.java (writeUTF): When encoding
3174 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3175 * java/io/DataInputStream.java (readUTF): Mask second byte of
3176 3-byte character with 0x3f, not 0x1f.
3178 * java/io/DataInputStream.java (readLong): Cast result of
3179 readUnsignedByte to long before using.
3181 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3184 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3185 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3186 argument to avoid warning.
3187 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3188 argument to avoid warning.
3190 1999-02-18 Tom Tromey <tromey@cygnus.com>
3192 * mauve-libjava: Omit java.io.DataInputOutput and
3193 java.io.Utf8Encoding.
3195 1999-02-17 Tom Tromey <tromey@cygnus.com>
3197 * Makefile.in: Rebuilt.
3198 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3199 * java/io/natFileDescriptorPosix.cc: Include
3200 InterruptedIOException.h, Thread.h.
3201 (write): Throw InterruptedIOException when required.
3203 * posix-threads.cc: Include <signal.h>.
3204 (_Jv_ThreadInterrupt): New function.
3206 (handle_intr): New function.
3207 (_Jv_InitThreads): Register handle_intr via sigaction.
3208 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3209 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3210 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3211 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3213 1999-02-19 Andrew Haley <aph@cygnus.com>
3215 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3217 (ThreadGroup (int)): Set the maximum priority of the initial
3220 1999-02-18 Andrew Haley <aph@cygnus.com>
3222 * java/lang/natClass.cc (forName): Check for the case where a
3223 classname is the name of an array and call FindClassFromSignature
3226 1999-02-18 Andrew Haley <aph@cygnus.com>
3228 * java/lang/StringBuffer (insert (int, String)): Move up any
3229 characters above the insert position and increase the length of
3230 the string buffer by the length of the argument.
3231 (insert (int, char[])): Likewise.
3232 (insert (int, char)): Likewise.
3233 (StringBuffer (String)): The initial capacity of the string buffer
3234 is 16 plus the length of the argument.
3235 (getChars): Add a JDK 1.2 FIXME.
3237 1999-02-18 Andrew Haley <aph@cygnus.com>
3239 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3242 1999-02-18 Andrew Haley <aph@cygnus.com>
3244 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3245 instead of floating-point equality. This is necessary for
3246 correct floating-point Hashtables.
3247 * java/lang/Float.java (equals): Ditto.
3249 1999-02-16 Tom Tromey <tromey@cygnus.com>
3251 * java/util/Properties.java (list): Truncate value to 37
3252 characters and add "...".
3254 1999-02-16 Tom Tromey <tromey@cygnus.com>
3256 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3257 if initCap is negative.
3258 (contains): Implement JDK1.2-style handling of null argument.
3259 (removeElement): Likewise.
3260 (indexOf): Likewise. Also, correctly handle case where idx is
3262 (lastIndexOf): Likewise.
3264 1999-02-16 Tom Tromey <tromey@cygnus.com>
3266 * java/lang/natString.cc (init): Increment source pointer in
3269 1999-02-16 Tom Tromey <tromey@cygnus.com>
3271 * exception.cc: Include NullPointerException.h.
3272 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3274 1999-02-16 Tom Tromey <tromey@cygnus.com>
3276 * Makefile.in: Rebuilt.
3277 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3279 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3281 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3282 we're compiling canadian.
3283 * configure: Regenerated.
3285 1999-02-12 Andrew Haley <aph@cygnus.com>
3287 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3288 deleted from libgcj.
3290 1999-02-12 Tom Tromey <tromey@cygnus.com>
3292 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3293 (_Jv_eh_free): Don't call free.
3294 Don't declare malloc or free.
3296 1999-02-11 Tom Tromey <tromey@cygnus.com>
3298 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3300 1999-02-11 Andrew Haley <aph@cygnus.com>
3302 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3303 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3304 needed by java.lang.*.
3305 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3306 wf_fmod.o: Removed from libjava.a.
3308 1999-02-11 Tom Tromey <tromey@cygnus.com>
3310 * include/javaprims.h: Reverted previous change; with it
3311 exception.cc can't compile.
3313 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3315 * include/config.h.in: Rebuilt.
3316 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3318 * configure: Rebuilt.
3319 * configure.in: Check for sched_yield. Look in thread library for
3320 all thread functions.
3322 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3323 no recursive mutexes.
3324 (_Jv_MutexDestroy): Define when required.
3325 (_Jv_MutexLock): Likewise.
3326 (_Jv_MutexUnlock): Likewise.
3327 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3328 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3329 (_Jv_Mutex_t): New structure.
3330 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3331 (_Jv_MutexLock): Likewise.
3332 (_Jv_MutexUnlock): Likewise.
3334 1999-02-10 Tom Tromey <tromey@cygnus.com>
3336 * aclocal.m4, configure, Makefile.in: Rebuilt.
3337 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3339 * configure.in: Changed to track library changes.
3340 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3341 (AM_CXXFLAGS): Likewise.
3342 (data_DATA): Likewise.
3343 (AM_CFLAGS): Likewise.
3344 (JC1FLAGS): Likewise.
3345 (libgcj_a_SOURCES): Likewise.
3346 (EXTRA_libgcj_a_SOURCES): Likewise.
3347 (libgcj_a_DEPENDENCIES): Likewise.
3348 (libgcj_a_LIBADD): Likewise.
3349 (libgcj.zip): Likewise.
3350 (CLEANFILES): Likewise.
3351 ($(nat_headers)): Likewise.
3352 (java/lang/FirstThread.h): Likewise.
3353 (java/lang/ThreadGroup.h): Likewise.
3354 (java/lang/String.h): Likewise.
3355 (java/lang/reflect/Field.h): Likewise.
3356 (BUILT_SOURCES): Likewise.
3357 (maintainer-check): Likewise.
3358 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3359 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3361 * java/util/natGregorianCalendar.cc (computeFields): Only use
3362 gmtime_r and localtime_r when configured for posix threads.
3364 * java/io/natFile.cc (get_entry): Only use readdir_r when
3365 configured for posix threads.
3367 * java/util/natGregorianCalendar.cc: Update copyright notice.
3368 * java/util/TimeZone.java: Ditto.
3369 * java/util/SimpleTimeZone.java: Ditto.
3371 1999-02-08 Tom Tromey <tromey@cygnus.com>
3373 * java/io/PrintStream.java (line_separator): New constant.
3374 (print): Use line_separator, not `file.separator' property.
3375 (println): Use line_separator.
3377 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3378 when trying to instantiate Class.
3380 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3381 NullPointerException if argument is null.
3383 * java/lang/Thread.java (setName): Throw NullPointerException, not
3384 IllegalArgumentException.
3387 1999-02-08 Andrew Haley <aph@cygnus.com>
3389 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3390 create new Classes with Class.newInstance().
3392 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3393 semiciolon to end of an array Class's signature if the elements of
3394 the array aren't themselves arrays.
3396 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3397 array of objects is always sizeof(jobject), not the size of the
3398 object to which the reference points.
3400 1999-02-08 Tom Tromey <tromey@cygnus.com>
3402 * java/util/BitSet.java (and): Throw NullPointerException when
3407 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3408 if argument is negative.
3409 (clear): Correctly compute `offset'. Throw
3410 IndexOutOfBoundsException when required.
3412 (get): Likewise. Also, return correct value.
3413 (ensure): Changed meaning of argument.
3414 (toString): Wrap contents in `{}'; put spaces after commas.
3415 (hashCode): Don't try to examine elements off the end of array.
3416 (or): Correctly include bits past the end of this bit set.
3419 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3421 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3422 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3424 1999-02-04 Andrew Haley <aph@cygnus.com>
3426 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3427 '/' in signatures to '.'
3428 (Class::getName): Likewise,
3429 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3431 * java/lang/natFirstThread.cc (run): Change '/' in main's
3434 1999-02-03 Andrew Haley <aph@cygnus.com>
3436 * configure.host: -ffloat-store added when compiling libjava on
3437 x86. fdlibm apparently relies on this.
3439 * java/lang/ThreadGroup.java (add): throw an exception if the
3440 ThreadGroup has been destroyed.
3442 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3445 1999-01-27 Tom Tromey <tromey@cygnus.com>
3447 * java/lang/StringBuffer.java (StringBuffer): Handle null
3450 1999-01-21 Tom Tromey <tromey@cygnus.com>
3452 * java/lang/natFirstThread.cc (run): Don't require main to be
3455 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3457 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3459 1999-01-20 Tom Tromey <tromey@cygnus.com>
3461 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3465 (unintern): Likewise.
3466 (_Jv_NewStringUtf8Const): Likewise.
3468 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3469 Character.isLetter, to see if character is self-quoting. Also,
3470 correctly handle quoted characters.
3471 (parse): Fixed typo. Also now throws ParseException.
3473 1999-01-15 Tom Tromey <tromey@cygnus.com>
3475 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3477 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3478 _Jv_SyncInfo has `init' member.
3480 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3483 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3484 IllegalMonitorStateException if unlock fails.
3486 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3488 (_Jv_NewObjectArray): Likewise.
3490 1999-01-14 Tom Tromey <tromey@cygnus.com>
3492 * java/lang/Character.java (isJavaIdentifierPart): Allow
3493 LETTER_NUMBER characters.
3495 * chartables.pl (process_char): Fixed error messages.
3497 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3498 * chartables.pl: Updated comments. Changed detection of non-digit
3499 numeric values (no longer miss \u00b2 and friends).
3501 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3502 currency symbols and connector punctuation.
3503 (isIdentifierIgnorable): Make 7f-9f ignorable.
3505 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3506 (_Jv_NewPrimArray): Likewise.
3507 (SIZE_T_MAX): New define.
3509 * java/lang/ClassLoader.java (system): Now private and final.
3511 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3514 * configure: Rebuilt.
3515 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3517 * exception.cc: Include gansidecl.h.
3519 1999-01-14 Andrew Haley <aph@cygnus.com>
3521 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3522 corrected: they didn't treat -0.0 and NaNs correctly.
3524 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3526 * nogc.cc: Use calloc to zero out memory.
3528 1999-01-11 Tom Tromey <tromey@cygnus.com>
3530 * java/lang/natClass.cc (isInstance): Return false if this class
3531 is primitive, not if class of `obj' is primitive.
3532 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3534 * java/io/SequenceInputStream.java (close): Handle case where `in'
3537 * java/text/DateFormat.java (format): New method.
3539 * mauve-libjava: Omit java.text.DateFormat.
3541 1999-01-08 Tom Tromey <tromey@cygnus.com>
3543 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3545 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3547 (_Jv_CondNotifyAll): Likewise.
3549 * configure: Rebuilt.
3550 * configure.in: Change --enable-source-compilation logic to work
3553 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3555 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3556 and RUNTESTFLAGS from AM_MAKEFLAGS.
3557 * configure.in: AM_RUNTESTFLAGS added.
3558 * configure.host: AM_RUNTESTFLAGS added.
3559 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3560 * configure: rebuilt.
3561 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3563 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3564 argv[] made conditional because embedded targets may not have
3566 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3567 explanatory comments added in call to super.
3569 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3570 exception thrown in the test harness itself added.
3571 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3573 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3575 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3577 1999-01-06 Tom Tromey <tromey@cygnus.com>
3579 * java/io/natFile.cc (get_entry): New function.
3580 (performList): Use get_entry.
3581 * include/config.h.in: Rebuilt.
3582 * acconfig.h (HAVE_READDIR_R): New define.
3583 * configure: Rebuilt.
3584 * configure.in: Look for readdir_r.
3586 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3588 * java/util/natDate.cc: Added copyright header.
3590 1999-01-05 Tom Tromey <tromey@cygnus.com>
3592 * include/config.h.in: Rebuilt.
3593 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3594 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3595 * configure: Rebuilt.
3596 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3597 unlink, and realpath.
3598 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3599 (stat): Conditionalize on HAVE_STAT.
3601 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3602 (performMkdir): Conditionalize on HAVE_MKDIR.
3603 (performRenameTo): Conditionalize on HAVE_RENAME.
3604 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3606 * include/config.h.in: Rebuilt.
3607 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3608 * configure: Rebuilt.
3609 * configure.in: Check for gmtime_r and localtime_r. For cross
3610 builds, assume they exist.
3612 * mauve-libjava: Include java.text.DateFormatSymbols again.
3613 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3614 from setAmPmStrings.
3616 * mauve-libjava: Omit java.text.DateFormatSymbols.
3618 1999-01-04 Tom Tromey <tromey@cygnus.com>
3620 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3622 * java/io/LineNumberReader.java (read): Decrement `count' in
3625 * java/io/BufferedWriter.java (write): Correctly determine when
3626 incoming data would overrun buffer. Flush buffer if write causes
3629 * java/io/BufferedOutputStream.java (write): Increment `count'
3630 after copying data into buffer.
3632 * java/io/FilterOutputStream.java (close): Call flush first.
3634 * java/io/PipedReader.java (read): If read causes `out' to catch
3635 up with `in', then set `in' to -1.
3637 * java/io/LineNumberInputStream.java (read): If no bytes read,
3638 return -1. If no bytes requested, return 0.
3640 * java/lang/StringBuffer.java (insert): If `str' is null, use
3643 1998-12-30 Anthony Green <green@cygnus.com>
3646 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3648 1998-12-23 Tom Tromey <tromey@cygnus.com>
3650 * java/io/PushbackInputStream.java (read): `off' already includes
3653 1998-12-17 Tom Tromey <tromey@cygnus.com>
3655 * Makefile.in: Rebuilt.
3656 * Makefile.am (GCJ_canadian): Include target_alias.
3658 * java/lang/natFirstThread.cc (run): Require main's class to be
3661 1998-12-16 Tom Tromey <tromey@cygnus.com>
3663 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3665 * java/util/ResourceBundle.java (getBundle): Throw
3666 NullPointerException if locale argument is null.
3668 * java/lang/natClass.cc (forName): Throw NullPointerException if
3670 Include NullPointerException.h.
3672 1998-12-14 Tom Tromey <tromey@cygnus.com>
3674 * java/lang/Character.java (Character): Implement Comparable.
3675 (compareTo): New methods.
3677 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3678 correct country and language codes.
3679 (UK, US): New constants.
3680 (setDefault): Language codes are lower-case.
3682 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3683 (getDeclaredConstructors): Likewise.
3684 (getDeclaredField): Likewise.
3685 (getDeclaredFields): Likewise.
3686 (getDeclaredMethod): Likewise.
3687 (getDeclaredMethods): Likewise.
3688 (getField): Likewise.
3689 (getFields): Likewise.
3690 (getMethod): Likewise.
3691 (getMethods): Likewise.
3692 * java/lang/Class.java: Declare new methods.
3693 * java/lang/Class.h: Declare new methods.
3695 * java/lang/natString.cc: Removed `#pragma implementation'.
3696 * include/cni.h (_Jv_GetStringChars): New function.
3697 * Makefile.in: Rebuilt.
3698 * Makefile.am (java/lang/String.h): Don't generate definition for
3701 * java/lang/natString.cc: Added `#pragma implementation'.
3703 * Makefile.in: Rebuilt.
3704 * Makefile.am (libjava.zip): Put build directory first in class
3705 path to avoid bug in compiler.
3707 1998-12-14 Anthony Green <green@cygnus.com>
3709 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3711 * include/javaprims.h: Add EventObject, ListResourceBundle and
3714 1998-12-13 Anthony Green <green@cygnus.com>
3716 * mauve-libjava: Run the ResourceBundle tests.
3718 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3721 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3723 * configure.in, configure: Make --enable-gcj-classes and
3724 --enable-source-compilation the default. (Nervously...) Yeah!
3725 Based on a patch from Tom Tromey.
3727 1998-12-13 Tom Tromey <tromey@cygnus.com>
3729 * java/util/EventObject.java: New file.
3730 * java/util/EventListener.java: New file.
3732 * include/javaprims.h: Updated class declarations.
3733 * Makefile.in: Rebuilt.
3734 * Makefile.am (nat_headers): Added Constructor.h.
3735 (java/lang/String.h): Don't inline String::length().
3736 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3737 * java/lang/Class.java (initializeClass, hackRunInitializers,
3738 hackTrampoline): No need to mark `final'.
3739 (getConstructor, getConstructors): Declare.
3740 * java/lang/reflect/Field.java (equals): New method.
3741 * java/lang/natClass.cc (getConstructor): New method.
3742 (getConstructors): Likewise.
3743 Include Method.h, Field.h, Constructor.h.
3744 * java/lang/reflect/Constructor.java: New file.
3745 * java/lang/reflect/Method.java (toString): No space before open
3747 (equals): Simplified.
3749 1998-12-13 Anthony Green <green@cygnus.com>
3751 * java/util/ResourceBundle.java: New file.
3752 * java/util/ListResourceBundle.java: New file.
3754 1998-12-12 Tom Tromey <tromey@cygnus.com>
3756 * java/lang/System.java (in, out, err): Now buffered streams by
3759 * include/javaprims.h: Updated class declarations.
3760 * Makefile.in: Rebuilt.
3761 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3762 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3764 (nat_files): Added natMethod.o.
3765 * java/lang/reflect/natMethod.cc: New file.
3766 * java/lang/reflect/Field.java (Field): Now extends
3768 * java/lang/reflect/AccessibleObject.java: New file.
3769 * java/lang/reflect/InvocationTargetException.java: New file.
3771 1998-12-11 Tom Tromey <tromey@cygnus.com>
3773 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3774 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3775 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3777 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3779 1998-12-09 Tom Tromey <tromey@cygnus.com>
3781 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3784 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3785 character is already titlecase.
3787 * java/lang/Character.java (isJavaLetter): Follow spec.
3788 (isJavaLetterOrDigit): Likewise.
3790 * java/util/GregorianCalendar.java (gregorianCutover): Append
3793 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3795 1998-12-08 Tom Tromey <tromey@cygnus.com>
3797 * java/lang/reflect/Modifier.java (toString): Replace second
3798 `static' with `synchronized'.
3800 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3801 * java/lang/Object.h (Object::hack12_6): Declare.
3802 * java/lang/Object.java (hack12_6): New function.
3804 1998-12-07 Tom Tromey <tromey@cygnus.com>
3806 * include/java-array.h (__JArray::clone): Removed decl.
3807 * prims.cc (__JArray::clone): Removed.
3808 * java/lang/natObject.cc (clone): Incorporate code to clone an
3811 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3812 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3813 Correctly use dtable_method_count.
3815 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3817 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3820 1998-12-06 Anthony Green <green@cygnus.com>
3822 * mauve-libjava: Don't test ResourceBundle.
3824 1998-12-04 Tom Tromey <tromey@cygnus.com>
3826 More JDK 1.2 spec fixes:
3827 * java/util/Date.java (millis): Now private.
3828 * java/text/DateFormat.java (DateFormat): Constructor now
3830 * java/lang/Void.java (Void): New private constructor.
3831 * java/lang/System.java (System): New private constructor.
3832 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3834 (currentClassLoader): New method.
3835 (currentLoadedClass): New method.
3836 * java/lang/Math.java (Math): New private constructor.
3837 * java/lang/Compiler.java (Compiler): New private constructor.
3838 * java/lang/Class.java (Class): New private constructor.
3839 * java/lang/Double.java (toString): Removed access specifier from
3840 two-argument `toString' method.
3842 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3844 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3845 causes it to be flushed from an fp register (where it may be
3846 longer than double precision) to a double in memory. This is
3847 essential to ensure correct rounding behaviour.
3849 1998-12-04 Tom Tromey <tromey@cygnus.com>
3851 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3854 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3855 explaining apparent divergence from JDK 1.2.
3857 1998-12-04 Per Bothner <bothner@cygnus.com>
3859 * include/no-threads.h: Remove unused parameter names.
3860 This silences a bunch of warnings.
3862 1998-12-04 Tom Tromey <tromey@cygnus.com>
3864 * include/config.h.in: Rebuilt.
3865 * acconfig.h (HAVE_CTIME_R): New symbol.
3867 1998-12-03 Tom Tromey <tromey@cygnus.com>
3869 * mauve-libjava: Added many more categories to reject.
3871 Changes to follow JDK1.2 spec:
3872 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3873 setErr, setIn, setOut): No need to be `final'.
3874 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3875 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3876 * java/lang/Object.java (wait): `nanos' argument is an int.
3877 * java/lang/VirtualMachineError.java: Class is abstract.
3878 * java/lang/ThreadDeath.java: Made constructors public.
3879 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3882 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3884 * java/text/DateFormatSymbols.java (getAmPmStrings,
3885 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3887 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3889 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3890 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3891 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3894 * java/lang/IllegalThreadStateException.java
3895 (IllegalThreadStateException): Changed extending class to match spec.
3897 * java/lang/NumberFormatException.java
3898 (java/lang/NumberFormatException): Changed extending class to match
3901 * java/util/Observer.java (Observer): Changed sig to match JCL.
3903 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3905 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3906 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3907 signature to match JDK 1.1 and 1.2.
3909 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3911 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3912 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3913 * Makefile.in, configure: Rebuilt.
3915 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3918 1998-12-02 Tom Tromey <tromey@cygnus.com>
3920 * mauve-libjava: New file.
3922 The remaining `-W -Wall' fixes:
3923 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3925 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3927 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3929 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3931 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3933 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3935 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3937 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3939 * java/lang/mprec.c (Balloc): Removed unused variable.
3940 (mult): Added parentheses per gcc suggestion.
3941 (pow5mult): Likewise.
3946 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3947 suggestion. Added cast to `int' to avoid signed/unsigned
3949 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3951 (IsAssignableFrom): Likewise.
3952 (_Jv_JNI_GetObjectField): Likewise.
3953 (_Jv_JNI_GetByteField): Likewise.
3954 (_Jv_JNI_GetShortField): Likewise.
3955 (_Jv_JNI_GetIntField): Likewise.
3956 (_Jv_JNI_GetLongField): Likewise.
3957 (_Jv_JNI_GetStringLength): Likewise.
3958 (_Jv_JNI_ToReflectedField): Likewise.
3959 (_Jv_JNI_FromReflectedField): Likewise.
3960 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3962 * Makefile.in: Rebuilt.
3963 * Makefile.am (AM_CFLAGS): Define conditionally.
3964 (WARNINGS): New macro.
3965 (AM_CXXFLAGS): Include WARNINGS.
3966 * configure: Rebuilt.
3967 * configure.in (USING_GCC): New conditional.
3969 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3971 * java/lang/Character.java: Changed classification constants to
3972 type `byte' to match JDK 1.2 docs.
3974 1998-12-01 Tom Tromey <tromey@cygnus.com>
3976 Some fixes to be `-W -Wall' clean:
3977 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3978 (_Jv_MarkArray): Likewise.
3979 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3980 (to_upper_title): Likewise.
3981 (isTitleCase): Likewise.
3982 (toTitleCase): Likewise.
3983 (getNumericValue): Likewise.
3984 (isLowerCase): Likewise.
3985 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3986 (avoids compiler warning).
3987 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3989 (getDeclaringClass): Likewise.
3990 (_Jv_LookupInterfaceMethod): Likewise.
3991 (_Jv_NewClass): Removed name of unused parameter.
3992 * exception.cc (_Jv_type_matcher): Removed unused variable.
3993 (_Jv_setup_eh_info): Removed name of unused parameter.
3994 * prims.cc (_Jv_NewArray): Always return a value.
3995 (_Jv_FindClassFromSignature): Likewise.
3996 * include/java-field.h (getNameUtf8Const): Removed name of unused
3998 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
4000 (_Jv_ThreadSetPriority): Likewise.
4002 * java/lang/natString.cc (hashChars): Now static.
4004 * java/lang/FirstThread.java (FirstThread): Now final.
4006 * java/io/File.java (performMkdir, performRenameTo): Now private.
4008 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
4009 if no time function defined.
4011 * configure: Rebuilt.
4012 * configure.in: Look for ctime_r, ctime.
4013 * java/util/Date.java (toString): Now native.
4014 * java/util/natDate.cc (toString): Rewrote.
4016 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
4018 * Add LDFLAGS line to allow TX39 test cases to link when cross
4021 1998-11-23 Anthony Green <green@cygnus.com>
4023 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
4024 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
4025 quick-threads.cc, include/boehm-gc.h, include/cni.h,
4026 include/java-array.h, include/java-assert.h, include/java-field.h,
4027 include/javaprims.h, include/jni.h, include/jvm.h,
4028 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
4029 include/quick-threads.h, java/io/BufferedInputStream.java,
4030 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
4031 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
4032 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
4033 java/io/CharArrayWriter.java,
4034 java/io/CharConversionException.java, java/io/DataInput.java,
4035 java/io/DataInputStream.java, java/io/DataOutput.java,
4036 java/io/DataOutputStream.java, java/io/EOFException.java,
4037 java/io/File.java, java/io/FileDescriptor.java,
4038 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
4039 java/io/FileOutputStream.java, java/io/FileReader.java,
4040 java/io/FileWriter.java, java/io/FilenameFilter.java,
4041 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
4042 java/io/FilterReader.java, java/io/FilterWriter.java,
4043 java/io/IOException.java, java/io/InputStream.java,
4044 java/io/InputStreamReader.java,
4045 java/io/InterruptedIOException.java,
4046 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4047 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4048 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4049 java/io/PipedReader.java, java/io/PipedWriter.java,
4050 java/io/PrintStream.java, java/io/PrintWriter.java,
4051 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4052 java/io/RandomAccessFile.java, java/io/Reader.java,
4053 java/io/SequenceInputStream.java, java/io/Serializable.java,
4054 java/io/StreamTokenizer.java,
4055 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4056 java/io/StringWriter.java, java/io/SyncFailedException.java,
4057 java/io/UTFDataFormatException.java,
4058 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4059 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4060 java/io/natFileDescriptorPosix.cc,
4061 java/lang/AbstractMethodError.java,
4062 java/lang/ArithmeticException.java,
4063 java/lang/ArrayIndexOutOfBoundsException.java,
4064 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4065 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4066 java/lang/Class.java, java/lang/ClassCastException.java,
4067 java/lang/ClassCircularityError.java,
4068 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4069 java/lang/ClassNotFoundException.java,
4070 java/lang/CloneNotSupportedException.java,
4071 java/lang/Cloneable.java, java/lang/Comparable.java,
4072 java/lang/Compiler.java, java/lang/Double.java,
4073 java/lang/Error.java, java/lang/Exception.java,
4074 java/lang/ExceptionInInitializerError.java,
4075 java/lang/FirstThread.java, java/lang/Float.java,
4076 java/lang/IllegalAccessError.java,
4077 java/lang/IllegalAccessException.java,
4078 java/lang/IllegalArgumentException.java,
4079 java/lang/IllegalMonitorStateException.java,
4080 java/lang/IllegalStateException.java,
4081 java/lang/IllegalThreadStateException.java,
4082 java/lang/IncompatibleClassChangeError.java,
4083 java/lang/IndexOutOfBoundsException.java,
4084 java/lang/InstantiationError.java,
4085 java/lang/InstantiationException.java, java/lang/Integer.java,
4086 java/lang/InternalError.java, java/lang/InterruptedException.java,
4087 java/lang/LinkageError.java, java/lang/Long.java,
4088 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4089 java/lang/NoClassDefFoundError.java,
4090 java/lang/NoSuchFieldError.java,
4091 java/lang/NoSuchFieldException.java,
4092 java/lang/NoSuchMethodError.java,
4093 java/lang/NoSuchMethodException.java,
4094 java/lang/NullPointerException.java, java/lang/Number.java,
4095 java/lang/NumberFormatException.java, java/lang/Object.h,
4096 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4097 java/lang/Process.java, java/lang/Runnable.java,
4098 java/lang/Runtime.java, java/lang/RuntimeException.java,
4099 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4100 java/lang/Short.java, java/lang/StackOverflowError.java,
4101 java/lang/String.java, java/lang/StringBuffer.java,
4102 java/lang/StringIndexOutOfBoundsException.java,
4103 java/lang/System.java, java/lang/Thread.java,
4104 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4105 java/lang/Throwable.java, java/lang/UnknownError.java,
4106 java/lang/UnsatisfiedLinkError.java,
4107 java/lang/UnsupportedOperationException.java,
4108 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4109 java/lang/Void.java, java/lang/natCharacter.cc,
4110 java/lang/natClass.cc, java/lang/natDouble.cc,
4111 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4112 java/lang/natMath.cc, java/lang/natObject.cc,
4113 java/lang/natRuntime.cc, java/lang/natString.cc,
4114 java/lang/natSystem.cc, java/lang/natThread.cc,
4115 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4116 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4117 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4118 java/text/FieldPosition.java, java/text/Format.java,
4119 java/text/NumberFormat.java, java/text/ParseException.java,
4120 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4121 java/util/BitSet.java, java/util/Calendar.java,
4122 java/util/ConcurrentModificationException.java,
4123 java/util/Date.java, java/util/Dictionary.java,
4124 java/util/EmptyStackException.java, java/util/Enumeration.java,
4125 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4126 java/util/Locale.java, java/util/MissingResourceException.java,
4127 java/util/NoSuchElementException.java, java/util/Observable.java,
4128 java/util/Observer.java, java/util/Properties.java,
4129 java/util/Random.java, java/util/SimpleTimeZone.java,
4130 java/util/Stack.java, java/util/StringTokenizer.java,
4131 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4132 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4135 * exception.cc: Include eh-common.h instead of duplicating
4138 1998-11-23 Tom Tromey <tromey@cygnus.com>
4140 * configure.host: Don't add `-O2' to libjava_flags. Only add
4141 `-Os' to libjava_flags once.
4143 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4145 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4146 * Makefile.in: likewise
4147 * acconfig.h: add ECOS conditional for configure.h
4148 * config.h.in: likewise
4149 * configure: add test for --with-ecos
4150 * configure.in: likewise
4151 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4152 rename call to avoid name clash.
4153 * java/lang/natSystem.cc: add eCos clock support.
4154 * java/util/natGregorianCalendar.cc: add eCos support.
4156 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4158 * Makefile.am, Makefile.in, configure.host: tx39 build option
4161 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4163 * java/io/BufferedReader.java: Added more comments for clarity.
4164 (mark): Used more mnemonic name for local var extraBuffSpace.
4166 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4167 confusion with private method of same name in superclass.
4168 (skipRedundantLF): Set fields in special case to avoid infinite
4169 recursion. Check if markPos has been invalidated in special case.
4170 (readLine): Rewritten to use readLine method of superclass.
4171 (skip): Incorporated code from lineEnd.
4173 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4175 * java/io/BufferedReader.java (readLine): New method.
4176 (lineEnd): new private method.
4177 (mark): Track special case for readLine of getting '\r' at the
4184 * java/io/InputStreamReader.java (read): Return number chars skipped
4185 rather than requested.
4187 * java/lang/StringBuffer.java (append): Update count and differentiate
4188 between field and local variable.
4190 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4191 seconds. Deal with military style time.
4192 (parse): Consistently treat all timezones in minutes until final
4193 calculation. Flag as non-local timezone. Return value in milliseconds.
4194 (setTime): Adjust for year offset from 1900.
4195 (UTC): Adjust for year offset from 1900.
4197 1998-11-17 Tom Tromey <tromey@cygnus.com>
4199 * configure: Rebuilt.
4200 * configure.in: Switch on host, not target.
4202 * Makefile.in: Rebuilt.
4203 * Makefile.am (GCJ_no): New macro.
4204 (GCJ): Use @CANADIAN@.
4205 (GCJH_no): New macro
4206 (GCJH_canadian): New macro.
4207 (GCJH): Use @CANADIAN@.
4208 (ZIP_no): New macro.
4209 (ZIP_canadian): New macro.
4210 (ZIP): Use @CANADIAN@.
4211 * aclocal.m4, configure: Rebuilt.
4212 * configure.in (CANADIAN): Compute and subst.
4214 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4216 * java/io/FileDescriptor.java (finalize): Only close file
4217 descriptor if valid.
4219 1998-11-17 Tom Tromey <tromey@cygnus.com>
4221 * prims.cc (_Jv_InitRuntime): Removed.
4223 1998-11-16 Tom Tromey <tromey@cygnus.com>
4225 * java/io/FileOutputStream.java (close): Only close file
4226 descriptor if valid.
4227 (finalize): New method.
4229 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4230 (_Jv_NewPrimArray): Likewise.
4231 * boehm.cc (_Jv_RegisterFinalizer): Use
4232 GC_REGISTER_FINALIZER_NO_ORDER.
4233 (GC_GENERIC_MALLOC): New define.
4234 (_Jv_AllocObj): Use it.
4235 (_Jv_AllocArray): Likewise.
4236 (_Jv_AllocBytes): Likewise.
4237 (_Jv_MarkObj): Just return if vtbl not set.
4238 (_Jv_MarkArray): Likewise.
4239 (MAYBE_MARK): New macro; use everywhere.
4240 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4242 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4244 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4245 to a jlong before calculation to prevent overflow.
4247 1998-11-16 Tom Tromey <tromey@cygnus.com>
4249 * Makefile.in: Rebuilt.
4250 * Makefile.am (nat_headers): Fixed typo.
4252 1998-11-15 Tom Tromey <tromey@cygnus.com>
4254 * java/lang/Class.h (Class::getName): Removed definition.
4255 * Makefile.in: Rebuilt.
4256 * Makefile.am (nat_headers): Added InstantiationException.h,
4257 NoSuchMethodException.h.
4258 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4259 (init_name): New global.
4260 (hackRunInitializers): Use clinit_name.
4261 Include InstantiationException.h, NoSuchMethodException.h.
4262 (newInstance): Do some error checking (but not all). Call
4264 (forName): Throw exception if class not found.
4265 (getName): New method.
4266 (forName): Transform class name from external format to internal
4267 format before lookup.
4269 1998-11-15 Anthony Green <green@cygnus.com>
4271 * java/lang/Class.h (Class::forName): Method is static.
4273 * java/lang/natClass.cc (newInstance): Add simple implementation.
4276 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4278 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4279 int), for compatibility with jc1.
4281 1998-11-14 Tom Tromey <tromey@cygnus.com>
4283 * include/config.h.in: Rebuilt.
4284 * acconfig.h (LINUX_THREADS): New define.
4285 * configure: Rebuilt.
4286 * configure.in: Define LINUX_THREADS if using POSIX threads on
4287 Linux. Look for pthread_mutexattr_setkind_np function.
4288 * posix-threads.cc (throw_cleanup): New function.
4289 (really_start): Push cleanup function.
4290 (_Jv_ThreadCancel): New function.
4291 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4292 (_Jv_ThreadInitData): Set `exception' field in new structure.
4293 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4295 (_Jv_ThreadWait): New function.
4296 (_Jv_InitThreads): Initialize daemon globals.
4297 (FLAG_DAEMON): New macro.
4298 (really_start): Notify daemon_cond when non-daemon thread exits.
4299 Include <java/lang/System.h>.
4300 (struct starter): `object' field now a thread.
4301 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4302 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4303 (_Jv_ThreadWait): Removed definition.
4304 (_Jv_Thread_t): Added `exception' field.
4305 (_Jv_ThreadCancel): Removed definition.
4307 1998-11-13 Tom Tromey <tromey@cygnus.com>
4309 * Makefile.in: Rebuilt.
4310 * Makefile.am (libjava.zip): Compute javac before changing
4313 * Makefile.in: Rebuilt.
4314 * Makefile.am (libjava.zip): Include directory entries.
4316 * Makefile.in: Rebuilt.
4317 * Makefile.am (expanded): New macro.
4320 1998-11-12 Tom Tromey <tromey@cygnus.com>
4322 * prims.cc (clone): New function.
4323 * include/java-array.h (__JArray::clone): Removed definition.
4325 * java/lang/natObject.cc (clone): Don't assert that class is not
4326 an array; array's `clone' method just calls this one.
4328 * Makefile.in: Rebuilt.
4329 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4330 Now creates zip file. Changed all users.
4332 (data_DATA): New macro.
4334 1998-11-11 Tom Tromey <tromey@cygnus.com>
4336 * configure: Rebuilt.
4337 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4339 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4341 * java/io/InputStream.java (reset): Add msg to thrown exception.
4343 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4345 * java/io/LineNumberInputStream.java: Rewritten.
4347 * java/io/StringBufferInputStream.java: Removed extraneous import.
4349 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4351 * java/io/StringBufferInputStream.java: Rewritten.
4353 * java/util/Date.java (parseMonth): Optimize.
4354 (parseDayOfWeek): Created.
4355 (parse): Optimize to use parseDayOfWeek.
4357 1998-11-11 Tom Tromey <tromey@cygnus.com>
4359 * java/lang/StringBuffer.java (append): Handle case where STR is
4362 * include/javaprims.h: Regenerated class declarations.
4364 * configure: Rebuilt.
4365 * configure.in: Added --enable-gcj-classes,
4366 --enable-single-compilation, --enable-source-compilation flags.
4367 * Makefile.in: Rebuilt.
4368 * Makefile.am (java_io_files): New macro.
4369 (java_lang_files): Likewise.
4370 (java_text_files): Likewise.
4371 (java_util_files): Likewise.
4372 (java_files): Use new macros.
4373 (java-io.o): New target.
4374 (java-lang.o): Likewise.
4375 (java-text.o): Likewise.
4376 (java-util.o): Likewise.
4377 (src_io_files): New macro.
4378 (src_lang_files): Likewise.
4379 (src_text_files): Likewise.
4380 (src_util_files): Likewise.
4381 (class_io_files): New macro.
4382 (class_lang_files): Likewise.
4383 (class_text_files): Likewise.
4384 (class_util_files): Likewise.
4385 (class_files): Use new macros.
4386 (javao_files): Define conditionally.
4387 (.java.o): New target.
4388 ($(javao_files)): New target.
4390 (GCJH): Added $(EXEEXT).
4391 (CLASSPATH_ENV): Removed.
4392 (GCJCOMPILE): New macro.
4394 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4396 * java/util/Date.java (parse): Written from scratch.
4398 1998-11-11 Tom Tromey <tromey@cygnus.com>
4400 * java/lang/Throwable.java (toString): Correct sense of test for
4401 determining when to include detail message in result.
4403 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4406 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4408 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4410 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4411 (_Jv_RegisterClass): Use it.
4412 * include/jvm.h (_Jv_RegisterClasses): Declare.
4413 * java/lang/natObject.cc (init): Removed.
4414 (sync_init): Never call _Jv_InitializeSyncMutex.
4415 (_Jv_InitializeSyncMutex): Don't set `init'.
4416 * prims.cc (JvRunMain): Don't run init functions.
4418 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4420 * java/lang/natClass.cc (initializeClass): Set state before
4421 resolving constants.
4423 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4424 (STATE_RESOLVED): New macro.
4425 (initializeClass): Call resolveConstants.
4426 (hackRunInitializers): Don't call resolveConstants.
4427 (_Jv_FindArrayClass): Move short-circuit return for primitive
4428 element types earlier in function.
4430 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4432 * prims.cc (no_memory): New global.
4433 (_Jv_makeUtf8Const): Throw no_memory.
4434 (_Jv_AllocObject): Likewise.
4435 (_Jv_NewObjectArray): Likewise.
4436 (_Jv_NewPrimArray): Likewise.
4437 (JvRunMain): Initialize no_memory.
4439 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4441 * java/io/FileInputStream.java: Corrected date comment.
4442 * java/io/SequenceInputStream.java: Rewritten.
4444 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4446 * java/lang/FirstThread.java (die): New method.
4447 * java/lang/natFirstThread.cc (die): Removed.
4449 (run): Use `DIE', not `die'.
4451 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4453 * java/io/CharArrayReader.java (read): Move check into synchronized
4454 block to prevent a close while in progress.
4457 * java/io/PushbackReader.java (read): Ditto.
4460 * java/io/StringReader.java (mark): Ditto.
4465 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4467 * java/io/PipedInputStream.java: Updated status.
4468 (connect): Added code to prevent infinite recursion and to
4469 differentiate exception causes.
4470 (read): Added code to differentiate exception causes.
4471 (receive): Made exception pass string with the cause.
4473 * java/io/PipedOutputStream.java: Updated status.
4474 (connect): Added code to call connect at the other end of the pipe.
4476 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4478 * java/io/PipedInputStream.java (connect): Throw exception if
4479 already connected to the same output stream.
4480 (read): Do bounds checking first.
4482 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4484 * java/io/PipedInputStream.java: Added private boolean outClosed.
4485 (available): Removed check if output stream is open.
4486 (close): Mark the buffer as empty so available returns 0.
4487 (read): Check if the output stream was closed and then return EOF
4488 when the buffer is empty.
4489 (receive): Mark the output stream as closed when passed a -1.
4491 * java/io/PipedOutputStream.java (close): Notify the input stream
4492 that there's no more data coming.
4493 (connect): Added a FIXME comment to note more coordination needed
4494 with PipedInputStream.
4495 (flush): Added a FIXME comment to mark what this method might do
4498 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4500 * java/io/PipedInputStream.java: Rewritten.
4502 1998-10-30 Tom Tromey <tromey@cygnus.com>
4504 * java/lang/Throwable.java: Rewrote from scratch.
4506 * java/lang/Class.h (Class): Don't mention newMultiArray.
4507 * prims.cc (newMultiArray): Removed.
4508 (_Jv_NewMultiArray): Removed.
4509 (newArray): Removed.
4510 (new_multi_array): New function.
4511 (_Jv_NewMultiArray): Rewrote from scratch.
4513 * include/javaprims.h: Regenerated class declarations.
4514 * classes.pl (scan): Don't declare PrimClass.
4515 * include/cni.h (JvPrimClass): Use new names for classes.
4516 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4517 added _Jv_PrimClass.
4518 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4519 (_Jv_initPrimClass): Removed.
4520 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4521 (_Jv_AllocObject): Added comment.
4522 (_Jv_NewObjectArray): Likewise.
4523 (_Jv_NewPrimArray): Likewise.
4525 1998-10-29 Tom Tromey <tromey@cygnus.com>
4527 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4528 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4530 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4532 * java/lang/natObject.cc (init): New global.
4533 (sync_init): Call _Jv_InitializeSyncMutex if required.
4535 * Makefile.in: Rebuilt.
4536 * Makefile.am (nat_headers): Added ClassLoader.h.
4537 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4538 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4539 internalAddClass, lookupArray no longer friends.
4540 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4541 _Jv_FindArrayClass now friends.
4542 * java/lang/natClass.cc (HASH_LEN): New macro.
4543 (HASH_UTF): Likewise.
4544 (loaded_classes): New global.
4545 (_Jv_FindClass): New function.
4546 (ClassClass): New define.
4547 (_Jv_FindClassInCache): New function.
4548 (_Jv_RegisterClass): Likewise.
4549 (_Jv_NewClass): Likewise.
4551 (ObjectClass): New define.
4552 (CloneableClass): New define.
4553 * prims.cc (_Jv_FindClass): Removed.
4554 (simpleLookupClass): Removed.
4555 (insertClass): Removed.
4556 (CLASSHASHSZ): Removed.
4557 (classPool): Removed.
4558 (_Jv_RegisterClass): Removed.
4559 (internalAddClass): Removed.
4560 (ClassClass): Removed.
4561 (RuntimeClass): Removed.
4562 (lookupArray): Removed.
4563 (CloneableClass): Removed.
4564 (CLASSMAXSIG): Removed.
4565 Rearranged file to group related functions together.
4566 (_Jv_IsInstanceOf): Moved to natClass.cc.
4567 (abort_final): Removed.
4568 Removed some unused includes.
4569 (classFromSig): Removed.
4570 (_Jv_FindClassFromSignature): New function.
4571 (_Jv_initPrimClass): Renamed.
4572 (getClass): Removed.
4574 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4576 * java/io/FileDescriptor.java (finalize): Throws IOException
4577 instead of Throwable.
4579 * java/io/FileInputStream.java: Rewritten.
4581 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4582 at the end of a comment.
4584 1998-10-29 Tom Tromey <tromey@cygnus.com>
4586 * include/javaprims.h: Regenerated class declarations.
4587 * classes.pl (scan): Don't special-case ClassLoader.
4589 * prims.cc (processClass): Removed.
4590 (_Jv_InitClass): Removed.
4591 Removed all CSTATE_ macros.
4592 (resolveConstants): Removed.
4594 (_Jv_NewMultiArray): Cleaned up.
4595 * Makefile.in: Rebuilt.
4596 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4597 * java/lang/Class.h (Class): Declare new methods. processClass no
4599 * java/lang/Class.java (hackTrampoline): New method.
4600 (initializeClass): Declare.
4601 (hackRunInitializers): Declare.
4602 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4603 (initializeClass): New method.
4604 (hackRunInitializers): New method.
4605 (init_name, void_signature): Moved from prims.cc.
4606 (_Jv_InitClass): New function.
4607 (isAssignableFrom): Don't call processClass.
4608 (STATE_NOTHING): New macro.
4609 (resolveConstants): New function.
4611 (ErrorClass): New define.
4613 * java/lang/Class.java (getClassLoader): Declare.
4614 * java/lang/ClassLoader.java: Rewrote from scratch.
4616 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4617 AbstractMethodError.h, IllegalAccessError.h,
4618 NoClassDefFoundError.h.
4619 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4620 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4621 longer static. Changed return type.
4622 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4623 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4624 * prims.cc (findMethodLocal): Removed.
4625 (processClass): Use _Jv_GetMethodLocal.
4627 1998-10-28 Tom Tromey <tromey@cygnus.com>
4629 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4630 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4632 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4633 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4635 * include/jni.h: Added copyright header.
4636 * include/javaprims.h: Added copyright header.
4637 * include/java-field.h: Added copyright header.
4638 * include/java-array.h: Added copyright header.
4639 * include/cni.h: Added copyright header.
4641 * include/javaprims.h: Regenerated class declarations using
4642 classes.pl; now they are complete.
4643 * classes.pl: New file.
4645 * java/lang/natMath.cc: Include <config.h>.
4646 * java/lang/reflect/natField.cc: Include <config.h>.
4647 * java/util/NativeUtil.java: Removed.
4648 * Makefile.in: Rebuilt.
4649 * Makefile.am (nat_headers): Added Math.h.
4650 * java/lang/Math.h: Removed.
4651 * java/util/natGregorianCalendar.cc: Added copyright header.
4653 * java/lang/natFloat.cc: Added copyright header.
4654 * java/lang/Byte.java: Added copyright header.
4655 * java/lang/Void.java: Added copyright header.
4656 * java/lang/Short.java: Added copyright header.
4658 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4660 * include/javaprims.h (java::io): Added bunch of missing classes.
4662 * java/io/DataInputStream.java (readLine): Added a special case
4663 for handling BufferedInputStream data to reduce the likelihood
4664 of a pushback error.
4665 (skipBytes): Added code to handle negative number of skip bytes.
4667 * java/io/StreamTokenizer.java: Rewritten.
4669 1998-10-28 Tom Tromey <tromey@cygnus.com>
4671 * java/util/natGregorianCalendar.cc (computeFields): Call
4672 getRawOffset as a method.
4674 * include/javaprims.h (java::io): Added FilterOutputStream.
4675 * Makefile.in: Rebuilt.
4676 * Makefile.am (nat_headers): Added PrintStream.h,
4677 FilterOutputStream.h.
4678 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4680 (die): New function.
4681 (run): Die if `main' not found, is not public, or is not static.
4683 * boehm.cc (_Jv_MarkObj): Use new field names.
4684 * include/java-field.h (JvGetFirstInstanceField): Use new field
4686 (JvNumInstanceFields): Likewise.
4687 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4688 (getInterfaces): Likewise.
4689 * prims.cc (CLASS_CONSTANTS): Removed.
4690 (CLASS_CONST_SIZE): Likewise.
4691 (CLASS_CONST_TAG): Likewise.
4692 (CLASS_CONST_DATA): Likewise.
4693 (CLASS_CONST_UTF8): Likewise.
4694 (WORD2UTF): Likewise.
4695 (CLASS_CLASS): Likewise.
4696 (CLASS_PRIM_SIG): Likewise.
4697 (CLASS_ARRAY_CACHE): Likewise.
4698 (HASH_CHARS): Likewise.
4699 (hashClassName): Likewise.
4700 Many changes to use new field names.
4701 * java/lang/Class.h (Class): Renamed fields to track compiler.
4703 1998-10-27 Tom Tromey <tromey@cygnus.com>
4705 * java/lang/natClass.cc: Use #pragma implementation.
4706 (getComponentType): Moved into header.
4707 (getModifiers): Likewise.
4708 (getName): Likewise.
4709 (getSuperclass): Likewise.
4710 (isArray): Likewise.
4711 (isPrimitive): Likewise.
4712 * include/jvm.h (_Jv_FindClass): Declare.
4713 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4714 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4715 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4716 * java/lang/Class.h: Rewrote from scratch.
4717 * prims.cc: Many changes to work with new Class.h.
4718 * include/java-field.h (CLASS_FIELDS): Removed.
4719 (CLASS_SFIELDS): Likewise.
4720 (CLASS_IFIELDS): Likewise.
4721 (CLASS_NFIELDS): Likewise.
4722 (CLASS_NIFIELDS): Likewise.
4723 (CLASS_NSFIELDS): Likewise.
4724 (CLASS_FSIZE): Likewise.
4725 (JvGetFirstInstanceField): Rewrote.
4726 (JvNumInstanceFields): Likewise.
4728 * java/lang/Object.h: Added copyright comment.
4730 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4732 * java/text: New package directory.
4733 * java/text/FieldPosition.java: New class.
4734 * java/text/ParsePosition.java: New class.
4735 * java/text/ParseException.java: New Exception class.
4736 * java/text/Format.java: New class.
4737 * java/text/NumberFormat.java: New (empty placeholder) class.
4738 * java/text/DateFormatSymbols.java: New class (no Locales support).
4739 * java/text/DateFormat.java: New Format class (incomplete).
4740 * java/text/SimpleDateFormat.java: New DateFormat class.
4742 * include/javaprims.h (java::test): Added new package and classes.
4743 * java/util/Calendar.java (clone): New method.
4744 * java/util/Date.java (toString): Added non-native implementation.
4745 (parse): Made public instead of synchronized.
4746 * java/util/natDate.cc (toString): Removed.
4747 * java/util/natGregorianCalendar.cc (computeFields):
4748 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4750 1998-10-27 Tom Tromey <tromey@cygnus.com>
4752 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4754 * prims.cc (lookupArray): Added explanatory comment.
4755 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4756 class. Mark the class of each object.
4757 (_Jv_MarkArray): Mark the object's class.
4759 * configure: Rebuilt.
4760 * configure.in: Create java-gc.h.
4761 * include/boehm-gc.h: New file.
4762 * include/no-gc.h: New file.
4763 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4765 * java/lang/Object.h: Include java-gc.h.
4766 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4767 friends, if defined.
4768 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4770 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4772 1998-10-26 Tom Tromey <tromey@cygnus.com>
4774 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4775 paragraph separators, not numbers.
4777 * java/io/Writer.java (write): Removed write(char) to avoid
4779 * java/util/Properties.java: Rewrote from scratch.
4780 * include/javaprims.h (java::io): Added PrintWriter,
4781 BufferedWriter, PushbackReader.
4783 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4785 * java/lang/System.java: exit() is a static method.
4787 1998-10-26 Tom Tromey <tromey@cygnus.com>
4789 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4791 (_Jv_NewStringUtf8Const): Likewise.
4792 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4793 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4795 * java/lang/Object.h (Object): Add mark_array as friend function.
4796 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4797 _Jv_AllocBytes, to ensure that header is marked.
4798 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4800 (mark_array): Push sync_info field for array.
4802 1998-10-24 Tom Tromey <tromey@cygnus.com>
4804 * java/lang/String.java (String): Updated for StringBuffer
4806 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4808 * java/lang/StringBuffer.java: Renamed fields to conform to
4809 serialization spec: buffer->value, next->count, copy->shared.
4811 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4813 * java/util/TimeZone.java: New class.
4814 * java/util/SimpleTimeZone.java: New class.
4815 * java/util/Locale.java: New file.
4816 * java/util/Calendar.java: Make almost complete.
4817 * java/util/GregorianCalendar.java
4818 * java/util/natGregorianCalendar.cc: New file.
4819 * java/util/Date.java: Re-written from scratch.
4820 * java/util/natDate.cc (setTime): Removed - no longer native.
4821 * include/javaprims.h (java::util): Add new classes.
4822 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4823 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4825 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4827 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4828 returning it as a jint.
4830 1998-10-23 Tom Tromey <tromey@cygnus.com>
4832 * prims.cc (arg_vec, main_group, main_thread): New globals.
4833 (JvRunMain): Use them.
4835 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4837 * java/io/DataInputStream.java: Rewritten.
4839 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4840 tertiary bytes with 0x80 per spec.
4842 1998-10-23 Tom Tromey <tromey@cygnus.com>
4844 * java/lang/String.java (init): Changed name of `copy' argument.
4845 * java/lang/natString.cc (init): Inverted sense of `copy'
4848 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4849 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4850 * boehm.cc (ObjectClass): New define.
4851 (ClassClass): Likewise.
4852 (mark_obj): Special-case Object and Class.
4854 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4856 * java/util/BitSet.java: Rewrote from scratch.
4858 * prims.cc (lookupArray): Removed useless cast.
4860 * java/lang/natObject.cc: Use `#pragma implementation'.
4862 * java/lang/String.java (init): Added `copy' argument.
4863 (String): Look in StringBuffer to find char array.
4864 * java/lang/natString.cc (init): Added `copy' argument.
4865 * java/lang/StringBuffer.java: Rewrote from scratch.
4867 * java/lang/Compiler.java: Rewrote from scratch.
4868 * java/lang/Throwable.java: Don't use NativeLang.
4869 * include/javaprims.h (java::lang): Don't mention NativeLang.
4870 * java/lang/Process.java: Rewrote from scratch.
4871 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4873 (currentClassLoader): Likewise.
4874 (currentLoadedClass): Likewise.
4875 * java/lang/natClass.cc (getClassLoader): Commented out.
4876 * java/lang/Class.java (getClassLoader): Commented out.
4877 * java/lang/Compiler.java: Removed.
4878 * java/lang/NativeLang.java: Removed.
4880 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4881 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4882 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4883 (_Jv_hashUtf8String): Now static.
4884 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4885 name of return type.
4887 * java/lang/Class.h (Class): Declare checkMemberAccess.
4888 * Makefile.in: Rebuilt.
4889 * Makefile.am (nat_headers): Added Member.h.
4890 * java/lang/natClass.cc: Include Member.h.
4891 (getDeclaredClasses): Call checkMemberAccess.
4892 * java/lang/Class.java (checkMemberAccess): Call
4893 SecurityManager.checkMemberAccess.
4895 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4897 * java/lang/SecurityManager.java: Rewritten.
4899 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4901 * java/applet/Applet.java, java/applet/AppletContext.java,
4902 java/applet/AppletStub.java, java/applet/AudioClip.java,
4903 java/awt/AWTError.java, java/awt/AWTException.java,
4904 java/awt/BorderLayout.java, java/awt/Button.java,
4905 java/awt/Canvas.java, java/awt/CardLayout.java,
4906 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4907 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4908 java/awt/Color.java, java/awt/Component.java,
4909 java/awt/Container.java, java/awt/Dialog.java,
4910 java/awt/Dimension.java, java/awt/Event.java,
4911 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4912 java/awt/Font.java, java/awt/FontMetrics.java,
4913 java/awt/Frame.java, java/awt/Graphics.java,
4914 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4915 java/awt/GridLayout.java, java/awt/Image.java,
4916 java/awt/Insets.java, java/awt/Label.java,
4917 java/awt/LayoutManager.java, java/awt/List.java,
4918 java/awt/MediaTracker.java, java/awt/Menu.java,
4919 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4920 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4921 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4922 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4923 java/awt/TextArea.java, java/awt/TextComponent.java,
4924 java/awt/TextField.java, java/awt/Toolkit.java,
4925 java/awt/Window.java, java/awt/image/ColorModel.java,
4926 java/awt/image/CropImageFilter.java,
4927 java/awt/image/DirectColorModel.java,
4928 java/awt/image/FilteredImageSource.java,
4929 java/awt/image/ImageConsumer.java,
4930 java/awt/image/ImageFilter.java,
4931 java/awt/image/ImageObserver.java,
4932 java/awt/image/ImageProducer.java,
4933 java/awt/image/IndexColorModel.java,
4934 java/awt/image/MemoryImageSource.java,
4935 java/awt/image/PixelGrabber.java,
4936 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4937 java/awt/peer/CanvasPeer.java,
4938 java/awt/peer/CheckboxMenuItemPeer.java,
4939 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4940 java/awt/peer/ComponentPeer.java,
4941 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4942 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4943 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4944 java/awt/peer/MenuBarPeer.java,
4945 java/awt/peer/MenuComponentPeer.java,
4946 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4947 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4948 java/awt/peer/TextAreaPeer.java,
4949 java/awt/peer/TextComponentPeer.java,
4950 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4951 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4952 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4953 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4954 java/net/MalformedURLException.java, java/net/NativeNet.java,
4955 java/net/ProtocolException.java, java/net/ServerSocket.java,
4956 java/net/Socket.java, java/net/SocketException.java,
4957 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4958 java/net/URL.java, java/net/URLConnection.java,
4959 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4960 java/net/URLStreamHandlerFactory.java,
4961 java/net/UnknownHostException.java,
4962 java/net/UnknownServiceException.java: Removed.
4964 1998-10-22 Tom Tromey <tromey@cygnus.com>
4966 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4967 finalizer is not Object.finalize.
4968 (internalAddClass): Don't set `final' member of class.
4969 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4970 other places that know about finalize() location.
4971 * java/lang/Class.h (Class): Removed `final' field.
4973 * aclocal.m4, configure: Rebuilt.
4974 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4975 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4977 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4978 * Makefile.in: Rebuilt.
4979 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4981 1998-10-21 Tom Tromey <tromey@cygnus.com>
4983 * java/lang/Object.java (finalize): Move to be first method in
4986 * configure: Rebuilt.
4987 * configure.in (GCINCS): Include contents of boehm-cflags file.
4989 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4991 * java/lang/ArrayIndexOutOfBoundsException.java
4992 (ArrayIndexOutOfBoundsException): Fixed string literal.
4993 * java/lang/StringIndexOutOfBoundsException.java
4994 (StringIndexOutOfBoundsException): Fixed string literal.
4996 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4998 * natFileDescriptorEcos.cc added.
4999 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5001 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
5003 * acconfig.h: test for __int32_t and __uint32_t added.
5004 * include/config.h.in: test for __int32_t and __uint32_t added.
5005 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
5006 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
5007 * configure.in: test for __int32_t and __uint32_t added.
5008 * configure: test for __int32_t and __uint32_t added.
5010 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
5012 * configure.in: Test for --enable ecos and link
5013 natFileDescriptor.cc to natFileDescriptorEcos.cc or
5014 natFileDescriptorPosix.cc
5016 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
5018 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
5020 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
5023 * java/io/CharArrayReader.java (close): Synchronize on lock
5024 object per Reader contract.
5025 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5026 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5027 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5028 Ensure that arg passed in isn't negative.
5030 * java/io/FilterReader.java (FilterReader): Use the lock obj when
5031 constructing the superclass.
5033 * java/io/PushbackReader.java (close): Synchronize on lock
5034 object per Reader contract.
5035 (read): Synchronize on lock obj. Verify that reader wasn't closed.
5036 (ready): Synchronize on lock obj. Throw IOException if reader
5038 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
5039 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
5040 Ensure that arg passed in isn't negative.
5041 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
5043 * java/io/StringReader.java: Created.
5045 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5047 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5049 (read): Removed synchronized modifier to match JCL.
5050 (reset): Removed synchronized modifier to match JCL.
5051 (skip): Removed synchronized modifier to match JCL.
5053 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5055 * java/io/PushbackReader.java (PushbackReader): Made
5056 constructors public.
5058 1998-10-17 Tom Tromey <tromey@cygnus.com>
5060 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5061 constructors public.
5063 1998-10-16 Anthony Green <green@cygnus.com>
5065 * aclocal.m4, configure: Rebuilt.
5066 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5068 * configure.host: Rewrote.
5069 * Makefile.in: Rebuilt.
5070 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5071 (AM_CFLAGS): New macro.
5072 ($(c_files)): Use COMPILE macro.
5073 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5074 automake problem(s).
5076 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5078 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5080 * java/io/CharArrayReader.java: Created.
5082 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5084 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5085 size check to allow 0 per JCL.
5087 * java/io/PushbackReader.java: Created.
5089 1998-10-16 Tom Tromey <tromey@cygnus.com>
5091 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5092 <sys/time.h> includes.
5093 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5094 * include/no-threads.h: Conditionalize <unistd.h> include on
5097 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5099 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5102 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5104 * java/io/FilterReader.java: Created.
5106 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5108 * java/io/PushbackInputStream.java: Rewritten.
5110 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5111 that size passed to constructor is legal.
5112 (read): Check that args passed in are legal.
5113 (skip): Rewritten to get rid of the temporary buffer.
5114 (refill): Added marklimit check to grow the buffer.
5116 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5118 (bytesAvail): Removed.
5119 (read): Changed bytesAvail to Math.min.
5120 (skip): Changed bytesAvail to Math.min.
5122 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5123 from the throws clause.
5124 (skip): Rewritten to use a temporary buffer.
5126 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5128 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5131 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5133 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5134 to write the double one word at a time.
5136 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5138 * java/io/BufferedInputStream.java: Rewritten.
5140 1998-10-12 Tom Tromey <tromey@cygnus.com>
5142 * jni.cc: Include config.h and stddef.h.
5144 * java/lang/Class.h (_dispatchTable): Removed again.
5145 Removed all ACC_* defines again.
5147 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5149 * Makefile.am (nat_files): Add netField.o.
5150 (libjava_a_SOURCES): Add jni.cc.
5151 (java/lang/reflect/Field.h): New rule.
5152 * Makefile.in: Re-generated.
5153 * include/javaprims.h: Add some extra class and typedefs.
5154 * include/jni.h: New file.
5157 * include/java-field.h: New file.
5158 * include/jvm.h: #include <java-field.h>.
5159 * boehm.cc: #include <java-field.h>.
5160 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5161 * java/lang/reflect/Member.java: New class.
5162 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5163 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5165 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5167 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5168 testsuite/Makefile.in: Rebuilt.
5169 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5170 * configure.host: Created.
5172 1998-10-10 Tom Tromey <tromey@cygnus.com>
5174 * java/lang/natObject.cc (sync_init): Always allocate a new
5177 1998-10-09 Tom Tromey <tromey@cygnus.com>
5179 * java/io/ByteArrayInputStream.java (mark): Renamed from
5182 * java/io/FileOutputStream.java (finalize): Removed.
5183 * java/io/FileDescriptor.java (finalize): New method.
5185 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5187 * ByteArrayInputStream.java: Corrected status comment.
5189 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5191 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5193 1998-10-08 Tom Tromey <tromey@cygnus.com>
5195 * prims.cc (lookupArray): Use static array to initialize list of
5198 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5200 * prims.cc (lookupArray): Initialize the msize for new
5203 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5205 * configure: Rebuilt.
5206 * configure.in: Check for fsync and sleep.
5207 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5209 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5210 HAVE_SLEEP. Include config.h.
5212 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5213 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5216 1998-10-08 Tom Tromey <tromey@cygnus.com>
5218 * java/io/natFile.cc: Don't include SecurityManager.h.
5219 (performList): Renamed.
5220 (performMkdir): Likewise.
5221 (performRenameTo): Likewise.
5222 (performDelete): Likewise.
5224 * java/io/File.java (performDelete): Renamed from natDelete.
5225 (list): Now written in Java.
5226 (performList): New method.
5227 (performMkdir): New method.
5228 (mkdir): Now written in Java.
5229 (performRenameTo): New method.
5230 (renameTo): Now written in Java.
5232 1998-10-06 Tom Tromey <tromey@cygnus.com>
5234 * Makefile.in: Rebuilt.
5235 * Makefile.am (ETAGS_ARGS): New macro.
5236 (TAGS_DEPENDENCIES): Likewise.
5238 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5240 * Makefile.in: Rebuilt.
5241 * Makefile.am: Use -classpath option with javac.
5243 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5245 * java/io/FileOutputStream.java (finalize): Call
5248 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5250 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5252 * java/lang/mprec.c: Ditto.
5254 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5257 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5259 * java/io/InputStream.java (skip): Make local var i a long.
5261 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5263 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5264 * prims.cc (lookupArray): Use memcpy, not memmove.
5265 * include/config.h.in: Rebuilt.
5266 * acconfig.h (HAVE_MEMCPY): Added.
5267 * configure: Rebuilt.
5268 * configure.in: Check for memcpy again.
5270 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5271 String.compareTo, not ==.
5273 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5274 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5275 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5276 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5277 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5278 into new array's dtable.
5279 (_Jv_AllocObject): Use _Jv_DispatchTable.
5280 (_Jv_NewPrimArray): Likewise.
5281 (_Jv_NewObjectArray): Likewise.
5283 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5285 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5286 offending index value.
5287 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5289 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5290 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5292 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5294 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5296 * java/io/OutputStream.java (write): Use off and len parameters to
5297 output partial byte array.
5299 * java/io/BufferedReader.java, java/io/FileReader.java,
5300 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5301 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5302 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5303 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5305 * include/javaprims.h (java::lang): Added
5306 ExceptionInInitializerError, IllegalStateException,
5307 NoSuchFieldException, and UnsupportedOperationException.
5309 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5311 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5314 * include/java-array.h (__JArray): Added clone method.
5315 * prims.cc (CloneableClass): New define.
5316 (lookupArray): Initialize array class to indicate that it
5317 implements Cloneable.
5319 * java/lang/Class.h: Removed all ACC_* defines.
5320 * prims.cc: Include Modifier.h.
5321 (_Jv_LookupInterfaceMethod): Use methods in
5322 java.lang.reflect.Modifier, not ACC_ defines.
5324 * java/lang/Class.h (Class): Declare getClasses,
5325 getDeclaredClasses, getDeclaringClass, getModifiers,
5326 * java/lang/Class.java: Rewrote from scratch.
5328 * include/javaprims.h (java::lang): Added reflect and
5330 * Makefile.in: Rebuilt.
5331 * Makefile.am (nat_headers): Added Modifier.h.
5333 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5336 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5338 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5339 instead of test and abort.
5341 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5342 remove compiler warning.
5344 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5346 * java/lang/natDouble.cc: zero terminate string.
5347 * strtod.c: Set errno if no digits are found in fraction.
5349 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5351 * java/lang/reflect/Modifier.java: New file.
5353 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5354 * java/lang/VerifyError.java: Rewrote from scratch.
5355 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5356 * java/lang/UnknownError.java: Rewrote from scratch.
5357 * java/lang/StackOverflowError.java: Rewrote from scratch.
5358 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5359 * java/lang/InternalError.java: Rewrote from scratch.
5360 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5361 * java/lang/ExceptionInInitializerError.java: New file.
5362 * java/lang/Error.java: Rewrote from scratch.
5363 * java/lang/ClassFormatError.java: Rewrote from scratch.
5364 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5365 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5366 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5367 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5368 * java/lang/LinkageError.java: Rewrote from scratch.
5369 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5371 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5373 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5374 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5376 * include/cni.h (JvAllocObject): Moved from prims.cc.
5378 * prims.cc (JvAllocObject): Moved to cni.h.
5379 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5380 (finalize_name): Removed.
5382 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5384 * java/lang/Class.h (Class): Added size() method.
5385 * prims.cc (_Jv_MonitorEnter): Removed.
5386 (_Jv_MonitorExit): Removed.
5387 * java/lang/Object.h (JvSyncInfo): Removed.
5388 * Makefile.in: Rebuilt.
5389 * Makefile.am (nat_headers): Added Cloneable.h,
5390 CloneNotSupportedException.h.
5391 * java/lang/Object.h: Rewrote.
5392 * java/lang/natObject.cc: Rewrote from scratch.
5393 * java/lang/Object.java: Rewrote from scratch.
5395 * java/io/natFile.cc: Conditionally include <dirent.h>.
5396 (list): If no <dirent.h>, always return NULL.
5397 * configure: Rebuilt.
5398 * configure.in: Check for dirent.h.
5400 * prims.cc (lookupArray): Don't use sprintf.
5402 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5409 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5410 name conflict with method.
5412 * include/javaprims.h (java::util): Added HashtableEntry.
5414 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5416 * java/util/Hashtable.java: Rewritten.
5418 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5420 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5424 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5427 * posix-threads.cc (_Jv_CondWait): Now returns int.
5428 * include/javaprims.h (java::lang): Added
5429 IllegalMonitorStateException.
5430 * Makefile.in: Rebuilt.
5431 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5432 * include/no-threads.h (_Jv_CondDestroy): Removed.
5433 (_Jv_MutexDestroy): Removed.
5434 (_Jv_CondWait): Now returns int.
5435 (_Jv_CondNotify): Likewise. Added mutex argument.
5436 (_Jv_CondNotifyAll): Likewise.
5437 (_Jv_MutexLock): Always succeed.
5438 (_Jv_MutexUnlock): Likewise.
5439 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5440 (_Jv_HaveMutexDestroy): Define.
5441 (_Jv_CondNotify): Now returns int. Added mutex argument.
5442 (_Jv_CondNotifyAll): Likewise.
5443 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5444 (_Jv_MutexDestroy): Removed.
5445 (_Jv_CondWait): Now returns int.
5446 (_Jv_CondNotify): Likewise. Added mutex argument.
5447 (_Jv_CondNotifyAll): Likewise.
5448 * java/lang/natObject.cc (finalize_sync_info): New function.
5449 (init_mutex): Initialize `init' and register finalizer if
5452 (init_mutex): Use it.
5454 (notifyAll): Use it.
5456 (notify): Throw IllegalMonitorStateException on failure.
5457 (notifyAll): Likewise.
5458 (wait): Likewise. Also, throw InterruptedException if
5460 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5461 InterruptedException.h, IllegalArgumentException.h.
5462 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5464 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5465 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5466 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5467 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5468 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5469 * quick-threads.cc: Renamed all `JvPriv' functions.
5470 * prims.cc: Renamed all `JvPriv' functions.
5471 * posix-threads.cc: Renamed all `JvPriv' functions.
5472 * nogc.cc: Renamed all `JvPriv' functions.
5473 * no-threads.cc: Renamed all `JvPriv' functions.
5474 * boehm.cc: Renamed all `JvPriv' functions.
5475 * include/quick-threads.h: Renamed all `JvPriv' functions.
5476 * include/posix-threads.h: Renamed all `JvPriv' functions.
5477 * include/no-threads.h: Renamed all `JvPriv' functions.
5478 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5480 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5482 (JvPrivCondNotify): Do nothing.
5483 (JvPrivCondNotifyAll): Do nothing.
5485 * prims.cc (processClass): Handle case where state is
5488 * java/lang/natFirstThread.cc: Include <stdlib.h>
5490 * configure: Rebuilt.
5491 * configure.in: Fixed sense of --enable-libjava-debug.
5493 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5494 it can be used afterward by the assertion.
5496 * configure: Rebuilt.
5497 * configure.in: When cross-compiling, assume alloca.
5499 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5500 __builtin_alloca (autoconf docs are wrong here).
5502 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5504 (available): Use `FD_ZERO' (typo fix).
5506 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5508 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5509 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5511 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5512 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5515 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5517 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5519 * java/lang/natDouble.cc: Declare alloca safely.
5521 * configure, include/config.h.in: Rebuilt.
5522 * configure.in: Add alloca check.
5524 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5526 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5527 condition while calling notify.
5528 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5529 (interrupt): Hold mutex for interrupt condition while calling
5532 * java/lang/natString.cc (init): Allocate and try to read `count'
5533 characters, not `count - offset' characters.
5535 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5536 Correctly compute `count'.
5538 * java/lang/Boolean.java (getBoolean): Return false if property
5541 * java/lang/System.java (setProperties): Set prop_init.
5543 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5545 * java/io/PrintStream.java (println): Use line.separator, not
5547 * java/lang/System.java (out, err): Make both autoflush streams.
5548 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5550 * include/config.h.in: Rebuilt.
5551 * acconfig.h (HAVE_MEMCPY): Removed.
5552 * configure: Rebuilt.
5553 * configure.in: Never define HAVE_MEMCPY.
5555 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5557 (_Jv_AllocString): Use JvAllocObject again.
5558 * java/lang/Class.h (thread): New field.
5559 (_Jv_AllocString): No longer a friend.
5560 * prims.cc (processClass): Removed dead code. Changed to more
5561 closely follow the Java Language Specification.
5562 (processClass): Return early if already at the right state.
5564 * prims.cc (JvNewStringUTF): Removed.
5565 * include/cni.h (JvNewStringUTF): New function.
5566 (_Jv_NewStringUTF): Declare as `extern "C"'.
5567 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5569 * java/lang/natDouble.cc: Added copyright info and header
5570 comment. Include <stdlib.h>.
5571 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5572 bytes as are chars in string.
5574 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5576 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5580 * java/lang/System.java (init_properties): Now native.
5581 * java/lang/natSystem.cc (init_properties): New method.
5582 Include java/util/Properties.h.
5584 * Makefile.in: Rebuilt.
5585 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5586 OutputStreamWriter.h, ByteArrayInputStream.h,
5587 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5588 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5589 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5590 Properties.h, Hashtable.h, Dictionary.h.
5593 * include/javaprims.h (java::io): Added Reader, Writer,
5594 InputStreamReader, OutputStreamWriter,
5595 UnsupportedEncodingException, ByteArrayInputStream,
5596 ByteArrayOutputStream, EOFException, SyncFailedException,
5597 PushbackInputStream.
5598 (java::lang): Added Cloneable.
5599 (java::util): Added NoSuchElementException, VectorEnumeration,
5600 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5602 * java/io/PipedReader.java: New file.
5604 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5606 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5609 * java/io/io-defs.h: Removed.
5611 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5612 (FileInputStream): Use new constructor. Can throw IOException.
5614 * java/lang/System.java (getProperty): Don't throw
5615 NullPointerException.
5617 * java/io/RandomAccessFile.java: Rewrote from scratch.
5619 * java/io/natFileDescriptor.cc: Include EOFException.h.
5621 (length): New method.
5622 (getFilePointer): New method.
5624 (available): New method.
5625 * java/io/FileDescriptor.java (SET, CUR): New constants.
5626 (seek, length, getFilePointer, read, available): New decls.
5628 * java/io/PipedWriter.java: New file.
5629 * java/io/StringWriter.java: New file.
5630 * java/io/CharArrayWriter.java: New file.
5631 * java/io/CharConversionException.java: New file.
5632 * java/io/BufferedWriter.java: New file.
5633 * java/io/FilterWriter.java: New file.
5634 * java/io/FileWriter.java: New file.
5636 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5637 OutputStreamWriter.h, NullPointerException.h,
5638 ByteArrayInputStream.h, InputStreamReader.h.
5639 (getBytes): New method.
5640 (init): Throw NullPointerException.
5641 (init): New function.
5642 * java/lang/String.java (getBytes): Added missing decl.
5643 (getBytes): New method.
5644 (String): Added byte[]-based constructors.
5645 (copyValueOf): Wrote.
5646 (init): Declare variant which takes byte array and encoding.
5647 Import java.io.UnsupportedEncodingException.
5649 * java/io/File.java: Rewrote from scratch.
5650 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5651 * java/io/FileDescriptor.java: Rewrote from scratch.
5652 * java/io/FilenameFilter.java: Rewrote from scratch.
5654 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5656 * java/io/SyncFailedException.java: New file.
5657 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5658 * java/io/InterruptedIOException.java: Rewrote from scratch.
5659 * java/io/FileNotFoundException.java: Rewrote from scratch.
5660 * java/io/EOFException.java: Rewrote from scratch.
5661 * java/io/IOException.java: Rewrote from scratch.
5662 * java/io/PrintStream.java: Rewrote from scratch.
5663 * java/io/DataOutputStream.java: Rewrote from scratch.
5664 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5665 * java/io/FilterOutputStream.java: Rewrote from scratch.
5666 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5667 * java/io/PipedOutputStream.java: Rewrote from scratch.
5668 * java/io/FileOutputStream.java: Rewrote from scratch.
5669 * java/io/OutputStream.java: Rewrote from scratch.
5670 * java/io/DataOutput.java: Rewrote from scratch.
5672 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5674 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5676 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5678 * configure.in: Add --enable-libjava-debug
5680 * Makefile.am (nat_headers): Add java/lang/Float.h and
5683 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5685 * Makefile.in, configure, include/config.h.in: Rebuilt.
5687 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5689 * java/lang/Float.java: Rewritten
5690 * java/lang/Double.java: Rewritten
5691 * java/lang/natFloat.cc: toString() added.
5692 * java/lang/natDouble.cc: toString() added.
5693 * java/lang/natDouble.cc: doubleValueOf() added.
5694 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5695 java/lang/strtod.c: added.
5696 * ieeefp.h: __sparc added.
5697 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5699 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5701 * include/javaprims.h (java::lang): Added
5702 CloneNotSupportedException.
5704 * java/lang/Object.java (clone): No longer native. Implemented.
5705 * java/lang/natObject.cc (clone): Removed.
5707 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5709 * prims.cc: Don't make definitions `extern "C"'.
5710 (_Jv_RegisterClass): Renamed from registerClass.
5711 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5712 (_Jv_NewArray): Likewise.
5713 (_Jv_NewMultiArray): Likewise.
5714 (_Jv_CheckCast): Likewise.
5715 (_Jv_LookupInterfaceMethod): Likewise.
5716 (_Jv_CheckArrayStore): Likewise.
5717 (_Jv_RegisterClass): Likewise.
5719 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5720 * configure: Rebuilt.
5721 * configure.in: Don't check for fmod; it is provided by the fdlibm
5723 * prims.cc (fmod): Removed.
5725 * java/lang/natString.cc (charAt): Use _Jv_uint.
5726 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5727 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5728 (equalUtf8Consts): Likewise.
5729 (internalAddClass): Use _Jv_uint.
5730 (processClass): Likewise.
5731 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5732 (_Jv_uint): Renamed from uint32.
5733 (struct _Jv_Utf8Const): Changed members to use new type names.
5735 * configure: Rebuilt.
5736 * configure.in: Don't check for memcpy. Require memmove and a way
5738 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5740 (currentTimeMillis): Don't use #error.
5742 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5744 * java/lang/Math.java: static member random renamed to random_ to
5745 avoid conflict with member function of the same name.
5746 * include/javaprims.h: java.util.Random added.
5748 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5750 * include/java-chartables.h: Regenerated.
5751 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5754 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5756 * java/lang/Math.java: Rewritten.
5757 * java/lang/natMath.cc: New file.
5758 * Files added from fdlibm:
5759 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5760 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5761 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5762 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5763 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5764 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5765 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5766 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5767 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5768 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5769 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5770 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5771 java/lang/k_cos.c, java/lang/sf_ceil.c,
5772 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5773 java/lang/ieeefp.h, java/lang/fdlibm.h
5774 * Makefile.am: rules added for compiling C files from fdlibm.
5776 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5778 * chartables.pl: Minor documentation fixes.
5780 * configure: Rebuilt.
5781 * configure.in: Fixed --help output for --enable-fast-character.
5783 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5785 * configure: Rebuilt.
5786 * configure.in: Recognize --enable-fast-character.
5787 * acconfig.h (COMPACT_CHARACTER): New define.
5788 * include/config.h.in: Rebuilt.
5789 * include/java-chartables.h: New file.
5790 * Makefile.in: Rebuilt.
5791 * Makefile.am (nat_files): Added natCharacter.o.
5792 * java/lang/natCharacter.cc: New file.
5793 * chartables.pl (set_attribute): New function.
5794 (@attributes, @second_attributes): New globals.
5795 ($ROMAN_START, $ROMAN_END): Likewise.
5796 (process_char): Call set_attribute when required.
5797 (print_char): Just print hex value.
5798 (print_block): Generate C++ syntax.
5799 (print_numerics): Likewise.
5800 (print_single_map): Likewise.
5801 (print_all_block): Likewise.
5802 (print_case_table): Likewise.
5803 (print_fast_tables): New function.
5804 Generate C++ code suitable for a header file.
5805 * java/lang/Character.java (table_search): Removed.
5806 (digit_value): Now native.
5807 (getNumericValue): Likewise.
5808 (getType): Likewise.
5809 Removed all automatically-generated tables.
5810 (Tamil_Digit_One): Removed.
5811 (isSpaceChar): Now native.
5812 (isTitleCase): Likewise.
5813 (isLowerCase): Likewise.
5814 (isUpperCase): Likewise.
5815 (toLowerCase): Likewise.
5816 (toTitleCase): Likewise.
5817 (toUpperCase): Likewise.
5818 (isDefined): Fixed sense of test.
5820 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5822 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5824 (regionMatches): Likewise.
5826 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5828 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5830 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5832 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5835 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5838 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5840 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5842 * prims.cc (instanceof_class): Removed.
5843 (instanceof_array): Likewise.
5844 (instanceof): Likewise.
5845 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5846 (_Jv_CheckCast): Likewise.
5847 * java/lang/natClass.cc (isAssignableFrom): New method.
5848 * java/lang/Class.java (isAssignableFrom): Now native.
5850 * include/cni.h (JvThrow): Use `extern inline'.
5851 (JvAllocObject): Likewise.
5852 (JvInitClass): Likewise.
5854 * java/lang/natSystem.cc (arraycopy): Only check class of source
5857 * prims.cc (_Jv_CheckArrayStore): Wrote.
5858 (_Jv_MonitorEnter): Prefer `JvThrow'.
5859 Include ArrayStoreException.h.
5860 (_Jv_CheckCast): Indentation cleanup.
5862 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5864 * chartables.pl: New file.
5865 * java/lang/Character.java: Rewrote from scratch.
5867 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5869 * java/lang/ArithmeticException.java,
5870 java/lang/ArrayIndexOutOfBoundsException.java,
5871 java/lang/ArrayStoreException.java,
5872 java/lang/ClassCastException.java,
5873 java/lang/ClassNotFoundException.java,
5874 java/lang/CloneNotSupportedException.java,
5875 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5876 java/lang/IllegalArgumentException.java,
5877 java/lang/IllegalMonitorStateException.java,
5878 java/lang/IllegalThreadStateException.java,
5879 java/lang/IndexOutOfBoundsException.java,
5880 java/lang/InstantiationException.java,
5881 java/lang/InterruptedException.java,
5882 java/lang/NegativeArraySizeException.java,
5883 java/lang/NoSuchMethodException.java,
5884 java/lang/NullPointerException.java,
5885 java/lang/NumberFormatException.java,
5886 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5887 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5889 * java/lang/IllegalStateException.java,
5890 java/lang/NoSuchFieldException.java,
5891 java/lang/UnsupportedOperationException.java: Created.
5893 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5895 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5896 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5898 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5900 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5902 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5904 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5906 * Makefile.in: Rebuilt.
5908 * include/javaprims.h (java::lang): Added
5909 StringIndexOutOfBoundsException.
5911 * java/lang/String.java: Added header comment and FIXME comment for
5912 missing constructors/methods.
5913 (endsWith): Adjusted offset into string to look at just the last chars.
5914 Commented out undocumented method.
5916 * java/lang/natString.cc: Added includes for
5917 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5918 (String::init): Throw StringIndexOutOfBoundsException.
5919 (String::charAt): Throw StringIndexOutOfBoundsException.
5920 (String::substring): Throw StringIndexOutOfBoundsException.
5921 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5922 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5923 (String::compareTo): Return difference/offset between chars/strings.
5925 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5927 * java/lang/Boolean.java (TYPE): Added comment.
5929 * java/lang/Byte.java (decode): Added - commented out until dependent
5930 code for Integer is written.
5931 (compareTo): JDK 1.2 methods written.
5932 (hashCode): Added comment to note that values have been verified.
5934 * java/lang/Short.java (decode): Added - commented out until dependent
5935 code for Integer is written.
5936 (compareTo): JDK 1.2 methods written.
5937 (hashCode): Added comment to note that values have been verified.
5939 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5941 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5943 * include/javaprims.h (java::lang): Added VirtualMachineError,
5945 * Makefile.in: Rebuilt.
5946 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5947 VirtualMachineError.h.
5948 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5949 (lookupArray): Likewise.
5950 (makeUtf8Const): Likewise.
5951 (_Jv_AllocObject): Likewise.
5952 (_Jv_NewObjectArray): Likewise.
5953 Include OutOfMemoryError.h.
5955 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5956 to use JvNewStringLatin1.
5958 * java/io/io-defs.h: Include java/lang/IOException.h.
5959 * Makefile.in: Rebuilt.
5960 * Makefile.am (nat_headers): Added
5961 ArrayIndexOutOfBoundsException.h,
5962 ClassFormatError.h,ClassNotFoundException.h,
5963 ClassCircularityError.h, ClassCastException.h,
5964 IncompatibleClassChangeError.h, AbstractMethodError.h,
5965 IllegalAccessError.h, LinkageError.h, Error.h,
5966 NegativeArraySizeException.h, IOException.h.
5967 * include/cni.h (SignalError): Removed declaration.
5968 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5969 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5970 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5971 (newInstance): Likewise.
5972 (forName): Likewise.
5973 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5975 (read): Use JvThrow, not SignalError.
5980 (open_read): Likewise.
5981 (open_write): Likewise.
5984 (newstr): New function.
5985 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5987 (lastModifiedUnchecked): Likewise.
5988 (lengthUnchecked): Likewise.
5989 * include/javaprims.h (sorry): Removed declaration.
5990 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5991 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5992 ClassCastException, IncompatibleClassChangeError,
5993 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5994 * prims.cc (instanceof_array): Use JvFail, not sorry.
5996 Include ArrayIndexOutOfBoundsException.h,
5997 ClassFormatError.h,ClassNotFoundException.h,
5998 ClassCircularityError.h, ClassCastException.h,
5999 IncompatibleClassChangeError.h, AbstractMethodError.h,
6000 IllegalAccessError.h, NegativeArraySizeException.h.
6001 (_Jv_ThrowBadArrayIndex): Implemented.
6002 (JvNewStringUTF): Use JvFail, not sorry.
6003 (_Jv_FindClass): Likewise.
6004 (_Jv_NewArray): Likewise.
6005 (throwException): Removed.
6006 (getClass): Use JvThrow.
6007 (processClass): Likewise.
6008 (_Jv_NewObjectArray): Likewise.
6009 (_Jv_NewMultiArray): Likewise.
6010 (_Jv_CheckCast): Likewise.
6011 (_Jv_LookupInterfaceMethod): Likewise.
6012 (SignalError): Removed.
6013 (getClass): Use _Jv_NewStringUtf8Const to create String.
6015 * java/lang/natSystem.cc (arraycopy): Throw
6016 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
6018 * Makefile.in: Rebuilt.
6019 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
6021 * include/java-array.h: Mention gcjh, not gjavah.
6023 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
6024 (canReadUnchecked): Likewise.
6025 (canWriteUnchecked): Likewise.
6026 (isFileUnchecked): Likewise.
6027 * java/io/natFileDescriptor.cc: Don't include cni.h.
6029 * java/lang/Thread.java (run__): Declare.
6030 * java/lang/natThread.cc (run__): New method, to avoid compiler
6032 (start): Use run__, not run_.
6034 * java/io/io-defs.h: Include cni.h and jvm.h.
6036 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
6038 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
6039 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
6040 to natString.cc (with suitable renaming, inlines etc).
6041 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
6042 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
6043 * java/lang/String.h: Removed - now generated using gjavah.
6044 * java/lang/String.java: Re-written from scratch. Many native methods.
6045 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6046 * java/lang/natString.cc: Many functions re-written for "compact
6047 strings" representation, or native java.lang.String methods added.
6048 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6049 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6050 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6051 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6052 * include/cni.h: Add inline method.
6053 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6054 * include/javaprims.h: Moved some stuff frm String.h.
6055 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6056 * Makefile.am (nat_header): Added Character.h and String.h.
6057 (String.h): Add new rule.
6059 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6061 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6063 * posix-threads.cc: Include cni.h, jvm.h.
6064 * quick-threads.cc: Include cni.h, jvm.h.
6065 * nogc.cc: Include cni.h, not javaprims.h.
6066 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6067 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6068 include java-assert.h.
6069 * java/lang/natSystem.cc: Include cni.h. Don't include
6071 * java/lang/natRuntime.cc: Include cni.h. Don't include
6073 * prims.cc: Rearranged #include ordering. Don't include
6074 java-array.h or java-assert.h.
6075 * boehm.cc: Include config.h, cni.h.
6076 * exception.cc: Include config.h, cni.h.
6077 * include/jvm.h: Include java-assert.h.
6078 * include/cni.h: Include java/lang/Object.h. Don't include
6079 java-threads.h or java-array.h.
6081 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6083 * java/lang/Boolean.java: Rewritten.
6085 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6087 * java/lang/natFirstThread.cc (main_func): New typedef.
6088 (run): Use main_func, not JvPrivThreadStartFunc.
6089 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6091 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6093 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6096 Can't throw Java exceptions with C++ `throw':
6097 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6098 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6099 (setPriority): Likewise.
6103 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6104 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6106 Can't catch Java exceptions from C++:
6107 * java/lang/natThread.cc (finish_): New method.
6109 * java/lang/Thread.java (run_): Rewrote in Java.
6110 (finish_): New native method.
6112 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6114 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6116 * include/javaprims.h (java::io): Added Serializable.
6118 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6120 * java/util/EmptyStackException.java,
6121 java/util/NoSuchElementException.java: Rewritten.
6123 * java/util/ConcurrentModificationException.java,
6124 java/util/MissingResourceException.java,
6125 java/util/TooManyListenersException.java: Created.
6127 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6129 * include/cni.h (JvThrow): New function.
6130 * include/javaprims.h (_Jv_Throw): Declare.
6132 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6134 * java/util/Observable.java: Rewritten.
6136 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6138 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6139 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6140 Include NullPointerException.h.
6142 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6144 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6145 assignability checks. Don't bother using memcpy.
6147 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6149 * include/quick-threads.h (JvPrivThreadWait): New function.
6150 * include/no-threads.h (JvPrivThreadWait): New function.
6151 * include/posix-threads.h (JvPrivThreadWait): New function.
6152 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6154 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6156 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6157 offsets by size of type that is being copied.
6159 * java/lang/natThread.cc (start): Don't pass `object' argument to
6161 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6162 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6164 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6165 always pass thread as object.
6166 * include/quick-threads.h, include/posix-threads.h,
6167 include/no-threads.h (JvPrivThreadStart): Removed `object'
6170 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6172 * java/util/Dictionary.java: Rewritten.
6174 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6176 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6177 (JvPrivThreadDestroy): Likewise.
6179 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6181 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6183 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6185 * java/lang/natSystem.cc: Rewrote from scratch.
6186 * java/lang/System.java: Rewrote from scratch.
6187 * java/lang/Class.h (Class): Declare isAssignableFrom.
6188 * include/javaprims.h (java::lang): Added ArrayStoreException,
6189 IndexOutOfBoundsException.
6190 * Makefile.in: Rebuilt.
6191 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6192 IndexOutOfBoundsException.h.
6193 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6194 * include/jvm.h (_Jv_HashCode): New function.
6196 * java/lang/natThread.cc (suspend): Call checkAccess.
6198 * java/lang/Thread.java (setDaemon): Call checkAccess.
6200 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6202 * java/lang/Runtime.java: Rewrote from scratch.
6203 * java/lang/natRuntime.cc: Rewrote from scratch.
6205 * nogc.cc (JvPrivGCTotalMemory): New function.
6206 (JvPrivGCFreeMemory): Likewise.
6207 (total): New global.
6208 (JvPrivAllocObj): Increment total.
6209 (JvPrivAllocArray): Likewise.
6210 (JvPrivAllocBytes): Likewise.
6211 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6212 * boehm.cc (JvPrivGCTotalMemory): New function.
6213 (sum_blocks): Likewise.
6214 (JvPrivGCFreeMemory): Likewise.
6216 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6218 * include/javaprims.h (java::lang): Added FirstThread.
6219 * java/lang/natFirstThread.cc: New file.
6220 * java/lang/FirstThread.java: New file.
6221 * prims.cc (main_signature): Removed.
6222 (main_name): Removed.
6223 #include FirstThread.h.
6224 * Makefile.in: Rebuilt.
6225 * Makefile.am (TFRIEND): Removed.
6226 (java/lang/Thread.h): Likewise.
6227 (FTFRIEND): New macro.
6228 (java/lang/FirstThread.h): New target.
6229 (nat_files): Added natFirstThread.o.
6230 (nat_headers): Added FirstThread.h.
6231 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6232 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6234 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6238 * java/lang/natThread.cc (start): Synchronize the thread.
6239 (stop): Synchronize the thread.
6241 * java/lang/ThreadDeath.java: Rewrote from scratch.
6243 * Makefile.in: Rebuilt.
6244 * Makefile.am (TGFRIEND): New macro.
6245 (java/lang/ThreadGroup.h): New target.
6246 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6248 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6250 * nogc.cc: Include config.h.
6252 * java/lang/ThreadGroup.java: Rewrote from scratch.
6254 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6256 * java/lang/Thread.java (checkAccess): Only call in to security
6257 manager if it exists.
6258 (Thread): Don't check access when creating the first thread. Add
6259 this thread to the appropriate ThreadGroup.
6261 * java/lang/natThread.cc (run_): Call uncaughtException method on
6264 * java/lang/Runnable.java: Rewrote from scratch.
6265 * java/lang/Thread.java: Updated copyright comment to correct
6268 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6270 * java/util/Random.java: Rewritten.
6272 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6274 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6275 trailing 0 in array[].
6277 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6279 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6280 and RUNTESTFLAGS from AM_MAKEFLAGS.
6281 (SUBDIRS): Conditionally include testsuite.
6282 * Makefile.in: Rebuilt.
6284 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6286 * java/lang/Object.h: Include java-assert.h.
6288 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6290 * Makefile.am: Add testsuite directory.
6291 * configure.in: Build testsuite/Makefile.
6292 * Makefile.in, configure: Rebuilt.
6294 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6296 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6297 * include/jvm.h (_Jv_StartFirstThread): Declare.
6299 * include/javaprims.h (java::lang): Added Exception,
6302 * Makefile.in: Rebuilt.
6303 * Makefile.am (nat_headers): Added NullPointerException.h,
6304 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6305 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6306 (java/lang/Thread.h): New target.
6307 (TFRIEND): New macro
6309 * include/java-assert.h (JvFail): Use 0 and not NULL.
6311 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6312 instead of assuming we are a friend of Thread.
6313 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6314 instead of assuming we are a friend of Thread.
6316 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6318 * java/lang/natThread.cc: Rewrote from scratch.
6319 * java/lang/Thread.java: Rewrote from scratch.
6320 * prims.cc (JvRunMain): Use new Thread constructor.
6321 * include/javaprims.h (java::lang): Added InterruptedException.
6322 * Makefile.in: Rebuilt.
6323 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6324 * java/lang/Thread.h: Removed.
6325 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6326 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6328 * posix-threads.cc (JvPrivThreadJoin): Removed.
6329 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6330 (really_start): Don't notify join_cond.
6331 (JvPrivThreadStart): Added `data' argument.
6332 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6333 (JvPrivThreadJoin): Likewise.
6334 Use JvFail instead of sorry.
6335 (JvPrivThreadSuspend): Removed.
6336 (JvPrivThreadResume): Removed.
6337 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6338 (JvPrivThreadJoin): Likewise.
6339 (JvPrivThreadSuspend): Use JvFail.
6340 (JvPrivThreadResume): Likewise.
6341 (JvPrivThreadSuspend): Removed.
6342 (JvPrivThreadResume): Likewise.
6343 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6344 (JvPrivThread_t): Removed join_mutex, join_cond.
6345 Use JvFail instead of sorry.
6346 (JvPrivThreadSuspend): Removed.
6347 (JvPrivThreadResume): Likewise.
6349 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6351 * java/util/Observer.java: Rewritten
6352 * java/util/Enumeration.java: Rewritten
6354 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6356 * java/util/StringTokenizer.java: Rewritten
6357 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6358 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6359 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6361 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6363 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6366 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6367 Include java-assert.h.
6368 * include/java-assert.h: New file.
6369 * prims.cc (_Jv_Abort): New function.
6370 Include java-assert.h, not assert.h.
6371 (_Jv_MonitorExit): Use JvAssert.
6372 (resolveConstants): Likewise.
6373 (processClass): Likewise.
6374 (JvRunMain): Assert that method is found.
6376 * configure: Rebuilt.
6377 * configure.in: Check for test subdir.
6378 * Makefile.in: Rebuilt.
6379 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6381 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6382 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6384 * prims.cc (resolveConstants): Removed unused variables.
6385 (processClass): Likewise.
6387 * include/quick-threads.h (JvPrivThreadCurrent): Use
6389 * quick-threads.cc (destroy_data): New function.
6390 (JvPrivInitThreads): Create key.
6391 (JvPrivThreadKey): New global.
6392 (JvPrivThreadStart): Use coop_setspecific.
6394 * include/quick-threads.h, include/posix-threads.h,
6395 include/no-threads.h, no-threads.cc, quick-threads.cc,
6396 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6398 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6400 * include/no-threads.h (JvPrivThreadInitData): Don't set
6403 * include/quick-threads.h (JvPrivCondWait): coop function now
6405 (JvPrivThreadJoin): Likewise.
6407 * java/lang/Thread.h (Thread): Updated declaration of
6409 * include/quick-threads.h, include/posix-threads.h: Updated
6410 declaration of JvPrivThreadStart.
6411 * include/no-threads.h (JvPrivThreadStart): Changed definition
6413 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6414 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6415 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6417 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6419 * quick-threads.cc (qthrow): New function.
6420 (JvPrivInitThreads): New function.
6421 (started): New global.
6422 (JvPrivThreadStart): Call coop_start if required.
6423 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6424 (JvPrivThreadDestroy): Likewise.
6425 (JvPrivInitThreads): Removed.
6426 * include/posix-threads.h (JvPrivThreadCancel): Added error
6428 * java/lang/natThread.cc (stop_): Pass exception to
6431 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6433 * include/javaprims.h (java::lang): Added
6434 IllegalArgumentException, IllegalThreadStateException, Math,
6435 NullPointerException, ThreadDeath.
6436 (java::util): Added Enumeration.
6438 * Makefile.in: Rebuilt.
6439 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6441 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6443 (threadsv): Renamed from threads to avoid clash in C++ header.
6444 (groupsv): Likewise.
6445 * include/no-threads.h (JvPrivThreadStart): Removed.
6446 * no-threads.cc (JvPrivThreadStart): New function.
6447 * java/lang/Thread.java (Thread): New constructor for internal use.
6448 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6449 (Thread): Declare constructor.
6450 * prims.cc (JvRunMain): Create the initial Thread and
6452 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6453 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6454 Removed `daemon' argument.
6456 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6457 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6459 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6461 * Makefile.in: Rebuilt.
6462 * Makefile.am (INCLUDES): Include THREADINCS.
6464 * configure: Rebuilt.
6465 * configure.in: Recognize `qt' as a threads package.
6467 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6469 * java/util/Stack.java (pop): Null out topmost node for robustness.
6471 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6473 * java/util/Stack.java: Rewritten.
6474 * java/util/Vector.java (isEmpty): Simplified expression.
6476 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6478 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6479 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6481 * include/java-array.h (JvNewObjectArray): Created inline to
6484 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6487 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6489 * java/util/Vector.java: Rewritten.
6490 * java/io/Serializable.java: Created.
6492 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6494 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6495 Infinity is 1/0, not 1/1.
6497 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6499 * configure: Rebuilt.
6500 * configure.in: Removed duplicate AC_ARG_WITH.
6502 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6504 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6506 (_Jv_InitClass): Renamed from soft_initialise_class.
6507 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6508 (_Jv_CheckCast): Renamed from soft_checkcast.
6509 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6510 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6511 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6512 * include/cni.h (JvInitClass): New function.
6513 (_Jv_InitClass): Renamed from soft_initialise_class.
6515 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6517 * configure: Rebuilt.
6518 * configure.in (CXX): Don't set.
6519 * Makefile.in: Rebuilt.
6520 * Makefile.am (AM_CXXFLAGS): New macro.
6522 * Makefile.in: Rebuilt.
6523 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6524 nogc.o): New target.
6526 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6528 (mark_array): Likewise.
6530 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6532 * java/lang/Class.h (JvMethod): Removed some unused fields.
6533 (JvField.info): Removed unused idx union variant.
6535 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6537 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6540 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6542 * configure.in, configure (CXX): Add -fvtable-thunks.
6544 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6546 * java/lang/Object.java (finalize): Move first.
6547 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6548 (Object): Re-arrange order to match Object.java.
6550 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6552 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6553 * java/lang/natString.cc (hashChars): Likewise.
6555 * prims.cc (RuntimeClass): New macro.
6556 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6558 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6560 * Makefile.in: Rebuilt.
6561 * Makefile.am (AM_MAKEFLAGS): New macro.
6563 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6565 * nogc.cc: Include <javaprims.h>.
6567 * Makefile.in: Rebuilt.
6568 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6570 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6572 * exception.cc (terminate): Removed.
6573 (unexpected): Removed.
6575 * configure: Rebuilt.
6576 * configure.in: Handle case where target subdir is ".".
6578 * configure: Rebuilt.
6579 * configure.in: Compute COMPPATH based on --with-target-subdir
6580 option. Added --with-target-subdir and --with-cross-host. Use
6581 --with-cross-host to determine when a cross compiler is in use.
6583 * Makefile.in: Rebuilt.
6584 * Makefile.am (GJAVAH): Include COMPPATH.
6585 * configure: Rebuilt.
6586 * configure.in: Subst COMPPATH.
6588 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6590 * prims.cc (lockMutex): Removed.
6591 (unlockMutex): Likewise.
6592 (processClass): Lock the class using a JvSynchronize object.
6594 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6596 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6597 (gc_free_fixed): Removed.
6598 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6599 freeing old value of strhash.
6601 * exception.cc (_Jv_type_matcher): Cast first argument to
6604 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6606 * include/java-array.h (jstringArray): New type.
6607 * java/lang/natSystem.cc (setProperty): Removed.
6608 (initProperties): Directly call JvNewStringLatin1 for arguments.
6609 * java/util/natDate.cc: Include java/util/Date.h, not
6612 * java/io/FileDescriptor.java (available): No longer static.
6613 * java/lang/natDouble.cc (Double): Removed class definition.
6614 * include/javaprims.h (java::lang::Number): Declare.
6615 (java::lang::NumberFormatException): Likewise.
6616 (java::io::FilenameFilter): Likewise.
6617 (java::lang::Character): Likewise.
6618 (java::lang::Error): Likewise.
6619 (java::lang::SecurityManager): Likewise.
6620 (java::util::Vector): Likewise.
6621 (java::io::FileNotFoundException): Likewise.
6622 (java::io::IOException): Likewise.
6623 (java::lang::NativeLang): Likewise.
6624 (java::lang::UnsatisfiedLinkError): Likewise.
6625 (java::util::StringTokenizer): Likewise.
6626 (java::io::InputStream, java::io::OutputStream): Likewise.
6627 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6628 (java::util::Hashtable): Likewise.
6629 * Makefile.in: Rebuilt.
6630 * Makefile.am (nat_headers): Added java/lang/Double.h,
6631 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6632 (MOSTLYCLEANFILES): Added nat_headers.
6633 * include/jvm.h: Moved many defines, declarations, and functions
6634 to java/lang/Class.h.
6635 (struct JvSyncInfo): Moved to java/lang/Object.h.
6636 (UTF8_GET): Moved to java/lang/String.h.
6638 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6640 * java/io/io-defs.h: Don't include java-io.h.
6641 * include/java-io.h: Removed.
6642 * include/javaprims.h: Include java::io.
6644 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6646 * include/java-io.h (File): Removed
6647 (FileDescriptor): Likewise.
6649 * java/io/io-defs.h: Include java/io/File.h and
6650 java/io/FileDescriptor.h.
6652 * Makefile.in: Rebuilt.
6653 * Makefile.am (GJAVAH): New macro.
6654 (.class.h): New rule.
6655 (SUFFIXES): Added .h.
6656 (nat_headers): New macro.
6657 ($(nat_headers)): New target.
6658 (BUILT_SOURCES): Added nat_headers.
6660 * include/java-util.h: Removed.
6662 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6664 * include/java-io.h: Changed to avoid java-lang.h.
6665 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6667 * java/lang/natSystem.cc: Include java/lang/System.h, not
6669 * java/lang/natString.cc: Include java/lang/String.h, not
6671 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6673 * java/lang/natClass.cc: Include java/lang/Class.h, not
6675 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6677 * java/lang/natObject.cc: Include java/lang/Object.h, not
6679 * exception.cc: Don't include java-lang.h.
6680 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6681 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6682 * nogc.cc: Don't include java-lang.h.
6683 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6684 * prims.cc (processClass): Don't use `init_type'; just cast to
6686 Include java/lang/Class.h and jvm.h, not java-lang.h.
6687 (JvAllocObject): Wrote single-argument version.
6688 (PrimClass): Inherit from Class.
6689 (initPrimClass): Removed.
6690 * include/java-lang.h: Removed.
6691 * include/jvm.h: Declare struct _dispatchTable.
6692 * include/cni.h: Don't declare _Jv_MonitorEnter,
6693 _Jv_MonitorExit, struct _dispatchTable.
6694 * include/javaprims.h: Moved all typedefs here, from cni.h.
6695 * java/lang/Class.h: New file.
6696 * include/java-array.h: New file.
6697 * java/lang/Object.h: New file.
6699 * prims.cc (classFromSig): Now static.
6701 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6703 * include/cni.h: Don't mention soft_new.
6704 * include/java-lang.h (Object): Don't mention soft_new. Mention
6705 _Jv_NewPrimArray, not newPrimArray.
6706 * prims.cc (soft_new): Removed.
6707 (_Jv_NewArray): Renamed from soft_newarray.
6708 (soft_anewarray): Use JvNewObjectArray.
6709 (newArray): Likewise.
6710 (newRefArray): Removed.
6711 (_Jv_NewPrimArray): Renamed from newPrimArray.
6712 (equalUtf8Consts): Now static.
6713 (soft_instanceof): Removed.
6714 * java/lang/natDouble.cc (doubleToString): Now static.
6716 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6717 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6720 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6722 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6724 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6726 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6727 (JvPrivMutexUnlock): Likewise.
6728 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6729 Return value now jint.
6730 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6733 * Makefile.in: Rebuilt.
6734 * Makefile.am: Don't allow `jV' names.
6735 (maintainer-check): Depend on libjava.a.
6736 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6738 * Makefile.in: Rebuilt.
6739 * Makefile.am (NM): New macro.
6740 (maintainer-check): New target.
6742 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6744 * configure: Rebuilt.
6745 * configure.in: Use --enable-threads, not --enable-gc. Fix
6746 documentation for --enable-threads. Changed option to work like
6747 identical option in gcc/configure.
6749 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6751 * boehm.cc (mark_array): Use JvGetArrayLength.
6753 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6755 * exception.cc: New file (mostly written by Andrew MacLeod),
6756 exception handling support.
6757 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6758 Remove -fexceptions - it is now the default.
6760 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6761 (JvAllocObject): Renamed to _Jv_AllocObject.
6762 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6763 (loadClass): Renamed to _Jv_FindClass.
6764 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6765 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6766 * include/java-lang.h (JvGetArrayLength): New CNI function.
6767 * include/jvm.h (_Jv_FindClass): Added declaration.
6769 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6771 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6773 * java/lang/natClass.cc (getName): Add implementation.
6774 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6776 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6778 * Makefile.in: Rebuilt.
6779 * Makefile.am (.class.o): Added -fexceptions.
6781 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6783 * configure: Rebuilt.
6784 * configure.in: Don't check for __nanosleep.
6785 * posix-threads.cc (nanosleep): Never define.
6787 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6789 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6792 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6794 * java/lang/natThread.cc (enumerate): Uncommented.
6795 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6796 (interrupt): Call it.
6798 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6800 * configure: Rebuilt.
6801 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6803 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6805 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6806 * include/java-lang.h (Thread): Added `interrupted_' method.
6807 * java/lang/Thread.java (interrupted_): New method.
6808 * java/lang/natThread.cc (join): Possibly throw interrupted
6809 exception after join finishes.
6810 (interrupted_): New method.
6811 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6813 (JvPrivThreadJoin): New function.
6814 (really_start): Notify all threads waiting for this thread.
6815 (struct starter): Added `data' member.
6816 (JvPrivThreadStart): Set it.
6817 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6819 (JvPrivThreadJoin): No longer inline.
6820 (JvPrivThreadInterrupt): New function.
6822 * include/no-threads.h (JvPrivThreadSleep): Removed.
6823 * posix-threads.cc (JvPrivThreadSleep): Removed.
6825 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6827 * configure: Rebuilt.
6828 * configure.in (THREADOBJS): Initialize to no-threads.o in
6830 * posix-threads.cc (key): New global.
6831 (JvPrivInitThreads): New function.
6832 (really_start): Set thread-specific data to point to object.
6833 (JvPrivThreadStart): Added `daemon' argument.
6834 (JvPrivThreadSleep): Added `data' argument.
6835 * include/posix-threads.h (JvPrivInitThreads): Removed
6837 (JvPrivThreadCurrent): New function.
6838 * include/no-threads.h (JvPrivThreadInitData): Initialize
6839 JvPrivOnlyThread. Added `thread' argument.
6840 (JvPrivThreadCurrent): New function.
6841 (JvPrivThreadStart): Added `daemon' argument.
6842 * no-threads.cc: New file.
6843 * java/lang/natThread.cc (init_data): New function.
6845 (start): Set `alive' member.
6846 (stop_): Clear `alive' member.
6847 (destroy): Likewise.
6848 (currentThread): Implemented.
6849 (start): Pass `daemon' argument to JvPrivThreadStart.
6851 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6852 (Thread): Added `init_data' method.
6853 * java/lang/Thread.java (alive, data): New instance variables.
6854 (init_data): New private method.
6855 (isAlive): No longer native.
6857 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6859 * include/java-lang.h (JvRunMain): Declare.
6860 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6861 * prims.cc (JvRunMain): New function.
6862 (main_signature, main_name): New globals.
6864 * boehm.cc (mark_array): Use `elements' function and not
6865 operator[] on jarray.
6867 * posix-threads.cc: Include <config.h>. Define nanosleep if
6870 * configure: Rebuilt.
6871 * configure.in: Check for _nanosleep.
6873 * configure: Rebuilt.
6874 * configure.in: Check for pthread_mutexattr_settype.
6876 * include/cni.h (class JvSynchronize): New class.
6877 * java/lang/Thread.java (sleep): Throws InterruptedException.
6878 (join): Throws InterruptedException.
6879 (resume): Not native.
6880 (resume_): New method.
6881 (start): Now synchronized.
6882 (stop_): New method.
6883 (Thread): Synchronize when accessing threadNumber.
6885 * java/lang/natThread.cc (throwException): New macro.
6886 (sleep): Throw InterruptedException.
6889 * include/java-lang.h (Runtime): Added interrupted().
6891 * boehm.cc (call_finalizer): Correctly initialize jobj.
6892 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6894 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6897 * configure: Rebuilt.
6898 * configure.in: Added support for --disable-threads.
6899 * include/no-threads.h: New file.
6901 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6903 * Makefile.in: Rebuilt.
6904 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6905 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6906 (libjava_a_LIBADD): Added THREADOBJS.
6907 * configure: Rebuilt.
6908 * configure.in: Added --with-threads option.
6909 * posix-threads.cc: New file.
6910 * include/posix-threads.h: New file.
6911 * include/java-lang.h (Object): Added static member sync_mutex,
6912 member sync_info, method init_mutex.
6913 (struct JvSyncInfo): New struct.
6914 Include "java-threads.h".
6915 * prims.cc (soft_monitorenter): Wrote.
6916 (soft_monitorexit): Likewise.
6917 * java/lang/natObject.cc (init_mutex): New method.
6921 (sync_mutex): Define.
6922 Include "java-threads.h".
6924 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6926 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6927 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6929 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6931 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6932 Added extern "Java" in places to tell G++ Object is a "Java" type.
6933 Other minor renaming and fixes.
6934 * include/java-io.h (FileDescriptor): Add friend class declarations.
6935 G++ no longer allows non-Java types in method parameters and results
6936 of Java classes. Converted most offending methods to friends.
6937 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6938 * java/lang/natSystem.cc (setProperty): Make friend.
6939 * java/lang/natString.cc, include/java-lang.h (String): Rename
6940 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6941 * include/java-lang.h (JArray): Remove getData and eoprator[].
6942 Add elements friend function instead.
6943 * java/lang/natSystem.cc (arraycopy): Use elements function.
6944 * java/io/natFileDescriptor.cc (read, write): Likewise.
6945 * include/java-lang.h (Object): Remove unused make method.
6946 (System::setProperty(char*,char*)): Turn into friend function.
6947 (Class): Rename newObject by JvAllocObject.
6948 * prims.cc: Update to use JvAllocObject, and elements.
6950 * java/lang/natDouble.cc: Fix double -> jdouble.
6952 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6954 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6956 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6958 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6959 * include/java-lang.h (Runtime): finalize_on_exit and
6960 runFinalizersOnExit now static.
6961 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6963 (finalize_on_exit): Now static.
6965 * boehm.cc (mark_obj): Get class using getClass() method on
6967 (_dispatchTable): Removed.
6969 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6971 * java/io/natFileDescriptor.cc (open_read): Only call open if
6973 (open_write): Likewise.
6975 * Makefile.in: Rebuilt.
6976 * Makefile.am ($(nat_files)): Depend on config.h.
6978 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6980 * prims.cc (ObjectClass): Now a macro; updated for new class name
6982 (StringClass): Likewise.
6983 (ClassClass): Likewise.
6985 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6987 * java/io/natFileDescriptor.cc (available): Do nothing unless
6988 HAVE_SELECT defined.
6989 * java/util/natDate.cc (setTime): Conditional on
6991 (toString): Conditional on HAVE_TIME.
6992 * aclocal.m4, configure: Rebuilt.
6993 * acinclude.m4: New file.
6994 * configure.in: Don't actually call AM_EXEEXT. Call
6995 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6996 --with-target-subdir option. Check for select and open
6999 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
7001 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
7002 (call_finalizer): Likewise.
7003 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
7004 * prims.cc (newObject): Pass actual method pointer to
7005 JvPrivRegisterFinalizer.
7006 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
7007 (JvPrivRegisterFinalizer): Changed interface.
7009 * Makefile.in: Rebuilt.
7010 * Makefile.am (MOSTLYCLEANFILES): New macro.
7011 (CLEANFILES): Removed javao_files.
7013 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
7015 * nogc.cc: New file.
7016 * Makefile.in: Rebuilt.
7017 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
7018 (EXTRA_libjava_a_SOURCES): New macro.
7019 (libjava_a_SOURCES): Removed boehm.cc.
7020 (libjava_a_DEPENDENCIES): Added GCOBJS.
7021 (libjava_a_LIBADD): Likewise.
7022 * configure: Rebuilt.
7023 * configure.in: Added code for --enable-gc=TYPE.
7025 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
7027 * boehm.cc (mark_array): Don't further dereference pointer from
7030 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
7031 * Makefile.in: Rebuilt.
7032 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
7033 one for boehm-gc build directory.
7035 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
7037 * include/java-lang.h (finalize_on_exit): New instance variable in
7038 java::lang::Runtime.
7039 (runFinalizersOnExit): New method.
7040 * java/lang/Runtime.java (finalize_on_exit): New instance
7042 (runAllFinalizers_): New private method.
7043 (runFinalizersOnExit): New method.
7044 * boehm.cc (JvPrivRunFinalizers): New function.
7045 (JvPrivRunAllFinalizers): Likewise.
7046 (JvPrivRunGC): Likewise.
7047 * java/lang/natRuntime.cc: Include "jvm.h".
7048 (gc): Call JvPrivRunGC.
7049 (runFinalization): Call JvPrivRunFinalizers.
7050 (runFinalizersOnExit): New method.
7051 (exit_): Call JvPrivRunAllFinalizers if required.
7052 * include/jvm.h: Declare JvPrivRunFinalizers,
7053 JvPrivRunAllFinalizers, JvPrivRunGC.
7055 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7057 * boehm.cc (JvPrivRegisterFinalizer): New function.
7058 (call_finalizer): Likewise.
7059 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7060 * prims.cc (finalize_name): New global.
7061 (newObject): Just call other newObject.
7062 (newObject): Register finalizer if it exists.
7064 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7066 * prims.cc (gc_malloc): Removed.
7067 (makeUtf8Const): Use JvPrivAllocBytes.
7068 (lookupArray): Likewise.
7069 (newPrimArray): Likewise.
7070 (JvNewObjectArray): Use JvPrivAllocArray.
7071 (newObject): Use JvPrivAllocObj.
7072 (newObject): Likewise.
7073 Changed Method -> JvMethod everywhere.
7074 Changed Field -> JvField everywhere.
7075 * include/java-lang.h (Object): Changed type of `fields' to
7077 (jmethodID, jfieldID): New typedefs.
7078 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7080 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7082 (METHOD_NATIVECODE): Moved from java-lang.h.
7083 (class JvField): New class.
7084 (JvGetFirstInstanceField): New function.
7085 (JvFieldIsRef): Likewise.
7086 (JvGetObjectField): Likewise.
7087 (JvNumInstanceFields): Likewise.
7089 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7091 * boehm.cc: New file.
7092 * Makefile.in: Rebuilt.
7093 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7094 (INCLUDES): Added -I options to find boehm-gc files.
7096 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7098 * configure: Rebuilt.
7099 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7101 * Makefile.in: Rebuilt.
7102 * Makefile.am (nat_files): New macro.
7103 (libjava_a_DEPENDENCIES): Use it.
7104 (libjava_a_LIBADD): Likewise.
7105 ($(nat_files)): New static pattern rule.
7106 (class_files): Run separate find to find .class files.
7107 (javao_files): Compute based on class_files.
7108 (BUILT_SOURCES): New macro.
7110 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7112 * Makefile.am (java_files): New macro.
7113 (class_files): Likewise.
7114 (javao_files): Likewise.
7115 (libjava_a_DEPENDENCIES): Include $(javao_files).
7116 (libjava_a_LIBADD): Likewise.
7117 (classes.stamp): Depend on $(java_files); only recompile changed
7120 (CLEANFILES): Don't run find; use macros. Don't mention
7122 (.class.o): New target.
7123 (compiled.stamp): Removed.
7125 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7127 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7128 LineNumberReader}>java: Newly-implemented standard classes.
7130 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7132 * Makefile.in: Rebuilt.
7133 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7135 * Makefile.in: Rebuilt.
7136 * Makefile.am (hack): New macro.
7137 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7139 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7141 * include/config.h.in: New file.
7142 * include/config.h: Removed.
7143 * acconfig.h: New file.
7144 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7145 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7146 libjava_a_LIBADD): New macros.
7147 (INCLUDES): New macro.
7150 (SUFFIXES): Removed.
7152 (libjava.a): Removed.
7154 * configure: Rebuilt.
7155 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7156 Look for headers and functions we require. Create
7159 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7161 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7162 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7163 soft_lookupinterfacemethod): New functions.
7164 (PrimClass): Actually initialize the primitive classes.
7165 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7167 * include/java-util.h: Removed java::util definition.
7168 * include/cni.h: Moved java::util here and added Properties.
7169 Added more function prototypes.
7170 * include/java-lang.h: Added mroe methods and friend declarations.
7171 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7172 * include/jvm.h (strLengthUtf8): Add declaration.
7174 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7176 * java/lang/{Byte,Short,Void}.java: New classes.
7177 * java/lang/Character.java (isJavaIdentifierStart,
7178 JavaIdentifierPart): New static methods.
7179 * java/lang/Number.java (byteValue, shortValue): New methods.
7181 * java/lang/String.java (intern, hashCode): Make native.
7182 * java/lang/natString.cc: New file. Handle the string pool.
7183 * Makefile.am: Build natString.o. Use CXXFLAGS.
7185 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7186 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7187 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7188 * java/lang/System.java (setProperty): New private method.
7189 (initProperties): Take argument, and make native.
7190 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7191 (currentTimeMillis): Make more robust.
7193 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7194 * java/io/UnsupportedEncodingException.java: New exception class.
7196 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7197 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7199 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7201 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7202 * prims.cc: Added bunch of stuff.
7203 * include/cni.h: Added various definitions.
7204 * include/java-lang.h: Added Method, various friends, some macros.
7206 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7207 * java/lang/System.java (arraycopy): Make native.
7209 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7211 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7212 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7213 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7214 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7216 * java/lang/Runtime.java: Declare methods as native instead of
7218 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7219 * java/lang/System.java: Comment out some stuff, for now.
7220 * java/lang/Thread.java: Re-write. Use native methods.
7221 * java/lang/NativeLang.java: Remove most of it.
7223 * java/util/natDate.cc: Native (C++) methods for Date.
7224 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7225 * java/util/Date.java: Complete re-write.
7227 * java/io/io-defs.h: New header file.
7228 * java/io/FileDescriptor.java: Add a bunch of private methods,
7229 mostly moved from NativeIO.java and natNativeIO.cc.
7230 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7231 * java/io/File.java: Use new code.
7232 * java/io/{FileInputStream.java.FileOutputStream.java,
7233 RandomAccessFile.java}: Use new private FileDescriptor methods.
7234 * java/io/NativeIO.java: Removed, no longer used.
7236 * java/io/StreamTokenizer.java (numericChars): Make char array.
7238 * include/*.h: Various header files used by the C++ native code.
7240 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7241 New autoconf+automake-based setup.
7242 * prims.cc: New file for Java "primitives".