1 2000-01-04 Tom Tromey <tromey@cygnus.com>
3 * java/lang/Class.h (getSignature): Updated.
4 * java/lang/Class.java (getSignature): Updated.
5 * java/lang/natClass.cc (getSignature): Added `is_constructor'
7 (getConstructor): Ensure constructor is public.
8 (_getConstructors): Check for public-ness of constructor when
9 `declared' is false, not when it is true.
11 2000-01-04 Warren Levy <warrenl@cygnus.com>
13 * java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary
15 (receive): Set the sender's address in the DatagramPacket.
17 2000-01-04 Tom Tromey <tromey@cygnus.com>
19 * java/lang/reflect/natConstructor.cc (newInstance): Pass
20 declaring class as return_type argument to
21 _Jv_CallNonvirtualMethodA.
22 * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In
23 constructor case, create object and use it as `this' argument.
24 * java/lang/Class.h (_getConstructors): Declare.
25 (_getFields): Declare.
26 * java/lang/Class.java (getConstructors): Wrote.
27 (_getConstructors): New native method.
28 (getDeclaredConstructors): Wrote.
29 (_getFields): Declare new native method.
30 * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed
32 (getMethod): Work correctly when class is primitive.
33 (getDeclaredMethods): Likewise. Compute offset using `method',
35 (getDeclaredMethod): Likewise.
36 (getConstructor): Wrote.
37 (ConstructorClass): New define.
38 (getDeclaredConstructor): Wrote.
39 (_getConstructors): New method.
40 (_getFields): New method.
43 * Makefile.in: Rebuilt.
44 * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE.
46 * prims.cc: Remove `#pragma implementation'.
47 * gcj/array.h: Remove `#pragma interface'.
49 * prims.cc (_Jv_equaln): New function.
50 * java/lang/Class.java (getSignature): Declare.
51 * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc.
52 * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from
54 (getSignature): New method.
55 (getDeclaredMethod): Wrote.
57 Include StringBuffer.h.
58 * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor
59 as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as
61 (getSignature): Declare.
62 * include/jvm.h (_Jv_GetTypesFromSignature): Declare.
63 (_Jv_equaln): Declare.
64 (_Jv_CallNonvirtualMethodA): Declare.
65 * Makefile.in: Rebuilt.
66 * Makefile.am (nat_source_files): Added natConstructor.cc.
67 (java/lang/reflect/Constructor.h): New target.
68 * java/lang/reflect/natConstructor.cc: New file.
69 * java/lang/reflect/Constructor.java (newInstance): Now native.
70 (declaringClass): Renamed from decl_class.
71 (offset): Renamed from index.
72 (getType): New native method.
73 (getModifiers): Now native.
74 (getParameterTypes): Call getType if required.
75 (hashCode): Include hash code from declaring class.
77 (toString): Call getType if required.
78 * gcj/method.h (_Jv_FromReflectedConstructor): New function.
79 * java/lang/reflect/natMethod.cc (hack_call): New method.
80 Removed `#if 0' around FFI code.
81 Include <gnu/gcj/RawData.h>.
82 (invoke): Use _Jv_CallNonvirtualMethodA. Throw
83 IllegalArgumentException when argument object and class disagree.
84 (_Jv_GetTypesFromSignature): New function.
86 (ObjectClass): New define.
87 (_Jv_CallNonvirtualMethodA): New function.
88 * java/lang/reflect/Method.java (hack_trampoline): New method.
89 (hack_call): New native method.
91 1999-12-21 Per Bothner <per@bothner.com>
93 * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
96 1999-12-22 Bryce McKinlay <bryce@albatross.co.nz>
98 * java/lang/natObject.cc (notify): Throw message with
99 IllegalMonitorStateException.
102 * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
103 (isInterrupted_): New function, which does clear interrupt_flag.
104 (interrupt): Use `isInterrupted_'.
105 * java/lang/natThread.cc (interrupt): Add comment.
106 (join): Set `prev' in joiner loop.
107 Change various calls to `isInterrupted' to use `isInterrupted_'.
108 * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
109 on linux. Set result to 0 on an interrupt. Test interrupted status
110 of java Thread object directly.
111 FLAG_INTERRUPTED: removed.
112 (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
113 (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
114 (_Jv_InitThreads): Don't block SIGINT.
115 (_Jv_ThreadWait): Don't configure SIGINT handler.
117 1999-12-21 Tom Tromey <tromey@cygnus.com>
119 * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
121 1999-12-20 Tom Tromey <tromey@cygnus.com>
123 * java/lang/reflect/Modifier.java (STRICT): New constant.
124 (isStrict): New method.
125 (toString): Added `strict'.
127 1999-12-23 Anthony Green <green@cygnus.com>
129 * configure: Rebuilt.
130 * configure.in (LIBDATASTARTSPEC): Force data_start in with
133 1999-12-19 Anthony Green <green@cygnus.com>
135 * libgcjdata.c: New file.
136 * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
137 * configure: Rebuilt.
138 * configure.in (LIBDATASTARTSPEC): Force data with a known name
140 * Makefile.in: Rebuilt.
141 * Makefile.am: Build libgcjdata.a.
143 * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
144 * configure: Rebuilt.
145 * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
148 1999-12-17 Tom Tromey <tromey@cygnus.com>
150 * java/lang/reflect/Method.java (toString): Call getType if
151 required. Partial fix for PR libgcj/111. From Per Bothner.
153 * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
155 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
157 * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
158 null String constructor parameter.
159 * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
160 for exception messages.
161 BooleanClass: declare.
162 (setOption): Use BooleanClass instead of Class.forName() for
164 (bind): Cast 4th parameter of setsockopt to `char *' for
165 compatibility with older Solaris headers.
166 * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
167 sprintf calls for exception messages.
168 BooleanClass, IntegerClass: declare.
169 (setOption): Use BooleanClass and IntegerClass, not Class.forName()
172 1999-12-15 Tom Tromey <tromey@cygnus.com>
174 * java/lang/natSystem.cc (init_properties): Don't set user.name or
175 user.home if NO_GETUID defined. Only set user.dir if getcwd
178 * include/config.h.in: Rebuilt.
179 * acconfig.h (NO_GETUID): New define.
180 * configure.in: Rebuilt.
181 * configure.in: Define NO_GETUID in cross case. Check for getcwd
184 1999-12-08 Tom Tromey <tromey@cygnus.com>
186 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
187 where no recursive mutexes exist. Fixes PR libgcj/117.
189 1999-12-05 Anthony Green <green@cygnus.com>
191 * include/jvm.h: Declare many functions with
192 __attribute__((__malloc__)).
193 * gcj/javaprims.h: Ditto.
195 Thu Dec 2 17:26:47 1999 Anthony Green <green@cygnus.com>
197 * THANKS: Giving credit where credit is due.
199 1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
201 * java/net/ServerSocket.java (ServerSocket): Bind to any interface
203 * java/lang/natString.cc (equalsIgnoreCase): return false if
204 anotherString is null.
205 * java/lang/Boolean.java (valueOf): return FALSE if argument is
208 1999-11-30 Tom Tromey <tromey@cygnus.com>
210 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
211 mutex to initialize. Initialize `count' if required.
214 1999-11-27 Per Bothner <per@bothner.com>
216 * exception.cc: Remove prototype declarations for malloc and free.
217 These clash with recent versions of glibc, which specifies `throws ()'
218 when __cplusplus is defined. Instead, #include <stdlib.h>.
220 1999-11-24 Tom Tromey <tromey@cygnus.com>
222 * prims.cc (_Jv_NewObjectArray): Use
223 _Jv_GetArrayElementFromElementType.
224 (_Jv_NewPrimArray): Likewise.
225 * java/lang/natObject.cc (clone): Use
226 _Jv_GetArrayElementFromElementType instead of sizeof.
227 * java/lang/natSystem.cc (arraycopy): Use
228 _Jv_GetArrayElementFromElementType.
229 * include/jvm.h (_Jv_GetArrayElementFromElementType): New
232 1999-11-23 Bryce McKinlay <bryce@albatross.co.nz>
234 * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
235 Exception messages. PR java.net/57.
236 (bind): set SO_REUSEADDR before bind.
237 * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
238 overruns. PR java.net/57.
240 1999-11-19 Tom Tromey <tromey@cygnus.com>
242 * Makefile.am (DIVIDESPEC): Removed.
243 (EXCEPTIONSPEC): Removed.
245 1999-11-19 Andrew Haley <aph@cygnus.com>
247 * Makefile.am (JCFLAGS): Add -L$(here)
249 * Makefile.in: Rebuild.
251 1999-11-18 Tom Tromey <tromey@cygnus.com>
253 * java/lang/natDouble.cc: Include <config.h>.
255 * include/config.h.in: Rebuilt.
256 * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
257 * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
259 * configure: Rebuilt.
260 * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
261 requested by configure.host. Don't put `-D' option into
262 libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
264 * configure: Rebuilt.
265 * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
268 1999-11-18 Andrew Haley <aph@cygnus.com>
270 * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
271 (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
273 * Makefile.in: Rebuild
274 * acconfig.h: remove SJLJ_EXCEPTIONS
275 * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
276 Do not AC_DEFINE SJLJ_EXCEPTIONS.
277 * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
278 * gcj/Makefile.in, include/Makefile.in: rebuild.
279 * include/config.h.in: remove SJLJ_EXCEPTIONS.
281 1999-11-18 Andrew Haley <aph@cygnus.com>
283 * gij.cc (main): Rename label to prevent conflict.
285 * exception.cc (_Jv_type_matcher): Don't check the table if we're
286 using setjmp/longjmp exceptions: there isn't one.
288 1999-11-17 Andrew Haley <aph@cygnus.com>
290 * exception.cc (_Jv_type_matcher): Ignore null exception tables.
291 (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
292 (__sjthrow): Add declaration.
293 * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
297 * Makefile.in: Rebuild
298 * acconfig.h: Add SJLJ_EXCEPTIONS
299 * configure.in: Add SJLJ_EXCEPTIONS
300 * configure: Rebuild.
301 * gcj/Makefile.in: Rebuild.
302 * gcj/cni.h: Add support for sjlj-exceptions.
303 * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
304 * include/Makefile.in: Rebuild.
305 * include/default-signal.h: Add support for sjlj-exceptions.
307 1999-11-18 Tom Tromey <tromey@cygnus.com>
309 * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
311 * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
313 (method_cache): Made larger.
315 1999-11-11 Tom Tromey <tromey@cygnus.com>
317 * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
318 initializing mutex. Initialize `count' when required.
320 1999-11-07 Anthony Green <green@trip.cygnus.com>
322 * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
325 1999-11-05 Tom Tromey <tromey@cygnus.com>
327 * java/lang/natThread.cc (destroy): Removed incorrect comment.
329 1999-11-05 Jeff Sturm <jsturm@sigma6.com>
331 * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
332 * prims.cc (parse_heap_size): Use end, not spec. Use 1024
335 1999-11-05 Tom Tromey <tromey@cygnus.com>
337 * java/lang/natThread.cc (stop): Removed argument name.
339 * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
340 `private'; now has default access.
341 * Makefile.in: Rebuilt.
342 * Makefile.am (java/lang/ThreadGroup.h): Removed.
344 1999-11-04 Tom Tromey <tromey@cygnus.com>
346 * java/lang/natClass.cc (method_cache_count): Removed.
347 (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
348 (_Jv_AddMethodToCache): Don't loop.
350 * configure.in: Removed `qt' threads case.
351 * include/quick-threads.h: Removed.
352 * quick-threads.cc: Removed.
354 * include/quick-threads.h (_Jv_ThreadCancel): Removed.
355 (_Jv_ThreadDestroy): Likewise.
356 * include/no-threads.h (_Jv_ThreadCancel): Removed.
357 (_Jv_ThreadDestroy): Likewise.
358 * include/posix-threads.h (struct _Jv_Thread_t): Removed
360 (_Jv_ThreadCancel): Removed decl.
361 (_Jv_ThreadDestroy): Removed.
362 * posix-threads.cc (_Jv_ThreadCancel): Removed.
363 (throw_cleanup): Removed.
364 (really_start): Don't push or pop cleanup.
365 (_Jv_ThreadInitData): Don't initialize `exception' field.
366 * java/lang/Thread.java (stop): Officially unimplemented.
367 * java/lang/natThread.cc (stop): Officially unimplemented.
369 1999-11-02 Bryce McKinlay <bryce@albatross.co.nz>
371 * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h
374 1999-11-02 Tom Tromey <tromey@cygnus.com>
376 * boehm.cc: Don't include boehm-config.h.
378 1999-11-01 Tom Tromey <tromey@cygnus.com>
380 * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
381 (sum_blocks): Removed.
382 (_Jv_GCFreeMemory): Use GC_get_free_bytes.
384 1999-11-01 Bryce McKinlay <bryce@albatross.co.nz>
386 * java/io/PrintStream (PrintStream): Fix illegal usage of "this"
388 * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
389 * java/io/InputStreamReader (InputStreamReader): ditto.
391 1999-10-22 Tom Tromey <tromey@cygnus.com>
393 * Makefile.in: Rebuilt.
394 * Makefile.am (java/lang/ClassLoader.h): New target.
395 * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
398 * include/java-props.h (_Jv_Compiler_Properties): Changed
400 * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
401 * include/jvm.h (_Jv_GCSetInitialHeapSize,
402 _Jv_GCSetMaximumHeapSize): Declare.
403 (JvRunMain, _Jv_RunMain): Declare.
404 (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
405 * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
406 (_Jv_GCSetMaximumHeapSize): Likewise.
407 * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
408 (_Jv_GCSetMaximumHeapSize): Likewise.
409 * prims.cc (parse_heap_size): New function.
410 (_Jv_SetInitialHeapSize): Likewise.
411 (_Jv_SetMaximumHeapSize): Likewise.
412 (_Jv_Compiler_Properties): New global.
413 * gij.cc (help): New function.
415 (heap_size): Likewise.
416 (heap_max_size): Likewise.
417 (main): Parse arguments. Set _Jv_Compiler_Properties.
418 Include <config.h>, <java-props.h>.
419 (_Jv_Compiler_Properties): Removed.
421 1999-10-18 Tom Tromey <tromey@cygnus.com>
423 * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
425 (redirect): New static field.
426 * java/lang/ClassLoader.java (getSystemClassLoader): Now
428 (getVMClassLoader0): Removed.
429 * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
431 (getSystemClassLoader): Implemented.
433 1999-10-16 Anthony Green <green@cygnus.com>
435 * java/lang/ClassLoader.java (getSystemResource): Use
436 getSystemClassLoader instead of ClassLoader.system.
437 (getSystemResourceAsStream): Ditto.
439 * java/lang/natClassLoader.cc (redirect): Make static and
440 remove #ifdef INTERPRETER so it is always defined.
441 (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
442 returns a VMClassLoader.
444 * java/util/ResourceBundle.java (trySomeGetBundle): Create a
445 PropertyResourceBundle if a properties file is found before a
446 ResourceBundle class.
448 1999-10-15 Tom Tromey <tromey@cygnus.com>
450 * gij.cc (main): Formatting fixes.
451 (_Jv_Compiler_Properties): Define.
452 * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
454 (init_properties): Set properites from _Jv_Compiler_Properties.
455 * include/java-props.h (_Jv_Compiler_Properties,
456 _Jv_Environment_Properties): Declare.
458 * include/java-props.h: Added copyright.
460 1999-10-13 Anthony Green <green@cygnus.com>
462 * libtool-version: Catch up by incrementing current.
464 * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
465 * configure, include/config.h.in: Rebuilt.
466 * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
467 * configure.in: Added --disable-getenv-properties and new define
468 `DISABLE_GETENV_PROPERTIES'.
470 * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
471 (next_property_key): New function.
472 (next_property_value): New function.
473 (process_gcj_properties): New function.
474 (JvRunMain): Call process_gcj_properties.
477 * java/lang/natSystem.cc (init_properties): Set properties defined
480 * include/java-props.h: New file.
482 * java/lang/natSystem.cc (init_properties): Add new properties to
483 conform with Java Product Versioning Specification.
485 1999-10-12 Tom Tromey <tromey@cygnus.com>
487 * configure: Rebuilt.
488 * configure.in: Fixed test for --disable-java-net.
490 1999-10-06 Tom Tromey <tromey@cygnus.com>
492 * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
493 when building Canadian cross.
494 (NATIVE): Don't define when cross-compiling.
496 1999-10-04 Tom Tromey <tromey@cygnus.com>
498 * java/net/natPlainSocketImpl.cc: Don't include headers if
499 java.net is disabled.
501 * Makefile.in: Rebuilt.
502 * Makefile.am (ZINCS): Removed. This is defined in configure.in
503 when needed, and must be left empty when not needed.
505 1999-10-01 Anthony Green <green@cygnus.com>
507 * THANKS: Refreshed from htdocs version.
509 1999-10-01 Steve Chamberlain <sac@pobox.com>
511 * Makefile.in: Rebuilt.
512 * Makefile.am (ZINCS): Define
514 * configure: Rebuilt.
515 * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
517 * java/lang/ieeefp.h: Add definitions for picoJava.
519 1999-10-01 Tom Tromey <tromey@cygnus.com>
521 * configure: Rebuilt.
522 * configure.in: Set classpath when invoking gcj. Use changequote
523 around sed invocation.
525 * java/net/natPlainSocketImpl.cc: Stub native functions if
526 DISABLE_JAVA_NET is defined.
527 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
528 typo in exception string.
529 (getTimeToLive): Likewise.
530 Stub native functions if DISABLE_JAVA_NET is defined.
531 * java/net/natInetAddress.cc: Stub native functions if
532 DISABLE_JAVA_NET is defined.
533 * configure.host: Disable java.net for mips-tx39.
534 * configure, include/config.h.in: Rebuilt.
535 * acconfig.h (DISABLE_JAVA_NET): Undefine.
536 * configure.in: Added --disable-java-net and new define
539 1999-09-30 Tom Tromey <tromey@cygnus.com>
541 * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
543 1999-09-29 Bryce McKinlay <bryce@albatross.co.nz>
547 1999-09-28 Tom Tromey <tromey@cygnus.com>
549 * configure: Rebuilt.
550 * configure.in (PROCESS): In POSIX case, only set if not already
552 * configure.host (PROCESS): Set in mips-tx39 case.
554 * aclocal.m4, configure: Rebuilt.
555 * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
556 appropriate AC_PROG_ symbol.
558 1999-09-24 Tom Tromey <tromey@cygnus.com>
560 * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
562 (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
564 Fix for PR java.util/47:
565 * configure, include/config.h: Rebuilt.
566 * configure.in: Don't look for ctime or ctime_r.
567 * Makefile.in: Rebuilt.
568 * Makefile.am (nat_source_files): Don't mention natDate.cc.
569 * java/util/natDate.cc: Removed.
570 * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
572 (getAvailableIDs): Rewrote.
573 (getTimeZone): Rewrote.
574 * java/util/Date.java (toGMTString): New method.
575 (toLocaleString): New method.
578 1999-09-23 Tom Tromey <tromey@cygnus.com>
580 * configure: Rebuilt.
581 * configure.in: Print message when checking to see if gcj can
582 handle -fuse-divide-subroutine.
584 * java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed
586 * java/lang/FirstThread.java (run0): Renamed to `run'.
589 * prims.cc (main_init): New function.
590 (JvRunMain): Call it.
591 (_Jv_RunMain): Likewise.
593 (main_init): Ignore SIGPIPE. Fixes PR 51.
595 1999-09-22 Tom Tromey <tromey@cygnus.com>
597 * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
599 1999-09-16 Bryce McKinlay <bryce@albatross.co.nz>
601 * java/text/MessageFormat.java (MessageFormat(String)): Set the
603 * java/text/NumberFormat.java: Check that object is a Number. If
604 not, throw IllegialArgumentException.
606 1999-09-21 Tom Tromey <tromey@cygnus.com>
608 * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
609 both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
611 * include/posix-threads.h (_Jv_MutexDestroy): Use
613 (_Jv_MutexLock): Likewise.
614 (_Jv_MutexUnlock): Likewise.
616 * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
617 previous patch; it too was incorrect.
618 * java/io/PrintStream.java (PrintStream): Likewise.
620 * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
621 refer to `this' before calling superclass constructor.
622 * java/io/PrintStream.java (PrintStream): Don't refer to `this'
623 before calling superclass constructor.
625 1999-09-20 Tom Tromey <tromey@cygnus.com>
627 * configure: Rebuilt.
628 * configure.in: Send output of `-fuse-divide-subroutine' test
629 compilation to /dev/null.
631 1999-09-14 Tom Tromey <tromey@cygnus.com>
633 * include/java-insns.h: Turned constants into an enum. Added
634 multiple-inclusion protection.
636 1999-09-10 Tom Tromey <tromey@cygnus.com>
638 * configure: Rebuilt.
639 * configure.in: Build include/Makefile.
640 * Makefile.in: Rebuilt.
641 * Makefile.am (SUBDIRS): Added gcj and include.
642 (install-data-local): New target.
643 (extra_headers): New macro.
644 * include/Makefile.in: New file.
645 * include/Makefile.am: New file.
647 * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
648 * java/lang/reflect/natField.cc: Don't include gcj/field.h or
650 * boehm.cc: Don't include java-threads.h or gcj/field.h.
651 * resolve.cc: Include config.h.
652 * defineclass.cc: Include config.h.
653 * include/java-interp.h: Don't include config.h.
654 * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
657 * gcj/javaprims.h: Regenerated namespace decls.
658 * classes.pl (scan): Don't put `;' after closing brace.
660 * Makefile.in: Rebuilt.
661 * Makefile.am (INCLUDES): Added -I for top_srcdir.
662 * configure.in: Create gcj/Makefile.
663 * gcj/Makefile.in: New file.
664 * gcj/Makefile.am: New file.
665 * java/lang/Object.h: Don't include any other headers.
666 * gcj/array.h: Renamed from include/java-array.h.
667 * gcj/field.h: Renamed from include/java-field.h.
668 * gcj/method.h: Renamed from include/java-method.h.
669 * gcj/cni.h, gcj/javaprims.h: Moved from include/.
670 Updated all files to reflect new include structure.
672 1999-09-09 Tom Tromey <tromey@cygnus.com>
674 * configure: Rebuilt.
675 * configure.in: Fixed typo; variable is THREADSPEC and not
678 1999-09-08 Tom Tromey <tromey@cygnus.com>
680 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
681 previous change and implemented a correct test in the __m_count
684 * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
687 1999-09-07 Tom Tromey <tromey@cygnus.com>
689 * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
690 code and don't set errno.
692 * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
693 not `r'. Changed `done_sleeping' to a `bool'.
695 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu>
697 * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
698 Added FLAG_INTERRUPTED to indicate that a thread was interrupted
699 by another thread, rather than by the GC.
700 (_Jv_CondWait): Prevent premature thread wakeup by GC.
701 (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
702 * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
705 1999-09-03 Tom Tromey <tromey@cygnus.com>
707 * configure: Rebuilt.
708 * configure.in: Check for fstat function.
709 * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
712 1999-09-02 Tom Tromey <tromey@cygnus.com>
714 * include/java-array.h (jobjectArrayjchar): Removed unused
717 * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
718 _Jv_PrepareCompiledClass while holding class mutex.
720 1999-09-01 Tom Tromey <tromey@cygnus.com>
722 * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
723 (_Jv_PthreadGetMutex): Use it.
724 (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
725 (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
726 (_Jv_MutexLock): Likewise.
727 (_Jv_MutexUnlock): Likewise.
728 * include/config.h.in: Rebuilt.
729 * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
730 PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
731 * configure: Rebuilt.
732 * libgcj.spec.in: Don't mention INTERPSPEC.
733 * configure.in (INTERPSPEC): Removed.
734 Only run pthreads-related checks when using POSIX threads. Check
735 for m_count and __m_count in mutex structure.
737 1999-09-01 Matt Welsh <mdw@cs.berkeley.edu>
739 * java/lang/natClass.cc: Fixed notification of threads
740 when class initialization is complete.
742 1999-09-01 Tom Tromey <tromey@cygnus.com>
744 * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
745 * resolve.cc: Removed constants defined by
746 java.lang.reflect.Modifier.
747 Include <java/lang/reflect/Modifier.h>.
748 (_Jv_ResolvePoolEntry): Use values from Modifier.
749 (_Jv_DetermineVTableIndex): Likewise.
750 (_Jv_PrepareClass): Likewise.
752 * defineclass.cc (_Jv_ClassReader): Removed constants defined by
753 java.lang.reflect.Modifier.
754 Include <java/lang/reflect/Modifier.h>.
755 (checkExtends): Use values from Modifier.
756 (checkImplements): Likewise.
757 (handleField): Likewise.
758 (handleConstantValueAttribute): Likewise.
759 (handleFieldsEnd): Likewise.
760 (handleMethod ): Likewise.
761 (handleMethodsEnd): Likewise.
762 (handleClassBegin): Likewise.
763 * interpret.cc: Removed constants defined by
764 java.lang.reflect.Modifier.
765 (continue1): Use values from Modifier.
766 * java/lang/natClassLoader.cc: Removed constants defined by
767 java.lang.reflect.Modifier.
769 * java/lang/natClassLoader.cc (_Jv_NewClass): Use
770 JV_STATE_NOTHING, not `0'.
771 * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
773 * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
774 * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
776 (_Jv_PthreadGetMutex): New function.
777 (_Jv_PthreadCheckMonitor): Use it.
778 (_Jv_MutexInit): Likewise. ALso, initialize `count'.
779 (_Jv_MutexLock): Update `count'.
780 (_Jv_MutexUnlock): Likewise.
781 (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
784 1999-09-01 Kresten Krab Thorup <krab@gnu.org>
786 * Makefile.am (.java.lo): Add rule.
788 * Makefile.in: Rebuilt.
790 1999-09-01 Tom Tromey <tromey@cygnus.com>
792 * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
793 * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
795 (_Jv_CondNotify): Use it.
796 (_Jv_CondNotifyAll): Likewise.
798 * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
800 1999-08-31 Tom Tromey <tromey@cygnus.com>
802 * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
805 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
807 * posix-threads.cc: Include <errno.h>.
809 1999-08-23 Tom Tromey <tromey@cygnus.com>
811 * boehm.cc: Undefine TRUE and FALSE.
813 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
815 1999-08-21 Tom Tromey <tromey@cygnus.com>
817 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
820 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
822 * configure.in: Check for in_addr_t in netinet/in.h too. Check
824 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
825 (HAVE_STRUCT_IP_MREQ): Added.
826 * configure, include/config.h.in: Rebuilt.
827 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
829 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
830 Disable if ip_mreq is not available.
832 * configure.in: Check types ssize_t and in_addr_t.
833 * acconfig.h: Undefine them.
834 * configure, include/config.h.in: Rebuilt.
836 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
837 function that detects the signature of getpwuid_r.
838 (init_properties): Use it.
839 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
842 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
844 * interpret.cc (continue1): Implement explicit dispatch table.
845 insn_target: Explicit interpreter switch table.
846 SAVE_PC: New macro, moves pc saving code into instructions that
848 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
849 PC_REGISTER_ASM: New macro.
850 INLINE_SWITCH: New macro. Constrols dispatching strategy.
851 opcode: Remove local variable.
852 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
853 (POKEI): Use _Jv_word.
854 (iinc): Use _Jv_word.
855 (dupx): Change reference argument (sp) to pointer.
858 * interpret.cc: Remove instruction timing instrumentation.
860 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
861 comment. Don't use _Jv_ClassNameSamePackage.
863 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
864 URLPathEntry, CacheEntry}: Removed.
866 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
868 (.java.lo): Rule removed.
870 * Makefile.in: Rebuilt.
872 1999-08-19 Tom Tromey <tromey@cygnus.com>
874 * java/lang/natThread.cc (class locker): New class.
875 (join): Use a locker around _Jv_CondWait.
878 1999-08-18 Tom Tromey <tromey@cygnus.com>
880 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
881 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
883 1999-08-18 Tom Tromey <tromey@cygnus.com>
885 * include/javaprims.h ("Java"): Regenerated namespace decls.
887 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
889 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
890 from _Jv_InternClassStrings.
892 * prims.cc (_Jv_RunMain): New function.
893 (JvRunMain): Remove gij-support.
895 * gij.cc (main): Use _Jv_RunMain.
897 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
899 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
900 argument in temp variable.
901 (continue1): For all op_x2y insns, use temp variable for
902 intermediate value. Also remove some comments.
904 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
905 (forName): Don't call _Jv_InitClass.
907 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
909 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
911 * java/util/jar/JarInputStream.java: New file.
913 * java/util/jar/JarEntry.java: New file.
915 * java/util/jar/JarFile.java: New file.
917 * java/net/URLClassLoader.java: New file.
919 * java/net/JarURLConnection.java: New file.
921 * gnu/gcj/protocol/jar/Handler.java: New file.
923 * gnu/gcj/protocol/jar/Connection.java: New file.
925 * java/security/SecureClassLoader.java: New file.
927 * java/lang/ClassLoader.java (parent): New variable.
928 (ClassLoader (ClassLoader)): new constructor.
929 (findClass): New method.
930 (loadClass): Add default 1.2 implementation.
931 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
932 (readfully): Removed.
934 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
935 (findSystemClass): New method.
936 (VMClassLoader): Constructor rewritten.
938 All other methods removed.
940 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
941 to gnu::gcj::runtime::VMClassLoader.
942 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
944 (VMClassLoader::findSystemClass): renamed from findBootClass.
946 * Makefile.am: Add new files.
947 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
949 * Makefile.in: Rebuilt.
951 1999-08-17 Tom Tromey <tromey@cygnus.com>
953 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
955 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
958 1999-08-16 Tom Tromey <tromey@cygnus.com>
960 * configure: Rebuilt.
961 * configure.in: Set DIVIDESPEC to empty string if compiler does
962 not support -fuse-divide-subroutine.
964 1999-08-14 Per Bothner <per@bothner.com>
966 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
967 * java/lang/natClass.cc (initializeClass): Likewise.
968 * java/lang/ClassLoader.java (resolveClass0): New static method.
969 (resolveClass): Call resolveClass0.
970 (findSystemClass): No longer static.
972 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
974 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
976 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
978 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
981 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
984 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
987 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
990 * configure: Rebuilt.
991 * configure.in: Properly align --help output, fix capitalization
993 * acinclude.m4: Likewise.
995 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
997 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
999 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
1000 (_Jv_callInterpretedMethod): Unused. Remove.
1001 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
1003 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
1004 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
1005 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
1006 * interpret.cc: use _Jv_word.
1007 * defineclass.cc: use_Jv_word.
1008 * resolve.cc: Use _Jv_word.
1009 (_Jv_ResolvePoolEntry): Return _Jv_word.
1010 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
1011 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
1013 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1016 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1018 * configure: Rebuilt.
1019 * configure.in (sched_yield): Try librt first, then libposix4.
1020 Add -lrt, -lposix4 to THREADSPEC.
1022 1999-08-08 Anthony Green <green@cygnus.com>
1024 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
1026 1999-08-08 Anthony Green <green@cygnus.com>
1028 * defineclass.cc (_Jv_VerifyClassName): Verify array names
1031 1999-08-08 Anthony Green <green@cygnus.com>
1035 * include/config.h.in: Rebuilt.
1036 * acconfig.h: Add INTERPRETER.
1038 * Makefile.in: Rebuilt.
1039 * Makefile.am (libffi_files): Identify the libffi object files for
1040 inclusion in libgcj.
1041 (LIBFFIINCS): Define.
1043 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
1044 Dummy definition for configurations without an interpreter.
1046 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
1047 java::lang::Boolean constructor.
1049 * include/java-interp.h: Always include java-cpool.h.
1051 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
1052 when INTERPRETER not defined.
1054 * java/lang/Class.h (finalize): Define.
1056 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
1057 IOException from File.getCanonicalPath.
1058 (getStream): Likewise.
1061 * THANKS: More thanks.
1063 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1065 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
1067 (_Jv_PrepareClass): Allow non-abstract classes to
1068 have abstract subclasses.
1069 (_Jv_ResolvePoolEntry): Revert subclass check for protected
1071 * interpret.cc (continue1/perform_invoke): Don't sign extend
1073 (continue1/lshl,lshr): Push long, not int.
1074 (continue1/ulshr): Use UINT64, not long long.
1075 * defineclass.cc (handleFieldsEnd): Handle case when all fields
1077 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
1078 * java/lang/FirstThread.java (run): Add top-level exception
1080 (run0): Renamed from run.
1082 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
1084 * configure.in (--with-interpreter): Added.
1085 * include/config.h.in (INTERPRETER): Added.
1087 * java/lang/ClassLoader.java: File replaced.
1088 * java/lang/VMClassLoader.java: New file.
1089 * java/lang/natClassLoader.cc: New file.
1090 * gnu/gcj/runtime/MethodInvocation.java: New file.
1091 * gnu/gcj/util/path/SearchPath.java: New file.
1092 * gnu/gcj/util/path/PathEntry.java: New file.
1093 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1094 * gnu/gcj/util/path/ZipPathEntry.java: New file.
1095 * gnu/gcj/util/path/URLPathEntry.java: New file.
1096 * gnu/gcj/util/path/CacheEntry.java: New file.
1097 * include/java-interp.h: New file.
1098 * include/java-cpool.h: New file.
1099 * include/java-insns.h: New file.
1100 * defineclass.cc: New file.
1101 * interpret.cc: New file.
1102 * resolve.cc: New file.
1104 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1105 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1106 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1108 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1109 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1111 (initializeClass): Use new JV_ prefixed names. Also, call
1112 ClassLoader::resolveClass instead of _Jv_ResolveClass.
1114 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1115 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1116 JV_STATE_LINKED): New.
1117 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1118 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1119 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1120 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1121 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1122 _Jv_InterpMethodInvocation): New friends for interpreter.
1124 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1125 include/java-cpool.h and renamed with JV_ prefix.
1127 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1129 (_Jv_UnregisterClass): New decl.
1131 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1132 class loader argument.
1133 (_Jv_FindClass): Use class loader.
1135 * prims.cc (_Jv_makeUtf8Const): New function.
1136 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1137 (_Jv_NewPrimArray): Ditto.
1138 (_Jv_FindClassFromSignature): Ditto.
1139 * java/lang/reflect/natArray.cc (newInstance): Ditto.
1140 * java/lang/reflect/natMethod.cc (getType): Ditto.
1142 * include/java-field.h (_Jv_Field::isRef): Make robust for
1143 non-resolved contexts.
1145 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
1146 Also, don't mark class->next field.
1148 * java/lang/VirtualMachineError.java: Added FIXME note.
1150 * configure.in (INTERPSPEC): New spec.
1151 * libgcj.spec.in: Added INTERPSPEC.
1152 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1153 gnu/gcj/runtime/MethodInvocation.
1154 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1155 (ordinary_java_source_files): Added above mentioned java classes.
1157 * configure: Rebuilt.
1158 * Makefile.in: Rebuilt.
1160 1999-08-06 Tom Tromey <tromey@cygnus.com>
1162 * configure: Rebuilt.
1163 * configure.in: Look for sched_yield in -lrt.
1165 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
1167 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1168 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1169 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1171 (toString): Print correctly when `country' is empty.
1173 1999-08-04 Per Bothner <per@bothner.com>
1175 * configure.in: Also do AC_SUBST for DIVIDESPEC.
1177 1999-08-02 Tom Tromey <tromey@cygnus.com>
1179 * aclocal.m4, configure: Rebuilt for new libtool.
1181 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
1183 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1184 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1185 * java/net/ServerSocket.java: Define ANY_IF.
1186 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1187 all network interfaces.
1188 * java/net/DatagramSocket.java (DatagramSocket): ditto.
1189 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1191 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1193 * java/io/natFile.cc (performMkdir): Remove FIXME.
1194 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1196 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
1198 * configure.in: Check for bstring.h.
1199 * configure, include/config.h.in: Rebuilt.
1200 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1201 * java/net/natPlainSocketImpl.cc: Likewise.
1203 1999-07-31 Tom Tromey <tromey@cygnus.com>
1208 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1210 * configure.in: Check for struct hostent_data and need for
1211 -D_REENTRANT for gethostbyname_r declaration.
1212 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1213 (lookup): Use hostent_data for fixed_buffer.
1214 * configure, include/config.h.in: Rebuilt.
1216 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
1218 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1219 available. Don't cast memmove args to (void*).
1220 * configure.in: Do not abort if memmove is not available.
1222 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
1224 * java/lang/natString.cc (substring): optimize where substring is
1226 * java/io/File.java (getName): don't return separator with file name.
1227 * java/io/natFile.cc (attr): fix overflow.
1229 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
1231 * mauve-libgcj: Disable Object Serialization tests.
1233 1999-07-20 Warren Levy <warrenl@cygnus.com>
1235 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1236 Default to using PlainDatagramSocketImpl.
1237 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1239 1999-07-19 Tom Tromey <tromey@cygnus.com>
1241 * include/stamp-h.in: New file.
1243 1999-07-12 Tom Tromey <tromey@cygnus.com>
1245 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1248 1999-07-07 Andrew Haley <aph@cygnus.com>
1250 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1251 bytes to make it point after the instruction where the trap
1253 (HANDLE_DIVIDE_OVERFLOW): Ditto.
1255 1999-07-07 Tom Tromey <tromey@cygnus.com>
1257 * mauve-libgcj: Explicitly enable formerly disabled java.text
1260 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
1263 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
1265 * java/net/URL.java (equals): Compare strings using String.equals.
1266 * java/net/URL.java (sameFile): Ditto.
1268 1999-07-02 Warren Levy <warrenl@cygnus.com>
1270 * configure: Rebuilt.
1271 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1272 * include/config.h.in: Rebuilt.
1273 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1274 (mcastGrp): Updated FIXME comments.
1275 (setOption): Fixed typo.
1276 (getOption):Implemented IP_MULTICAST_IF.
1278 1999-07-02 Warren Levy <warrenl@cygnus.com>
1280 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1281 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1282 (getTimeToLive): Implemented.
1283 (setOption): Implemented IP_MULTICAST_IF.
1285 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
1287 * java/lang/String.java (toString): Check for this == null and throw
1288 NullPointerException.
1290 1999-07-01 Warren Levy <warrenl@cygnus.com>
1292 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1293 to count and revised comments to match.
1294 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1295 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1296 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1297 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1298 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1299 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1301 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
1303 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1304 properly as count rather than outlength.
1305 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1306 output on overflow rather than buffer fill.
1307 * java/io/BufferedReader.java (fill): Don't clear out the buffer
1308 if markPos is 0 and there is still room in the buffer.
1310 1999-07-01 Andrew Haley <aph@cygnus.com>
1312 * include/i386-signal.h: Replace sigaction () with __sigaction ().
1313 This is a workaround for a bug in glibc's pthreads package which
1314 doesn't deliver any sigcontext information to a signal handler.
1316 1999-06-24 Tom Tromey <tromey@cygnus.com>
1318 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1319 * java/lang/fdlibm.h (HUGE): Conditionally define.
1321 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
1323 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
1324 * java/lang/e_log.c: Don't use __uint32_t.
1326 1999-05-27 Eric Christopher <echristo@cygnus.com>
1328 * configure: Rebuilt
1329 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1330 * acconfig.h: Rebuilt
1331 * include/config.h.in: Rebuilt
1333 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1334 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1335 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1336 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1337 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1338 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1339 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1340 and namespace collision with __uint32_t
1342 1999-06-23 Tom Tromey <tromey@cygnus.com>
1344 * java/util/zip/InflaterInputStream.java (read): Throw
1345 ZipException if inflater throws a DataFormatException.
1347 1999-06-23 Warren Levy <warrenl@cygnus.com>
1349 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1350 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1351 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1352 is not final per JDK.
1353 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1355 * java/util/zip/DataFormatException.java: Class extends Exception.
1356 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1357 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1358 * java/util/zip/ZipInputStream.java: ditto.
1359 (closeEntry): Changed method name to match JDK spec.
1361 1999-06-21 Tom Tromey <tromey@cygnus.com>
1363 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1366 * Makefile.in: Rebuilt.
1367 * Makefile.am (toolexeclibdir): Define as libdir when
1369 * configure: Rebuilt.
1370 * configure.in (USE_LIBDIR): New conditional.
1372 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
1374 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1375 hostname in returned InetAddress objects.
1376 (getLocalHostname): Fix typo.
1377 * java/net/InetAddress.java (getByName): Set hostname on return
1379 (getLocalHost): Call lookup directly to ensure that a fully-qualified
1382 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
1384 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1385 interfaces if host==NULL.
1386 (accept): Throw message with InterruptedIOException.
1387 (getOption): Cache localAddress.
1388 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1389 'address' for DatagramSocket.
1390 (setTimeToLive): Fix compiler warnings.
1391 (getOption): Cache localAddress.
1392 * java/net/Socket.java (getLocalAddress): Don't need local
1393 InetAddress object. Add FIXME comment about calling checkConnect().
1394 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1395 connection queue to 50 as per JDK 1.2 docs.
1396 (ServerSocket(int,int)): Listen on all network interfaces by
1397 default, per JDK 1.2 docs.
1398 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1399 Add localAddress caching.
1401 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
1403 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1405 (write(byte[],int,int)): ditto.
1407 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
1409 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1411 1999-06-11 Warren Levy <warrenl@cygnus.com>
1413 * mauve-libgcj: Activated java.net Mauve tests.
1415 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
1417 * java/net/natInetAddress.cc (aton): Fix typos.
1418 (lookup): Use a bigger buffer size for gethostbyname_r on all
1419 versions of glibc. Updated FIXME comment explaining this.
1420 Modified while loops to not set herr = ERANGE to work around glibc
1421 problems. Use user specified hostname in InetAddress result when
1422 available (consistent with JDK).
1424 1999-06-10 Warren Levy <warrenl@cygnus.com>
1426 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1427 Throw FileNotFoundException instead of IOException.
1429 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1431 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1432 in static field name.
1433 * java/text/DecimalFormat.java: Throw IllegalArgumentException
1434 throughout rather than ParseException.
1436 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
1438 * java/lang/Runtime.java (exec): Convert prog name and arguments
1440 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1441 environment array conversion. Preserve current environment if envp
1442 not passed. Preserve PATH unless explicitly specified.
1443 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1444 followed by EOF. Set a flag when a line is terminated by '\r' and
1445 ignore following '\n' if set.
1447 1999-06-02 Warren Levy <warrenl@cygnus.com>
1449 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1450 Ignore context if spec is an absolute URL. Fix braindead
1452 (hashCode): Use JDK 1.2 style algorithm.
1453 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1454 context URL properly.
1456 1999-05-30 Anthony Green <green@cygnus.com>
1458 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1459 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
1461 1999-05-28 Warren Levy <warrenl@cygnus.com>
1463 * java/net/DatagramSocket.java (laddr): Removed.
1464 (DatagramSocket): Removed attempts to get or set laddr if null.
1465 (getLocalAddress): Reimplemented per spec.
1466 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1468 (joinGroup): Throw NullPointerException if any argument is null.
1469 (leaveGroup): ditto.
1470 * java/net/PlainDatagramSocketImpl.java: Updated comments.
1471 * java/net/PlainSocketImpl.java (timeout): Added.
1472 (getInputStream): Added FIXME comment on how to support timeouts
1474 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1475 * java/net/Socket.java: Added FIXME comments to identify
1476 conflicting specs between the JCL and JDK 1.2 documents.
1477 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1478 if host is null. Get localport value resolved by kernel if bind
1480 (receive): Implemented support for timeouts in UDP.
1481 (setOption): Implemented based on natPlainSocketImpl version.
1483 * java/net/natPlainSocketImpl.cc (bind): Get localport value
1484 resolved by kernel if bind lport is 0.
1485 (connect): Get localport value resolved by kernel if bind wasn't
1486 done to set localport.
1487 (accept): Implemented support for timeouts for ServerSocket.
1488 (setOption): Save value for SO_TIMEOUT.
1489 (getOption): Return timeout for SO_TIMEOUT.
1491 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
1493 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1494 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1495 (setOption): Made abstract.
1496 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1497 to avoid cpp conflicts in native code.
1498 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1499 cpp conflicts in native code.
1500 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1501 * java/net/Socket.java (getLocalAddress): Implemented.
1502 (setTcpNoDelay): Implemented.
1503 (getTcpNoDelay): Implemented.
1504 (setSoLinger): Implemented.
1505 (getSoLinger): Implemented.
1506 (getSoTimeout): Verify class type.
1507 (setSendBufferSize): Implemented.
1508 (getSendBufferSize): Implemented.
1509 (setReceiveBufferSize): Implemented.
1510 (getReceiveBufferSize): Implemented.
1511 (toString): Prepended "Socket".
1512 * java/net/SocketImpl.java (toString): Rewritten.
1513 (getOption): Made abstract.
1514 (setOption): Made abstract.
1515 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1516 (setOption): Implemented.
1517 (getOption): Implemented.
1519 1999-05-26 Warren Levy <warrenl@cygnus.com>
1521 * java/net/DatagramSocket.java (DatagramSocket): Get local host
1522 address when null. Set SO_REUSEADDR for multicasts.
1523 (getSoTimeout): Implemented.
1524 (setSoTimeout): Implemented.
1525 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1526 * java/net/MulticastSocket.java (getInterface): Implemented.
1527 (setInterface): Implemented.
1528 (setTimeToLive): Check for invalid ttl.
1529 (joinGroup): Verify multicast address and security.
1530 (leaveGroup): Verify multicast address and security.
1531 (send): Implemented.
1532 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1538 (getTTL): Implemented as non-native.
1542 * java/net/ServerSocket.java (setSoTimeout): Implemented.
1543 (getSoTimeout): Implemented.
1544 (setSocketFactory): Made synchronized.
1545 * java/net/Socket.java (setSoTimeout): Implemented.
1546 (getSoTimeout): Implemented.
1547 (close): Made synchronized.
1548 (setSocketImplFactory): Made synchronized.
1549 * java/net/SocketImpl.java: Implement SocketOptions interface.
1550 * java/net/natInetAddress.cc: Corrected module name at top of file.
1551 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1552 (bind): Added FIXME.
1553 (peek): Implemented.
1559 (setOption): Implemented for SO_REUSEADDR.
1560 (getOption): Implemented for SO_REUSEADDR.
1562 1999-05-24 Tom Tromey <tromey@cygnus.com>
1564 * java/util/ResourceBundle.java (getBundle): Throw
1565 NullPointerException if baseName is null.
1567 1999-05-22 Tom Tromey <tromey@cygnus.com>
1569 * java/util/zip/ZipInputStream.java (fill): New method.
1570 (compressed_len): New instance variable.
1571 (getNextStream): Set it.
1572 (read): Reset inflater on EOF. Only read via `super' if entry is
1574 (skip): Only skip via `super' if entry is deflated.
1575 * java/util/zip/Deflater.java (last_input_count): Removed.
1576 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1578 (needsInput): Don't use last_input_count.
1579 (setInput): Don't set last_input_count.
1580 * java/util/zip/natInflater.cc (getRemaining): Return correct
1582 (inflate): Return 0 if input array is length 0.
1583 (setInput): Don't set last_input_count.
1584 * java/util/zip/Inflater.java (last_input_count): Removed.
1586 1999-05-21 Tom Tromey <tromey@cygnus.com>
1588 * Makefile.in: Rebuilt.
1589 * Makefile.am (INCLUDES): Added $(ZINCS).
1590 * configure: Rebuilt.
1591 * configure.in (ZINCS): New subst.
1593 1999-05-21 Andrew Haley <aph@cygnus.com>
1595 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1596 to signal options to allow the same exceptions to be rethrown
1599 1999-05-20 Andrew Haley <aph@cygnus.com>
1601 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1603 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1604 (INIT_FPE): Exception string made more informative.
1605 * include/sparc-signal.h (INIT_FPE): Exception string made more
1607 * testsuite/libjava.lang/Divide_1.java: New file.
1608 * testsuite/libjava.lang/Divide_1.out: New file.
1610 1999-05-19 Tom Tromey <tromey@cygnus.com>
1612 * aclocal.m4, configure: Rebuilt.
1613 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1615 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1618 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1620 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1622 (update): Fail in default case. Always initialize `strat'.
1624 * mauve-libgcj: Enable java.util.zip.
1626 1999-05-18 Warren Levy <warrenl@cygnus.com>
1628 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1629 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1630 PlainDatagramSocketImpl.java, and SocketOptions.java.
1631 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1632 * Makefile.in: Rebuilt.
1634 * java/net/DatagramPacket.java: New file.
1635 * java/net/DatagramSocket.java: New file.
1636 * java/net/DatagramSocketImpl.java: New file.
1637 * java/net/MulticastSocket.java: New file.
1638 * java/net/PlainDatagramSocketImpl.java: New file.
1639 * java/net/SocketOptions.java: New file.
1640 * java/net/natPlainDatagramSocketImpl.cc: New file.
1642 1999-05-18 Tom Tromey <tromey@cygnus.com>
1644 * java/util/zip/ZipOutputStream.java (level): Initial value is
1645 Deflater.DEFAULT_COMPRESSION.
1646 (close): New method.
1647 (closeEntry): Likewise.
1649 (put_version): Likewise.
1650 (write_entry): Likewise.
1651 (put2, put4): Now return `int'.
1652 (comment): Default to empty string.
1653 (bytes_written): New instance variable.
1655 * java/util/zip/ZipEntry.java (setComment): Limit length of
1657 (setCrc): Check CRC validity.
1658 (setExtra): Check argument validity.
1659 (setMethod): Likewise.
1660 (setSize): Likewise.
1661 (ZipEntry): Likewise.
1662 * include/javaprims.h: Updated namespace declarations.
1663 * Makefile.in: Rebuilt.
1664 * Makefile.am (ordinary_java_source_files): Mention new files.
1665 (nat_source_files): Likewise.
1666 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1669 (getInputStream): Handle compressed entries.
1670 * java/util/zip/GZIPOutputStream.java: New file.
1671 * java/util/zip/GZIPInputStream.java: New file.
1672 * java/util/zip/DataFormatException.java: New file.
1673 * java/util/zip/CheckedInputStream.java: New file.
1674 * java/util/zip/CheckedOutputStream.java: New file.
1675 * java/util/zip/InflaterInputStream.java: Implemented.
1676 * java/util/zip/natInflater.cc: New file.
1677 * java/util/zip/Deflater.java: Implemented.
1678 * java/util/zip/natDeflater.cc: New file.
1679 * java/util/zip/DeflaterOutputStream.java: Implemented.
1681 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1682 ZipException, not IOException.
1683 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1686 1999-05-17 Tom Tromey <tromey@cygnus.com>
1688 * java/lang/natSystem.cc (init_properties): URL now points to
1691 1999-05-12 Per Bothner <bothner@cygnus.com>
1693 * java/util/Calendar.java (set): First call computeFields if needed.
1694 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
1696 1999-05-12 Tom Tromey <tromey@cygnus.com>
1698 * configure: Rebuilt.
1699 * configure.in: Look for -ldl when using the Boehm collector.
1700 Look for sched_yield in -lposix4.
1702 1999-05-12 Per Bothner <bothner@cygnus.com>
1704 * java/io/File.java (mkdirs): Handle a null parent directory.
1706 1999-05-12 Tom Tromey <tromey@cygnus.com>
1708 * include/javaprims.h: Updated namespace declarations.
1709 * classes.pl (scan): Uniquify class list.
1710 * Makefile.in, configure: Rebuilt.
1711 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1712 (built_java_source_files): New macro.
1713 (nat_headers): Added built_java_source_files.
1714 (javao_files): Likewise.
1715 (EXTRA_libgcj_la_SOURCES): Likewise.
1716 (libgcj.zip): Create built class files.
1717 ($(built_java_source_files:.java=.class)): New target.
1718 (jv_convert_LDADD): Added -L$(here)/.libs.
1719 * configure.in: Create links for ConcreteProcess.java and
1720 natConcreteProcess.cc.
1721 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1722 * java/lang/natEcosProcess.cc: New file.
1723 * java/lang/EcosProcess.java: New file.
1724 * java/lang/PosixProcess.java: New file.
1725 * java/lang/natPosixProcess.cc: New file.
1727 1999-05-12 Warren Levy <warrenl@cygnus.com>
1729 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1730 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1731 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1732 (connect): Throw ConnectException.
1734 1999-05-11 Tom Tromey <tromey@cygnus.com>
1736 * Makefile.in: Rebuilt.
1737 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1738 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
1741 * Makefile.in: Rebuilt.
1742 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1743 and it causes problems with libtool.
1745 * Makefile.in, configure: Rebuilt.
1746 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1747 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
1748 (jv_convert_DEPENDENCIES): Added ZDEPS.
1749 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1751 (THREADSPEC): Added `-L' to point to qthreads build directory.
1755 * configure, Makefile.in: Rebuilt.
1756 * Makefile.am (toolexeclib_DATA): New macro.
1757 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
1758 Recognize --with-system-zlib.
1759 (GCSPEC): New subst.
1760 (THREADSPEC): New subst.
1761 (SYSTEMSPEC): New subst.
1762 (ZLIBSPEC): New subst.
1763 * libgcj.spec.in: New file.
1765 1999-05-10 Tom Tromey <tromey@cygnus.com>
1767 * java/io/InputStreamReader.java (read): If length is 0, return
1768 0. Reset `wpos' and `wcount' when buffer has been filled and
1771 * java/util/Properties.java (save): Removed `FIXME' comment.
1772 (load): Invalid characters in \u now treated as terminators.
1773 Make sure to append character resulting from `\' handling.
1774 Cast to `char' when appending to key or value.
1775 (skip_ws): Inverted test for whitespace.
1777 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1779 (readLine): Likewise.
1780 (readFully): Implemented.
1782 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1784 * java/awt/natToolkit.cc: Added copyright header.
1785 * java/util/zip/InflaterInputStream.java: Added copyright header.
1787 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1789 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1791 (getNextStream): Likewise.
1793 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1795 (getBundle): Don't explicitly throw null pointer exception.
1797 * gnu/gcj/RawData.java: Added copyright header.
1799 * include/jni.h (_Jv_va_list): Always define as va_list.
1801 1999-05-9 Anthony Green <green@cygnus.com>
1803 * java/text/DateFormat.java (computeInstance): Separate time
1805 (getDateTimeInstance): Ditto.
1806 (getDateTimeInstance(int,int)): New method.
1808 * Makefile.in: Rebuilt.
1809 * Makefile.am (ordinary_java_source_files): Add new classes.
1811 * java/util/PropertyResourceBundle.java: New file.
1812 * gnu/gcj/util/EnumerationChain.java: New file.
1814 1999-05-07 Tom Tromey <tromey@cygnus.com>
1816 * acconfig.h (GCJVERSION): New undef.
1817 * java/lang/natSystem.cc (init_properties): Define java.version,
1818 java.class.version, os.name, os.arch, os.version.
1819 Include <sys/utsname.h> if required.
1820 * configure: Rebuilt.
1821 * configure.in: Compute and define GCJVERSION.
1823 * java/lang/natSystem.cc (default_file_encoding): Now static.
1825 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1827 * libtool-version: New file.
1828 * Makefile.in: Rebuilt.
1829 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1832 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1833 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1836 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1837 (we pick those up already).
1839 1999-05-05 Per Bothner <bothner@cygnus.com>
1841 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1842 stub classes. (This is enough to get Kawa to compile against libgcj.)
1844 * gnu/gcj/RawData.java: New class.
1845 * doc/cni.sgml: Document RawData.
1847 * java/util/zip/InflaterInputStream.java: New stub class.
1848 * java/util/zip/ZipInputStream.java: New class. Partly works.
1849 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1850 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1851 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1852 * java/util/zip/ZipOutputStream.java: Start implementation.
1854 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1855 (default_file_encoding): New global, initial value is above macro.
1856 (init_properties): Default file.encoding to default_file_encoding.
1858 * Makefile.am: Add new classes.
1860 1999-05-05 Tom Tromey <tromey@cygnus.com>
1862 * Makefile.in: Rebuilt.
1863 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1864 (clean-local): New target
1866 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1867 (load, loadLibrary): Now native.
1869 * java/lang/Runtime.java (load, loadLibrary): Now native.
1870 (init): New native method.
1871 (Runtime): Use init.
1872 * prims.cc: Include <ltdl.h> if required.
1873 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1875 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1877 * configure.in: Switch from irix threads to posix threads
1878 * configure: Regenerate.
1880 1999-04-30 Tom Tromey <tromey@cygnus.com>
1882 * Makefile.in: Rebuilt.
1883 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1885 1999-04-29 Tom Tromey <tromey@cygnus.com>
1887 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1890 * java/util/Locale.java (Locale(String,String)): Implement in
1891 terms of 3-argument version; variant now defaults to empty
1893 (toString): Assume variant is not null.
1894 (equals): Assume all strings are not null.
1895 (Locale): Throw NullPointerException if any argument is null.
1897 * java/util/ResourceBundle.java (getBundle): Don't try the base
1898 name; now implicit in partialGetBundle call.
1899 (trySomeGetBundle): Search for parent bundles and call setParent
1901 (partialGetBundle): Added `langStop' argument. Use
1902 `Locale.toString' to compute bundleName.
1903 (resource_cache): New static field.
1904 (partialGetBundle): Cache the returned resource bundle. Now
1907 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1910 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1911 * java/text/natCollator.cc (decomposeCharacter): `base' now
1913 * Makefile.in: Rebuilt.
1914 * Makefile.am (ordinary_java_source_files): Added
1915 CollationElementIterator, CollationKey, Collator,
1917 (nat_source_files): Added natCollator.cc.
1918 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1919 (compare): Pass `this' to CollationElementIterator constructor.
1920 (getCollationElementIterator): Likewise.
1921 (ceiNext): Fix off-by-one error when finding initial substring.
1922 (next): Correctly mask off bits when computing return value.
1923 Fixed return values when one string is shorter than the other.
1924 * java/text/CollationElementIterator.java (collator): New field.
1925 (CollationElementIterator): Added collator argument.
1926 (next): Call ceiNext on collator object.
1928 1999-04-26 Tom Tromey <tromey@cygnus.com>
1930 * natCollator.cc: New file.
1932 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1933 (GregorianCalendar): Use it in all constructors.
1934 * java/util/Calendar.java (Calendar): Changed argument name to
1935 `zone' to match code.
1937 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1938 * java/text/CollationKey.java: New file.
1939 * java/text/CollationElementIterator.java: New file.
1940 * java/text/Collator.java: New file.
1941 * java/text/RuleBasedCollator.java: New file.
1943 * Makefile.in: Rebuilt.
1944 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1945 (jv_convert_LDADD): Explicltly add -lm -lc.
1947 1999-04-26 Tom Tromey <tromey@cygnus.com>
1949 * configure, Makefile.in: Rebuilt.
1950 * configure.in: Added AM_PROG_LIBTOOL.
1951 (GCOBJS): Use `.lo' form of files.
1952 (THREADOBJS): Likewise.
1953 (GCDEPS): Use `.la' form of library.
1954 (GCLIBS): Set to be the same as GCDEPS.
1955 (THREADDEPS): Use `.la' form of library.
1956 (THREADLIBS): Set to be the same as THREADDEPS.
1957 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1958 toolexeclib_LIBRARIES.
1959 (libgcj_la_SOURCES): Renamed for libtoolization.
1960 (EXTRA_libgcj_la_SOURCES): Likewise.
1961 (libgcj_la_DEPENDENCIES): Likewise.
1962 (libgcj_la_LIBADD): Likewise.
1963 ($(nat_files)): Use LTCXXCOMPILE.
1964 ($(c_files)): Use LTCOMPILE.
1965 (GCJCOMPILE): New macro.
1967 (.java.o): Likewise.
1968 ($(javao_files)): Likewise.
1969 (jv_convert_LINK): Use LIBTOOL.
1970 (nat_files): Use `.lo' files.
1971 (c_files): Likewise.
1972 (javao_files): Likewise.
1973 (.class.lo): Renamed.
1974 (.java.lo): Likewise.
1975 ($(nat_files)): Depend on %.lo.
1976 ($(c_files)): Likewise.
1977 ($(javao_files)): Likewise.
1978 (jv_convert_LDADD): Link against .lo files.
1979 (jv_convert_DEPENDENCIES): Depend on .lo files.
1980 (maintainer-check): Depend on libgcj.la, but examine .a file.
1981 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1982 (libgcj_la_LDFLAGS): New macro.
1984 1999-04-23 Warren Levy <warrenl@cygnus.com>
1986 * Makefile.am: Added URLDecoder and URLEncoder.
1987 * Makefile.in: Rebuilt.
1989 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1990 setSocketImplFactory to match spec.
1991 * java/net/Socket.java (getSoLinger): Changed return type to
1994 * java/net/URLDecoder.java: New file.
1995 * java/net/URLEncoder.java: New file.
1997 1999-04-21 Tom Tromey <tromey@cygnus.com>
1999 * java/lang/natString.cc (getBytes): Reverted earlier change and
2000 applied correct fix from Per Bothner.
2002 * java/lang/String.java: Don't throw
2003 UnsupportedEncodingException.
2005 * java/lang/natString.cc (getBytes): Correctly size result
2006 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
2008 1999-04-20 Andrew Haley <aph@cygnus.com>
2010 * include/sparc-signal.h: new file.
2011 * configure.in: include/sparc-signal.h added.
2012 * configure: regenerated.
2013 * prims.cc (JvRunMain): signal handling code rewritten to be more
2015 (catch_segv): ditto.
2017 * include/i386-signal.h: reorganized.
2018 * include/default-signal.h: reorganized.
2020 1999-04-19 Tom Tromey <tromey@cygnus.com>
2022 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
2023 once. From Anthony Green.
2025 1999-04-19 Andrew Haley <aph@cygnus.com>
2027 * Makefile.in: Processed with new automake.
2029 1999-04-19 Tom Tromey <tromey@cygnus.com>
2031 * include/javaprims.h: Removed security namespace.
2033 1999-04-20 Anthony Green <green@cygnus.com>
2035 * java/io/PrintStream.java (println): Remove extra println.
2037 1999-04-19 Anthony Green <green@cygnus.com>
2039 * Makefile.in: Rebuilt.
2040 * Makefile.am (ordinary_java_source_files): Add new security files.
2042 * java/security/NoSuchAlgorithmException.java,
2043 java/security/MessageDigest.java: New files.
2045 * include/javaprims.h: Add security namespace.
2047 1999-04-16 Per Bothner <bothner@cygnus.com>
2049 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
2050 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
2051 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
2052 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
2053 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
2054 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
2055 * gnu/gcj/convert/natInput_SJIS.cc: New file.
2056 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
2057 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
2058 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
2059 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
2060 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
2061 * Makefile.am: Various changes for new files and conversions.
2063 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
2064 New overloading, allows greater efficiency.
2065 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
2066 New overloading (for efficiency - avoids copying).
2068 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
2069 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
2071 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
2072 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
2073 (writeChars): Don't be quite so eager to flush.
2074 * java/io/PrintStream.java: Rewrite. Now more similar to
2075 OutputStreamWriter, using explicit UnicodeToBytes converter.
2076 Also, autoflush does not need to flush so often.
2077 * java/lang/natString.cc (getBytes): More efficient algorithm.
2078 (init(jbyteArray,jint,jint,jstring)): More efficient.
2080 1999-04-15 Warren Levy <warrenl@cygnus.com>
2082 * Makefile.am (ordinary_java_source_files): Added new Connection
2083 and Handler classes in gnu.gcj.protocol.file package.
2084 * Makefile.in: Rebuilt.
2086 * gnu/gcj/protocol/file/Connection.java: New file.
2087 * gnu/gcj/protocol/file/Handler.java: New file.
2088 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
2089 if doInput allows input.
2090 (getOutputStream): Check if doOutput allows output.
2091 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2093 1999-04-14 Tom Tromey <tromey@cygnus.com>
2095 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2096 buffer larger to work around bug.
2097 From Bryce McKinlay <bryce@albatross.co.nz>.
2099 1999-04-14 Andrew Haley <aph@cygnus.com>
2101 * java/lang/natDouble.java (doubleToLongBits): ensure that all
2102 NaNs are always converted to the same long value.
2103 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2106 1999-04-13 Tom Tromey <tromey@cygnus.com>
2108 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2109 instead switch on actual element type.
2111 * Makefile.in: Rebuilt.
2112 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2114 1999-04-13 Andrew Haley <aph@cygnus.com>
2116 * include/i386-signal.h, include/default-signal.h: New files.
2117 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2119 (catch_fpe): New function.
2120 * configure.in: Make link to appropriate include/java-signal.h.
2121 * configure: Rebuilt.
2122 * Makefile.am: include/java-signal.h added to dependency list.
2123 * Makefile.in: Rebuilt.
2125 1999-04-12 Urban Widmark <urban@svenskatest.se>
2127 * java/io/DataInputStream.java (readLine): Corrected handling of
2128 empty lines, from null to "".
2130 1999-04-12 Tom Tromey <tromey@cygnus.com>
2132 * Makefile.in: Rebuilt.
2133 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2135 * java/lang/natSystem.cc (SystemClass): New define.
2136 (init_properties): Synchronize.
2138 1999-04-08 Geoff Berry <gcb@gnu.org>
2140 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2141 * natPlainSocketImpl.cc (accept): Add missing else if check
2144 1999-04-08 Tom Tromey <tromey@cygnus.com>
2146 * java/lang/Long.java (parseLong): Corrected overflow detection
2148 * java/lang/Integer.java (parseInt): Corrected overflow detection
2151 * java/io/PrintStream.java (print): Handle null string argument.
2152 (println): Likewise.
2154 1999-04-07 Warren Levy <warrenl@cygnus.com>
2156 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2157 Set count to 0 when InputStreamReader returns -1 for EOF.
2159 1999-04-07 Tom Tromey <tromey@cygnus.com>
2161 * mauve-libgcj: Omit java.text.Collator,
2162 java.text.RuleBasedCollator.
2164 1999-04-06 Tom Tromey <tromey@cygnus.com>
2166 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2167 IOException from getHttpHeaders().
2168 (getHeaderFieldKey): Likewise.
2170 * include/javaprims.h: Regenerated declarations.
2172 * Makefile.in: Rebuilt.
2173 * Makefile.am (ordinary_java_source_files): Updated for removed
2176 1999-04-06 Per Bothner <bothner@cygnus.com>
2178 * java/util/zip/Adler32.java: New class.
2179 * java/util/zip/CRC32.java: Add working method bodies.
2180 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
2181 * Makefile.in: Re-generate.
2183 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
2185 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
2186 from version in removed www hierarchy.
2187 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
2188 version in removed www hierarchy.
2190 * gnu/gcj/www/protocol/http/Connection.java: Removed.
2191 * gnu/gcj/www/protocol/http/Handler.java: Removed.
2192 * gnu/gcj/www/protocol/http: Removed dir.
2193 * gnu/gcj/www/protocol: Removed dir.
2194 * gnu/gcj/www: Removed dir.
2196 * java/net/HttpURLConnection.java: Revised comments to indicate
2197 missing JDK 1.2 methods.
2199 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2200 hierarchy rather than the gnu/gcj/www/protocol one.
2201 * java/net/URLConnection.java: Updated status comments.
2202 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2203 the gnu/gcj/www/content one.
2205 1999-04-06 Per Bothner <bothner@cygnus.com>
2207 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2208 The gen-from-JIS program is in $(CONVERT_DIR).
2210 1999-04-06 Tom Tromey <tromey@cygnus.com>
2212 * mauve-libgcj: Renamed from mauve-libjava.
2214 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
2216 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2217 (getResponseMessage): Implemented.
2218 (getResponseVals): New private method.
2220 * java/net/URLConnection.java (getContent): Implemented.
2221 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2223 1999-04-05 Tom Tromey <tromey@cygnus.com>
2225 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2226 (jv_convert_SOURCES): Renamed.
2227 (EXTRA_jv_convert_SOURCES): Likewise.
2228 (jv_convert_LDFLAGS): Likewise.
2229 (jv_convert_LINK): Likewise.
2230 (jv_convert_LDADD): Likewise.
2231 (jv_convert_DEPENDENCIES): Likewise.
2233 * Makefile.in: Rebuilt.
2234 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2237 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
2239 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2240 method for comparison.
2242 * java/net/URLConnection.java (getContentLength): Implemented.
2243 (getContentType): Implemented.
2244 (getContentEncoding): Implemented.
2245 (getExpiration): Implemented.
2246 (getDate): Implemented.
2247 (getLastModified): Implemented.
2248 (getHeaderFieldInt): Implemented.
2249 (getHeaderFieldDate): Implemented.
2251 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
2253 * java/net/URLConnection.java (toString): Implemented.
2254 (setContentHandlerFactory): Implemented.
2255 (setContentHandler): Wrote new private helper method.
2257 1999-04-01 Tom Tromey <tromey@cygnus.com>
2259 * Makefile.in: Rebuilt.
2260 * Makefile.am ($(java_source_files:.java=.class): Reverted change
2261 of 1999-03-31; we always want to build all the .class files.
2262 Depend on java_source_files, not libgcj.zip.
2263 (nat_headers): Define in terms of ordinary_java_source_files.
2265 1999-03-31 Tom Tromey <tromey@cygnus.com>
2267 * Makefile.in: Rebuilt.
2268 * Makefile.am (special_java_source_files): New macro.
2269 (java_source_files): Use it.
2270 (ordinary_java_source_files): New macro.
2271 (java_source_files): Use it.
2272 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2273 creating headers for those files with hand-maintained headers.
2275 * include/javaprims.h: Regenerated namespace declarations.
2276 * classes.pl (scan): Include [0-9] in regexp for matching class
2277 names; for java.util.zip.CRC32.
2279 * Makefile.in: Rebuilt.
2280 * Makefile.am (nat_headers): Redefined to generate all possible
2283 * java/util/zip/ZipException.java: In package java.util.zip, not
2286 1999-03-30 Tom Tromey <tromey@cygnus.com>
2288 * configure: Rebuilt.
2289 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2290 eh-common.h when not building in tree with gcc.
2292 * Makefile.in: Rebuilt.
2293 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2294 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2296 ($(java_source_files:.java=.class)): New target.
2298 * Makefile.in: Rebuilt.
2299 * Makefile.am (java_source_files): Added
2300 java/net/HttpURLConnection.java and
2301 gnu/gcj/www/protocol/http/Connection.java.
2303 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
2305 * gnu/gcj/www/protocol/http/Connection.java: New file.
2306 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2307 * java/net/HttpURLConnection.java: New file.
2308 * java/net/URLConnection.java (getHeaderField): Implemented default.
2309 (getHeaderFieldKey): Implemented default method.
2311 1999-03-30 Tom Tromey <tromey@cygnus.com>
2313 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2315 * java/util/zip/Deflater.java: Added copyright header.
2316 * java/util/zip/CRC32.java: Added copyright header.
2318 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2319 that it is automatically generated.
2320 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2322 * gnu/gcj/convert/BytesToUnicode.java,
2323 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2324 gnu/gcj/convert/Input_EUCJIS.java,
2325 gnu/gcj/convert/Input_UTF8.java,
2326 gnu/gcj/convert/JIS0208_to_Unicode.cc,
2327 gnu/gcj/convert/JIS0212_to_Unicode.cc,
2328 gnu/gcj/convert/Output_8859_1.java,
2329 gnu/gcj/convert/Output_JavaSrc.java,
2330 gnu/gcj/convert/Output_UTF8.java,
2331 gnu/gcj/convert/UnicodeToBytes.java,
2332 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2334 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2336 * Makefile.in, configure: Rebuilt.
2337 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2338 not if test subdir exists.
2339 (--enable-gcj-classes): Removed; gcj always used to generate
2341 (JAVA, JAVAC): Removed.
2342 (--enable-single-compilation, --enable-source-compilation):
2345 (NATIVE): New conditional.
2346 * Makefile.am (toolexecdir): Renamed from tooldir to allow
2347 `install-exec' to work.
2348 (toolexeclibdir): Likewise.
2349 (toollib_LIBRARIES): Likewise.
2350 (AM_MAKEFLAGS): Don't pass tooldir.
2352 (javao_files): Redefined.
2353 (java_source_files): New macro.
2354 (c_source_files): New macro.
2355 (c_files): Redefined in terms of c_source_files.
2356 (java_io_files, java_lang_files, java_net_files, java_text_files,
2357 java_util_files, gnu_files, java_files): Removed.
2358 (class_io_files, class_lang_files, class_net_files,
2359 class_text_files, class_util_files, class_gnu_files, class_files):
2361 (nat_source_files): New macro.
2362 (nat_files): Redefined in terms of nat_source_files.
2363 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2364 java_source_files. Removed no-such-file.c.
2366 (ETAGS_ARGS): Removed.
2367 (TAGS_DEPENDENCIES): Likewise.
2368 (libgcj.zip): Depend on java_source_files. Use $(here) and not
2370 (src_io_files, src_lang_files, src_text_files, src_util_files,
2371 src_gnu_files): Removed.
2372 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2373 (BUILT_SOURCES): Removed.
2374 (header-check): New target.
2376 (noinst_PROGRAMS): New macro.
2377 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2379 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2380 (gen-from-JIS): Build in top directory.
2381 (convert_source_files): New macro.
2382 (convert_SOURCES): New macro.
2383 (convert_LDFLAGS): Likewise.
2384 (convert_LINK): Likewise.
2385 (convert_LDADD): Likewise.
2386 (convert_DEPENDENCIES): Likewise.
2388 (gen-from-JIS): Removed.
2389 (gen_from_JIS_SOURCES): New macro.
2390 (gen_from_JIS_LDADD): Likewise.
2391 (gen_from_JIS_DEPENDENCIES): Likewise.
2393 * configure: Rebuilt.
2394 * configure.in (CANADIAN): Set to `yes', not `canadian'.
2395 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
2396 when defining conditional.
2398 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
2400 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
2401 The Unicode Consortium does not permit their re-distribution.
2402 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
2403 (JIS0208.h, JIS0212.h): Do not depend on removed files.
2405 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
2407 * natSystem.c (init_properties): Use malloc, realloc, free after all.
2409 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
2411 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
2412 from Unicode Consortium.
2413 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
2414 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
2415 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2416 New tables, generated using gen-from-JIS.
2417 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
2418 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
2419 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
2420 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
2422 * gnu/gcj/convert/Convert.java: New application.
2423 * Makefile.am, Makefile.in (convert): New program, using Convert.
2424 Build the various JIS conversion tables (in maintainer mode).
2426 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
2428 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2430 * java/net/URL.java (URL): Deal with null property value. Use "."
2431 as separator in building class name.
2432 * java/net/URLConnection.java: Implemented majority of stubbed methods.
2433 * java/net/URLStreamHandler.java (parseURL): Use "" in string
2434 manipulations instead of 'null'. Comment cleanup. Use 0 for the
2435 beginning of the substring rather than 'start'.
2437 1999-03-26 Tom Tromey <tromey@cygnus.com>
2439 * include/java-chartables.h: Rebuilt.
2440 * include/java-chardecomp.h: New file.
2441 * chartables.pl: Generate output files directly. Added support
2442 for generating decomposition header.
2443 (canonical_decomposition, full_decomposition): New globals.
2444 (DECOMPOSITION): New constant.
2445 (process_char): Call add_decomposition.
2446 (add_decomposition): New sub.
2447 (write_decompositions): New sub.
2449 1999-03-25 Tom Tromey <tromey@cygnus.com>
2451 * java/text/CollationElementIterator.java: New file.
2453 * mauve-libjava: Omit StringTest.
2455 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
2457 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2458 without a '/' when parsing protocol. Handle ref outside of parseURL.
2459 (hashCode): Implemented.
2460 (set): Don't expand -1 to default port.
2461 (getDefaultPort): Removed.
2463 * java/net/URLStreamHandler.java (parseURL): Implemented.
2464 (toExternalForm): Implemented.
2466 1999-03-23 Tom Tromey <tromey@cygnus.com>
2468 * java/text/BreakIterator.java (getSentenceInstance):
2470 * gnu/gcj/text/SentenceBreakIterator.java: New file.
2472 * Makefile.in: Rebuilt.
2473 * Makefile.am (nat_headers): Added IllegalAccessException.
2474 * java/lang/natClass.cc (newInstance): Throw
2475 IllegalAccessException, not IllegalAccessError.
2476 Include IllegalAccessException.h.
2478 1999-03-22 Tom Tromey <tromey@cygnus.com>
2480 * gnu/gcj/text/LineBreakIterator.java: New file.
2481 * java/text/BreakIterator.java (getLineInstance): Implemented.
2483 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2484 copy constructor private.
2485 (previous, next): Removed erroneous comment about line
2487 (previous): Correctly recognize break between non-letter on the
2488 left and letter on the right. Handle apostrophes correctly.
2490 * java/text/BreakIterator.java (getWordInstance): Implemented.
2491 * gnu/gcj/text/WordBreakIterator.java: New file.
2492 * gnu/gcj/text/CharacterBreakIterator.java: Extend
2494 * gnu/gcj/text/BaseBreakIterator.java: New file.
2496 1999-03-19 Tom Tromey <tromey@cygnus.com>
2498 * java/text/BreakIterator.java: New file (partially stubbed out).
2499 * gnu/gcj/text/CharacterBreakIterator.java: New file.
2501 * include/config.h.in: Rebuilt.
2502 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2503 (HAVE_TIMEZONE): Likewise.
2504 * configure: Rebuilt.
2505 * configure.in: Added timezone checks.
2506 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2509 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
2511 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
2512 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
2513 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
2514 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
2515 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
2516 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
2517 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
2518 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
2520 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
2521 (BSD_COMP): Kludge needed for Solaris2.
2523 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
2525 * java/net/URL.java (URL(java.net.URL, string): Moved code to
2526 URL(java.net.URL, string, URLStreamHandler) and call it with a
2527 null handler. In latter constructor, added SecurityManager check.
2528 (set): Expect null handler on bad protocol rather than an exception.
2529 (setURLStreamHandler): Simplified exception handling; return null
2530 on invalid protocol.
2532 1999-03-18 Tom Tromey <tromey@cygnus.com>
2534 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2536 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2538 Include PrintStream.h, InputStream.h.
2539 * java/lang/System.java (ForwardingInputStream,
2540 ForwardingOutputStream): Removed.
2541 (setErr, setIn, setOut): Now native.
2543 Reverted patch from 1999-02-12 to work around problem in
2545 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2546 (_Jv_eh_free): Use free.
2548 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2549 for path name. Minor formatting fixes.
2551 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2553 * prims.cc (fail_on_finalization): New function.
2554 (_Jv_GCWatch): Likewise.
2556 * prims.cc (JvRunMain): Initialize `nullp'.
2557 (nullp): New global.
2558 (catch_segv): Throw nullp.
2560 * Makefile.in: Rebuilt.
2561 * Makefile.am (ZIP): In "null target" case, zip is found in the
2564 * prims.cc (_Jv_PrimClass): Initialize all elements of class
2568 * java/lang/StringBuffer.java (StringBuffer): Don't use
2569 ensureCapacity to set initial capacity.
2570 (capacity): Subtract `length' from return result.
2572 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
2574 * java/io/natFileDescriptorPosix.cc (open): Throw
2575 FileNotFoundException, but with filename and errno in msg.
2577 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
2579 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2580 functionality folded into java/net/URL.java per spec.
2582 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2583 than EEXIST for throwing FileNotFoundException.
2585 * java/net/URL.java: Folded in default URLStreamHandlerFactory
2586 algorithm per JDK 1.2 doc. Added SecurityManager checks.
2588 * java/net/URLStreamHandler.java (parseURL): Added stub.
2590 1999-03-15 Andrew Haley <aph@cygnus.com>
2592 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2595 1999-03-15 Andrew Haley <aph@cygnus.com>
2597 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2600 1999-03-12 Tom Tromey <tromey@cygnus.com>
2602 * prims.cc (catch_segv): New function.
2603 Include <signal.h> if HANDLE_SEGV defined. Include
2604 NullPointerException.h.
2605 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2608 * java/text/SimpleDateFormat.java (equals): Ensure that object is
2609 a SimpleDateFormat, not just a DateFormat.
2610 (defaultCenturyStart, formatData, pattern): Now private.
2611 (append): Now `final'. Use `NumberFormat.format'.
2613 (SimpleDateFormat): Turn off groupin in NumberFormat object.
2615 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2618 * java/text/MessageFormat.java (format): Use default MessageFormat
2620 (parse, parseObject): Wrote.
2622 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2625 1999-03-12 Andrew Haley <aph@cygnus.com>
2627 * java/lang/String.java (indexOf): Replace with native method for
2629 * java/lang/natString.cc (IndexOf): As above.
2631 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2632 Argument check corrected.
2633 (init(jbyteArray,jint,jint,jstring)): Likewise.
2635 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2636 1.2 compliant method.
2638 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2640 * java/lang/Float.java (byteValue, shortValue): Likewise.
2642 1999-03-11 Tom Tromey <tromey@cygnus.com>
2644 * java/text/DecimalFormat.java (parse): Wrote.
2646 * java/text/ChoiceFormat.java (parse): Set error index on
2647 ParsePosition object.
2649 * java/lang/Integer.java (parseInt): Throw exception on overflow
2650 when intermediate result is most negative number. Changed
2651 overflow detection as well.
2652 * java/lang/Long.java (parseLong): Likewise.
2654 * configure, Makefile.in: Rebuilt.
2655 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
2656 CANADIAN when building in source tree that doesn't include gcc.
2657 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2660 * java/text/ChoiceFormat.java (nextDouble): Correct some
2661 off-by-one errors when masking or adding.
2663 * java/text/DecimalFormat.java (format): Fill in FieldPosition
2664 parameter, if given. Use `%', not IEEEremainder.
2665 (scanFix): Throw error if multiplier already set.
2666 (computePattern): Wrote.
2668 1999-03-11 Andrew Haley <aph@cygnus.com>
2670 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2672 (nextDouble): Corrected masking logic. Handle interaction between
2673 `next' and negative numbers.
2675 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
2677 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2678 * java/net/URL.java: Added general comments.
2680 1999-03-10 Tom Tromey <tromey@cygnus.com>
2682 * java/text/ChoiceFormat.java (parse): Wrote.
2684 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2686 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2687 Create ChoiceFormat objects.
2688 (format): Special-case ChoiceFormat.
2689 (scanFormatElement): Include { and } in generated style string.
2691 1999-03-09 Tom Tromey <tromey@cygnus.com>
2693 * java/text/ChoiceFormat.java: New file.
2695 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
2697 * java/net/BindException.java: Created.
2698 * java/net/ConnectException.java: Created.
2699 * java/net/ContentHandler.java: Created.
2700 * java/net/ContentHandlerFactory.java: Created.
2701 * java/net/FileNameMap.java: Created.
2702 * java/net/MalformedURLException.java: Created.
2703 * java/net/NoRouteToHostException.java: Created.
2704 * java/net/ProtocolException.java: Created.
2705 * java/net/ServerSocket.java (@author): Fixed typo.
2706 * java/net/Socket.java (@author): Fixed typo.
2707 * java/net/SocketImpl.java (@author): Fixed typo.
2708 * java/net/SocketImplFactory.java (@author): Fixed typo.
2709 * java/net/URL.java: Created - nearly complete.
2710 * java/net/URLConnection.java: Created - near-empty stub.
2711 * java/net/URLStreamHandler.java: Created - incomplete stub.
2712 * java/net/URLStreamHandlerFactory.java: Created.
2713 * java/net/UnknownServiceException.java: Created.
2715 1999-03-09 Tom Tromey <tromey@cygnus.com>
2717 * java/lang/System.java (ForwardingInputStream): New class.
2718 (ForwardingOutputStream): Likewise.
2719 (in, out, err): Now `final' forwarding streams.
2720 (setIn, setOut, setErr): Use appropriate method on forwarding
2723 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2726 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
2728 * java/util/zip/CRC32.java: New class (just an incomplete stub).
2729 * java/util/zip/Checksum.java: New interface (complete).
2730 * java/util/zip/Deflater.java: New class (near-empty stub).
2731 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2732 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
2733 * java/util/zip/ZipEntry.java: New class (complete).
2734 * java/util/zip/ZipException.java: New class (complete).
2735 * java/util/zip/ZipFile.java: New class (incomplete stub).
2736 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
2738 1999-03-09 Tom Tromey <tromey@cygnus.com>
2740 * java/text/MessageFormat.java (MessageFormatElement): Removed
2741 `public' specifiers.
2743 * java/text/DecimalFormat.java (scanFormat): Increment index
2744 before processing exponential format. Fixed a couple typos in
2746 (format): Correct normalization of exponent.
2748 1999-03-08 Tom Tromey <tromey@cygnus.com>
2750 * java/text/SimpleDateFormat.java (parse): Throw
2751 IllegalArgumentException, not ParseException.
2753 1999-03-05 Tom Tromey <tromey@cygnus.com>
2755 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2756 when constructing DateFormatSymbols. Initialize numberFormat
2757 field of superclass.
2759 * java/text/DateFormat.java (equals): Rewrote.
2760 (getAvailableLocales): New method.
2761 (getDateInstance): New methods.
2762 (getDateTimeInstance): Likewise.
2763 (getTimeInstance): Likewise.
2764 (getInstance): New method.
2765 (computeInstance): New method.
2767 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2769 (safeGetResource): New method.
2770 (DateFormatSymbols): Use Locale paramater.
2771 (equals): Now protected.
2772 Made instance variables private.
2774 1999-03-04 Tom Tromey <tromey@cygnus.com>
2776 * java/text/DecimalFormat.java: New file.
2778 * java/text/NumberFormat.java (groupingUsed,
2779 maximumFractionDigits, maximumIntegerDigits,
2780 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2782 (setDecimalSeparatorAlwaysShown, setMultiplier,
2783 setPositivePrefix): Removed.
2784 (setMinimumFractionDigits, setMaximumFractionDigits):
2786 (format): Now final.
2787 Added many new methods.
2789 * Makefile.in: Rebuilt.
2790 * Makefile.am (gnu_files): New macro.
2791 (java_files): Added gnu_files.
2792 (class_gnu_files): New macro.
2793 (class_files): Use it.
2794 (src_gnu_files): New macro.
2795 (gnu.o): New target.
2796 (javao_files): Added gnu.o.
2798 * gnu/gcj/text/LocaleData_en_US.java: New file.
2799 * gnu/gcj/text/LocaleData_en.java: New file.
2800 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2801 (DecimalFormatSymbols): Use ResourceBundle to find resources.
2802 (safeGetString): New method.
2803 (safeGetChar): Likewise.
2805 1999-03-03 Tom Tromey <tromey@cygnus.com>
2807 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2810 * java/text/FieldPosition.java (equals): Don't check for null
2811 object; instanceof does this.
2813 * java/util/Locale.java (clone): New method.
2816 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2818 * doc/cni.sgml: New file.
2820 1999-03-03 Tom Tromey <tromey@cygnus.com>
2822 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2824 * java/text/DecimalFormatSymbols.java: New file.
2826 1999-03-02 Tom Tromey <tromey@cygnus.com>
2828 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2830 * configure: Rebuilt.
2831 * configure.in: Check for sys/filio.h.
2833 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2835 (load): Always throw UnsatisfiedLinkError.
2836 (loadLibrary): Likewise.
2838 1999-03-02 Anthony Green <green@cygnus.com>
2840 * LIBGCJ_LICENSE: New file.
2841 * LIBJAVA_LICENSE: Removed.
2842 * Many files: libjava now libgcj.
2844 1999-03-02 Tom Tromey <tromey@cygnus.com>
2846 * include/java-chartables.h: Rebuilt.
2847 * chartables.pl (print_block): Make table `const'.
2848 (print_numerics): Likewise.
2849 (print_single_map): Likewise.
2850 (print_all_block): Likewise.
2851 (print_case_table): Likewise.
2852 (print_fast_tables): Likewise.
2853 * java/lang/natCharacter.cc (table_search): `table' argument now
2856 1999-03-01 Tom Tromey <tromey@cygnus.com>
2858 * java/util/Date.java (before, after): Inverted logic.
2860 * java/util/Date.java (parse): Handle case where first character
2861 in string is open parenthesis.
2862 (skipParens): Rewrote.
2864 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2865 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2867 * java/util/Date.java (parse): Correctly compute beginning of
2870 * java/util/Hashtable.java (get): Throw NullPointerException if
2872 (containsKey): Likewise.
2874 * java/util/Properties.java (list): Truncate value to 37
2875 characters and add `...'.
2877 * java/lang/Byte.java (parseByte): Pass `radix' to
2880 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2882 Include System.h, PrintStream.h.
2884 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2887 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2889 * configure: Rebuilt.
2890 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2893 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2895 * java/lang/SecurityManager.java: Import java.net.*.
2896 (checkMulticast): New methods.
2898 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2900 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2901 (nat_files): Add java/lang/reflect/natArray.o.
2902 (nat_headers): Add Field.h and NoSuchFieldException.h.
2904 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2905 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2906 (_Jv_FromReflectedField): Fix buglet.
2907 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2908 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2909 * prims.cc (_Jv_Abort): Include message in print-out.
2911 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2912 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2913 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2915 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2916 * include/config.h.in (HAVE_PWD_H): New feature macro.
2917 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2918 user.name, user.home, user.dir.
2920 * java/lang/reflect/Array.java: New class.
2921 * java/lang/reflect/natArray.cc: New native methods.
2922 * include/javaprims.h: Declare java::lang::reflect::Array.
2924 * java/lang/Class.h (getField): New private method. Add friends.
2925 * java/lang/Class.java (getField): Add private overload.
2926 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2927 getDeclaredMethods): Add working implementations.
2928 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2929 Finish implementation, except for access control.
2931 * java/lang/reflect/Modifier.java (toString): New overload.
2932 * include/java-method.h: New file.
2933 * java/lang/reflect/Method.java (index): Replaced by offset field.
2934 Remove various private fields - get them from _Jv_Field instead.
2935 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2936 New method implementations.
2938 * java/text/NumberFormat.java: Add a bunch of methods.
2940 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2942 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2944 1999-02-26 Tom Tromey <tromey@cygnus.com>
2946 * include/config.h.in: Rebuilt.
2947 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2948 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2949 HAVE_GETHOSTBYADDR_R): New defines.
2950 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2951 gethostbyaddr_r if available.
2953 * configure: Rebuilt.
2954 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2956 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2960 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2961 * prims.cc (_Jv_AllocBytesChecked): New function.
2963 * Makefile.in: Rebuilt.
2964 * Makefile.am (SUBDIRS): Removed `test'.
2965 * configure: Rebuilt.
2966 * configure.in: Don't build test/Makefile.
2967 * test/*: Removed all files.
2969 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2971 * java/lang/reflect/Constructor.java: Make class final to match spec.
2972 * java/lang/reflect/Method.java: Ditto.
2974 1999-02-25 Tom Tromey <tromey@cygnus.com>
2976 * java/net/natInetAddress.cc: Include <sys/types.h> before
2978 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2981 * java/net/natInetAddress.cc: Declare gethostname if required.
2982 * include/config.h.in: Rebuilt.
2983 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2984 * configure: Rebuilt.
2985 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2986 declared in unistd.h.
2988 1999-02-24 Tom Tromey <tromey@cygnus.com>
2990 * Makefile.in: Rebuilt.
2991 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2992 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2993 from private to "none".
2995 * include/javaprims.h: Regenerated class declarations with new
2997 * classes.pl (scan): Only generate decls for java.lang, java.io,
3000 1999-02-24 Tom Tromey <tromey@cygnus.com>
3002 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
3003 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
3005 1999-02-23 Tom Tromey <tromey@cygnus.com>
3007 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
3008 not already defined.
3009 * java/io/natFile.cc (_REENTRANT): Only define if not already
3011 * include/config.h.in: Rebuilt.
3012 * acconfig.h (HAVE_BOEHM_GC): New define.
3013 * configure: Rebuilt.
3014 * configure.in: Define HAVE_BOEHM_GC if using it.
3015 * posix-threads.cc: Include boehm-config.h and gc.h if
3017 * include/posix-threads.h: Added explanatory note about Boehm GC.
3019 * java/io/BufferedReader.java (readLine): Only return null when
3020 EOF seen before any characters read. (In particular, an empty
3021 line should not return null.)
3023 * java/io/BufferedInputStream.java (read): Only refill once per
3026 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
3027 java.lang.Character.classify12, java.lang.String.hash,
3028 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
3029 java.text.SimpleDateFormat.getAndSet2DigitYearStart
3031 * java/text/StringCharacterIterator.java (setIndex): No error if
3033 (next): Check for `pos == end', not `end - 1'.
3034 (StringCharacterIterator): Allow `pos == end'. Explicitly check
3035 for null text in each constructor.
3036 (clone): Fixed order of arguments to constructor.
3038 1999-02-22 Tom Tromey <tromey@cygnus.com>
3040 * include/config.h.in: Rebuilt.
3041 * acconfig.h (HAVE_INET6): New define.
3042 (HAVE_SOCKLEN_T): Likewise.
3043 * java/net/PlainSocketImpl.java: Added copyright header.
3044 * java/net/natPlainSocketImpl.cc: Added copyright header.
3045 (union SockAddr): Use HAVE_INET6, not AF_INET6.
3047 (connect): Likewise.
3049 (socklen_t): New typedef.
3050 (accept): Use socklen_t.
3051 * java/net/natInetAddress.cc: Added copyright header.
3052 (HAVE_GETHOSTNAME): Don't define.
3053 (HAVE_INET_ADDR): Likewise.
3054 (lookup): Fixed typo.
3055 (aton): Don't use `address' as name of local variable.
3056 (lookup): Use HAVE_INET6, not AF_INET6.
3058 * configure: Rebuilt.
3059 * configure.in: Look for functions inet_aton, inet_addr,
3060 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
3061 Check for socklen_t typedef.
3063 * exception.cc (__throw): Declare as __noreturn__.
3065 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
3067 * Makefile.am, Makefile.in: Also build java/net.
3068 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
3070 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
3071 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
3073 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
3074 * include/cni.h (JvMalloc, JvFree): New inline functions.
3075 (JvThrow): Add __noreturn__ attribute.
3076 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
3077 (_Jv_Throw): Add __noreturn__ attribute.
3079 * java/net/PlainSocketImpl.java: Init fnum to -1.
3080 * java/net/ServerSocket.java: Add missing throws clauses.
3081 * java/lang/Socket.java: For the constructor taking a SocketImpl,
3082 don't call create on the latter. Instead, other constructors
3083 have to explicitly call SocketImpl.create.
3084 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
3085 from size_t to int, to match ::accept prototype.
3086 * java/net/natInetAddress.cc: Use JvFree rather than free.
3089 1999-02-22 Tom Tromey <tromey@cygnus.com>
3091 * include/javaprims.h: Added new classes.
3092 * java/text/StringCharacterIterator.java: New file.
3093 * java/text/CharacterIterator.java: New file.
3095 * java/text/ParseException.java (errorOffset): Now private.
3097 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
3099 * java/net: New package.
3100 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3101 Socket.java,SocketException.java,SocketImpl.java,
3102 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3103 natPlainSocketImpl.cc}: New classes.
3105 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
3106 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3107 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
3108 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3110 * classes.pl: Translate package into "namespace", not "class".
3111 * include/javaprims.h: Update class list, using "namespace".
3113 1999-02-21 Tom Tromey <tromey@cygnus.com>
3115 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3116 Define when appropriate.
3118 1999-02-20 Tom Tromey <tromey@cygnus.com>
3120 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3121 as a single byte and \u07ff as two bytes.
3122 (_Jv_GetStringUTFLength): Likewise.
3123 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3124 with 0x0f, not 0x1f.
3126 1999-02-19 Tom Tromey <tromey@cygnus.com>
3128 * java/io/DataOutputStream.java (writeUTF): When encoding
3129 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3130 * java/io/DataInputStream.java (readUTF): Mask second byte of
3131 3-byte character with 0x3f, not 0x1f.
3133 * java/io/DataInputStream.java (readLong): Cast result of
3134 readUnsignedByte to long before using.
3136 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3139 * mauve-libjava: Re-enabled java.io.DataInputOutput.
3140 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3141 argument to avoid warning.
3142 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3143 argument to avoid warning.
3145 1999-02-18 Tom Tromey <tromey@cygnus.com>
3147 * mauve-libjava: Omit java.io.DataInputOutput and
3148 java.io.Utf8Encoding.
3150 1999-02-17 Tom Tromey <tromey@cygnus.com>
3152 * Makefile.in: Rebuilt.
3153 * Makefile.am (nat_headers): Added InterruptedIOException.h.
3154 * java/io/natFileDescriptorPosix.cc: Include
3155 InterruptedIOException.h, Thread.h.
3156 (write): Throw InterruptedIOException when required.
3158 * posix-threads.cc: Include <signal.h>.
3159 (_Jv_ThreadInterrupt): New function.
3161 (handle_intr): New function.
3162 (_Jv_InitThreads): Register handle_intr via sigaction.
3163 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3164 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3165 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3166 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3168 1999-02-19 Andrew Haley <aph@cygnus.com>
3170 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3172 (ThreadGroup (int)): Set the maximum priority of the initial
3175 1999-02-18 Andrew Haley <aph@cygnus.com>
3177 * java/lang/natClass.cc (forName): Check for the case where a
3178 classname is the name of an array and call FindClassFromSignature
3181 1999-02-18 Andrew Haley <aph@cygnus.com>
3183 * java/lang/StringBuffer (insert (int, String)): Move up any
3184 characters above the insert position and increase the length of
3185 the string buffer by the length of the argument.
3186 (insert (int, char[])): Likewise.
3187 (insert (int, char)): Likewise.
3188 (StringBuffer (String)): The initial capacity of the string buffer
3189 is 16 plus the length of the argument.
3190 (getChars): Add a JDK 1.2 FIXME.
3192 1999-02-18 Andrew Haley <aph@cygnus.com>
3194 * java/lang/Short.java (parseShort(String, int)): Pass radix to
3197 1999-02-18 Andrew Haley <aph@cygnus.com>
3199 * java/lang/Double.java (equals): Use a bit-by-bit comparision
3200 instead of floating-point equality. This is necessary for
3201 correct floating-point Hashtables.
3202 * java/lang/Float.java (equals): Ditto.
3204 1999-02-16 Tom Tromey <tromey@cygnus.com>
3206 * java/util/Properties.java (list): Truncate value to 37
3207 characters and add "...".
3209 1999-02-16 Tom Tromey <tromey@cygnus.com>
3211 * java/util/Vector.java (Vector): Throw IllegalArgumentException
3212 if initCap is negative.
3213 (contains): Implement JDK1.2-style handling of null argument.
3214 (removeElement): Likewise.
3215 (indexOf): Likewise. Also, correctly handle case where idx is
3217 (lastIndexOf): Likewise.
3219 1999-02-16 Tom Tromey <tromey@cygnus.com>
3221 * java/lang/natString.cc (init): Increment source pointer in
3224 1999-02-16 Tom Tromey <tromey@cygnus.com>
3226 * exception.cc: Include NullPointerException.h.
3227 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3229 1999-02-16 Tom Tromey <tromey@cygnus.com>
3231 * Makefile.in: Rebuilt.
3232 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3234 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
3236 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3237 we're compiling canadian.
3238 * configure: Regenerated.
3240 1999-02-12 Andrew Haley <aph@cygnus.com>
3242 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
3243 deleted from libgcj.
3245 1999-02-12 Tom Tromey <tromey@cygnus.com>
3247 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3248 (_Jv_eh_free): Don't call free.
3249 Don't declare malloc or free.
3251 1999-02-11 Tom Tromey <tromey@cygnus.com>
3253 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
3255 1999-02-11 Andrew Haley <aph@cygnus.com>
3257 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3258 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
3259 needed by java.lang.*.
3260 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3261 wf_fmod.o: Removed from libjava.a.
3263 1999-02-11 Tom Tromey <tromey@cygnus.com>
3265 * include/javaprims.h: Reverted previous change; with it
3266 exception.cc can't compile.
3268 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3270 * include/config.h.in: Rebuilt.
3271 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3273 * configure: Rebuilt.
3274 * configure.in: Check for sched_yield. Look in thread library for
3275 all thread functions.
3277 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3278 no recursive mutexes.
3279 (_Jv_MutexDestroy): Define when required.
3280 (_Jv_MutexLock): Likewise.
3281 (_Jv_MutexUnlock): Likewise.
3282 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3283 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3284 (_Jv_Mutex_t): New structure.
3285 (_Jv_MutexDestroy): Only define if recursive mutexes available.
3286 (_Jv_MutexLock): Likewise.
3287 (_Jv_MutexUnlock): Likewise.
3289 1999-02-10 Tom Tromey <tromey@cygnus.com>
3291 * aclocal.m4, configure, Makefile.in: Rebuilt.
3292 * acinclude.m4: Renamed libjava to libgcj. Updated to use
3294 * configure.in: Changed to track library changes.
3295 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3296 (AM_CXXFLAGS): Likewise.
3297 (data_DATA): Likewise.
3298 (AM_CFLAGS): Likewise.
3299 (JC1FLAGS): Likewise.
3300 (libgcj_a_SOURCES): Likewise.
3301 (EXTRA_libgcj_a_SOURCES): Likewise.
3302 (libgcj_a_DEPENDENCIES): Likewise.
3303 (libgcj_a_LIBADD): Likewise.
3304 (libgcj.zip): Likewise.
3305 (CLEANFILES): Likewise.
3306 ($(nat_headers)): Likewise.
3307 (java/lang/FirstThread.h): Likewise.
3308 (java/lang/ThreadGroup.h): Likewise.
3309 (java/lang/String.h): Likewise.
3310 (java/lang/reflect/Field.h): Likewise.
3311 (BUILT_SOURCES): Likewise.
3312 (maintainer-check): Likewise.
3313 (CONFIG_STATUS_DEPENDENCIES): Likewise.
3314 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
3316 * java/util/natGregorianCalendar.cc (computeFields): Only use
3317 gmtime_r and localtime_r when configured for posix threads.
3319 * java/io/natFile.cc (get_entry): Only use readdir_r when
3320 configured for posix threads.
3322 * java/util/natGregorianCalendar.cc: Update copyright notice.
3323 * java/util/TimeZone.java: Ditto.
3324 * java/util/SimpleTimeZone.java: Ditto.
3326 1999-02-08 Tom Tromey <tromey@cygnus.com>
3328 * java/io/PrintStream.java (line_separator): New constant.
3329 (print): Use line_separator, not `file.separator' property.
3330 (println): Use line_separator.
3332 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3333 when trying to instantiate Class.
3335 * java/lang/ThreadGroup.java (ThreadGroup): Throw
3336 NullPointerException if argument is null.
3338 * java/lang/Thread.java (setName): Throw NullPointerException, not
3339 IllegalArgumentException.
3342 1999-02-08 Andrew Haley <aph@cygnus.com>
3344 * java/lang/natClass.cc (newInstance): Don't allow anyone to
3345 create new Classes with Class.newInstance().
3347 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3348 semiciolon to end of an array Class's signature if the elements of
3349 the array aren't themselves arrays.
3351 * java/lang/natSystem.cc (arraycopy): The size of an element of an
3352 array of objects is always sizeof(jobject), not the size of the
3353 object to which the reference points.
3355 1999-02-08 Tom Tromey <tromey@cygnus.com>
3357 * java/util/BitSet.java (and): Throw NullPointerException when
3362 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3363 if argument is negative.
3364 (clear): Correctly compute `offset'. Throw
3365 IndexOutOfBoundsException when required.
3367 (get): Likewise. Also, return correct value.
3368 (ensure): Changed meaning of argument.
3369 (toString): Wrap contents in `{}'; put spaces after commas.
3370 (hashCode): Don't try to examine elements off the end of array.
3371 (or): Correctly include bits past the end of this bit set.
3374 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
3376 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
3377 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3379 1999-02-04 Andrew Haley <aph@cygnus.com>
3381 * java/lang/natClass.cc (Class::forName): Remove code which mapped
3382 '/' in signatures to '.'
3383 (Class::getName): Likewise,
3384 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3386 * java/lang/natFirstThread.cc (run): Change '/' in main's
3389 1999-02-03 Andrew Haley <aph@cygnus.com>
3391 * configure.host: -ffloat-store added when compiling libjava on
3392 x86. fdlibm apparently relies on this.
3394 * java/lang/ThreadGroup.java (add): throw an exception if the
3395 ThreadGroup has been destroyed.
3397 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3400 1999-01-27 Tom Tromey <tromey@cygnus.com>
3402 * java/lang/StringBuffer.java (StringBuffer): Handle null
3405 1999-01-21 Tom Tromey <tromey@cygnus.com>
3407 * java/lang/natFirstThread.cc (run): Don't require main to be
3410 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
3412 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3414 1999-01-20 Tom Tromey <tromey@cygnus.com>
3416 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3420 (unintern): Likewise.
3421 (_Jv_NewStringUtf8Const): Likewise.
3423 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3424 Character.isLetter, to see if character is self-quoting. Also,
3425 correctly handle quoted characters.
3426 (parse): Fixed typo. Also now throws ParseException.
3428 1999-01-15 Tom Tromey <tromey@cygnus.com>
3430 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3432 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3433 _Jv_SyncInfo has `init' member.
3435 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3438 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3439 IllegalMonitorStateException if unlock fails.
3441 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3443 (_Jv_NewObjectArray): Likewise.
3445 1999-01-14 Tom Tromey <tromey@cygnus.com>
3447 * java/lang/Character.java (isJavaIdentifierPart): Allow
3448 LETTER_NUMBER characters.
3450 * chartables.pl (process_char): Fixed error messages.
3452 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3453 * chartables.pl: Updated comments. Changed detection of non-digit
3454 numeric values (no longer miss \u00b2 and friends).
3456 * java/lang/Character.java (isJavaIdentifierPart): Recognize
3457 currency symbols and connector punctuation.
3458 (isIdentifierIgnorable): Make 7f-9f ignorable.
3460 * prims.cc (_Jv_NewObjectArray): Check for overflow.
3461 (_Jv_NewPrimArray): Likewise.
3462 (SIZE_T_MAX): New define.
3464 * java/lang/ClassLoader.java (system): Now private and final.
3466 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3469 * configure: Rebuilt.
3470 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3472 * exception.cc: Include gansidecl.h.
3474 1999-01-14 Andrew Haley <aph@cygnus.com>
3476 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3477 corrected: they didn't treat -0.0 and NaNs correctly.
3479 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
3481 * nogc.cc: Use calloc to zero out memory.
3483 1999-01-11 Tom Tromey <tromey@cygnus.com>
3485 * java/lang/natClass.cc (isInstance): Return false if this class
3486 is primitive, not if class of `obj' is primitive.
3487 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3489 * java/io/SequenceInputStream.java (close): Handle case where `in'
3492 * java/text/DateFormat.java (format): New method.
3494 * mauve-libjava: Omit java.text.DateFormat.
3496 1999-01-08 Tom Tromey <tromey@cygnus.com>
3498 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3500 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3502 (_Jv_CondNotifyAll): Likewise.
3504 * configure: Rebuilt.
3505 * configure.in: Change --enable-source-compilation logic to work
3508 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
3510 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
3511 and RUNTESTFLAGS from AM_MAKEFLAGS.
3512 * configure.in: AM_RUNTESTFLAGS added.
3513 * configure.host: AM_RUNTESTFLAGS added.
3514 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3515 * configure: rebuilt.
3516 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3518 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3519 argv[] made conditional because embedded targets may not have
3521 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3522 explanatory comments added in call to super.
3524 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3525 exception thrown in the test harness itself added.
3526 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3528 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
3530 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
3532 1999-01-06 Tom Tromey <tromey@cygnus.com>
3534 * java/io/natFile.cc (get_entry): New function.
3535 (performList): Use get_entry.
3536 * include/config.h.in: Rebuilt.
3537 * acconfig.h (HAVE_READDIR_R): New define.
3538 * configure: Rebuilt.
3539 * configure.in: Look for readdir_r.
3541 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3543 * java/util/natDate.cc: Added copyright header.
3545 1999-01-05 Tom Tromey <tromey@cygnus.com>
3547 * include/config.h.in: Rebuilt.
3548 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3549 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3550 * configure: Rebuilt.
3551 * configure.in: Check for access, stat, mkdir, rename, rmdir,
3552 unlink, and realpath.
3553 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3554 (stat): Conditionalize on HAVE_STAT.
3556 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3557 (performMkdir): Conditionalize on HAVE_MKDIR.
3558 (performRenameTo): Conditionalize on HAVE_RENAME.
3559 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3561 * include/config.h.in: Rebuilt.
3562 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3563 * configure: Rebuilt.
3564 * configure.in: Check for gmtime_r and localtime_r. For cross
3565 builds, assume they exist.
3567 * mauve-libjava: Include java.text.DateFormatSymbols again.
3568 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3569 from setAmPmStrings.
3571 * mauve-libjava: Omit java.text.DateFormatSymbols.
3573 1999-01-04 Tom Tromey <tromey@cygnus.com>
3575 * java/io/PushbackReader.java: `off' already includes `numBytes'.
3577 * java/io/LineNumberReader.java (read): Decrement `count' in
3580 * java/io/BufferedWriter.java (write): Correctly determine when
3581 incoming data would overrun buffer. Flush buffer if write causes
3584 * java/io/BufferedOutputStream.java (write): Increment `count'
3585 after copying data into buffer.
3587 * java/io/FilterOutputStream.java (close): Call flush first.
3589 * java/io/PipedReader.java (read): If read causes `out' to catch
3590 up with `in', then set `in' to -1.
3592 * java/io/LineNumberInputStream.java (read): If no bytes read,
3593 return -1. If no bytes requested, return 0.
3595 * java/lang/StringBuffer.java (insert): If `str' is null, use
3598 1998-12-30 Anthony Green <green@cygnus.com>
3601 * LIBJAVA_LICENSE, COPYING.LIB: Created.
3603 1998-12-23 Tom Tromey <tromey@cygnus.com>
3605 * java/io/PushbackInputStream.java (read): `off' already includes
3608 1998-12-17 Tom Tromey <tromey@cygnus.com>
3610 * Makefile.in: Rebuilt.
3611 * Makefile.am (GCJ_canadian): Include target_alias.
3613 * java/lang/natFirstThread.cc (run): Require main's class to be
3616 1998-12-16 Tom Tromey <tromey@cygnus.com>
3618 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3620 * java/util/ResourceBundle.java (getBundle): Throw
3621 NullPointerException if locale argument is null.
3623 * java/lang/natClass.cc (forName): Throw NullPointerException if
3625 Include NullPointerException.h.
3627 1998-12-14 Tom Tromey <tromey@cygnus.com>
3629 * java/lang/Character.java (Character): Implement Comparable.
3630 (compareTo): New methods.
3632 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
3633 correct country and language codes.
3634 (UK, US): New constants.
3635 (setDefault): Language codes are lower-case.
3637 * java/lang/natClass.cc (getDeclaredConstructor): New method.
3638 (getDeclaredConstructors): Likewise.
3639 (getDeclaredField): Likewise.
3640 (getDeclaredFields): Likewise.
3641 (getDeclaredMethod): Likewise.
3642 (getDeclaredMethods): Likewise.
3643 (getField): Likewise.
3644 (getFields): Likewise.
3645 (getMethod): Likewise.
3646 (getMethods): Likewise.
3647 * java/lang/Class.java: Declare new methods.
3648 * java/lang/Class.h: Declare new methods.
3650 * java/lang/natString.cc: Removed `#pragma implementation'.
3651 * include/cni.h (_Jv_GetStringChars): New function.
3652 * Makefile.in: Rebuilt.
3653 * Makefile.am (java/lang/String.h): Don't generate definition for
3656 * java/lang/natString.cc: Added `#pragma implementation'.
3658 * Makefile.in: Rebuilt.
3659 * Makefile.am (libjava.zip): Put build directory first in class
3660 path to avoid bug in compiler.
3662 1998-12-14 Anthony Green <green@cygnus.com>
3664 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3666 * include/javaprims.h: Add EventObject, ListResourceBundle and
3669 1998-12-13 Anthony Green <green@cygnus.com>
3671 * mauve-libjava: Run the ResourceBundle tests.
3673 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3676 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
3678 * configure.in, configure: Make --enable-gcj-classes and
3679 --enable-source-compilation the default. (Nervously...) Yeah!
3680 Based on a patch from Tom Tromey.
3682 1998-12-13 Tom Tromey <tromey@cygnus.com>
3684 * java/util/EventObject.java: New file.
3685 * java/util/EventListener.java: New file.
3687 * include/javaprims.h: Updated class declarations.
3688 * Makefile.in: Rebuilt.
3689 * Makefile.am (nat_headers): Added Constructor.h.
3690 (java/lang/String.h): Don't inline String::length().
3691 * java/lang/Class.h (getConstructor, getConstructors): Declare.
3692 * java/lang/Class.java (initializeClass, hackRunInitializers,
3693 hackTrampoline): No need to mark `final'.
3694 (getConstructor, getConstructors): Declare.
3695 * java/lang/reflect/Field.java (equals): New method.
3696 * java/lang/natClass.cc (getConstructor): New method.
3697 (getConstructors): Likewise.
3698 Include Method.h, Field.h, Constructor.h.
3699 * java/lang/reflect/Constructor.java: New file.
3700 * java/lang/reflect/Method.java (toString): No space before open
3702 (equals): Simplified.
3704 1998-12-13 Anthony Green <green@cygnus.com>
3706 * java/util/ResourceBundle.java: New file.
3707 * java/util/ListResourceBundle.java: New file.
3709 1998-12-12 Tom Tromey <tromey@cygnus.com>
3711 * java/lang/System.java (in, out, err): Now buffered streams by
3714 * include/javaprims.h: Updated class declarations.
3715 * Makefile.in: Rebuilt.
3716 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3717 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3719 (nat_files): Added natMethod.o.
3720 * java/lang/reflect/natMethod.cc: New file.
3721 * java/lang/reflect/Field.java (Field): Now extends
3723 * java/lang/reflect/AccessibleObject.java: New file.
3724 * java/lang/reflect/InvocationTargetException.java: New file.
3726 1998-12-11 Tom Tromey <tromey@cygnus.com>
3728 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3729 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3730 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3732 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3734 1998-12-09 Tom Tromey <tromey@cygnus.com>
3736 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3739 * java/lang/natCharacter.cc (toTitleCase): Handle case where
3740 character is already titlecase.
3742 * java/lang/Character.java (isJavaLetter): Follow spec.
3743 (isJavaLetterOrDigit): Likewise.
3745 * java/util/GregorianCalendar.java (gregorianCutover): Append
3748 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3750 1998-12-08 Tom Tromey <tromey@cygnus.com>
3752 * java/lang/reflect/Modifier.java (toString): Replace second
3753 `static' with `synchronized'.
3755 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3756 * java/lang/Object.h (Object::hack12_6): Declare.
3757 * java/lang/Object.java (hack12_6): New function.
3759 1998-12-07 Tom Tromey <tromey@cygnus.com>
3761 * include/java-array.h (__JArray::clone): Removed decl.
3762 * prims.cc (__JArray::clone): Removed.
3763 * java/lang/natObject.cc (clone): Incorporate code to clone an
3766 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3767 (_Jv_FindArrayClass): Set dtable_method_count on new class.
3768 Correctly use dtable_method_count.
3770 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
3772 * java/lang/Double.java (isInfinite, isNaN): Handle correct
3775 1998-12-06 Anthony Green <green@cygnus.com>
3777 * mauve-libjava: Don't test ResourceBundle.
3779 1998-12-04 Tom Tromey <tromey@cygnus.com>
3781 More JDK 1.2 spec fixes:
3782 * java/util/Date.java (millis): Now private.
3783 * java/text/DateFormat.java (DateFormat): Constructor now
3785 * java/lang/Void.java (Void): New private constructor.
3786 * java/lang/System.java (System): New private constructor.
3787 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3789 (currentClassLoader): New method.
3790 (currentLoadedClass): New method.
3791 * java/lang/Math.java (Math): New private constructor.
3792 * java/lang/Compiler.java (Compiler): New private constructor.
3793 * java/lang/Class.java (Class): New private constructor.
3794 * java/lang/Double.java (toString): Removed access specifier from
3795 two-argument `toString' method.
3797 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
3799 * java/lang/s_rint.c (rint): Make the variable w volatile; this
3800 causes it to be flushed from an fp register (where it may be
3801 longer than double precision) to a double in memory. This is
3802 essential to ensure correct rounding behaviour.
3804 1998-12-04 Tom Tromey <tromey@cygnus.com>
3806 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3809 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3810 explaining apparent divergence from JDK 1.2.
3812 1998-12-04 Per Bothner <bothner@cygnus.com>
3814 * include/no-threads.h: Remove unused parameter names.
3815 This silences a bunch of warnings.
3817 1998-12-04 Tom Tromey <tromey@cygnus.com>
3819 * include/config.h.in: Rebuilt.
3820 * acconfig.h (HAVE_CTIME_R): New symbol.
3822 1998-12-03 Tom Tromey <tromey@cygnus.com>
3824 * mauve-libjava: Added many more categories to reject.
3826 Changes to follow JDK1.2 spec:
3827 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3828 setErr, setIn, setOut): No need to be `final'.
3829 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3830 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3831 * java/lang/Object.java (wait): `nanos' argument is an int.
3832 * java/lang/VirtualMachineError.java: Class is abstract.
3833 * java/lang/ThreadDeath.java: Made constructors public.
3834 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3837 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3839 * java/text/DateFormatSymbols.java (getAmPmStrings,
3840 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3842 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3844 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3845 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3846 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3849 * java/lang/IllegalThreadStateException.java
3850 (IllegalThreadStateException): Changed extending class to match spec.
3852 * java/lang/NumberFormatException.java
3853 (java/lang/NumberFormatException): Changed extending class to match
3856 * java/util/Observer.java (Observer): Changed sig to match JCL.
3858 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3860 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3861 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3862 signature to match JDK 1.1 and 1.2.
3864 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3866 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3867 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3868 * Makefile.in, configure: Rebuilt.
3870 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3873 1998-12-02 Tom Tromey <tromey@cygnus.com>
3875 * mauve-libjava: New file.
3877 The remaining `-W -Wall' fixes:
3878 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3880 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3882 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3884 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3886 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3888 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3890 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3892 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3894 * java/lang/mprec.c (Balloc): Removed unused variable.
3895 (mult): Added parentheses per gcc suggestion.
3896 (pow5mult): Likewise.
3901 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3902 suggestion. Added cast to `int' to avoid signed/unsigned
3904 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3906 (IsAssignableFrom): Likewise.
3907 (_Jv_JNI_GetObjectField): Likewise.
3908 (_Jv_JNI_GetByteField): Likewise.
3909 (_Jv_JNI_GetShortField): Likewise.
3910 (_Jv_JNI_GetIntField): Likewise.
3911 (_Jv_JNI_GetLongField): Likewise.
3912 (_Jv_JNI_GetStringLength): Likewise.
3913 (_Jv_JNI_ToReflectedField): Likewise.
3914 (_Jv_JNI_FromReflectedField): Likewise.
3915 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3917 * Makefile.in: Rebuilt.
3918 * Makefile.am (AM_CFLAGS): Define conditionally.
3919 (WARNINGS): New macro.
3920 (AM_CXXFLAGS): Include WARNINGS.
3921 * configure: Rebuilt.
3922 * configure.in (USING_GCC): New conditional.
3924 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3926 * java/lang/Character.java: Changed classification constants to
3927 type `byte' to match JDK 1.2 docs.
3929 1998-12-01 Tom Tromey <tromey@cygnus.com>
3931 Some fixes to be `-W -Wall' clean:
3932 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3933 (_Jv_MarkArray): Likewise.
3934 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3935 (to_upper_title): Likewise.
3936 (isTitleCase): Likewise.
3937 (toTitleCase): Likewise.
3938 (getNumericValue): Likewise.
3939 (isLowerCase): Likewise.
3940 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3941 (avoids compiler warning).
3942 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3944 (getDeclaringClass): Likewise.
3945 (_Jv_LookupInterfaceMethod): Likewise.
3946 (_Jv_NewClass): Removed name of unused parameter.
3947 * exception.cc (_Jv_type_matcher): Removed unused variable.
3948 (_Jv_setup_eh_info): Removed name of unused parameter.
3949 * prims.cc (_Jv_NewArray): Always return a value.
3950 (_Jv_FindClassFromSignature): Likewise.
3951 * include/java-field.h (getNameUtf8Const): Removed name of unused
3953 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3955 (_Jv_ThreadSetPriority): Likewise.
3957 * java/lang/natString.cc (hashChars): Now static.
3959 * java/lang/FirstThread.java (FirstThread): Now final.
3961 * java/io/File.java (performMkdir, performRenameTo): Now private.
3963 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3964 if no time function defined.
3966 * configure: Rebuilt.
3967 * configure.in: Look for ctime_r, ctime.
3968 * java/util/Date.java (toString): Now native.
3969 * java/util/natDate.cc (toString): Rewrote.
3971 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3973 * Add LDFLAGS line to allow TX39 test cases to link when cross
3976 1998-11-23 Anthony Green <green@cygnus.com>
3978 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3979 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3980 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3981 include/java-array.h, include/java-assert.h, include/java-field.h,
3982 include/javaprims.h, include/jni.h, include/jvm.h,
3983 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3984 include/quick-threads.h, java/io/BufferedInputStream.java,
3985 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3986 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3987 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3988 java/io/CharArrayWriter.java,
3989 java/io/CharConversionException.java, java/io/DataInput.java,
3990 java/io/DataInputStream.java, java/io/DataOutput.java,
3991 java/io/DataOutputStream.java, java/io/EOFException.java,
3992 java/io/File.java, java/io/FileDescriptor.java,
3993 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3994 java/io/FileOutputStream.java, java/io/FileReader.java,
3995 java/io/FileWriter.java, java/io/FilenameFilter.java,
3996 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3997 java/io/FilterReader.java, java/io/FilterWriter.java,
3998 java/io/IOException.java, java/io/InputStream.java,
3999 java/io/InputStreamReader.java,
4000 java/io/InterruptedIOException.java,
4001 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
4002 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
4003 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
4004 java/io/PipedReader.java, java/io/PipedWriter.java,
4005 java/io/PrintStream.java, java/io/PrintWriter.java,
4006 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
4007 java/io/RandomAccessFile.java, java/io/Reader.java,
4008 java/io/SequenceInputStream.java, java/io/Serializable.java,
4009 java/io/StreamTokenizer.java,
4010 java/io/StringBufferInputStream.java, java/io/StringReader.java,
4011 java/io/StringWriter.java, java/io/SyncFailedException.java,
4012 java/io/UTFDataFormatException.java,
4013 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
4014 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
4015 java/io/natFileDescriptorPosix.cc,
4016 java/lang/AbstractMethodError.java,
4017 java/lang/ArithmeticException.java,
4018 java/lang/ArrayIndexOutOfBoundsException.java,
4019 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
4020 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
4021 java/lang/Class.java, java/lang/ClassCastException.java,
4022 java/lang/ClassCircularityError.java,
4023 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
4024 java/lang/ClassNotFoundException.java,
4025 java/lang/CloneNotSupportedException.java,
4026 java/lang/Cloneable.java, java/lang/Comparable.java,
4027 java/lang/Compiler.java, java/lang/Double.java,
4028 java/lang/Error.java, java/lang/Exception.java,
4029 java/lang/ExceptionInInitializerError.java,
4030 java/lang/FirstThread.java, java/lang/Float.java,
4031 java/lang/IllegalAccessError.java,
4032 java/lang/IllegalAccessException.java,
4033 java/lang/IllegalArgumentException.java,
4034 java/lang/IllegalMonitorStateException.java,
4035 java/lang/IllegalStateException.java,
4036 java/lang/IllegalThreadStateException.java,
4037 java/lang/IncompatibleClassChangeError.java,
4038 java/lang/IndexOutOfBoundsException.java,
4039 java/lang/InstantiationError.java,
4040 java/lang/InstantiationException.java, java/lang/Integer.java,
4041 java/lang/InternalError.java, java/lang/InterruptedException.java,
4042 java/lang/LinkageError.java, java/lang/Long.java,
4043 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
4044 java/lang/NoClassDefFoundError.java,
4045 java/lang/NoSuchFieldError.java,
4046 java/lang/NoSuchFieldException.java,
4047 java/lang/NoSuchMethodError.java,
4048 java/lang/NoSuchMethodException.java,
4049 java/lang/NullPointerException.java, java/lang/Number.java,
4050 java/lang/NumberFormatException.java, java/lang/Object.h,
4051 java/lang/Object.java, java/lang/OutOfMemoryError.java,
4052 java/lang/Process.java, java/lang/Runnable.java,
4053 java/lang/Runtime.java, java/lang/RuntimeException.java,
4054 java/lang/SecurityException.java, java/lang/SecurityManager.java,
4055 java/lang/Short.java, java/lang/StackOverflowError.java,
4056 java/lang/String.java, java/lang/StringBuffer.java,
4057 java/lang/StringIndexOutOfBoundsException.java,
4058 java/lang/System.java, java/lang/Thread.java,
4059 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
4060 java/lang/Throwable.java, java/lang/UnknownError.java,
4061 java/lang/UnsatisfiedLinkError.java,
4062 java/lang/UnsupportedOperationException.java,
4063 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
4064 java/lang/Void.java, java/lang/natCharacter.cc,
4065 java/lang/natClass.cc, java/lang/natDouble.cc,
4066 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
4067 java/lang/natMath.cc, java/lang/natObject.cc,
4068 java/lang/natRuntime.cc, java/lang/natString.cc,
4069 java/lang/natSystem.cc, java/lang/natThread.cc,
4070 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
4071 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
4072 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
4073 java/text/FieldPosition.java, java/text/Format.java,
4074 java/text/NumberFormat.java, java/text/ParseException.java,
4075 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
4076 java/util/BitSet.java, java/util/Calendar.java,
4077 java/util/ConcurrentModificationException.java,
4078 java/util/Date.java, java/util/Dictionary.java,
4079 java/util/EmptyStackException.java, java/util/Enumeration.java,
4080 java/util/GregorianCalendar.java, java/util/Hashtable.java,
4081 java/util/Locale.java, java/util/MissingResourceException.java,
4082 java/util/NoSuchElementException.java, java/util/Observable.java,
4083 java/util/Observer.java, java/util/Properties.java,
4084 java/util/Random.java, java/util/SimpleTimeZone.java,
4085 java/util/Stack.java, java/util/StringTokenizer.java,
4086 java/util/TimeZone.java, java/util/TooManyListenersException.java,
4087 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
4090 * exception.cc: Include eh-common.h instead of duplicating
4093 1998-11-23 Tom Tromey <tromey@cygnus.com>
4095 * configure.host: Don't add `-O2' to libjava_flags. Only add
4096 `-Os' to libjava_flags once.
4098 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
4100 * Makefile.am: add LIBJAVA_JAVAFLAGS.
4101 * Makefile.in: likewise
4102 * acconfig.h: add ECOS conditional for configure.h
4103 * config.h.in: likewise
4104 * configure: add test for --with-ecos
4105 * configure.in: likewise
4106 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4107 rename call to avoid name clash.
4108 * java/lang/natSystem.cc: add eCos clock support.
4109 * java/util/natGregorianCalendar.cc: add eCos support.
4111 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4113 * Makefile.am, Makefile.in, configure.host: tx39 build option
4116 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
4118 * java/io/BufferedReader.java: Added more comments for clarity.
4119 (mark): Used more mnemonic name for local var extraBuffSpace.
4121 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4122 confusion with private method of same name in superclass.
4123 (skipRedundantLF): Set fields in special case to avoid infinite
4124 recursion. Check if markPos has been invalidated in special case.
4125 (readLine): Rewritten to use readLine method of superclass.
4126 (skip): Incorporated code from lineEnd.
4128 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
4130 * java/io/BufferedReader.java (readLine): New method.
4131 (lineEnd): new private method.
4132 (mark): Track special case for readLine of getting '\r' at the
4139 * java/io/InputStreamReader.java (read): Return number chars skipped
4140 rather than requested.
4142 * java/lang/StringBuffer.java (append): Update count and differentiate
4143 between field and local variable.
4145 * java/util/Date.java (parseTz): Evaluate in minutes rather than
4146 seconds. Deal with military style time.
4147 (parse): Consistently treat all timezones in minutes until final
4148 calculation. Flag as non-local timezone. Return value in milliseconds.
4149 (setTime): Adjust for year offset from 1900.
4150 (UTC): Adjust for year offset from 1900.
4152 1998-11-17 Tom Tromey <tromey@cygnus.com>
4154 * configure: Rebuilt.
4155 * configure.in: Switch on host, not target.
4157 * Makefile.in: Rebuilt.
4158 * Makefile.am (GCJ_no): New macro.
4159 (GCJ): Use @CANADIAN@.
4160 (GCJH_no): New macro
4161 (GCJH_canadian): New macro.
4162 (GCJH): Use @CANADIAN@.
4163 (ZIP_no): New macro.
4164 (ZIP_canadian): New macro.
4165 (ZIP): Use @CANADIAN@.
4166 * aclocal.m4, configure: Rebuilt.
4167 * configure.in (CANADIAN): Compute and subst.
4169 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
4171 * java/io/FileDescriptor.java (finalize): Only close file
4172 descriptor if valid.
4174 1998-11-17 Tom Tromey <tromey@cygnus.com>
4176 * prims.cc (_Jv_InitRuntime): Removed.
4178 1998-11-16 Tom Tromey <tromey@cygnus.com>
4180 * java/io/FileOutputStream.java (close): Only close file
4181 descriptor if valid.
4182 (finalize): New method.
4184 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4185 (_Jv_NewPrimArray): Likewise.
4186 * boehm.cc (_Jv_RegisterFinalizer): Use
4187 GC_REGISTER_FINALIZER_NO_ORDER.
4188 (GC_GENERIC_MALLOC): New define.
4189 (_Jv_AllocObj): Use it.
4190 (_Jv_AllocArray): Likewise.
4191 (_Jv_AllocBytes): Likewise.
4192 (_Jv_MarkObj): Just return if vtbl not set.
4193 (_Jv_MarkArray): Likewise.
4194 (MAYBE_MARK): New macro; use everywhere.
4195 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4197 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
4199 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4200 to a jlong before calculation to prevent overflow.
4202 1998-11-16 Tom Tromey <tromey@cygnus.com>
4204 * Makefile.in: Rebuilt.
4205 * Makefile.am (nat_headers): Fixed typo.
4207 1998-11-15 Tom Tromey <tromey@cygnus.com>
4209 * java/lang/Class.h (Class::getName): Removed definition.
4210 * Makefile.in: Rebuilt.
4211 * Makefile.am (nat_headers): Added InstantiationException.h,
4212 NoSuchMethodException.h.
4213 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4214 (init_name): New global.
4215 (hackRunInitializers): Use clinit_name.
4216 Include InstantiationException.h, NoSuchMethodException.h.
4217 (newInstance): Do some error checking (but not all). Call
4219 (forName): Throw exception if class not found.
4220 (getName): New method.
4221 (forName): Transform class name from external format to internal
4222 format before lookup.
4224 1998-11-15 Anthony Green <green@cygnus.com>
4226 * java/lang/Class.h (Class::forName): Method is static.
4228 * java/lang/natClass.cc (newInstance): Add simple implementation.
4231 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
4233 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
4234 int), for compatibility with jc1.
4236 1998-11-14 Tom Tromey <tromey@cygnus.com>
4238 * include/config.h.in: Rebuilt.
4239 * acconfig.h (LINUX_THREADS): New define.
4240 * configure: Rebuilt.
4241 * configure.in: Define LINUX_THREADS if using POSIX threads on
4242 Linux. Look for pthread_mutexattr_setkind_np function.
4243 * posix-threads.cc (throw_cleanup): New function.
4244 (really_start): Push cleanup function.
4245 (_Jv_ThreadCancel): New function.
4246 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4247 (_Jv_ThreadInitData): Set `exception' field in new structure.
4248 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4250 (_Jv_ThreadWait): New function.
4251 (_Jv_InitThreads): Initialize daemon globals.
4252 (FLAG_DAEMON): New macro.
4253 (really_start): Notify daemon_cond when non-daemon thread exits.
4254 Include <java/lang/System.h>.
4255 (struct starter): `object' field now a thread.
4256 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4257 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4258 (_Jv_ThreadWait): Removed definition.
4259 (_Jv_Thread_t): Added `exception' field.
4260 (_Jv_ThreadCancel): Removed definition.
4262 1998-11-13 Tom Tromey <tromey@cygnus.com>
4264 * Makefile.in: Rebuilt.
4265 * Makefile.am (libjava.zip): Compute javac before changing
4268 * Makefile.in: Rebuilt.
4269 * Makefile.am (libjava.zip): Include directory entries.
4271 * Makefile.in: Rebuilt.
4272 * Makefile.am (expanded): New macro.
4275 1998-11-12 Tom Tromey <tromey@cygnus.com>
4277 * prims.cc (clone): New function.
4278 * include/java-array.h (__JArray::clone): Removed definition.
4280 * java/lang/natObject.cc (clone): Don't assert that class is not
4281 an array; array's `clone' method just calls this one.
4283 * Makefile.in: Rebuilt.
4284 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4285 Now creates zip file. Changed all users.
4287 (data_DATA): New macro.
4289 1998-11-11 Tom Tromey <tromey@cygnus.com>
4291 * configure: Rebuilt.
4292 * configure.in: Recognize --enable-java-gc, not --enable-gc.
4294 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
4296 * java/io/InputStream.java (reset): Add msg to thrown exception.
4298 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
4300 * java/io/LineNumberInputStream.java: Rewritten.
4302 * java/io/StringBufferInputStream.java: Removed extraneous import.
4304 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
4306 * java/io/StringBufferInputStream.java: Rewritten.
4308 * java/util/Date.java (parseMonth): Optimize.
4309 (parseDayOfWeek): Created.
4310 (parse): Optimize to use parseDayOfWeek.
4312 1998-11-11 Tom Tromey <tromey@cygnus.com>
4314 * java/lang/StringBuffer.java (append): Handle case where STR is
4317 * include/javaprims.h: Regenerated class declarations.
4319 * configure: Rebuilt.
4320 * configure.in: Added --enable-gcj-classes,
4321 --enable-single-compilation, --enable-source-compilation flags.
4322 * Makefile.in: Rebuilt.
4323 * Makefile.am (java_io_files): New macro.
4324 (java_lang_files): Likewise.
4325 (java_text_files): Likewise.
4326 (java_util_files): Likewise.
4327 (java_files): Use new macros.
4328 (java-io.o): New target.
4329 (java-lang.o): Likewise.
4330 (java-text.o): Likewise.
4331 (java-util.o): Likewise.
4332 (src_io_files): New macro.
4333 (src_lang_files): Likewise.
4334 (src_text_files): Likewise.
4335 (src_util_files): Likewise.
4336 (class_io_files): New macro.
4337 (class_lang_files): Likewise.
4338 (class_text_files): Likewise.
4339 (class_util_files): Likewise.
4340 (class_files): Use new macros.
4341 (javao_files): Define conditionally.
4342 (.java.o): New target.
4343 ($(javao_files)): New target.
4345 (GCJH): Added $(EXEEXT).
4346 (CLASSPATH_ENV): Removed.
4347 (GCJCOMPILE): New macro.
4349 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
4351 * java/util/Date.java (parse): Written from scratch.
4353 1998-11-11 Tom Tromey <tromey@cygnus.com>
4355 * java/lang/Throwable.java (toString): Correct sense of test for
4356 determining when to include detail message in result.
4358 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4361 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
4363 * java/lang/Class.h: Use _Jv_RegisterClasses, not
4365 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4366 (_Jv_RegisterClass): Use it.
4367 * include/jvm.h (_Jv_RegisterClasses): Declare.
4368 * java/lang/natObject.cc (init): Removed.
4369 (sync_init): Never call _Jv_InitializeSyncMutex.
4370 (_Jv_InitializeSyncMutex): Don't set `init'.
4371 * prims.cc (JvRunMain): Don't run init functions.
4373 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
4375 * java/lang/natClass.cc (initializeClass): Set state before
4376 resolving constants.
4378 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4379 (STATE_RESOLVED): New macro.
4380 (initializeClass): Call resolveConstants.
4381 (hackRunInitializers): Don't call resolveConstants.
4382 (_Jv_FindArrayClass): Move short-circuit return for primitive
4383 element types earlier in function.
4385 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
4387 * prims.cc (no_memory): New global.
4388 (_Jv_makeUtf8Const): Throw no_memory.
4389 (_Jv_AllocObject): Likewise.
4390 (_Jv_NewObjectArray): Likewise.
4391 (_Jv_NewPrimArray): Likewise.
4392 (JvRunMain): Initialize no_memory.
4394 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
4396 * java/io/FileInputStream.java: Corrected date comment.
4397 * java/io/SequenceInputStream.java: Rewritten.
4399 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
4401 * java/lang/FirstThread.java (die): New method.
4402 * java/lang/natFirstThread.cc (die): Removed.
4404 (run): Use `DIE', not `die'.
4406 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
4408 * java/io/CharArrayReader.java (read): Move check into synchronized
4409 block to prevent a close while in progress.
4412 * java/io/PushbackReader.java (read): Ditto.
4415 * java/io/StringReader.java (mark): Ditto.
4420 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
4422 * java/io/PipedInputStream.java: Updated status.
4423 (connect): Added code to prevent infinite recursion and to
4424 differentiate exception causes.
4425 (read): Added code to differentiate exception causes.
4426 (receive): Made exception pass string with the cause.
4428 * java/io/PipedOutputStream.java: Updated status.
4429 (connect): Added code to call connect at the other end of the pipe.
4431 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
4433 * java/io/PipedInputStream.java (connect): Throw exception if
4434 already connected to the same output stream.
4435 (read): Do bounds checking first.
4437 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
4439 * java/io/PipedInputStream.java: Added private boolean outClosed.
4440 (available): Removed check if output stream is open.
4441 (close): Mark the buffer as empty so available returns 0.
4442 (read): Check if the output stream was closed and then return EOF
4443 when the buffer is empty.
4444 (receive): Mark the output stream as closed when passed a -1.
4446 * java/io/PipedOutputStream.java (close): Notify the input stream
4447 that there's no more data coming.
4448 (connect): Added a FIXME comment to note more coordination needed
4449 with PipedInputStream.
4450 (flush): Added a FIXME comment to mark what this method might do
4453 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
4455 * java/io/PipedInputStream.java: Rewritten.
4457 1998-10-30 Tom Tromey <tromey@cygnus.com>
4459 * java/lang/Throwable.java: Rewrote from scratch.
4461 * java/lang/Class.h (Class): Don't mention newMultiArray.
4462 * prims.cc (newMultiArray): Removed.
4463 (_Jv_NewMultiArray): Removed.
4464 (newArray): Removed.
4465 (new_multi_array): New function.
4466 (_Jv_NewMultiArray): Rewrote from scratch.
4468 * include/javaprims.h: Regenerated class declarations.
4469 * classes.pl (scan): Don't declare PrimClass.
4470 * include/cni.h (JvPrimClass): Use new names for classes.
4471 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4472 added _Jv_PrimClass.
4473 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4474 (_Jv_initPrimClass): Removed.
4475 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4476 (_Jv_AllocObject): Added comment.
4477 (_Jv_NewObjectArray): Likewise.
4478 (_Jv_NewPrimArray): Likewise.
4480 1998-10-29 Tom Tromey <tromey@cygnus.com>
4482 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4483 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4485 * java/lang/Class.h (Class): Added `dtable_method_count' field.
4487 * java/lang/natObject.cc (init): New global.
4488 (sync_init): Call _Jv_InitializeSyncMutex if required.
4490 * Makefile.in: Rebuilt.
4491 * Makefile.am (nat_headers): Added ClassLoader.h.
4492 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4493 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4494 internalAddClass, lookupArray no longer friends.
4495 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4496 _Jv_FindArrayClass now friends.
4497 * java/lang/natClass.cc (HASH_LEN): New macro.
4498 (HASH_UTF): Likewise.
4499 (loaded_classes): New global.
4500 (_Jv_FindClass): New function.
4501 (ClassClass): New define.
4502 (_Jv_FindClassInCache): New function.
4503 (_Jv_RegisterClass): Likewise.
4504 (_Jv_NewClass): Likewise.
4506 (ObjectClass): New define.
4507 (CloneableClass): New define.
4508 * prims.cc (_Jv_FindClass): Removed.
4509 (simpleLookupClass): Removed.
4510 (insertClass): Removed.
4511 (CLASSHASHSZ): Removed.
4512 (classPool): Removed.
4513 (_Jv_RegisterClass): Removed.
4514 (internalAddClass): Removed.
4515 (ClassClass): Removed.
4516 (RuntimeClass): Removed.
4517 (lookupArray): Removed.
4518 (CloneableClass): Removed.
4519 (CLASSMAXSIG): Removed.
4520 Rearranged file to group related functions together.
4521 (_Jv_IsInstanceOf): Moved to natClass.cc.
4522 (abort_final): Removed.
4523 Removed some unused includes.
4524 (classFromSig): Removed.
4525 (_Jv_FindClassFromSignature): New function.
4526 (_Jv_initPrimClass): Renamed.
4527 (getClass): Removed.
4529 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
4531 * java/io/FileDescriptor.java (finalize): Throws IOException
4532 instead of Throwable.
4534 * java/io/FileInputStream.java: Rewritten.
4536 * java/io/StreamTokenizer.java (nextToken): Unread newline character
4537 at the end of a comment.
4539 1998-10-29 Tom Tromey <tromey@cygnus.com>
4541 * include/javaprims.h: Regenerated class declarations.
4542 * classes.pl (scan): Don't special-case ClassLoader.
4544 * prims.cc (processClass): Removed.
4545 (_Jv_InitClass): Removed.
4546 Removed all CSTATE_ macros.
4547 (resolveConstants): Removed.
4549 (_Jv_NewMultiArray): Cleaned up.
4550 * Makefile.in: Rebuilt.
4551 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4552 * java/lang/Class.h (Class): Declare new methods. processClass no
4554 * java/lang/Class.java (hackTrampoline): New method.
4555 (initializeClass): Declare.
4556 (hackRunInitializers): Declare.
4557 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4558 (initializeClass): New method.
4559 (hackRunInitializers): New method.
4560 (init_name, void_signature): Moved from prims.cc.
4561 (_Jv_InitClass): New function.
4562 (isAssignableFrom): Don't call processClass.
4563 (STATE_NOTHING): New macro.
4564 (resolveConstants): New function.
4566 (ErrorClass): New define.
4568 * java/lang/Class.java (getClassLoader): Declare.
4569 * java/lang/ClassLoader.java: Rewrote from scratch.
4571 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4572 AbstractMethodError.h, IllegalAccessError.h,
4573 NoClassDefFoundError.h.
4574 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4575 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4576 longer static. Changed return type.
4577 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4578 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4579 * prims.cc (findMethodLocal): Removed.
4580 (processClass): Use _Jv_GetMethodLocal.
4582 1998-10-28 Tom Tromey <tromey@cygnus.com>
4584 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4585 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4587 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4588 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4590 * include/jni.h: Added copyright header.
4591 * include/javaprims.h: Added copyright header.
4592 * include/java-field.h: Added copyright header.
4593 * include/java-array.h: Added copyright header.
4594 * include/cni.h: Added copyright header.
4596 * include/javaprims.h: Regenerated class declarations using
4597 classes.pl; now they are complete.
4598 * classes.pl: New file.
4600 * java/lang/natMath.cc: Include <config.h>.
4601 * java/lang/reflect/natField.cc: Include <config.h>.
4602 * java/util/NativeUtil.java: Removed.
4603 * Makefile.in: Rebuilt.
4604 * Makefile.am (nat_headers): Added Math.h.
4605 * java/lang/Math.h: Removed.
4606 * java/util/natGregorianCalendar.cc: Added copyright header.
4608 * java/lang/natFloat.cc: Added copyright header.
4609 * java/lang/Byte.java: Added copyright header.
4610 * java/lang/Void.java: Added copyright header.
4611 * java/lang/Short.java: Added copyright header.
4613 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
4615 * include/javaprims.h (java::io): Added bunch of missing classes.
4617 * java/io/DataInputStream.java (readLine): Added a special case
4618 for handling BufferedInputStream data to reduce the likelihood
4619 of a pushback error.
4620 (skipBytes): Added code to handle negative number of skip bytes.
4622 * java/io/StreamTokenizer.java: Rewritten.
4624 1998-10-28 Tom Tromey <tromey@cygnus.com>
4626 * java/util/natGregorianCalendar.cc (computeFields): Call
4627 getRawOffset as a method.
4629 * include/javaprims.h (java::io): Added FilterOutputStream.
4630 * Makefile.in: Rebuilt.
4631 * Makefile.am (nat_headers): Added PrintStream.h,
4632 FilterOutputStream.h.
4633 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4635 (die): New function.
4636 (run): Die if `main' not found, is not public, or is not static.
4638 * boehm.cc (_Jv_MarkObj): Use new field names.
4639 * include/java-field.h (JvGetFirstInstanceField): Use new field
4641 (JvNumInstanceFields): Likewise.
4642 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4643 (getInterfaces): Likewise.
4644 * prims.cc (CLASS_CONSTANTS): Removed.
4645 (CLASS_CONST_SIZE): Likewise.
4646 (CLASS_CONST_TAG): Likewise.
4647 (CLASS_CONST_DATA): Likewise.
4648 (CLASS_CONST_UTF8): Likewise.
4649 (WORD2UTF): Likewise.
4650 (CLASS_CLASS): Likewise.
4651 (CLASS_PRIM_SIG): Likewise.
4652 (CLASS_ARRAY_CACHE): Likewise.
4653 (HASH_CHARS): Likewise.
4654 (hashClassName): Likewise.
4655 Many changes to use new field names.
4656 * java/lang/Class.h (Class): Renamed fields to track compiler.
4658 1998-10-27 Tom Tromey <tromey@cygnus.com>
4660 * java/lang/natClass.cc: Use #pragma implementation.
4661 (getComponentType): Moved into header.
4662 (getModifiers): Likewise.
4663 (getName): Likewise.
4664 (getSuperclass): Likewise.
4665 (isArray): Likewise.
4666 (isPrimitive): Likewise.
4667 * include/jvm.h (_Jv_FindClass): Declare.
4668 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4669 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4670 * include/javaprims.h: Use _Jv_Method, not JvMethod.
4671 * java/lang/Class.h: Rewrote from scratch.
4672 * prims.cc: Many changes to work with new Class.h.
4673 * include/java-field.h (CLASS_FIELDS): Removed.
4674 (CLASS_SFIELDS): Likewise.
4675 (CLASS_IFIELDS): Likewise.
4676 (CLASS_NFIELDS): Likewise.
4677 (CLASS_NIFIELDS): Likewise.
4678 (CLASS_NSFIELDS): Likewise.
4679 (CLASS_FSIZE): Likewise.
4680 (JvGetFirstInstanceField): Rewrote.
4681 (JvNumInstanceFields): Likewise.
4683 * java/lang/Object.h: Added copyright comment.
4685 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
4687 * java/text: New package directory.
4688 * java/text/FieldPosition.java: New class.
4689 * java/text/ParsePosition.java: New class.
4690 * java/text/ParseException.java: New Exception class.
4691 * java/text/Format.java: New class.
4692 * java/text/NumberFormat.java: New (empty placeholder) class.
4693 * java/text/DateFormatSymbols.java: New class (no Locales support).
4694 * java/text/DateFormat.java: New Format class (incomplete).
4695 * java/text/SimpleDateFormat.java: New DateFormat class.
4697 * include/javaprims.h (java::test): Added new package and classes.
4698 * java/util/Calendar.java (clone): New method.
4699 * java/util/Date.java (toString): Added non-native implementation.
4700 (parse): Made public instead of synchronized.
4701 * java/util/natDate.cc (toString): Removed.
4702 * java/util/natGregorianCalendar.cc (computeFields):
4703 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4705 1998-10-27 Tom Tromey <tromey@cygnus.com>
4707 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4709 * prims.cc (lookupArray): Added explanatory comment.
4710 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4711 class. Mark the class of each object.
4712 (_Jv_MarkArray): Mark the object's class.
4714 * configure: Rebuilt.
4715 * configure.in: Create java-gc.h.
4716 * include/boehm-gc.h: New file.
4717 * include/no-gc.h: New file.
4718 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4720 * java/lang/Object.h: Include java-gc.h.
4721 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4722 friends, if defined.
4723 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4725 (_Jv_MarkArray): Renamed from mark_array; changed signature.
4727 1998-10-26 Tom Tromey <tromey@cygnus.com>
4729 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4730 paragraph separators, not numbers.
4732 * java/io/Writer.java (write): Removed write(char) to avoid
4734 * java/util/Properties.java: Rewrote from scratch.
4735 * include/javaprims.h (java::io): Added PrintWriter,
4736 BufferedWriter, PushbackReader.
4738 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
4740 * java/lang/System.java: exit() is a static method.
4742 1998-10-26 Tom Tromey <tromey@cygnus.com>
4744 * java/lang/natString.cc (_Jv_NewStringUTF): Use
4746 (_Jv_NewStringUtf8Const): Likewise.
4747 * include/jvm.h (_Jv_strLengthUtf8): Declare.
4748 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4750 * java/lang/Object.h (Object): Add mark_array as friend function.
4751 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4752 _Jv_AllocBytes, to ensure that header is marked.
4753 * boehm.cc (mark_obj): Push sync_info field for all objects, not
4755 (mark_array): Push sync_info field for array.
4757 1998-10-24 Tom Tromey <tromey@cygnus.com>
4759 * java/lang/String.java (String): Updated for StringBuffer
4761 * java/util/BitSet.java: Renamed field (data->bits) to conform to
4763 * java/lang/StringBuffer.java: Renamed fields to conform to
4764 serialization spec: buffer->value, next->count, copy->shared.
4766 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
4768 * java/util/TimeZone.java: New class.
4769 * java/util/SimpleTimeZone.java: New class.
4770 * java/util/Locale.java: New file.
4771 * java/util/Calendar.java: Make almost complete.
4772 * java/util/GregorianCalendar.java
4773 * java/util/natGregorianCalendar.cc: New file.
4774 * java/util/Date.java: Re-written from scratch.
4775 * java/util/natDate.cc (setTime): Removed - no longer native.
4776 * include/javaprims.h (java::util): Add new classes.
4777 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
4778 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4780 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
4782 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4783 returning it as a jint.
4785 1998-10-23 Tom Tromey <tromey@cygnus.com>
4787 * prims.cc (arg_vec, main_group, main_thread): New globals.
4788 (JvRunMain): Use them.
4790 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
4792 * java/io/DataInputStream.java: Rewritten.
4794 * java/io/DataOutputStream.java (writeUTF): OR secondary and
4795 tertiary bytes with 0x80 per spec.
4797 1998-10-23 Tom Tromey <tromey@cygnus.com>
4799 * java/lang/String.java (init): Changed name of `copy' argument.
4800 * java/lang/natString.cc (init): Inverted sense of `copy'
4803 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4804 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4805 * boehm.cc (ObjectClass): New define.
4806 (ClassClass): Likewise.
4807 (mark_obj): Special-case Object and Class.
4809 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4811 * java/util/BitSet.java: Rewrote from scratch.
4813 * prims.cc (lookupArray): Removed useless cast.
4815 * java/lang/natObject.cc: Use `#pragma implementation'.
4817 * java/lang/String.java (init): Added `copy' argument.
4818 (String): Look in StringBuffer to find char array.
4819 * java/lang/natString.cc (init): Added `copy' argument.
4820 * java/lang/StringBuffer.java: Rewrote from scratch.
4822 * java/lang/Compiler.java: Rewrote from scratch.
4823 * java/lang/Throwable.java: Don't use NativeLang.
4824 * include/javaprims.h (java::lang): Don't mention NativeLang.
4825 * java/lang/Process.java: Rewrote from scratch.
4826 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4828 (currentClassLoader): Likewise.
4829 (currentLoadedClass): Likewise.
4830 * java/lang/natClass.cc (getClassLoader): Commented out.
4831 * java/lang/Class.java (getClassLoader): Commented out.
4832 * java/lang/Compiler.java: Removed.
4833 * java/lang/NativeLang.java: Removed.
4835 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4836 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4837 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4838 (_Jv_hashUtf8String): Now static.
4839 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4840 name of return type.
4842 * java/lang/Class.h (Class): Declare checkMemberAccess.
4843 * Makefile.in: Rebuilt.
4844 * Makefile.am (nat_headers): Added Member.h.
4845 * java/lang/natClass.cc: Include Member.h.
4846 (getDeclaredClasses): Call checkMemberAccess.
4847 * java/lang/Class.java (checkMemberAccess): Call
4848 SecurityManager.checkMemberAccess.
4850 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4852 * java/lang/SecurityManager.java: Rewritten.
4854 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4856 * java/applet/Applet.java, java/applet/AppletContext.java,
4857 java/applet/AppletStub.java, java/applet/AudioClip.java,
4858 java/awt/AWTError.java, java/awt/AWTException.java,
4859 java/awt/BorderLayout.java, java/awt/Button.java,
4860 java/awt/Canvas.java, java/awt/CardLayout.java,
4861 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4862 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4863 java/awt/Color.java, java/awt/Component.java,
4864 java/awt/Container.java, java/awt/Dialog.java,
4865 java/awt/Dimension.java, java/awt/Event.java,
4866 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4867 java/awt/Font.java, java/awt/FontMetrics.java,
4868 java/awt/Frame.java, java/awt/Graphics.java,
4869 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4870 java/awt/GridLayout.java, java/awt/Image.java,
4871 java/awt/Insets.java, java/awt/Label.java,
4872 java/awt/LayoutManager.java, java/awt/List.java,
4873 java/awt/MediaTracker.java, java/awt/Menu.java,
4874 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4875 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4876 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4877 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4878 java/awt/TextArea.java, java/awt/TextComponent.java,
4879 java/awt/TextField.java, java/awt/Toolkit.java,
4880 java/awt/Window.java, java/awt/image/ColorModel.java,
4881 java/awt/image/CropImageFilter.java,
4882 java/awt/image/DirectColorModel.java,
4883 java/awt/image/FilteredImageSource.java,
4884 java/awt/image/ImageConsumer.java,
4885 java/awt/image/ImageFilter.java,
4886 java/awt/image/ImageObserver.java,
4887 java/awt/image/ImageProducer.java,
4888 java/awt/image/IndexColorModel.java,
4889 java/awt/image/MemoryImageSource.java,
4890 java/awt/image/PixelGrabber.java,
4891 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4892 java/awt/peer/CanvasPeer.java,
4893 java/awt/peer/CheckboxMenuItemPeer.java,
4894 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4895 java/awt/peer/ComponentPeer.java,
4896 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4897 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4898 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4899 java/awt/peer/MenuBarPeer.java,
4900 java/awt/peer/MenuComponentPeer.java,
4901 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4902 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4903 java/awt/peer/TextAreaPeer.java,
4904 java/awt/peer/TextComponentPeer.java,
4905 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4906 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4907 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4908 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4909 java/net/MalformedURLException.java, java/net/NativeNet.java,
4910 java/net/ProtocolException.java, java/net/ServerSocket.java,
4911 java/net/Socket.java, java/net/SocketException.java,
4912 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4913 java/net/URL.java, java/net/URLConnection.java,
4914 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4915 java/net/URLStreamHandlerFactory.java,
4916 java/net/UnknownHostException.java,
4917 java/net/UnknownServiceException.java: Removed.
4919 1998-10-22 Tom Tromey <tromey@cygnus.com>
4921 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4922 finalizer is not Object.finalize.
4923 (internalAddClass): Don't set `final' member of class.
4924 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4925 other places that know about finalize() location.
4926 * java/lang/Class.h (Class): Removed `final' field.
4928 * aclocal.m4, configure: Rebuilt.
4929 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4930 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4932 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4933 * Makefile.in: Rebuilt.
4934 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4936 1998-10-21 Tom Tromey <tromey@cygnus.com>
4938 * java/lang/Object.java (finalize): Move to be first method in
4941 * configure: Rebuilt.
4942 * configure.in (GCINCS): Include contents of boehm-cflags file.
4944 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4946 * java/lang/ArrayIndexOutOfBoundsException.java
4947 (ArrayIndexOutOfBoundsException): Fixed string literal.
4948 * java/lang/StringIndexOutOfBoundsException.java
4949 (StringIndexOutOfBoundsException): Fixed string literal.
4951 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4953 * natFileDescriptorEcos.cc added.
4954 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4956 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4958 * acconfig.h: test for __int32_t and __uint32_t added.
4959 * include/config.h.in: test for __int32_t and __uint32_t added.
4960 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4961 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4962 * configure.in: test for __int32_t and __uint32_t added.
4963 * configure: test for __int32_t and __uint32_t added.
4965 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4967 * configure.in: Test for --enable ecos and link
4968 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4969 natFileDescriptorPosix.cc
4971 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4973 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4975 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4978 * java/io/CharArrayReader.java (close): Synchronize on lock
4979 object per Reader contract.
4980 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4981 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4982 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4983 Ensure that arg passed in isn't negative.
4985 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4986 constructing the superclass.
4988 * java/io/PushbackReader.java (close): Synchronize on lock
4989 object per Reader contract.
4990 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4991 (ready): Synchronize on lock obj. Throw IOException if reader
4993 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4994 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4995 Ensure that arg passed in isn't negative.
4996 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4998 * java/io/StringReader.java: Created.
5000 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
5002 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
5004 (read): Removed synchronized modifier to match JCL.
5005 (reset): Removed synchronized modifier to match JCL.
5006 (skip): Removed synchronized modifier to match JCL.
5008 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
5010 * java/io/PushbackReader.java (PushbackReader): Made
5011 constructors public.
5013 1998-10-17 Tom Tromey <tromey@cygnus.com>
5015 * java/io/PushbackInputStream.java (PushbackInputStream): Made
5016 constructors public.
5018 1998-10-16 Anthony Green <green@cygnus.com>
5020 * aclocal.m4, configure: Rebuilt.
5021 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
5023 * configure.host: Rewrote.
5024 * Makefile.in: Rebuilt.
5025 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
5026 (AM_CFLAGS): New macro.
5027 ($(c_files)): Use COMPILE macro.
5028 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
5029 automake problem(s).
5031 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
5033 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
5035 * java/io/CharArrayReader.java: Created.
5037 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
5039 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
5040 size check to allow 0 per JCL.
5042 * java/io/PushbackReader.java: Created.
5044 1998-10-16 Tom Tromey <tromey@cygnus.com>
5046 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
5047 <sys/time.h> includes.
5048 * java/io/natFile.cc: Conditionalize <unistd.h> include.
5049 * include/no-threads.h: Conditionalize <unistd.h> include on
5052 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5054 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
5057 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
5059 * java/io/FilterReader.java: Created.
5061 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
5063 * java/io/PushbackInputStream.java: Rewritten.
5065 * java/io/BufferedInputStream.java (BufferedInputStream): Check
5066 that size passed to constructor is legal.
5067 (read): Check that args passed in are legal.
5068 (skip): Rewritten to get rid of the temporary buffer.
5069 (refill): Added marklimit check to grow the buffer.
5071 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
5073 (bytesAvail): Removed.
5074 (read): Changed bytesAvail to Math.min.
5075 (skip): Changed bytesAvail to Math.min.
5077 * java/io/InputStream.java (read): Got rid of extraneous exceptions
5078 from the throws clause.
5079 (skip): Rewritten to use a temporary buffer.
5081 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
5083 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
5086 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
5088 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
5089 to write the double one word at a time.
5091 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
5093 * java/io/BufferedInputStream.java: Rewritten.
5095 1998-10-12 Tom Tromey <tromey@cygnus.com>
5097 * jni.cc: Include config.h and stddef.h.
5099 * java/lang/Class.h (_dispatchTable): Removed again.
5100 Removed all ACC_* defines again.
5102 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
5104 * Makefile.am (nat_files): Add netField.o.
5105 (libjava_a_SOURCES): Add jni.cc.
5106 (java/lang/reflect/Field.h): New rule.
5107 * Makefile.in: Re-generated.
5108 * include/javaprims.h: Add some extra class and typedefs.
5109 * include/jni.h: New file.
5112 * include/java-field.h: New file.
5113 * include/jvm.h: #include <java-field.h>.
5114 * boehm.cc: #include <java-field.h>.
5115 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
5116 * java/lang/reflect/Member.java: New class.
5117 * java/lang/reflect/Field.java: New class. (Very incomplete.)
5118 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
5120 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
5122 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5123 testsuite/Makefile.in: Rebuilt.
5124 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5125 * configure.host: Created.
5127 1998-10-10 Tom Tromey <tromey@cygnus.com>
5129 * java/lang/natObject.cc (sync_init): Always allocate a new
5132 1998-10-09 Tom Tromey <tromey@cygnus.com>
5134 * java/io/ByteArrayInputStream.java (mark): Renamed from
5137 * java/io/FileOutputStream.java (finalize): Removed.
5138 * java/io/FileDescriptor.java (finalize): New method.
5140 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
5142 * ByteArrayInputStream.java: Corrected status comment.
5144 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
5146 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5148 1998-10-08 Tom Tromey <tromey@cygnus.com>
5150 * prims.cc (lookupArray): Use static array to initialize list of
5153 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
5155 * prims.cc (lookupArray): Initialize the msize for new
5158 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
5160 * configure: Rebuilt.
5161 * configure.in: Check for fsync and sleep.
5162 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5164 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5165 HAVE_SLEEP. Include config.h.
5167 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5168 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5171 1998-10-08 Tom Tromey <tromey@cygnus.com>
5173 * java/io/natFile.cc: Don't include SecurityManager.h.
5174 (performList): Renamed.
5175 (performMkdir): Likewise.
5176 (performRenameTo): Likewise.
5177 (performDelete): Likewise.
5179 * java/io/File.java (performDelete): Renamed from natDelete.
5180 (list): Now written in Java.
5181 (performList): New method.
5182 (performMkdir): New method.
5183 (mkdir): Now written in Java.
5184 (performRenameTo): New method.
5185 (renameTo): Now written in Java.
5187 1998-10-06 Tom Tromey <tromey@cygnus.com>
5189 * Makefile.in: Rebuilt.
5190 * Makefile.am (ETAGS_ARGS): New macro.
5191 (TAGS_DEPENDENCIES): Likewise.
5193 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
5195 * Makefile.in: Rebuilt.
5196 * Makefile.am: Use -classpath option with javac.
5198 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
5200 * java/io/FileOutputStream.java (finalize): Call
5203 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
5205 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5207 * java/lang/mprec.c: Ditto.
5209 * java/lang/mprec.h: Include math.h for HUGE_VAL when
5212 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
5214 * java/io/InputStream.java (skip): Make local var i a long.
5216 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
5218 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5219 * prims.cc (lookupArray): Use memcpy, not memmove.
5220 * include/config.h.in: Rebuilt.
5221 * acconfig.h (HAVE_MEMCPY): Added.
5222 * configure: Rebuilt.
5223 * configure.in: Check for memcpy again.
5225 * java/io/RandomAccessFile.java (RandomAccessFile): Use
5226 String.compareTo, not ==.
5228 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5229 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5230 * java/lang/natObject.cc (struct _dispatchTable): Removed.
5231 * include/jvm.h (struct _Jv_DispatchTable): New structure.
5232 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
5233 into new array's dtable.
5234 (_Jv_AllocObject): Use _Jv_DispatchTable.
5235 (_Jv_NewPrimArray): Likewise.
5236 (_Jv_NewObjectArray): Likewise.
5238 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5240 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5241 offending index value.
5242 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5244 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5245 * java/lang/Throwable.java: (Throwable): fixed argument to this().
5247 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
5249 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5251 * java/io/OutputStream.java (write): Use off and len parameters to
5252 output partial byte array.
5254 * java/io/BufferedReader.java, java/io/FileReader.java,
5255 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5256 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5257 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5258 java/io/Writer.java: Added COPYRIGHT-TBD comment.
5260 * include/javaprims.h (java::lang): Added
5261 ExceptionInInitializerError, IllegalStateException,
5262 NoSuchFieldException, and UnsupportedOperationException.
5264 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
5266 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5269 * include/java-array.h (__JArray): Added clone method.
5270 * prims.cc (CloneableClass): New define.
5271 (lookupArray): Initialize array class to indicate that it
5272 implements Cloneable.
5274 * java/lang/Class.h: Removed all ACC_* defines.
5275 * prims.cc: Include Modifier.h.
5276 (_Jv_LookupInterfaceMethod): Use methods in
5277 java.lang.reflect.Modifier, not ACC_ defines.
5279 * java/lang/Class.h (Class): Declare getClasses,
5280 getDeclaredClasses, getDeclaringClass, getModifiers,
5281 * java/lang/Class.java: Rewrote from scratch.
5283 * include/javaprims.h (java::lang): Added reflect and
5285 * Makefile.in: Rebuilt.
5286 * Makefile.am (nat_headers): Added Modifier.h.
5288 * prims.cc (_Jv_IsInstanceOf): Return false if class is
5291 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
5293 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5294 instead of test and abort.
5296 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5297 remove compiler warning.
5299 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5301 * java/lang/natDouble.cc: zero terminate string.
5302 * strtod.c: Set errno if no digits are found in fraction.
5304 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
5306 * java/lang/reflect/Modifier.java: New file.
5308 * java/lang/VirtualMachineError.java: Rewrote from scratch.
5309 * java/lang/VerifyError.java: Rewrote from scratch.
5310 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5311 * java/lang/UnknownError.java: Rewrote from scratch.
5312 * java/lang/StackOverflowError.java: Rewrote from scratch.
5313 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5314 * java/lang/InternalError.java: Rewrote from scratch.
5315 * java/lang/IllegalAccessError.java: Rewrote from scratch.
5316 * java/lang/ExceptionInInitializerError.java: New file.
5317 * java/lang/Error.java: Rewrote from scratch.
5318 * java/lang/ClassFormatError.java: Rewrote from scratch.
5319 * java/lang/ClassCircularityError.java: Rewrote from scratch.
5320 * java/lang/AbstractMethodError.java: Rewrote from scratch.
5321 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5322 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5323 * java/lang/LinkageError.java: Rewrote from scratch.
5324 * java/lang/IncompatibleClassChangeError.java: Rewrote from
5326 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5328 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5329 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5331 * include/cni.h (JvAllocObject): Moved from prims.cc.
5333 * prims.cc (JvAllocObject): Moved to cni.h.
5334 (_Jv_AllocObject): Use _Jv_FinalizeObject.
5335 (finalize_name): Removed.
5337 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
5339 * java/lang/Class.h (Class): Added size() method.
5340 * prims.cc (_Jv_MonitorEnter): Removed.
5341 (_Jv_MonitorExit): Removed.
5342 * java/lang/Object.h (JvSyncInfo): Removed.
5343 * Makefile.in: Rebuilt.
5344 * Makefile.am (nat_headers): Added Cloneable.h,
5345 CloneNotSupportedException.h.
5346 * java/lang/Object.h: Rewrote.
5347 * java/lang/natObject.cc: Rewrote from scratch.
5348 * java/lang/Object.java: Rewrote from scratch.
5350 * java/io/natFile.cc: Conditionally include <dirent.h>.
5351 (list): If no <dirent.h>, always return NULL.
5352 * configure: Rebuilt.
5353 * configure.in: Check for dirent.h.
5355 * prims.cc (lookupArray): Don't use sprintf.
5357 * java/util/Hashtable.java (containsKey): Use `abs' to compute
5364 * java/util/Hashtable.java (hsize): Renamed from size to avoid
5365 name conflict with method.
5367 * include/javaprims.h (java::util): Added HashtableEntry.
5369 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
5371 * java/util/Hashtable.java: Rewritten.
5373 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5375 * java/io/natFileDescriptor.cc (write): Correctly test `write'
5379 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5382 * posix-threads.cc (_Jv_CondWait): Now returns int.
5383 * include/javaprims.h (java::lang): Added
5384 IllegalMonitorStateException.
5385 * Makefile.in: Rebuilt.
5386 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5387 * include/no-threads.h (_Jv_CondDestroy): Removed.
5388 (_Jv_MutexDestroy): Removed.
5389 (_Jv_CondWait): Now returns int.
5390 (_Jv_CondNotify): Likewise. Added mutex argument.
5391 (_Jv_CondNotifyAll): Likewise.
5392 (_Jv_MutexLock): Always succeed.
5393 (_Jv_MutexUnlock): Likewise.
5394 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5395 (_Jv_HaveMutexDestroy): Define.
5396 (_Jv_CondNotify): Now returns int. Added mutex argument.
5397 (_Jv_CondNotifyAll): Likewise.
5398 * include/quick-threads.h (_Jv_CondDestroy): Removed.
5399 (_Jv_MutexDestroy): Removed.
5400 (_Jv_CondWait): Now returns int.
5401 (_Jv_CondNotify): Likewise. Added mutex argument.
5402 (_Jv_CondNotifyAll): Likewise.
5403 * java/lang/natObject.cc (finalize_sync_info): New function.
5404 (init_mutex): Initialize `init' and register finalizer if
5407 (init_mutex): Use it.
5409 (notifyAll): Use it.
5411 (notify): Throw IllegalMonitorStateException on failure.
5412 (notifyAll): Likewise.
5413 (wait): Likewise. Also, throw InterruptedException if
5415 Include cni.h, Thread.h, IllegalMonitorStateException.h,
5416 InterruptedException.h, IllegalArgumentException.h.
5417 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5419 * java/lang/natString.cc: Renamed all `JvPriv' functions.
5420 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5421 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5422 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5423 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5424 * quick-threads.cc: Renamed all `JvPriv' functions.
5425 * prims.cc: Renamed all `JvPriv' functions.
5426 * posix-threads.cc: Renamed all `JvPriv' functions.
5427 * nogc.cc: Renamed all `JvPriv' functions.
5428 * no-threads.cc: Renamed all `JvPriv' functions.
5429 * boehm.cc: Renamed all `JvPriv' functions.
5430 * include/quick-threads.h: Renamed all `JvPriv' functions.
5431 * include/posix-threads.h: Renamed all `JvPriv' functions.
5432 * include/no-threads.h: Renamed all `JvPriv' functions.
5433 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5435 * include/no-threads.h (JvPrivCondWait): Wrote minimal
5437 (JvPrivCondNotify): Do nothing.
5438 (JvPrivCondNotifyAll): Do nothing.
5440 * prims.cc (processClass): Handle case where state is
5443 * java/lang/natFirstThread.cc: Include <stdlib.h>
5445 * configure: Rebuilt.
5446 * configure.in: Fixed sense of --enable-libjava-debug.
5448 * java/lang/natThread.cc (join): Declare `t' outside the loop so
5449 it can be used afterward by the assertion.
5451 * configure: Rebuilt.
5452 * configure.in: When cross-compiling, assume alloca.
5454 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5455 __builtin_alloca (autoconf docs are wrong here).
5457 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5459 (available): Use `FD_ZERO' (typo fix).
5461 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5463 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5464 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5466 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5467 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5470 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5472 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
5474 * java/lang/natDouble.cc: Declare alloca safely.
5476 * configure, include/config.h.in: Rebuilt.
5477 * configure.in: Add alloca check.
5479 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
5481 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5482 condition while calling notify.
5483 (join): Remove `curr_nt' from `nt's join list, not vice versa.
5484 (interrupt): Hold mutex for interrupt condition while calling
5487 * java/lang/natString.cc (init): Allocate and try to read `count'
5488 characters, not `count - offset' characters.
5490 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5491 Correctly compute `count'.
5493 * java/lang/Boolean.java (getBoolean): Return false if property
5496 * java/lang/System.java (setProperties): Set prop_init.
5498 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
5500 * java/io/PrintStream.java (println): Use line.separator, not
5502 * java/lang/System.java (out, err): Make both autoflush streams.
5503 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5505 * include/config.h.in: Rebuilt.
5506 * acconfig.h (HAVE_MEMCPY): Removed.
5507 * configure: Rebuilt.
5508 * configure.in: Never define HAVE_MEMCPY.
5510 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5512 (_Jv_AllocString): Use JvAllocObject again.
5513 * java/lang/Class.h (thread): New field.
5514 (_Jv_AllocString): No longer a friend.
5515 * prims.cc (processClass): Removed dead code. Changed to more
5516 closely follow the Java Language Specification.
5517 (processClass): Return early if already at the right state.
5519 * prims.cc (JvNewStringUTF): Removed.
5520 * include/cni.h (JvNewStringUTF): New function.
5521 (_Jv_NewStringUTF): Declare as `extern "C"'.
5522 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5524 * java/lang/natDouble.cc: Added copyright info and header
5525 comment. Include <stdlib.h>.
5526 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
5527 bytes as are chars in string.
5529 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
5531 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5535 * java/lang/System.java (init_properties): Now native.
5536 * java/lang/natSystem.cc (init_properties): New method.
5537 Include java/util/Properties.h.
5539 * Makefile.in: Rebuilt.
5540 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5541 OutputStreamWriter.h, ByteArrayInputStream.h,
5542 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5543 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5544 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5545 Properties.h, Hashtable.h, Dictionary.h.
5548 * include/javaprims.h (java::io): Added Reader, Writer,
5549 InputStreamReader, OutputStreamWriter,
5550 UnsupportedEncodingException, ByteArrayInputStream,
5551 ByteArrayOutputStream, EOFException, SyncFailedException,
5552 PushbackInputStream.
5553 (java::lang): Added Cloneable.
5554 (java::util): Added NoSuchElementException, VectorEnumeration,
5555 Dictionary, HashtableEnumeration, PropertiesEnumeration.
5557 * java/io/PipedReader.java: New file.
5559 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
5561 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5564 * java/io/io-defs.h: Removed.
5566 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5567 (FileInputStream): Use new constructor. Can throw IOException.
5569 * java/lang/System.java (getProperty): Don't throw
5570 NullPointerException.
5572 * java/io/RandomAccessFile.java: Rewrote from scratch.
5574 * java/io/natFileDescriptor.cc: Include EOFException.h.
5576 (length): New method.
5577 (getFilePointer): New method.
5579 (available): New method.
5580 * java/io/FileDescriptor.java (SET, CUR): New constants.
5581 (seek, length, getFilePointer, read, available): New decls.
5583 * java/io/PipedWriter.java: New file.
5584 * java/io/StringWriter.java: New file.
5585 * java/io/CharArrayWriter.java: New file.
5586 * java/io/CharConversionException.java: New file.
5587 * java/io/BufferedWriter.java: New file.
5588 * java/io/FilterWriter.java: New file.
5589 * java/io/FileWriter.java: New file.
5591 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5592 OutputStreamWriter.h, NullPointerException.h,
5593 ByteArrayInputStream.h, InputStreamReader.h.
5594 (getBytes): New method.
5595 (init): Throw NullPointerException.
5596 (init): New function.
5597 * java/lang/String.java (getBytes): Added missing decl.
5598 (getBytes): New method.
5599 (String): Added byte[]-based constructors.
5600 (copyValueOf): Wrote.
5601 (init): Declare variant which takes byte array and encoding.
5602 Import java.io.UnsupportedEncodingException.
5604 * java/io/File.java: Rewrote from scratch.
5605 * java/io/natFileDescriptor.cc: Rewrote from scratch.
5606 * java/io/FileDescriptor.java: Rewrote from scratch.
5607 * java/io/FilenameFilter.java: Rewrote from scratch.
5609 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5611 * java/io/SyncFailedException.java: New file.
5612 * java/io/UTFDataFormatException.java: Rewrote from scratch.
5613 * java/io/InterruptedIOException.java: Rewrote from scratch.
5614 * java/io/FileNotFoundException.java: Rewrote from scratch.
5615 * java/io/EOFException.java: Rewrote from scratch.
5616 * java/io/IOException.java: Rewrote from scratch.
5617 * java/io/PrintStream.java: Rewrote from scratch.
5618 * java/io/DataOutputStream.java: Rewrote from scratch.
5619 * java/io/BufferedOutputStream.java: Rewrote from scratch.
5620 * java/io/FilterOutputStream.java: Rewrote from scratch.
5621 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5622 * java/io/PipedOutputStream.java: Rewrote from scratch.
5623 * java/io/FileOutputStream.java: Rewrote from scratch.
5624 * java/io/OutputStream.java: Rewrote from scratch.
5625 * java/io/DataOutput.java: Rewrote from scratch.
5627 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
5629 * prims.cc (_Jv_CheckCast): Add missing ! operator.
5631 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
5633 * configure.in: Add --enable-libjava-debug
5635 * Makefile.am (nat_headers): Add java/lang/Float.h and
5638 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5640 * Makefile.in, configure, include/config.h.in: Rebuilt.
5642 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5644 * java/lang/Float.java: Rewritten
5645 * java/lang/Double.java: Rewritten
5646 * java/lang/natFloat.cc: toString() added.
5647 * java/lang/natDouble.cc: toString() added.
5648 * java/lang/natDouble.cc: doubleValueOf() added.
5649 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
5650 java/lang/strtod.c: added.
5651 * ieeefp.h: __sparc added.
5652 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5654 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
5656 * include/javaprims.h (java::lang): Added
5657 CloneNotSupportedException.
5659 * java/lang/Object.java (clone): No longer native. Implemented.
5660 * java/lang/natObject.cc (clone): Removed.
5662 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
5664 * prims.cc: Don't make definitions `extern "C"'.
5665 (_Jv_RegisterClass): Renamed from registerClass.
5666 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5667 (_Jv_NewArray): Likewise.
5668 (_Jv_NewMultiArray): Likewise.
5669 (_Jv_CheckCast): Likewise.
5670 (_Jv_LookupInterfaceMethod): Likewise.
5671 (_Jv_CheckArrayStore): Likewise.
5672 (_Jv_RegisterClass): Likewise.
5674 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5675 * configure: Rebuilt.
5676 * configure.in: Don't check for fmod; it is provided by the fdlibm
5678 * prims.cc (fmod): Removed.
5680 * java/lang/natString.cc (charAt): Use _Jv_uint.
5681 * java/lang/Class.h (class JvField): Use _Jv_ushort.
5682 * prims.cc (HASH_CHARS): Use _Jv_ushort.
5683 (equalUtf8Consts): Likewise.
5684 (internalAddClass): Use _Jv_uint.
5685 (processClass): Likewise.
5686 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5687 (_Jv_uint): Renamed from uint32.
5688 (struct _Jv_Utf8Const): Changed members to use new type names.
5690 * configure: Rebuilt.
5691 * configure.in: Don't check for memcpy. Require memmove and a way
5693 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5695 (currentTimeMillis): Don't use #error.
5697 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
5699 * java/lang/Math.java: static member random renamed to random_ to
5700 avoid conflict with member function of the same name.
5701 * include/javaprims.h: java.util.Random added.
5703 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
5705 * include/java-chartables.h: Regenerated.
5706 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5709 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
5711 * java/lang/Math.java: Rewritten.
5712 * java/lang/natMath.cc: New file.
5713 * Files added from fdlibm:
5714 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5715 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5716 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5717 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5718 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5719 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5720 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5721 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5722 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5723 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5724 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5725 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5726 java/lang/k_cos.c, java/lang/sf_ceil.c,
5727 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5728 java/lang/ieeefp.h, java/lang/fdlibm.h
5729 * Makefile.am: rules added for compiling C files from fdlibm.
5731 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
5733 * chartables.pl: Minor documentation fixes.
5735 * configure: Rebuilt.
5736 * configure.in: Fixed --help output for --enable-fast-character.
5738 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
5740 * configure: Rebuilt.
5741 * configure.in: Recognize --enable-fast-character.
5742 * acconfig.h (COMPACT_CHARACTER): New define.
5743 * include/config.h.in: Rebuilt.
5744 * include/java-chartables.h: New file.
5745 * Makefile.in: Rebuilt.
5746 * Makefile.am (nat_files): Added natCharacter.o.
5747 * java/lang/natCharacter.cc: New file.
5748 * chartables.pl (set_attribute): New function.
5749 (@attributes, @second_attributes): New globals.
5750 ($ROMAN_START, $ROMAN_END): Likewise.
5751 (process_char): Call set_attribute when required.
5752 (print_char): Just print hex value.
5753 (print_block): Generate C++ syntax.
5754 (print_numerics): Likewise.
5755 (print_single_map): Likewise.
5756 (print_all_block): Likewise.
5757 (print_case_table): Likewise.
5758 (print_fast_tables): New function.
5759 Generate C++ code suitable for a header file.
5760 * java/lang/Character.java (table_search): Removed.
5761 (digit_value): Now native.
5762 (getNumericValue): Likewise.
5763 (getType): Likewise.
5764 Removed all automatically-generated tables.
5765 (Tamil_Digit_One): Removed.
5766 (isSpaceChar): Now native.
5767 (isTitleCase): Likewise.
5768 (isLowerCase): Likewise.
5769 (isUpperCase): Likewise.
5770 (toLowerCase): Likewise.
5771 (toTitleCase): Likewise.
5772 (toUpperCase): Likewise.
5773 (isDefined): Fixed sense of test.
5775 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
5777 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5779 (regionMatches): Likewise.
5781 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
5783 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5785 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5787 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5790 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5793 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5795 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
5797 * prims.cc (instanceof_class): Removed.
5798 (instanceof_array): Likewise.
5799 (instanceof): Likewise.
5800 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5801 (_Jv_CheckCast): Likewise.
5802 * java/lang/natClass.cc (isAssignableFrom): New method.
5803 * java/lang/Class.java (isAssignableFrom): Now native.
5805 * include/cni.h (JvThrow): Use `extern inline'.
5806 (JvAllocObject): Likewise.
5807 (JvInitClass): Likewise.
5809 * java/lang/natSystem.cc (arraycopy): Only check class of source
5812 * prims.cc (_Jv_CheckArrayStore): Wrote.
5813 (_Jv_MonitorEnter): Prefer `JvThrow'.
5814 Include ArrayStoreException.h.
5815 (_Jv_CheckCast): Indentation cleanup.
5817 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5819 * chartables.pl: New file.
5820 * java/lang/Character.java: Rewrote from scratch.
5822 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5824 * java/lang/ArithmeticException.java,
5825 java/lang/ArrayIndexOutOfBoundsException.java,
5826 java/lang/ArrayStoreException.java,
5827 java/lang/ClassCastException.java,
5828 java/lang/ClassNotFoundException.java,
5829 java/lang/CloneNotSupportedException.java,
5830 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5831 java/lang/IllegalArgumentException.java,
5832 java/lang/IllegalMonitorStateException.java,
5833 java/lang/IllegalThreadStateException.java,
5834 java/lang/IndexOutOfBoundsException.java,
5835 java/lang/InstantiationException.java,
5836 java/lang/InterruptedException.java,
5837 java/lang/NegativeArraySizeException.java,
5838 java/lang/NoSuchMethodException.java,
5839 java/lang/NullPointerException.java,
5840 java/lang/NumberFormatException.java,
5841 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5842 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5844 * java/lang/IllegalStateException.java,
5845 java/lang/NoSuchFieldException.java,
5846 java/lang/UnsupportedOperationException.java: Created.
5848 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5850 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5851 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5853 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5855 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5857 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5859 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5861 * Makefile.in: Rebuilt.
5863 * include/javaprims.h (java::lang): Added
5864 StringIndexOutOfBoundsException.
5866 * java/lang/String.java: Added header comment and FIXME comment for
5867 missing constructors/methods.
5868 (endsWith): Adjusted offset into string to look at just the last chars.
5869 Commented out undocumented method.
5871 * java/lang/natString.cc: Added includes for
5872 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5873 (String::init): Throw StringIndexOutOfBoundsException.
5874 (String::charAt): Throw StringIndexOutOfBoundsException.
5875 (String::substring): Throw StringIndexOutOfBoundsException.
5876 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5877 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5878 (String::compareTo): Return difference/offset between chars/strings.
5880 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5882 * java/lang/Boolean.java (TYPE): Added comment.
5884 * java/lang/Byte.java (decode): Added - commented out until dependent
5885 code for Integer is written.
5886 (compareTo): JDK 1.2 methods written.
5887 (hashCode): Added comment to note that values have been verified.
5889 * java/lang/Short.java (decode): Added - commented out until dependent
5890 code for Integer is written.
5891 (compareTo): JDK 1.2 methods written.
5892 (hashCode): Added comment to note that values have been verified.
5894 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5896 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5898 * include/javaprims.h (java::lang): Added VirtualMachineError,
5900 * Makefile.in: Rebuilt.
5901 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5902 VirtualMachineError.h.
5903 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5904 (lookupArray): Likewise.
5905 (makeUtf8Const): Likewise.
5906 (_Jv_AllocObject): Likewise.
5907 (_Jv_NewObjectArray): Likewise.
5908 Include OutOfMemoryError.h.
5910 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5911 to use JvNewStringLatin1.
5913 * java/io/io-defs.h: Include java/lang/IOException.h.
5914 * Makefile.in: Rebuilt.
5915 * Makefile.am (nat_headers): Added
5916 ArrayIndexOutOfBoundsException.h,
5917 ClassFormatError.h,ClassNotFoundException.h,
5918 ClassCircularityError.h, ClassCastException.h,
5919 IncompatibleClassChangeError.h, AbstractMethodError.h,
5920 IllegalAccessError.h, LinkageError.h, Error.h,
5921 NegativeArraySizeException.h, IOException.h.
5922 * include/cni.h (SignalError): Removed declaration.
5923 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5924 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5925 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5926 (newInstance): Likewise.
5927 (forName): Likewise.
5928 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5930 (read): Use JvThrow, not SignalError.
5935 (open_read): Likewise.
5936 (open_write): Likewise.
5939 (newstr): New function.
5940 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5942 (lastModifiedUnchecked): Likewise.
5943 (lengthUnchecked): Likewise.
5944 * include/javaprims.h (sorry): Removed declaration.
5945 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5946 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5947 ClassCastException, IncompatibleClassChangeError,
5948 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5949 * prims.cc (instanceof_array): Use JvFail, not sorry.
5951 Include ArrayIndexOutOfBoundsException.h,
5952 ClassFormatError.h,ClassNotFoundException.h,
5953 ClassCircularityError.h, ClassCastException.h,
5954 IncompatibleClassChangeError.h, AbstractMethodError.h,
5955 IllegalAccessError.h, NegativeArraySizeException.h.
5956 (_Jv_ThrowBadArrayIndex): Implemented.
5957 (JvNewStringUTF): Use JvFail, not sorry.
5958 (_Jv_FindClass): Likewise.
5959 (_Jv_NewArray): Likewise.
5960 (throwException): Removed.
5961 (getClass): Use JvThrow.
5962 (processClass): Likewise.
5963 (_Jv_NewObjectArray): Likewise.
5964 (_Jv_NewMultiArray): Likewise.
5965 (_Jv_CheckCast): Likewise.
5966 (_Jv_LookupInterfaceMethod): Likewise.
5967 (SignalError): Removed.
5968 (getClass): Use _Jv_NewStringUtf8Const to create String.
5970 * java/lang/natSystem.cc (arraycopy): Throw
5971 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5973 * Makefile.in: Rebuilt.
5974 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5976 * include/java-array.h: Mention gcjh, not gjavah.
5978 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5979 (canReadUnchecked): Likewise.
5980 (canWriteUnchecked): Likewise.
5981 (isFileUnchecked): Likewise.
5982 * java/io/natFileDescriptor.cc: Don't include cni.h.
5984 * java/lang/Thread.java (run__): Declare.
5985 * java/lang/natThread.cc (run__): New method, to avoid compiler
5987 (start): Use run__, not run_.
5989 * java/io/io-defs.h: Include cni.h and jvm.h.
5991 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5993 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5994 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5995 to natString.cc (with suitable renaming, inlines etc).
5996 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5997 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5998 * java/lang/String.h: Removed - now generated using gjavah.
5999 * java/lang/String.java: Re-written from scratch. Many native methods.
6000 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
6001 * java/lang/natString.cc: Many functions re-written for "compact
6002 strings" representation, or native java.lang.String methods added.
6003 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
6004 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
6005 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
6006 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
6007 * include/cni.h: Add inline method.
6008 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
6009 * include/javaprims.h: Moved some stuff frm String.h.
6010 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
6011 * Makefile.am (nat_header): Added Character.h and String.h.
6012 (String.h): Add new rule.
6014 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6016 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
6018 * posix-threads.cc: Include cni.h, jvm.h.
6019 * quick-threads.cc: Include cni.h, jvm.h.
6020 * nogc.cc: Include cni.h, not javaprims.h.
6021 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
6022 * java/lang/natThread.cc: Rearranged #include ordering. Don't
6023 include java-assert.h.
6024 * java/lang/natSystem.cc: Include cni.h. Don't include
6026 * java/lang/natRuntime.cc: Include cni.h. Don't include
6028 * prims.cc: Rearranged #include ordering. Don't include
6029 java-array.h or java-assert.h.
6030 * boehm.cc: Include config.h, cni.h.
6031 * exception.cc: Include config.h, cni.h.
6032 * include/jvm.h: Include java-assert.h.
6033 * include/cni.h: Include java/lang/Object.h. Don't include
6034 java-threads.h or java-array.h.
6036 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
6038 * java/lang/Boolean.java: Rewritten.
6040 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
6042 * java/lang/natFirstThread.cc (main_func): New typedef.
6043 (run): Use main_func, not JvPrivThreadStartFunc.
6044 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
6046 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
6048 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
6051 Can't throw Java exceptions with C++ `throw':
6052 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
6053 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
6054 (setPriority): Likewise.
6058 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
6059 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
6061 Can't catch Java exceptions from C++:
6062 * java/lang/natThread.cc (finish_): New method.
6064 * java/lang/Thread.java (run_): Rewrote in Java.
6065 (finish_): New native method.
6067 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
6069 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
6071 * include/javaprims.h (java::io): Added Serializable.
6073 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
6075 * java/util/EmptyStackException.java,
6076 java/util/NoSuchElementException.java: Rewritten.
6078 * java/util/ConcurrentModificationException.java,
6079 java/util/MissingResourceException.java,
6080 java/util/TooManyListenersException.java: Created.
6082 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6084 * include/cni.h (JvThrow): New function.
6085 * include/javaprims.h (_Jv_Throw): Declare.
6087 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
6089 * java/util/Observable.java: Rewritten.
6091 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
6093 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6094 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6095 Include NullPointerException.h.
6097 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
6099 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6100 assignability checks. Don't bother using memcpy.
6102 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6104 * include/quick-threads.h (JvPrivThreadWait): New function.
6105 * include/no-threads.h (JvPrivThreadWait): New function.
6106 * include/posix-threads.h (JvPrivThreadWait): New function.
6107 * prims.cc (JvRunMain): Call JvPrivThreadWait.
6109 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6111 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6112 offsets by size of type that is being copied.
6114 * java/lang/natThread.cc (start): Don't pass `object' argument to
6116 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6117 * posix-threads.cc (JvPrivThreadStart): Removed `object'
6119 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6120 always pass thread as object.
6121 * include/quick-threads.h, include/posix-threads.h,
6122 include/no-threads.h (JvPrivThreadStart): Removed `object'
6125 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
6127 * java/util/Dictionary.java: Rewritten.
6129 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
6131 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6132 (JvPrivThreadDestroy): Likewise.
6134 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
6136 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6138 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6140 * java/lang/natSystem.cc: Rewrote from scratch.
6141 * java/lang/System.java: Rewrote from scratch.
6142 * java/lang/Class.h (Class): Declare isAssignableFrom.
6143 * include/javaprims.h (java::lang): Added ArrayStoreException,
6144 IndexOutOfBoundsException.
6145 * Makefile.in: Rebuilt.
6146 * Makefile.am (nat_headers): Added ArrayStoreException.h,
6147 IndexOutOfBoundsException.h.
6148 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6149 * include/jvm.h (_Jv_HashCode): New function.
6151 * java/lang/natThread.cc (suspend): Call checkAccess.
6153 * java/lang/Thread.java (setDaemon): Call checkAccess.
6155 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
6157 * java/lang/Runtime.java: Rewrote from scratch.
6158 * java/lang/natRuntime.cc: Rewrote from scratch.
6160 * nogc.cc (JvPrivGCTotalMemory): New function.
6161 (JvPrivGCFreeMemory): Likewise.
6162 (total): New global.
6163 (JvPrivAllocObj): Increment total.
6164 (JvPrivAllocArray): Likewise.
6165 (JvPrivAllocBytes): Likewise.
6166 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6167 * boehm.cc (JvPrivGCTotalMemory): New function.
6168 (sum_blocks): Likewise.
6169 (JvPrivGCFreeMemory): Likewise.
6171 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
6173 * include/javaprims.h (java::lang): Added FirstThread.
6174 * java/lang/natFirstThread.cc: New file.
6175 * java/lang/FirstThread.java: New file.
6176 * prims.cc (main_signature): Removed.
6177 (main_name): Removed.
6178 #include FirstThread.h.
6179 * Makefile.in: Rebuilt.
6180 * Makefile.am (TFRIEND): Removed.
6181 (java/lang/Thread.h): Likewise.
6182 (FTFRIEND): New macro.
6183 (java/lang/FirstThread.h): New target.
6184 (nat_files): Added natFirstThread.o.
6185 (nat_headers): Added FirstThread.h.
6186 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6187 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6189 * java/lang/Thread.java (setName): Throw IllegalArgumentException
6193 * java/lang/natThread.cc (start): Synchronize the thread.
6194 (stop): Synchronize the thread.
6196 * java/lang/ThreadDeath.java: Rewrote from scratch.
6198 * Makefile.in: Rebuilt.
6199 * Makefile.am (TGFRIEND): New macro.
6200 (java/lang/ThreadGroup.h): New target.
6201 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6203 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6205 * nogc.cc: Include config.h.
6207 * java/lang/ThreadGroup.java: Rewrote from scratch.
6209 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6211 * java/lang/Thread.java (checkAccess): Only call in to security
6212 manager if it exists.
6213 (Thread): Don't check access when creating the first thread. Add
6214 this thread to the appropriate ThreadGroup.
6216 * java/lang/natThread.cc (run_): Call uncaughtException method on
6219 * java/lang/Runnable.java: Rewrote from scratch.
6220 * java/lang/Thread.java: Updated copyright comment to correct
6223 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
6225 * java/util/Random.java: Rewritten.
6227 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6229 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6230 trailing 0 in array[].
6232 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
6234 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
6235 and RUNTESTFLAGS from AM_MAKEFLAGS.
6236 (SUBDIRS): Conditionally include testsuite.
6237 * Makefile.in: Rebuilt.
6239 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
6241 * java/lang/Object.h: Include java-assert.h.
6243 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
6245 * Makefile.am: Add testsuite directory.
6246 * configure.in: Build testsuite/Makefile.
6247 * Makefile.in, configure: Rebuilt.
6249 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
6251 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6252 * include/jvm.h (_Jv_StartFirstThread): Declare.
6254 * include/javaprims.h (java::lang): Added Exception,
6257 * Makefile.in: Rebuilt.
6258 * Makefile.am (nat_headers): Added NullPointerException.h,
6259 InterruptedException.h, IllegalArgumentException.h, Exception.h,
6260 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6261 (java/lang/Thread.h): New target.
6262 (TFRIEND): New macro
6264 * include/java-assert.h (JvFail): Use 0 and not NULL.
6266 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6267 instead of assuming we are a friend of Thread.
6268 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6269 instead of assuming we are a friend of Thread.
6271 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
6273 * java/lang/natThread.cc: Rewrote from scratch.
6274 * java/lang/Thread.java: Rewrote from scratch.
6275 * prims.cc (JvRunMain): Use new Thread constructor.
6276 * include/javaprims.h (java::lang): Added InterruptedException.
6277 * Makefile.in: Rebuilt.
6278 * Makefile.am (nat_headers): Added java/lang/Thread.h.
6279 * java/lang/Thread.h: Removed.
6280 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6281 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6283 * posix-threads.cc (JvPrivThreadJoin): Removed.
6284 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6285 (really_start): Don't notify join_cond.
6286 (JvPrivThreadStart): Added `data' argument.
6287 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6288 (JvPrivThreadJoin): Likewise.
6289 Use JvFail instead of sorry.
6290 (JvPrivThreadSuspend): Removed.
6291 (JvPrivThreadResume): Removed.
6292 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6293 (JvPrivThreadJoin): Likewise.
6294 (JvPrivThreadSuspend): Use JvFail.
6295 (JvPrivThreadResume): Likewise.
6296 (JvPrivThreadSuspend): Removed.
6297 (JvPrivThreadResume): Likewise.
6298 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6299 (JvPrivThread_t): Removed join_mutex, join_cond.
6300 Use JvFail instead of sorry.
6301 (JvPrivThreadSuspend): Removed.
6302 (JvPrivThreadResume): Likewise.
6304 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
6306 * java/util/Observer.java: Rewritten
6307 * java/util/Enumeration.java: Rewritten
6309 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
6311 * java/util/StringTokenizer.java: Rewritten
6312 * java/util/Stack.java: Added COPYRIGHT-TBD comment
6313 * java/util/Vector.java: Added COPYRIGHT-TBD comment
6314 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6316 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
6318 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6321 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6322 Include java-assert.h.
6323 * include/java-assert.h: New file.
6324 * prims.cc (_Jv_Abort): New function.
6325 Include java-assert.h, not assert.h.
6326 (_Jv_MonitorExit): Use JvAssert.
6327 (resolveConstants): Likewise.
6328 (processClass): Likewise.
6329 (JvRunMain): Assert that method is found.
6331 * configure: Rebuilt.
6332 * configure.in: Check for test subdir.
6333 * Makefile.in: Rebuilt.
6334 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6336 * prims.cc (JvRunMain): Use NORM_PRIORITY.
6337 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6339 * prims.cc (resolveConstants): Removed unused variables.
6340 (processClass): Likewise.
6342 * include/quick-threads.h (JvPrivThreadCurrent): Use
6344 * quick-threads.cc (destroy_data): New function.
6345 (JvPrivInitThreads): Create key.
6346 (JvPrivThreadKey): New global.
6347 (JvPrivThreadStart): Use coop_setspecific.
6349 * include/quick-threads.h, include/posix-threads.h,
6350 include/no-threads.h, no-threads.cc, quick-threads.cc,
6351 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6353 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
6355 * include/no-threads.h (JvPrivThreadInitData): Don't set
6358 * include/quick-threads.h (JvPrivCondWait): coop function now
6360 (JvPrivThreadJoin): Likewise.
6362 * java/lang/Thread.h (Thread): Updated declaration of
6364 * include/quick-threads.h, include/posix-threads.h: Updated
6365 declaration of JvPrivThreadStart.
6366 * include/no-threads.h (JvPrivThreadStart): Changed definition
6368 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6369 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6370 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6372 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
6374 * quick-threads.cc (qthrow): New function.
6375 (JvPrivInitThreads): New function.
6376 (started): New global.
6377 (JvPrivThreadStart): Call coop_start if required.
6378 * include/quick-threads.h (JvPrivThreadCancel): Implement.
6379 (JvPrivThreadDestroy): Likewise.
6380 (JvPrivInitThreads): Removed.
6381 * include/posix-threads.h (JvPrivThreadCancel): Added error
6383 * java/lang/natThread.cc (stop_): Pass exception to
6386 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
6388 * include/javaprims.h (java::lang): Added
6389 IllegalArgumentException, IllegalThreadStateException, Math,
6390 NullPointerException, ThreadDeath.
6391 (java::util): Added Enumeration.
6393 * Makefile.in: Rebuilt.
6394 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6396 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6398 (threadsv): Renamed from threads to avoid clash in C++ header.
6399 (groupsv): Likewise.
6400 * include/no-threads.h (JvPrivThreadStart): Removed.
6401 * no-threads.cc (JvPrivThreadStart): New function.
6402 * java/lang/Thread.java (Thread): New constructor for internal use.
6403 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6404 (Thread): Declare constructor.
6405 * prims.cc (JvRunMain): Create the initial Thread and
6407 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6408 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6409 Removed `daemon' argument.
6411 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6412 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6414 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6416 * Makefile.in: Rebuilt.
6417 * Makefile.am (INCLUDES): Include THREADINCS.
6419 * configure: Rebuilt.
6420 * configure.in: Recognize `qt' as a threads package.
6422 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
6424 * java/util/Stack.java (pop): Null out topmost node for robustness.
6426 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
6428 * java/util/Stack.java: Rewritten.
6429 * java/util/Vector.java (isEmpty): Simplified expression.
6431 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
6433 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6434 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6436 * include/java-array.h (JvNewObjectArray): Created inline to
6439 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6442 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
6444 * java/util/Vector.java: Rewritten.
6445 * java/io/Serializable.java: Created.
6447 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
6449 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6450 Infinity is 1/0, not 1/1.
6452 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6454 * configure: Rebuilt.
6455 * configure.in: Removed duplicate AC_ARG_WITH.
6457 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
6459 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6461 (_Jv_InitClass): Renamed from soft_initialise_class.
6462 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6463 (_Jv_CheckCast): Renamed from soft_checkcast.
6464 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6465 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6466 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6467 * include/cni.h (JvInitClass): New function.
6468 (_Jv_InitClass): Renamed from soft_initialise_class.
6470 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
6472 * configure: Rebuilt.
6473 * configure.in (CXX): Don't set.
6474 * Makefile.in: Rebuilt.
6475 * Makefile.am (AM_CXXFLAGS): New macro.
6477 * Makefile.in: Rebuilt.
6478 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6479 nogc.o): New target.
6481 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6483 (mark_array): Likewise.
6485 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
6487 * java/lang/Class.h (JvMethod): Removed some unused fields.
6488 (JvField.info): Removed unused idx union variant.
6490 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
6492 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6495 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
6497 * configure.in, configure (CXX): Add -fvtable-thunks.
6499 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
6501 * java/lang/Object.java (finalize): Move first.
6502 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
6503 (Object): Re-arrange order to match Object.java.
6505 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
6507 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
6508 * java/lang/natString.cc (hashChars): Likewise.
6510 * prims.cc (RuntimeClass): New macro.
6511 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
6513 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
6515 * Makefile.in: Rebuilt.
6516 * Makefile.am (AM_MAKEFLAGS): New macro.
6518 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
6520 * nogc.cc: Include <javaprims.h>.
6522 * Makefile.in: Rebuilt.
6523 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6525 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
6527 * exception.cc (terminate): Removed.
6528 (unexpected): Removed.
6530 * configure: Rebuilt.
6531 * configure.in: Handle case where target subdir is ".".
6533 * configure: Rebuilt.
6534 * configure.in: Compute COMPPATH based on --with-target-subdir
6535 option. Added --with-target-subdir and --with-cross-host. Use
6536 --with-cross-host to determine when a cross compiler is in use.
6538 * Makefile.in: Rebuilt.
6539 * Makefile.am (GJAVAH): Include COMPPATH.
6540 * configure: Rebuilt.
6541 * configure.in: Subst COMPPATH.
6543 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
6545 * prims.cc (lockMutex): Removed.
6546 (unlockMutex): Likewise.
6547 (processClass): Lock the class using a JvSynchronize object.
6549 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
6551 * java/lang/natString.cc (gc_calloc_fixed): Removed.
6552 (gc_free_fixed): Removed.
6553 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6554 freeing old value of strhash.
6556 * exception.cc (_Jv_type_matcher): Cast first argument to
6559 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
6561 * include/java-array.h (jstringArray): New type.
6562 * java/lang/natSystem.cc (setProperty): Removed.
6563 (initProperties): Directly call JvNewStringLatin1 for arguments.
6564 * java/util/natDate.cc: Include java/util/Date.h, not
6567 * java/io/FileDescriptor.java (available): No longer static.
6568 * java/lang/natDouble.cc (Double): Removed class definition.
6569 * include/javaprims.h (java::lang::Number): Declare.
6570 (java::lang::NumberFormatException): Likewise.
6571 (java::io::FilenameFilter): Likewise.
6572 (java::lang::Character): Likewise.
6573 (java::lang::Error): Likewise.
6574 (java::lang::SecurityManager): Likewise.
6575 (java::util::Vector): Likewise.
6576 (java::io::FileNotFoundException): Likewise.
6577 (java::io::IOException): Likewise.
6578 (java::lang::NativeLang): Likewise.
6579 (java::lang::UnsatisfiedLinkError): Likewise.
6580 (java::util::StringTokenizer): Likewise.
6581 (java::io::InputStream, java::io::OutputStream): Likewise.
6582 (java::io::PrintStream, java::lang::SecurityException): Likewise.
6583 (java::util::Hashtable): Likewise.
6584 * Makefile.in: Rebuilt.
6585 * Makefile.am (nat_headers): Added java/lang/Double.h,
6586 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6587 (MOSTLYCLEANFILES): Added nat_headers.
6588 * include/jvm.h: Moved many defines, declarations, and functions
6589 to java/lang/Class.h.
6590 (struct JvSyncInfo): Moved to java/lang/Object.h.
6591 (UTF8_GET): Moved to java/lang/String.h.
6593 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
6595 * java/io/io-defs.h: Don't include java-io.h.
6596 * include/java-io.h: Removed.
6597 * include/javaprims.h: Include java::io.
6599 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
6601 * include/java-io.h (File): Removed
6602 (FileDescriptor): Likewise.
6604 * java/io/io-defs.h: Include java/io/File.h and
6605 java/io/FileDescriptor.h.
6607 * Makefile.in: Rebuilt.
6608 * Makefile.am (GJAVAH): New macro.
6609 (.class.h): New rule.
6610 (SUFFIXES): Added .h.
6611 (nat_headers): New macro.
6612 ($(nat_headers)): New target.
6613 (BUILT_SOURCES): Added nat_headers.
6615 * include/java-util.h: Removed.
6617 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
6619 * include/java-io.h: Changed to avoid java-lang.h.
6620 * java/lang/natThread.cc: Include java/lang/Thread.h, not
6622 * java/lang/natSystem.cc: Include java/lang/System.h, not
6624 * java/lang/natString.cc: Include java/lang/String.h, not
6626 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6628 * java/lang/natClass.cc: Include java/lang/Class.h, not
6630 * java/lang/natDouble.cc: Include java/lang/Object.h, not
6632 * java/lang/natObject.cc: Include java/lang/Object.h, not
6634 * exception.cc: Don't include java-lang.h.
6635 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6636 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6637 * nogc.cc: Don't include java-lang.h.
6638 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6639 * prims.cc (processClass): Don't use `init_type'; just cast to
6641 Include java/lang/Class.h and jvm.h, not java-lang.h.
6642 (JvAllocObject): Wrote single-argument version.
6643 (PrimClass): Inherit from Class.
6644 (initPrimClass): Removed.
6645 * include/java-lang.h: Removed.
6646 * include/jvm.h: Declare struct _dispatchTable.
6647 * include/cni.h: Don't declare _Jv_MonitorEnter,
6648 _Jv_MonitorExit, struct _dispatchTable.
6649 * include/javaprims.h: Moved all typedefs here, from cni.h.
6650 * java/lang/Class.h: New file.
6651 * include/java-array.h: New file.
6652 * java/lang/Object.h: New file.
6654 * prims.cc (classFromSig): Now static.
6656 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
6658 * include/cni.h: Don't mention soft_new.
6659 * include/java-lang.h (Object): Don't mention soft_new. Mention
6660 _Jv_NewPrimArray, not newPrimArray.
6661 * prims.cc (soft_new): Removed.
6662 (_Jv_NewArray): Renamed from soft_newarray.
6663 (soft_anewarray): Use JvNewObjectArray.
6664 (newArray): Likewise.
6665 (newRefArray): Removed.
6666 (_Jv_NewPrimArray): Renamed from newPrimArray.
6667 (equalUtf8Consts): Now static.
6668 (soft_instanceof): Removed.
6669 * java/lang/natDouble.cc (doubleToString): Now static.
6671 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6672 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6675 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
6677 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6679 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6681 * include/no-threads.h (JvPrivMutexLock): Always return -1.
6682 (JvPrivMutexUnlock): Likewise.
6683 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6684 Return value now jint.
6685 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
6688 * Makefile.in: Rebuilt.
6689 * Makefile.am: Don't allow `jV' names.
6690 (maintainer-check): Depend on libjava.a.
6691 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6693 * Makefile.in: Rebuilt.
6694 * Makefile.am (NM): New macro.
6695 (maintainer-check): New target.
6697 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6699 * configure: Rebuilt.
6700 * configure.in: Use --enable-threads, not --enable-gc. Fix
6701 documentation for --enable-threads. Changed option to work like
6702 identical option in gcc/configure.
6704 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
6706 * boehm.cc (mark_array): Use JvGetArrayLength.
6708 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
6710 * exception.cc: New file (mostly written by Andrew MacLeod),
6711 exception handling support.
6712 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
6713 Remove -fexceptions - it is now the default.
6715 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
6716 (JvAllocObject): Renamed to _Jv_AllocObject.
6717 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
6718 (loadClass): Renamed to _Jv_FindClass.
6719 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
6720 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6721 * include/java-lang.h (JvGetArrayLength): New CNI function.
6722 * include/jvm.h (_Jv_FindClass): Added declaration.
6724 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
6726 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
6728 * java/lang/natClass.cc (getName): Add implementation.
6729 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6731 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
6733 * Makefile.in: Rebuilt.
6734 * Makefile.am (.class.o): Added -fexceptions.
6736 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
6738 * configure: Rebuilt.
6739 * configure.in: Don't check for __nanosleep.
6740 * posix-threads.cc (nanosleep): Never define.
6742 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
6744 * posix-threads.cc (JvPrivCondWait): Fixed computation of
6747 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
6749 * java/lang/natThread.cc (enumerate): Uncommented.
6750 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6751 (interrupt): Call it.
6753 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
6755 * configure: Rebuilt.
6756 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6758 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
6760 * include/no-threads.h (JvPrivThreadInterrupt): New method.
6761 * include/java-lang.h (Thread): Added `interrupted_' method.
6762 * java/lang/Thread.java (interrupted_): New method.
6763 * java/lang/natThread.cc (join): Possibly throw interrupted
6764 exception after join finishes.
6765 (interrupted_): New method.
6766 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6768 (JvPrivThreadJoin): New function.
6769 (really_start): Notify all threads waiting for this thread.
6770 (struct starter): Added `data' member.
6771 (JvPrivThreadStart): Set it.
6772 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6774 (JvPrivThreadJoin): No longer inline.
6775 (JvPrivThreadInterrupt): New function.
6777 * include/no-threads.h (JvPrivThreadSleep): Removed.
6778 * posix-threads.cc (JvPrivThreadSleep): Removed.
6780 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
6782 * configure: Rebuilt.
6783 * configure.in (THREADOBJS): Initialize to no-threads.o in
6785 * posix-threads.cc (key): New global.
6786 (JvPrivInitThreads): New function.
6787 (really_start): Set thread-specific data to point to object.
6788 (JvPrivThreadStart): Added `daemon' argument.
6789 (JvPrivThreadSleep): Added `data' argument.
6790 * include/posix-threads.h (JvPrivInitThreads): Removed
6792 (JvPrivThreadCurrent): New function.
6793 * include/no-threads.h (JvPrivThreadInitData): Initialize
6794 JvPrivOnlyThread. Added `thread' argument.
6795 (JvPrivThreadCurrent): New function.
6796 (JvPrivThreadStart): Added `daemon' argument.
6797 * no-threads.cc: New file.
6798 * java/lang/natThread.cc (init_data): New function.
6800 (start): Set `alive' member.
6801 (stop_): Clear `alive' member.
6802 (destroy): Likewise.
6803 (currentThread): Implemented.
6804 (start): Pass `daemon' argument to JvPrivThreadStart.
6806 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6807 (Thread): Added `init_data' method.
6808 * java/lang/Thread.java (alive, data): New instance variables.
6809 (init_data): New private method.
6810 (isAlive): No longer native.
6812 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6814 * include/java-lang.h (JvRunMain): Declare.
6815 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6816 * prims.cc (JvRunMain): New function.
6817 (main_signature, main_name): New globals.
6819 * boehm.cc (mark_array): Use `elements' function and not
6820 operator[] on jarray.
6822 * posix-threads.cc: Include <config.h>. Define nanosleep if
6825 * configure: Rebuilt.
6826 * configure.in: Check for _nanosleep.
6828 * configure: Rebuilt.
6829 * configure.in: Check for pthread_mutexattr_settype.
6831 * include/cni.h (class JvSynchronize): New class.
6832 * java/lang/Thread.java (sleep): Throws InterruptedException.
6833 (join): Throws InterruptedException.
6834 (resume): Not native.
6835 (resume_): New method.
6836 (start): Now synchronized.
6837 (stop_): New method.
6838 (Thread): Synchronize when accessing threadNumber.
6840 * java/lang/natThread.cc (throwException): New macro.
6841 (sleep): Throw InterruptedException.
6844 * include/java-lang.h (Runtime): Added interrupted().
6846 * boehm.cc (call_finalizer): Correctly initialize jobj.
6847 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6849 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6852 * configure: Rebuilt.
6853 * configure.in: Added support for --disable-threads.
6854 * include/no-threads.h: New file.
6856 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6858 * Makefile.in: Rebuilt.
6859 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6860 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6861 (libjava_a_LIBADD): Added THREADOBJS.
6862 * configure: Rebuilt.
6863 * configure.in: Added --with-threads option.
6864 * posix-threads.cc: New file.
6865 * include/posix-threads.h: New file.
6866 * include/java-lang.h (Object): Added static member sync_mutex,
6867 member sync_info, method init_mutex.
6868 (struct JvSyncInfo): New struct.
6869 Include "java-threads.h".
6870 * prims.cc (soft_monitorenter): Wrote.
6871 (soft_monitorexit): Likewise.
6872 * java/lang/natObject.cc (init_mutex): New method.
6876 (sync_mutex): Define.
6877 Include "java-threads.h".
6879 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6881 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6882 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6884 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6886 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6887 Added extern "Java" in places to tell G++ Object is a "Java" type.
6888 Other minor renaming and fixes.
6889 * include/java-io.h (FileDescriptor): Add friend class declarations.
6890 G++ no longer allows non-Java types in method parameters and results
6891 of Java classes. Converted most offending methods to friends.
6892 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6893 * java/lang/natSystem.cc (setProperty): Make friend.
6894 * java/lang/natString.cc, include/java-lang.h (String): Rename
6895 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6896 * include/java-lang.h (JArray): Remove getData and eoprator[].
6897 Add elements friend function instead.
6898 * java/lang/natSystem.cc (arraycopy): Use elements function.
6899 * java/io/natFileDescriptor.cc (read, write): Likewise.
6900 * include/java-lang.h (Object): Remove unused make method.
6901 (System::setProperty(char*,char*)): Turn into friend function.
6902 (Class): Rename newObject by JvAllocObject.
6903 * prims.cc: Update to use JvAllocObject, and elements.
6905 * java/lang/natDouble.cc: Fix double -> jdouble.
6907 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6909 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6911 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6913 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6914 * include/java-lang.h (Runtime): finalize_on_exit and
6915 runFinalizersOnExit now static.
6916 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6918 (finalize_on_exit): Now static.
6920 * boehm.cc (mark_obj): Get class using getClass() method on
6922 (_dispatchTable): Removed.
6924 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6926 * java/io/natFileDescriptor.cc (open_read): Only call open if
6928 (open_write): Likewise.
6930 * Makefile.in: Rebuilt.
6931 * Makefile.am ($(nat_files)): Depend on config.h.
6933 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6935 * prims.cc (ObjectClass): Now a macro; updated for new class name
6937 (StringClass): Likewise.
6938 (ClassClass): Likewise.
6940 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6942 * java/io/natFileDescriptor.cc (available): Do nothing unless
6943 HAVE_SELECT defined.
6944 * java/util/natDate.cc (setTime): Conditional on
6946 (toString): Conditional on HAVE_TIME.
6947 * aclocal.m4, configure: Rebuilt.
6948 * acinclude.m4: New file.
6949 * configure.in: Don't actually call AM_EXEEXT. Call
6950 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6951 --with-target-subdir option. Check for select and open
6954 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6956 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6957 (call_finalizer): Likewise.
6958 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6959 * prims.cc (newObject): Pass actual method pointer to
6960 JvPrivRegisterFinalizer.
6961 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6962 (JvPrivRegisterFinalizer): Changed interface.
6964 * Makefile.in: Rebuilt.
6965 * Makefile.am (MOSTLYCLEANFILES): New macro.
6966 (CLEANFILES): Removed javao_files.
6968 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6970 * nogc.cc: New file.
6971 * Makefile.in: Rebuilt.
6972 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6973 (EXTRA_libjava_a_SOURCES): New macro.
6974 (libjava_a_SOURCES): Removed boehm.cc.
6975 (libjava_a_DEPENDENCIES): Added GCOBJS.
6976 (libjava_a_LIBADD): Likewise.
6977 * configure: Rebuilt.
6978 * configure.in: Added code for --enable-gc=TYPE.
6980 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6982 * boehm.cc (mark_array): Don't further dereference pointer from
6985 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6986 * Makefile.in: Rebuilt.
6987 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6988 one for boehm-gc build directory.
6990 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6992 * include/java-lang.h (finalize_on_exit): New instance variable in
6993 java::lang::Runtime.
6994 (runFinalizersOnExit): New method.
6995 * java/lang/Runtime.java (finalize_on_exit): New instance
6997 (runAllFinalizers_): New private method.
6998 (runFinalizersOnExit): New method.
6999 * boehm.cc (JvPrivRunFinalizers): New function.
7000 (JvPrivRunAllFinalizers): Likewise.
7001 (JvPrivRunGC): Likewise.
7002 * java/lang/natRuntime.cc: Include "jvm.h".
7003 (gc): Call JvPrivRunGC.
7004 (runFinalization): Call JvPrivRunFinalizers.
7005 (runFinalizersOnExit): New method.
7006 (exit_): Call JvPrivRunAllFinalizers if required.
7007 * include/jvm.h: Declare JvPrivRunFinalizers,
7008 JvPrivRunAllFinalizers, JvPrivRunGC.
7010 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
7012 * boehm.cc (JvPrivRegisterFinalizer): New function.
7013 (call_finalizer): Likewise.
7014 * include/jvm.h: Declare JvPrivRegisterFinalizer.
7015 * prims.cc (finalize_name): New global.
7016 (newObject): Just call other newObject.
7017 (newObject): Register finalizer if it exists.
7019 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
7021 * prims.cc (gc_malloc): Removed.
7022 (makeUtf8Const): Use JvPrivAllocBytes.
7023 (lookupArray): Likewise.
7024 (newPrimArray): Likewise.
7025 (JvNewObjectArray): Use JvPrivAllocArray.
7026 (newObject): Use JvPrivAllocObj.
7027 (newObject): Likewise.
7028 Changed Method -> JvMethod everywhere.
7029 Changed Field -> JvField everywhere.
7030 * include/java-lang.h (Object): Changed type of `fields' to
7032 (jmethodID, jfieldID): New typedefs.
7033 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
7035 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
7037 (METHOD_NATIVECODE): Moved from java-lang.h.
7038 (class JvField): New class.
7039 (JvGetFirstInstanceField): New function.
7040 (JvFieldIsRef): Likewise.
7041 (JvGetObjectField): Likewise.
7042 (JvNumInstanceFields): Likewise.
7044 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7046 * boehm.cc: New file.
7047 * Makefile.in: Rebuilt.
7048 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
7049 (INCLUDES): Added -I options to find boehm-gc files.
7051 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
7053 * configure: Rebuilt.
7054 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
7056 * Makefile.in: Rebuilt.
7057 * Makefile.am (nat_files): New macro.
7058 (libjava_a_DEPENDENCIES): Use it.
7059 (libjava_a_LIBADD): Likewise.
7060 ($(nat_files)): New static pattern rule.
7061 (class_files): Run separate find to find .class files.
7062 (javao_files): Compute based on class_files.
7063 (BUILT_SOURCES): New macro.
7065 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
7067 * Makefile.am (java_files): New macro.
7068 (class_files): Likewise.
7069 (javao_files): Likewise.
7070 (libjava_a_DEPENDENCIES): Include $(javao_files).
7071 (libjava_a_LIBADD): Likewise.
7072 (classes.stamp): Depend on $(java_files); only recompile changed
7075 (CLEANFILES): Don't run find; use macros. Don't mention
7077 (.class.o): New target.
7078 (compiled.stamp): Removed.
7080 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
7082 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
7083 LineNumberReader}>java: Newly-implemented standard classes.
7085 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
7087 * Makefile.in: Rebuilt.
7088 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7090 * Makefile.in: Rebuilt.
7091 * Makefile.am (hack): New macro.
7092 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7094 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
7096 * include/config.h.in: New file.
7097 * include/config.h: Removed.
7098 * acconfig.h: New file.
7099 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7100 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7101 libjava_a_LIBADD): New macros.
7102 (INCLUDES): New macro.
7105 (SUFFIXES): Removed.
7107 (libjava.a): Removed.
7109 * configure: Rebuilt.
7110 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7111 Look for headers and functions we require. Create
7114 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
7116 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7117 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7118 soft_lookupinterfacemethod): New functions.
7119 (PrimClass): Actually initialize the primitive classes.
7120 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
7122 * include/java-util.h: Removed java::util definition.
7123 * include/cni.h: Moved java::util here and added Properties.
7124 Added more function prototypes.
7125 * include/java-lang.h: Added mroe methods and friend declarations.
7126 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
7127 * include/jvm.h (strLengthUtf8): Add declaration.
7129 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7131 * java/lang/{Byte,Short,Void}.java: New classes.
7132 * java/lang/Character.java (isJavaIdentifierStart,
7133 JavaIdentifierPart): New static methods.
7134 * java/lang/Number.java (byteValue, shortValue): New methods.
7136 * java/lang/String.java (intern, hashCode): Make native.
7137 * java/lang/natString.cc: New file. Handle the string pool.
7138 * Makefile.am: Build natString.o. Use CXXFLAGS.
7140 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7141 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
7142 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
7143 * java/lang/System.java (setProperty): New private method.
7144 (initProperties): Take argument, and make native.
7145 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
7146 (currentTimeMillis): Make more robust.
7148 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
7149 * java/io/UnsupportedEncodingException.java: New exception class.
7151 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
7152 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
7154 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
7156 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
7157 * prims.cc: Added bunch of stuff.
7158 * include/cni.h: Added various definitions.
7159 * include/java-lang.h: Added Method, various friends, some macros.
7161 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
7162 * java/lang/System.java (arraycopy): Make native.
7164 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
7166 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7167 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
7168 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
7169 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7171 * java/lang/Runtime.java: Declare methods as native instead of
7173 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
7174 * java/lang/System.java: Comment out some stuff, for now.
7175 * java/lang/Thread.java: Re-write. Use native methods.
7176 * java/lang/NativeLang.java: Remove most of it.
7178 * java/util/natDate.cc: Native (C++) methods for Date.
7179 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
7180 * java/util/Date.java: Complete re-write.
7182 * java/io/io-defs.h: New header file.
7183 * java/io/FileDescriptor.java: Add a bunch of private methods,
7184 mostly moved from NativeIO.java and natNativeIO.cc.
7185 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
7186 * java/io/File.java: Use new code.
7187 * java/io/{FileInputStream.java.FileOutputStream.java,
7188 RandomAccessFile.java}: Use new private FileDescriptor methods.
7189 * java/io/NativeIO.java: Removed, no longer used.
7191 * java/io/StreamTokenizer.java (numericChars): Make char array.
7193 * include/*.h: Various header files used by the C++ native code.
7195 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7196 New autoconf+automake-based setup.
7197 * prims.cc: New file for Java "primitives".