Daily bump.
[official-gcc.git] / libjava / ChangeLog-1999
blob522025e85bb7daff70f4464ebe2eda001d905790
1 1999-12-21  Per Bothner  <per@bothner.com>
3         * java/lang/natClass.cc (getDeclaredMethods): Correctly compute
4         offset in new Method.
6 1999-12-22  Bryce McKinlay  <bryce@albatross.co.nz>
8         * java/lang/natObject.cc (notify): Throw message with
9         IllegalMonitorStateException.
10         (notifyAll): Ditto.
11         (wait): Ditto.
12         * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag.
13         (isInterrupted_): New function, which does clear interrupt_flag.
14         (interrupt): Use `isInterrupted_'.
15         * java/lang/natThread.cc (interrupt): Add comment.
16         (join): Set `prev' in joiner loop.
17         Change various calls to `isInterrupted' to use `isInterrupted_'.
18         * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait
19         on linux. Set result to 0 on an interrupt. Test interrupted status
20         of java Thread object directly. 
21         FLAG_INTERRUPTED: removed.
22         (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
23         (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
24         (_Jv_InitThreads): Don't block SIGINT.
25         (_Jv_ThreadWait): Don't configure SIGINT handler.
27 1999-12-21  Tom Tromey  <tromey@cygnus.com>
29         * mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
31 1999-12-20  Tom Tromey  <tromey@cygnus.com>
33         * java/lang/reflect/Modifier.java (STRICT): New constant.
34         (isStrict): New method.
35         (toString): Added `strict'.
37 1999-12-23  Anthony Green  <green@cygnus.com>
39         * configure: Rebuilt.
40         * configure.in (LIBDATASTARTSPEC): Force data_start in with
41         linker trick.
43 1999-12-19  Anthony Green  <green@cygnus.com>
45         * libgcjdata.c: New file.
46         * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile.
47         * configure: Rebuilt.
48         * configure.in (LIBDATASTARTSPEC): Force data with a known name
49         into the program.
50         * Makefile.in: Rebuilt.
51         * Makefile.am: Build libgcjdata.a.
53         * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile.
54         * configure: Rebuilt.
55         * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc
56         into every program.
58 1999-12-17  Tom Tromey  <tromey@cygnus.com>
60         * java/lang/reflect/Method.java (toString): Call getType if
61         required.  Partial fix for PR libgcj/111.  From Per Bothner.
63         * java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
65 1999-12-16  Bryce McKinlay  <bryce@albatross.co.nz>
67         * java/lang/Boolean.java (Boolean(String)): Set `value' to false on a 
68         null String constructor parameter.
69         * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls
70         for exception messages.
71         BooleanClass: declare.
72         (setOption): Use BooleanClass instead of Class.forName() for
73         instanceof test.
74         (bind): Cast 4th parameter of setsockopt to `char *' for
75         compatibility with older Solaris headers.
76         * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary
77         sprintf calls for exception messages.
78         BooleanClass, IntegerClass: declare.
79         (setOption): Use BooleanClass and IntegerClass, not Class.forName()
80         for instanceof test.
82 1999-12-15  Tom Tromey  <tromey@cygnus.com>
84         * java/lang/natSystem.cc (init_properties): Don't set user.name or
85         user.home if NO_GETUID defined.  Only set user.dir if getcwd
86         exists.
88         * include/config.h.in: Rebuilt.
89         * acconfig.h (NO_GETUID): New define.
90         * configure.in: Rebuilt.
91         * configure.in: Define NO_GETUID in cross case.  Check for getcwd
92         in native case.
94 1999-12-08  Tom Tromey  <tromey@cygnus.com>
96         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
97         where no recursive mutexes exist.  Fixes PR libgcj/117.
99 1999-12-05  Anthony Green  <green@cygnus.com>
101         * include/jvm.h: Declare many functions with
102         __attribute__((__malloc__)).
103         * gcj/javaprims.h: Ditto.
105 Thu Dec  2 17:26:47 1999  Anthony Green  <green@cygnus.com>
107         * THANKS: Giving credit where credit is due.
109 1999-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
111         * java/net/ServerSocket.java (ServerSocket): Bind to any interface 
112         if bindAddr is null.
113         * java/lang/natString.cc (equalsIgnoreCase): return false if
114         anotherString is null.
115         * java/lang/Boolean.java (valueOf): return FALSE if argument is
116         null.
118 1999-11-30  Tom Tromey  <tromey@cygnus.com>
120         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
121         mutex to initialize.  Initialize `count' if required.
122         Fixes PR libgcj/98.
124 1999-11-27  Per Bothner  <per@bothner.com>
126         * exception.cc:  Remove prototype declarations for malloc and free.
127         These clash with recent versions of glibc, which specifies `throws ()'
128         when __cplusplus is defined.  Instead, #include <stdlib.h>.
130 1999-11-24  Tom Tromey  <tromey@cygnus.com>
132         * prims.cc (_Jv_NewObjectArray): Use
133         _Jv_GetArrayElementFromElementType.
134         (_Jv_NewPrimArray): Likewise.
135         * java/lang/natObject.cc (clone): Use
136         _Jv_GetArrayElementFromElementType instead of sizeof.
137         * java/lang/natSystem.cc (arraycopy): Use
138         _Jv_GetArrayElementFromElementType.
139         * include/jvm.h (_Jv_GetArrayElementFromElementType): New
140         function.
142 1999-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
144         * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
145         Exception messages. PR java.net/57.
146         (bind): set SO_REUSEADDR before bind.
147         * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
148         overruns. PR java.net/57.
150 1999-11-19  Tom Tromey  <tromey@cygnus.com>
152         * Makefile.am (DIVIDESPEC): Removed.
153         (EXCEPTIONSPEC): Removed.
155 1999-11-19  Andrew Haley  <aph@cygnus.com>
157         * Makefile.am (JCFLAGS): Add -L$(here)
158         (JC1FLAGS): Ditto.
159         * Makefile.in: Rebuild.
161 1999-11-18  Tom Tromey  <tromey@cygnus.com>
163         * java/lang/natDouble.cc: Include <config.h>.
165         * include/config.h.in: Rebuilt.
166         * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
167         * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
168         targets.
169         * configure: Rebuilt.
170         * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
171         requested by configure.host.  Don't put `-D' option into
172         libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
174         * configure: Rebuilt.
175         * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
176         sjlj-exceptions.
178 1999-11-18  Andrew Haley  <aph@cygnus.com>
180         * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
181         (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
182         (JC1FLAGS): Ditto.
183         * Makefile.in: Rebuild
184         * acconfig.h: remove SJLJ_EXCEPTIONS
185         * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
186         Do not AC_DEFINE SJLJ_EXCEPTIONS.
187         * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
188         * gcj/Makefile.in, include/Makefile.in: rebuild.
189         * include/config.h.in: remove SJLJ_EXCEPTIONS.
190                 
191 1999-11-18  Andrew Haley  <aph@cygnus.com>
193         * gij.cc (main): Rename label to prevent conflict.
195         * exception.cc (_Jv_type_matcher): Don't check the table if we're
196         using setjmp/longjmp exceptions: there isn't one.
198 1999-11-17  Andrew Haley  <aph@cygnus.com>
200         * exception.cc (_Jv_type_matcher): Ignore null exception tables.
201         (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
202         (__sjthrow): Add declaration.
203         * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
204         (JC1FLAGS): Ditto
205         (AM_CFLAGS): Ditto
206         (AM_CXXFLAGS): Ditto
207         * Makefile.in: Rebuild
208         * acconfig.h: Add SJLJ_EXCEPTIONS
209         * configure.in: Add SJLJ_EXCEPTIONS
210         * configure: Rebuild.
211         * gcj/Makefile.in: Rebuild.
212         * gcj/cni.h: Add support for sjlj-exceptions.
213         * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
214         * include/Makefile.in: Rebuild.
215         * include/default-signal.h: Add support for sjlj-exceptions.
217 1999-11-18  Tom Tromey  <tromey@cygnus.com>
219         * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
221         * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
222         minus 1.
223         (method_cache): Made larger.
225 1999-11-11  Tom Tromey  <tromey@cygnus.com>
227         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
228         initializing mutex.  Initialize `count' when required.
230 1999-11-07  Anthony Green  <green@trip.cygnus.com>
232         * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
233         data correctly.
235 1999-11-05  Tom Tromey  <tromey@cygnus.com>
237         * java/lang/natThread.cc (destroy): Removed incorrect comment.
239 1999-11-05  Jeff Sturm  <jsturm@sigma6.com>
241         * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
242         * prims.cc (parse_heap_size): Use end, not spec.  Use 1024
243         multipler for `k'.
245 1999-11-05  Tom Tromey  <tromey@cygnus.com>
247         * java/lang/natThread.cc (stop): Removed argument name.
249         * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
250         `private'; now has default access.
251         * Makefile.in: Rebuilt.
252         * Makefile.am (java/lang/ThreadGroup.h): Removed.
254 1999-11-04  Tom Tromey  <tromey@cygnus.com>
256         * java/lang/natClass.cc (method_cache_count): Removed.
257         (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
258         (_Jv_AddMethodToCache): Don't loop.
260         * configure.in: Removed `qt' threads case.
261         * include/quick-threads.h: Removed.
262         * quick-threads.cc: Removed.
264         * include/quick-threads.h (_Jv_ThreadCancel): Removed.
265         (_Jv_ThreadDestroy): Likewise.
266         * include/no-threads.h (_Jv_ThreadCancel): Removed.
267         (_Jv_ThreadDestroy): Likewise.
268         * include/posix-threads.h (struct _Jv_Thread_t): Removed
269         `exception' field.
270         (_Jv_ThreadCancel): Removed decl.
271         (_Jv_ThreadDestroy): Removed.
272         * posix-threads.cc (_Jv_ThreadCancel): Removed.
273         (throw_cleanup): Removed.
274         (really_start): Don't push or pop cleanup.
275         (_Jv_ThreadInitData): Don't initialize `exception' field.
276         * java/lang/Thread.java (stop): Officially unimplemented.
277         * java/lang/natThread.cc (stop): Officially unimplemented.
279 1999-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
281         * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h 
282         instead.
284 1999-11-02  Tom Tromey  <tromey@cygnus.com>
286         * boehm.cc: Don't include boehm-config.h.
288 1999-11-01  Tom Tromey  <tromey@cygnus.com>
290         * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
291         (sum_blocks): Removed.
292         (_Jv_GCFreeMemory): Use GC_get_free_bytes.
294 1999-11-01  Bryce McKinlay  <bryce@albatross.co.nz>
296         * java/io/PrintStream (PrintStream): Fix illegal usage of "this" 
297           before "super".
298         * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
299         * java/io/InputStreamReader (InputStreamReader): ditto.
301 1999-10-22  Tom Tromey  <tromey@cygnus.com>
303         * Makefile.in: Rebuilt.
304         * Makefile.am (java/lang/ClassLoader.h): New target.
305         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
306         to `redirect'.
308         * include/java-props.h (_Jv_Compiler_Properties): Changed
309         declaration.
310         * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
311         * include/jvm.h (_Jv_GCSetInitialHeapSize,
312         _Jv_GCSetMaximumHeapSize): Declare.
313         (JvRunMain, _Jv_RunMain): Declare.
314         (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
315         * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
316         (_Jv_GCSetMaximumHeapSize): Likewise.
317         * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
318         (_Jv_GCSetMaximumHeapSize): Likewise.
319         * prims.cc (parse_heap_size): New function.
320         (_Jv_SetInitialHeapSize): Likewise.
321         (_Jv_SetMaximumHeapSize): Likewise.
322         (_Jv_Compiler_Properties): New global.
323         * gij.cc (help): New function.
324         (version): Likewise.
325         (heap_size): Likewise.
326         (heap_max_size): Likewise.
327         (main): Parse arguments.  Set _Jv_Compiler_Properties.
328         Include <config.h>, <java-props.h>.
329         (_Jv_Compiler_Properties): Removed.
331 1999-10-18  Tom Tromey  <tromey@cygnus.com>
333         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
334         method.
335         (redirect): New static field.
336         * java/lang/ClassLoader.java (getSystemClassLoader): Now
337         native
338         (getVMClassLoader0): Removed.
339         * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
340         (redirect): Removed.
341         (getSystemClassLoader): Implemented.
343 1999-10-16  Anthony Green  <green@cygnus.com>
345         * java/lang/ClassLoader.java (getSystemResource): Use
346         getSystemClassLoader instead of ClassLoader.system.
347         (getSystemResourceAsStream): Ditto.
349         * java/lang/natClassLoader.cc (redirect): Make static and
350         remove #ifdef INTERPRETER so it is always defined.
351         (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
352         returns a VMClassLoader.
354         * java/util/ResourceBundle.java (trySomeGetBundle): Create a
355         PropertyResourceBundle if a properties file is found before a
356         ResourceBundle class.
358 1999-10-15  Tom Tromey  <tromey@cygnus.com>
360         * gij.cc (main): Formatting fixes.
361         (_Jv_Compiler_Properties): Define.
362         * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
363         declare.
364         (init_properties): Set properites from _Jv_Compiler_Properties.
365         * include/java-props.h (_Jv_Compiler_Properties,
366         _Jv_Environment_Properties): Declare.
368         * include/java-props.h: Added copyright.
370 1999-10-13  Anthony Green  <green@cygnus.com>
372         * libtool-version: Catch up by incrementing current.
374         * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
375         * configure, include/config.h.in: Rebuilt.
376         * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
377         * configure.in: Added --disable-getenv-properties and new define
378         `DISABLE_GETENV_PROPERTIES'.
380         * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
381         (next_property_key): New function.
382         (next_property_value): New function.
383         (process_gcj_properties): New function.
384         (JvRunMain): Call process_gcj_properties.
385         (_JvRunMain): Ditto.
387         * java/lang/natSystem.cc (init_properties): Set properties defined
388         in GCJ_PROPERTIES.
390         * include/java-props.h: New file.
392         * java/lang/natSystem.cc (init_properties): Add new properties to
393         conform with Java Product Versioning Specification.
395 1999-10-12  Tom Tromey  <tromey@cygnus.com>
397         * configure: Rebuilt.
398         * configure.in: Fixed test for --disable-java-net.
400 1999-10-06  Tom Tromey  <tromey@cygnus.com>
402         * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
403         when building Canadian cross.
404         (NATIVE): Don't define when cross-compiling.
406 1999-10-04  Tom Tromey  <tromey@cygnus.com>
408         * java/net/natPlainSocketImpl.cc: Don't include headers if
409         java.net is disabled.
411         * Makefile.in: Rebuilt.
412         * Makefile.am (ZINCS): Removed.  This is defined in configure.in
413         when needed, and must be left empty when not needed.
415 1999-10-01  Anthony Green  <green@cygnus.com>
417         * THANKS: Refreshed from htdocs version.
419 1999-10-01  Steve Chamberlain  <sac@pobox.com>
421         * Makefile.in: Rebuilt.
422         * Makefile.am (ZINCS): Define
424         * configure: Rebuilt.
425         * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
427         * java/lang/ieeefp.h: Add definitions for picoJava.
429 1999-10-01  Tom Tromey  <tromey@cygnus.com>
431         * configure: Rebuilt.
432         * configure.in: Set classpath when invoking gcj.  Use changequote
433         around sed invocation.
435         * java/net/natPlainSocketImpl.cc: Stub native functions if
436         DISABLE_JAVA_NET is defined.
437         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
438         typo in exception string.
439         (getTimeToLive): Likewise.
440         Stub native functions if DISABLE_JAVA_NET is defined.
441         * java/net/natInetAddress.cc: Stub native functions if
442         DISABLE_JAVA_NET is defined.
443         * configure.host: Disable java.net for mips-tx39.
444         * configure, include/config.h.in: Rebuilt.
445         * acconfig.h (DISABLE_JAVA_NET): Undefine.
446         * configure.in: Added --disable-java-net and new define
447         `DISABLE_JAVA_NET'.
449 1999-09-30  Tom Tromey  <tromey@cygnus.com>
451         * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
453 1999-09-29  Bryce McKinlay  <bryce@albatross.co.nz>
455         * README: New file.
457 1999-09-28  Tom Tromey  <tromey@cygnus.com>
459         * configure: Rebuilt.
460         * configure.in (PROCESS): In POSIX case, only set if not already
461         set.
462         * configure.host (PROCESS): Set in mips-tx39 case.
464         * aclocal.m4, configure: Rebuilt.
465         * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
466         appropriate AC_PROG_ symbol.
468 1999-09-24  Tom Tromey  <tromey@cygnus.com>
470         * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
471         `void *'.
472         (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
474         Fix for PR java.util/47:
475         * configure, include/config.h: Rebuilt.
476         * configure.in: Don't look for ctime or ctime_r.
477         * Makefile.in: Rebuilt.
478         * Makefile.am (nat_source_files): Don't mention natDate.cc.
479         * java/util/natDate.cc: Removed.
480         * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
481         static fields.
482         (getAvailableIDs): Rewrote.
483         (getTimeZone): Rewrote.
484         * java/util/Date.java (toGMTString): New method.
485         (toLocaleString): New method.
486         (toString): Rewrote.
488 1999-09-23  Tom Tromey  <tromey@cygnus.com>
490         * configure: Rebuilt.
491         * configure.in: Print message when checking to see if gcj can
492         handle -fuse-divide-subroutine.
494         * java/lang/natFirstThread.cc (run): Renamed from `run0'.  Removed
495         dead code.
496         * java/lang/FirstThread.java (run0): Renamed to `run'.
497         (run): Removed.
499         * prims.cc (main_init): New function.
500         (JvRunMain): Call it.
501         (_Jv_RunMain): Likewise.
502         Include <signal.h>.
503         (main_init): Ignore SIGPIPE.  Fixes PR 51.
505 1999-09-22  Tom Tromey  <tromey@cygnus.com>
507         * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
509 1999-09-16  Bryce McKinlay  <bryce@albatross.co.nz>
511         * java/text/MessageFormat.java (MessageFormat(String)): Set the
512         default locale.
513         * java/text/NumberFormat.java: Check that object is a Number. If
514         not, throw IllegialArgumentException.
516 1999-09-21  Tom Tromey  <tromey@cygnus.com>
518         * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
519         both `inlength' and `bytes_todo' are 0.  Simplified 2-byte case.
521         * include/posix-threads.h (_Jv_MutexDestroy): Use
522         _Jv_PthreadGetMutex.
523         (_Jv_MutexLock): Likewise.
524         (_Jv_MutexUnlock): Likewise.
526         * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
527         previous patch; it too was incorrect.
528         * java/io/PrintStream.java (PrintStream): Likewise.
530         * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
531         refer to `this' before calling superclass constructor.
532         * java/io/PrintStream.java (PrintStream): Don't refer to `this'
533         before calling superclass constructor.
535 1999-09-20  Tom Tromey  <tromey@cygnus.com>
537         * configure: Rebuilt.
538         * configure.in: Send output of `-fuse-divide-subroutine' test
539         compilation to /dev/null.
541 1999-09-14  Tom Tromey  <tromey@cygnus.com>
543         * include/java-insns.h: Turned constants into an enum.  Added
544         multiple-inclusion protection.
546 1999-09-10  Tom Tromey  <tromey@cygnus.com>
548         * configure: Rebuilt.
549         * configure.in: Build include/Makefile.
550         * Makefile.in: Rebuilt.
551         * Makefile.am (SUBDIRS): Added gcj and include.
552         (install-data-local): New target.
553         (extra_headers): New macro.
554         * include/Makefile.in: New file.
555         * include/Makefile.am: New file.
557         * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
558         * java/lang/reflect/natField.cc: Don't include gcj/field.h or
559         gcj/cni.h.
560         * boehm.cc: Don't include java-threads.h or gcj/field.h.
561         * resolve.cc: Include config.h.
562         * defineclass.cc: Include config.h.
563         * include/java-interp.h: Don't include config.h.
564         * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
565         cni.h.
567         * gcj/javaprims.h: Regenerated namespace decls.
568         * classes.pl (scan): Don't put `;' after closing brace.
570         * Makefile.in: Rebuilt.
571         * Makefile.am (INCLUDES): Added -I for top_srcdir.
572         * configure.in: Create gcj/Makefile.
573         * gcj/Makefile.in: New file.
574         * gcj/Makefile.am: New file.
575         * java/lang/Object.h: Don't include any other headers.
576         * gcj/array.h: Renamed from include/java-array.h.
577         * gcj/field.h: Renamed from include/java-field.h.
578         * gcj/method.h: Renamed from include/java-method.h.
579         * gcj/cni.h, gcj/javaprims.h: Moved from include/.
580         Updated all files to reflect new include structure.
582 1999-09-09  Tom Tromey  <tromey@cygnus.com>
584         * configure: Rebuilt.
585         * configure.in: Fixed typo; variable is THREADSPEC and not
586         THREADSPECS.
588 1999-09-08  Tom Tromey  <tromey@cygnus.com>
590         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
591         previous change and implemented a correct test in the __m_count
592         case.
594         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
595         in __m_count case.
597 1999-09-07  Tom Tromey  <tromey@cygnus.com>
599         * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
600         code and don't set errno.
602         * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
603         not `r'.  Changed `done_sleeping' to a `bool'.
605 1999-09-07  Matt Welsh <mdw@cs.berkeley.edu>
607         * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
608         Added FLAG_INTERRUPTED to indicate that a thread was interrupted
609         by another thread, rather than by the GC.
610         (_Jv_CondWait): Prevent premature thread wakeup by GC.
611         (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
612         * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New 
613         function.
615 1999-09-03  Tom Tromey  <tromey@cygnus.com>
617         * configure: Rebuilt.
618         * configure.in: Check for fstat function.
619         * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
620         FIONREAD fails.
622 1999-09-02  Tom Tromey  <tromey@cygnus.com>
624         * include/java-array.h (jobjectArrayjchar): Removed unused
625         declaration.
627         * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
628         _Jv_PrepareCompiledClass while holding class mutex.
630 1999-09-01  Tom Tromey  <tromey@cygnus.com>
632         * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
633         (_Jv_PthreadGetMutex): Use it.
634         (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
635         (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
636         (_Jv_MutexLock): Likewise.
637         (_Jv_MutexUnlock): Likewise.
638         * include/config.h.in: Rebuilt.
639         * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
640         PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
641         * configure: Rebuilt.
642         * libgcj.spec.in: Don't mention INTERPSPEC.
643         * configure.in (INTERPSPEC): Removed.
644         Only run pthreads-related checks when using POSIX threads.  Check
645         for m_count and __m_count in mutex structure.
647 1999-09-01  Matt Welsh <mdw@cs.berkeley.edu>
649         * java/lang/natClass.cc: Fixed notification of threads
650         when class initialization is complete.
652 1999-09-01  Tom Tromey  <tromey@cygnus.com>
654         * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
655         * resolve.cc: Removed constants defined by
656         java.lang.reflect.Modifier.
657         Include <java/lang/reflect/Modifier.h>.
658         (_Jv_ResolvePoolEntry): Use values from Modifier.
659         (_Jv_DetermineVTableIndex): Likewise.
660         (_Jv_PrepareClass): Likewise.
661         (ncode): Likewise.
662         * defineclass.cc (_Jv_ClassReader): Removed constants defined by
663         java.lang.reflect.Modifier.
664         Include <java/lang/reflect/Modifier.h>.
665         (checkExtends): Use values from Modifier.
666         (checkImplements): Likewise.
667         (handleField): Likewise.
668         (handleConstantValueAttribute): Likewise.
669         (handleFieldsEnd): Likewise.
670         (handleMethod ): Likewise.
671         (handleMethodsEnd): Likewise.
672         (handleClassBegin): Likewise.
673         * interpret.cc: Removed constants defined by
674         java.lang.reflect.Modifier.
675         (continue1): Use values from Modifier.
676         * java/lang/natClassLoader.cc: Removed constants defined by
677         java.lang.reflect.Modifier.
679         * java/lang/natClassLoader.cc (_Jv_NewClass): Use
680         JV_STATE_NOTHING, not `0'.
681         * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
683         * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
684         * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
685         except on Linux.
686         (_Jv_PthreadGetMutex): New function.
687         (_Jv_PthreadCheckMonitor): Use it.
688         (_Jv_MutexInit): Likewise.  ALso, initialize `count'.
689         (_Jv_MutexLock): Update `count'.
690         (_Jv_MutexUnlock): Likewise.
691         (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
692         appropriate.
694 1999-09-01  Kresten Krab Thorup  <krab@gnu.org>
696         * Makefile.am (.java.lo): Add rule.
698         * Makefile.in: Rebuilt.
700 1999-09-01  Tom Tromey  <tromey@cygnus.com>
702         * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
703         * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
704         function.
705         (_Jv_CondNotify): Use it.
706         (_Jv_CondNotifyAll): Likewise.
708         * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
710 1999-08-31  Tom Tromey  <tromey@cygnus.com>
712         * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
713         declaration.
715 1999-08-24  Bryce McKinlay  <bryce@albatross.co.nz>
717         * posix-threads.cc: Include <errno.h>.
719 1999-08-23  Tom Tromey  <tromey@cygnus.com>
721         * boehm.cc: Undefine TRUE and FALSE.
723         * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
725 1999-08-21  Tom Tromey  <tromey@cygnus.com>
727         * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
728         result.  PR 40.
730 1999-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
732         * configure.in: Check for in_addr_t in netinet/in.h too.  Check
733         for ip_mreq too.
734         * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
735         (HAVE_STRUCT_IP_MREQ): Added.
736         * configure, include/config.h.in: Rebuilt.
737         * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
738         if needed.
739         * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
740         Disable if ip_mreq is not available.
741         
742         * configure.in: Check types ssize_t and in_addr_t.
743         * acconfig.h: Undefine them.
744         * configure, include/config.h.in: Rebuilt.
746         * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
747         function that detects the signature of getpwuid_r.
748         (init_properties): Use it.
749         * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
750         (toString): Use it.
752 1999-08-20  Kresten Krab Thorup  <krab@samam.daimi.au.dk>
754         * interpret.cc (continue1): Implement explicit dispatch table.
755         insn_target: Explicit interpreter switch table.  
756         SAVE_PC: New macro, moves pc saving code into instructions that
757         require so.
758         NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
759         PC_REGISTER_ASM: New macro.
760         INLINE_SWITCH: New macro.  Constrols dispatching strategy.
761         opcode: Remove local variable.
762         {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
763         (POKEI): Use _Jv_word.
764         (iinc): Use _Jv_word.
765         (dupx): Change reference argument (sp) to pointer.  
766         (jvdump): Remove
767         
768         * interpret.cc: Remove instruction timing instrumentation.  
770         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
771         comment.  Don't use _Jv_ClassNameSamePackage. 
773         * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
774         URLPathEntry, CacheEntry}: Removed.
775         
776         * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
777         package.
778         (.java.lo): Rule removed.
780         * Makefile.in: Rebuilt.
782 1999-08-19  Tom Tromey  <tromey@cygnus.com>
784         * java/lang/natThread.cc (class locker): New class.
785         (join): Use a locker around _Jv_CondWait.
786         (sleep): Likewise.
788 1999-08-18  Tom Tromey  <tromey@cygnus.com>
790         * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
791         * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
793 1999-08-18  Tom Tromey  <tromey@cygnus.com>
795         * include/javaprims.h ("Java"): Regenerated namespace decls.
797 1999-08-18  Kresten Krab Thorup  <krab@gnu.org>
799         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
800         from _Jv_InternClassStrings.   
802         * prims.cc (_Jv_RunMain): New function.
803         (JvRunMain): Remove gij-support.
805         * gij.cc (main): Use _Jv_RunMain.
807         * java/util/zip/ZipFile.java: Call readDirectory in constructor.
809         * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
810         argument in temp variable.
811         (continue1): For all op_x2y insns, use temp variable for
812         intermediate value.  Also remove some comments.
814         * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
815         (forName): Don't call _Jv_InitClass.
817         * java/lang/Class.java (getResource,getResourceAsStream): Implement.
819         * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
821         * java/util/jar/JarInputStream.java: New file.
823         * java/util/jar/JarEntry.java: New file.
825         * java/util/jar/JarFile.java: New file.
827         * java/net/URLClassLoader.java: New file.
829         * java/net/JarURLConnection.java: New file.
831         * gnu/gcj/protocol/jar/Handler.java: New file.
833         * gnu/gcj/protocol/jar/Connection.java: New file.
835         * java/security/SecureClassLoader.java: New file.
837         * java/lang/ClassLoader.java (parent): New variable.
838         (ClassLoader (ClassLoader)): new constructor.  
839         (findClass): New method.
840         (loadClass): Add default 1.2 implementation.
841         (getSystemResourceAsBytes, getResourceAsBytes): Removed.
842         (readfully): Removed.
844         * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. 
845         (findSystemClass): New method.
846         (VMClassLoader): Constructor rewritten.
847         (init): New method.
848         All other methods removed.
849         
850         * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
851         to gnu::gcj::runtime::VMClassLoader. 
852         (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
853         class entries.   
854         (VMClassLoader::findSystemClass): renamed from findBootClass.
856         * Makefile.am: Add new files.
857         (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
859         * Makefile.in: Rebuilt.
861 1999-08-17  Tom Tromey  <tromey@cygnus.com>
863         * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
864         nano.
865         * include/quick-threads.h (_Jv_CondWait): Don't round to 0
866         inappropriately.
868 1999-08-16  Tom Tromey  <tromey@cygnus.com>
870         * configure: Rebuilt.
871         * configure.in: Set DIVIDESPEC to empty string if compiler does
872         not support -fuse-divide-subroutine.
874 1999-08-14  Per Bothner  <per@bothner.com>
876         * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
877         * java/lang/natClass.cc (initializeClass): Likewise.
878         * java/lang/ClassLoader.java (resolveClass0): New static method.
879         (resolveClass): Call resolveClass0.
880         (findSystemClass): No longer static.
882 1999-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
884         * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
886 1999-08-11  Bryce McKinlay  <bryce@albatross.co.nz>
888         * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
889         as long.
891 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
893         * Makefile: Rebuilt.
894         * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
895         builds.
897         * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
898         present.
900         * configure: Rebuilt.
901         * configure.in: Properly align --help output, fix capitalization
902         and punctuation.
903         * acinclude.m4: Likewise.
905 1999-08-09  Kresten Krab Thorup  <krab@gnu.org>
907         * include/javaprims.h (_Jv_word, _Jv_word2): New types.
909         * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
910         (_Jv_callInterpretedMethod): Unused. Remove.
911         (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
912         Use ffi_raw.
913         * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
914         (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
915         * boehm.cc (_Jv_MarkObj): Use _Jv_word.
916         * interpret.cc: use _Jv_word.
917         * defineclass.cc: use_Jv_word.
918         * resolve.cc: Use _Jv_word.
919         (_Jv_ResolvePoolEntry): Return _Jv_word.
920         * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
921         * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
923         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): 
924         Change comment.
926 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
928         * configure: Rebuilt.
929         * configure.in (sched_yield): Try librt first, then libposix4.
930         Add -lrt, -lposix4 to THREADSPEC.
932 1999-08-08  Anthony Green  <green@cygnus.com>
934         * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
936 1999-08-08  Anthony Green  <green@cygnus.com>
938         * defineclass.cc (_Jv_VerifyClassName): Verify array names
939         correctly.
941 1999-08-08  Anthony Green  <green@cygnus.com>
943         * gij.cc: New file.
945         * include/config.h.in: Rebuilt.
946         * acconfig.h: Add INTERPRETER.
948         * Makefile.in: Rebuilt.
949         * Makefile.am (libffi_files): Identify the libffi object files for
950         inclusion in libgcj.
951         (LIBFFIINCS): Define.
953         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
954         Dummy definition for configurations without an interpreter.
955         
956         * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
957         java::lang::Boolean constructor.
959         * include/java-interp.h: Always include java-cpool.h.
961         * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
962         when INTERPRETER not defined.
964         * java/lang/Class.h (finalize): Define.
966         * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
967         IOException from File.getCanonicalPath.
968         (getStream): Likewise.
970         * NEWS: More news.
971         * THANKS: More thanks.
973 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
975         * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
976         jchar type.
977         (_Jv_PrepareClass): Allow non-abstract classes to
978         have abstract subclasses.
979         (_Jv_ResolvePoolEntry): Revert subclass check for protected
980         fields and methods.
981         * interpret.cc (continue1/perform_invoke): Don't sign extend
982         uint16 return val. 
983         (continue1/lshl,lshr): Push long, not int.
984         (continue1/ulshr): Use UINT64, not long long.
985         * defineclass.cc (handleFieldsEnd): Handle case when all fields
986         are static.
987         * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
988         * java/lang/FirstThread.java (run): Add top-level exception
989         handler. 
990         (run0): Renamed from run.
992 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
994         * configure.in (--with-interpreter): Added.
995         * include/config.h.in (INTERPRETER): Added.
997         * java/lang/ClassLoader.java: File replaced.
998         * java/lang/VMClassLoader.java: New file.
999         * java/lang/natClassLoader.cc: New file.
1000         * gnu/gcj/runtime/MethodInvocation.java: New file.
1001         * gnu/gcj/util/path/SearchPath.java: New file.
1002         * gnu/gcj/util/path/PathEntry.java: New file.
1003         * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
1004         * gnu/gcj/util/path/ZipPathEntry.java: New file.
1005         * gnu/gcj/util/path/URLPathEntry.java: New file.
1006         * gnu/gcj/util/path/CacheEntry.java: New file. 
1007         * include/java-interp.h: New file.
1008         * include/java-cpool.h: New file.
1009         * include/java-insns.h: New file.
1010         * defineclass.cc: New file.
1011         * interpret.cc: New file.
1012         * resolve.cc: New file.
1014         * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
1015         _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
1016         _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
1017         (finalize): New.
1018         (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
1019         STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
1020         prefix. 
1021         (initializeClass): Use new JV_ prefixed names.  Also, call
1022         ClassLoader::resolveClass instead of _Jv_ResolveClass.
1023                 
1024         * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
1025         JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
1026         JV_STATE_LINKED): New.
1027         (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
1028         _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
1029         (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
1030         _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
1031         _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
1032         _Jv_InterpMethodInvocation): New friends for interpreter.
1033         (finalize): New.
1034         (CONSTANT_Class, CONSTANT_String, etc.): Moved to
1035         include/java-cpool.h and renamed with JV_ prefix.
1036         
1037         * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
1038         decls.
1039         (_Jv_UnregisterClass): New decl.
1041         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
1042         class loader argument. 
1043         (_Jv_FindClass): Use class loader.
1044         
1045         * prims.cc (_Jv_makeUtf8Const): New function.
1046         (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
1047         (_Jv_NewPrimArray): Ditto.
1048         (_Jv_FindClassFromSignature): Ditto.
1049         * java/lang/reflect/natArray.cc (newInstance): Ditto.
1050         * java/lang/reflect/natMethod.cc (getType): Ditto.
1052         * include/java-field.h (_Jv_Field::isRef): Make robust for
1053         non-resolved contexts. 
1055         * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields. 
1056         Also, don't mark class->next field.
1058         * java/lang/VirtualMachineError.java: Added FIXME note.
1060         * configure.in (INTERPSPEC): New spec.
1061         * libgcj.spec.in: Added INTERPSPEC.
1062         * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
1063         gnu/gcj/runtime/MethodInvocation.
1064         (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
1065         (ordinary_java_source_files): Added above mentioned java classes.
1067         * configure: Rebuilt.
1068         * Makefile.in: Rebuilt.
1070 1999-08-06  Tom Tromey  <tromey@cygnus.com>
1072         * configure: Rebuilt.
1073         * configure.in: Look for sched_yield in -lrt.
1075 1999-08-06  Mojo Jojo <mojojojo@pacbell.net>
1077         * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
1078         ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
1079         SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
1080         locales.
1081         (toString): Print correctly when `country' is empty.
1083 1999-08-04  Per Bothner <per@bothner.com>
1085         * configure.in:  Also do AC_SUBST for DIVIDESPEC.
1087 1999-08-02  Tom Tromey  <tromey@cygnus.com>
1089         * aclocal.m4, configure: Rebuilt for new libtool.
1091 1999-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
1093         * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1094         * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1095         * java/net/ServerSocket.java: Define ANY_IF.
1096         (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1097         all network interfaces.
1098         * java/net/DatagramSocket.java (DatagramSocket): ditto.
1099         * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1100         null.
1101         * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1102         instead of null.
1103         * java/io/natFile.cc (performMkdir): Remove FIXME.
1104         * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1106 1999-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
1108         * configure.in: Check for bstring.h.
1109         * configure, include/config.h.in: Rebuilt.
1110         * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1111         * java/net/natPlainSocketImpl.cc: Likewise.
1113 1999-07-31  Tom Tromey  <tromey@cygnus.com>
1115         * NEWS: Likewise.
1116         * THANKS: New file.
1118 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1120         * configure.in: Check for struct hostent_data and need for
1121         -D_REENTRANT for gethostbyname_r declaration.
1122         * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1123         (lookup): Use hostent_data for fixed_buffer.
1124         * configure, include/config.h.in: Rebuilt.
1126 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1128         * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1129         available.  Don't cast memmove args to (void*).
1130         * configure.in: Do not abort if memmove is not available.
1132 1999-07-22  Bryce McKinlay  <bryce@albatross.co.nz>
1134         * java/lang/natString.cc (substring): optimize where substring is
1135         entire String.
1136         * java/io/File.java (getName): don't return separator with file name.
1137         * java/io/natFile.cc (attr): fix overflow.
1139 Sun Jul 25 01:43:34 1999  Anthony Green  <green@cygnus.com>
1141         * mauve-libgcj: Disable Object Serialization tests.
1143 1999-07-20  Warren Levy  <warrenl@cygnus.com>
1145         * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1146         Default to using PlainDatagramSocketImpl.
1147         * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1149 1999-07-19  Tom Tromey  <tromey@cygnus.com>
1151         * include/stamp-h.in: New file.
1153 1999-07-12  Tom Tromey  <tromey@cygnus.com>
1155         * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1156         _UINT32_T.
1158 1999-07-07  Andrew Haley  <aph@cygnus.com>
1160         * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1161         bytes to make it point after the instruction where the trap
1162         occurred.
1163         (HANDLE_DIVIDE_OVERFLOW): Ditto.
1165 1999-07-07  Tom Tromey  <tromey@cygnus.com>
1167         * mauve-libgcj: Explicitly enable formerly disabled java.text
1168         tests.
1170         * mauve-libgcj: Turn off ClassTest test.  Enable java.text tests
1171         again.
1173 Mon Jul  5 12:01:35 1999  Anthony Green  <green@cygnus.com>
1175         * java/net/URL.java (equals): Compare strings using String.equals.
1176         * java/net/URL.java (sameFile): Ditto.
1178 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1180         * configure: Rebuilt.
1181         * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1182         * include/config.h.in: Rebuilt.
1183         * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1184         (mcastGrp): Updated FIXME comments.
1185         (setOption): Fixed typo.
1186         (getOption):Implemented IP_MULTICAST_IF.
1188 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1190         * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1191         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1192         (getTimeToLive): Implemented.
1193         (setOption): Implemented IP_MULTICAST_IF.
1195 1999-07-01  Bryce McKinlay  <bryce@albatross.co.nz>
1197         * java/lang/String.java (toString): Check for this == null and throw
1198         NullPointerException.
1200 1999-07-01  Warren Levy  <warrenl@cygnus.com>
1202         * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1203         to count and revised comments to match.
1204         * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1205         * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1206         * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1207         * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1208         * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1209         * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1211 1999-07-01  John-Marc Chandonia  <jmc@cmpharm.ucsf.edu>
1213         * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1214         properly as count rather than outlength.
1215         * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1216         output on overflow rather than buffer fill.
1217         * java/io/BufferedReader.java (fill): Don't clear out the buffer
1218         if markPos is 0 and there is still room in the buffer.
1220 1999-07-01  Andrew Haley  <aph@cygnus.com>
1222         * include/i386-signal.h: Replace sigaction () with __sigaction ().
1223         This is a workaround for a bug in glibc's pthreads package which
1224         doesn't deliver any sigcontext information to a signal handler.
1226 1999-06-24  Tom Tromey  <tromey@cygnus.com>
1228         * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1229         * java/lang/fdlibm.h (HUGE): Conditionally define.
1231 Fri May 28 22:20:03 1999  Anthony Green  <green@cygnus.com>
1233         * java/lang/fdlibm.h: Don't use __uint32_t.  Include mprec.h.
1234         * java/lang/e_log.c: Don't use __uint32_t.
1236 1999-05-27  Eric Christopher <echristo@cygnus.com>
1238         * configure: Rebuilt
1239         * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1240         * acconfig.h: Rebuilt
1241         * include/config.h.in: Rebuilt
1243         * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1244         java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1245         e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1246         java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1247         k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1248         java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1249         s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1250         and namespace collision with __uint32_t
1252 1999-06-23  Tom Tromey  <tromey@cygnus.com>
1254         * java/util/zip/InflaterInputStream.java (read): Throw
1255         ZipException if inflater throws a DataFormatException.
1257 1999-06-23  Warren Levy  <warrenl@cygnus.com>
1259         * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1260         * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1261         * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1262         is not final per JDK.
1263         * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1264         public per JDK.
1265         * java/util/zip/DataFormatException.java: Class extends Exception.
1266         * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1267         * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1268         * java/util/zip/ZipInputStream.java: ditto.
1269         (closeEntry): Changed method name to match JDK spec.
1271 1999-06-21  Tom Tromey  <tromey@cygnus.com>
1273         * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1274         From Jeff Sturm.
1276         * Makefile.in: Rebuilt.
1277         * Makefile.am (toolexeclibdir): Define as libdir when
1278         appropriate.
1279         * configure: Rebuilt.
1280         * configure.in (USE_LIBDIR): New conditional.
1282 1999-06-18  Bryce McKinlay  <bryce@albatross.co.nz>
1284         * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1285         hostname in returned InetAddress objects.
1286         (getLocalHostname): Fix typo.
1287         * java/net/InetAddress.java (getByName): Set hostname on return
1288         object.
1289         (getLocalHost): Call lookup directly to ensure that a fully-qualified
1290         name is returned.
1292 1999-06-17  Bryce McKinlay  <bryce@albatross.co.nz>
1294         * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1295         interfaces if host==NULL. 
1296         (accept): Throw message with InterruptedIOException.
1297         (getOption): Cache localAddress.
1298         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1299         'address' for DatagramSocket.
1300         (setTimeToLive): Fix compiler warnings.
1301         (getOption): Cache localAddress.
1302         * java/net/Socket.java (getLocalAddress): Don't need local
1303         InetAddress object. Add FIXME comment about calling checkConnect().
1304         * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1305         connection queue to 50 as per JDK 1.2 docs.
1306         (ServerSocket(int,int)): Listen on all network interfaces by
1307         default, per JDK 1.2 docs.
1308         * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1309         Add localAddress caching. 
1311 1999-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
1313         * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1314         to JDK 1.2 docs.
1315         (write(byte[],int,int)): ditto.
1317 1999-06-14  Bryce McKinlay  <bryce@albatross.co.nz>
1319         * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1321 1999-06-11  Warren Levy  <warrenl@cygnus.com>
1323         * mauve-libgcj: Activated java.net Mauve tests.
1325 1999-06-10  Bryce McKinlay  <bryce@albatross.co.nz>
1327         * java/net/natInetAddress.cc (aton): Fix typos.
1328         (lookup): Use a bigger buffer size for gethostbyname_r on all
1329         versions of glibc. Updated FIXME comment explaining this.
1330         Modified while loops to not set herr = ERANGE to work around glibc 
1331         problems. Use user specified hostname in InetAddress result when
1332         available (consistent with JDK).
1334 1999-06-10  Warren Levy  <warrenl@cygnus.com>
1336         * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1337         Throw FileNotFoundException instead of IOException.
1338         (open): ditto.
1339         * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1340         IOException.
1341         * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1342         in static field name.
1343         * java/text/DecimalFormat.java: Throw IllegalArgumentException
1344         throughout rather than ParseException.
1346 1999-06-09  Bryce McKinlay  <bryce@albatross.co.nz>
1348         * java/lang/Runtime.java (exec): Convert prog name and arguments
1349         to string array.
1350         * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1351         environment array conversion. Preserve current environment if envp
1352         not passed. Preserve PATH unless explicitly specified.
1353         * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1354         followed by EOF. Set a flag when a line is terminated by '\r' and
1355         ignore following '\n' if set.
1357 1999-06-02  Warren Levy  <warrenl@cygnus.com>
1359         * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1360         Ignore context if spec is an absolute URL.  Fix braindead
1361         string comparison.
1362         (hashCode): Use JDK 1.2 style algorithm.
1363         * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1364         context URL properly.
1366 1999-05-30  Anthony Green  <green@cygnus.com>
1368         * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1369         correctly.  Clean up "/../" an\e[Bd "/./" path fragments.
1371 1999-05-28  Warren Levy  <warrenl@cygnus.com>
1373         * java/net/DatagramSocket.java (laddr): Removed.
1374         (DatagramSocket): Removed attempts to get or set laddr if null.
1375         (getLocalAddress): Reimplemented per spec.
1376         * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1377         when ttl is 0.
1378         (joinGroup): Throw NullPointerException if any argument is null.
1379         (leaveGroup): ditto.
1380         * java/net/PlainDatagramSocketImpl.java: Updated comments.
1381         * java/net/PlainSocketImpl.java (timeout): Added.
1382         (getInputStream): Added FIXME comment on how to support timeouts
1383         for TCP.
1384         * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1385         * java/net/Socket.java: Added FIXME comments to identify
1386         conflicting specs between the JCL and JDK 1.2 documents.
1387         * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1388         if host is null.  Get localport value resolved by kernel if bind
1389         lport is 0.
1390         (receive): Implemented support for timeouts in UDP.
1391         (setOption): Implemented based on natPlainSocketImpl version.
1392         (getOption): ditto.
1393         * java/net/natPlainSocketImpl.cc (bind): Get localport value
1394         resolved by kernel if bind lport is 0.
1395         (connect): Get localport value resolved by kernel if bind wasn't
1396         done to set localport.
1397         (accept): Implemented support for timeouts for ServerSocket.
1398         (setOption): Save value for SO_TIMEOUT.
1399         (getOption): Return timeout for SO_TIMEOUT.
1401 1999-05-26  Bryce McKinlay <bryce@albatross.co.nz>
1403         * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1404         * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1405         (setOption): Made abstract.
1406         * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1407         to avoid cpp conflicts in native code.
1408         * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1409         cpp conflicts in native code.
1410         * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1411         * java/net/Socket.java (getLocalAddress): Implemented.
1412         (setTcpNoDelay): Implemented.
1413         (getTcpNoDelay): Implemented.
1414         (setSoLinger): Implemented.
1415         (getSoLinger): Implemented.
1416         (getSoTimeout): Verify class type.
1417         (setSendBufferSize): Implemented.
1418         (getSendBufferSize): Implemented.
1419         (setReceiveBufferSize): Implemented.
1420         (getReceiveBufferSize): Implemented.
1421         (toString): Prepended "Socket".
1422         * java/net/SocketImpl.java (toString): Rewritten.
1423         (getOption): Made abstract.
1424         (setOption): Made abstract.
1425         * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1426         (setOption): Implemented.
1427         (getOption): Implemented.
1429 1999-05-26  Warren Levy  <warrenl@cygnus.com>
1431         * java/net/DatagramSocket.java (DatagramSocket): Get local host
1432         address when null.  Set SO_REUSEADDR for multicasts.
1433         (getSoTimeout): Implemented.
1434         (setSoTimeout): Implemented.
1435         * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1436         * java/net/MulticastSocket.java (getInterface): Implemented.
1437         (setInterface): Implemented.
1438         (setTimeToLive): Check for invalid ttl.
1439         (joinGroup): Verify multicast address and security.
1440         (leaveGroup): Verify multicast address and security.
1441         (send): Implemented.
1442         * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1443         (iface): Added.
1444         (ttl): Added.
1445         (setOption): Added.
1446         (getOption): Added.
1447         (mcastGrp): Added.
1448         (getTTL): Implemented as non-native.
1449         (setTTL): ditto.
1450         (join): ditto.
1451         (leave): ditto.
1452         * java/net/ServerSocket.java (setSoTimeout): Implemented.
1453         (getSoTimeout): Implemented.
1454         (setSocketFactory): Made synchronized.
1455         * java/net/Socket.java (setSoTimeout): Implemented.
1456         (getSoTimeout): Implemented.
1457         (close): Made synchronized.
1458         (setSocketImplFactory): Made synchronized.
1459         * java/net/SocketImpl.java: Implement SocketOptions interface.
1460         * java/net/natInetAddress.cc: Corrected module name at top of file.
1461         * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1462         (bind): Added FIXME.
1463         (peek): Implemented.
1464         (setTTL): Removed.
1465         (getTTL): Removed.
1466         (join): Removed.
1467         (leave): Removed.
1468         (mcastGrp): Added.
1469         (setOption): Implemented for SO_REUSEADDR.
1470         (getOption): Implemented for SO_REUSEADDR.
1472 1999-05-24  Tom Tromey  <tromey@cygnus.com>
1474         * java/util/ResourceBundle.java (getBundle): Throw
1475         NullPointerException if baseName is null.
1477 1999-05-22  Tom Tromey  <tromey@cygnus.com>
1479         * java/util/zip/ZipInputStream.java (fill): New method.
1480         (compressed_len): New instance variable.
1481         (getNextStream): Set it.
1482         (read): Reset inflater on EOF.  Only read via `super' if entry is
1483         deflated.
1484         (skip): Only skip via `super' if entry is deflated.
1485         * java/util/zip/Deflater.java (last_input_count): Removed.
1486         * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1487         is length 0.
1488         (needsInput): Don't use last_input_count.
1489         (setInput): Don't set last_input_count.
1490         * java/util/zip/natInflater.cc (getRemaining): Return correct
1491         result.
1492         (inflate): Return 0 if input array is length 0.
1493         (setInput): Don't set last_input_count.
1494         * java/util/zip/Inflater.java (last_input_count): Removed.
1496 1999-05-21  Tom Tromey  <tromey@cygnus.com>
1498         * Makefile.in: Rebuilt.
1499         * Makefile.am (INCLUDES): Added $(ZINCS).
1500         * configure: Rebuilt.
1501         * configure.in (ZINCS): New subst.
1503 1999-05-21  Andrew Haley  <aph@cygnus.com>
1505         * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1506         to signal options to allow the same exceptions to be rethrown
1507         later.
1509 1999-05-20  Andrew Haley  <aph@cygnus.com>
1511         * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1512         added.
1513         * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1514         (INIT_FPE): Exception string made more informative.
1515         * include/sparc-signal.h (INIT_FPE): Exception string made more
1516         informative.
1517         * testsuite/libjava.lang/Divide_1.java: New file.
1518         * testsuite/libjava.lang/Divide_1.out: New file.
1520 1999-05-19  Tom Tromey  <tromey@cygnus.com>
1522         * aclocal.m4, configure: Rebuilt.
1523         * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1525         * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1526         method.
1528         * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1529         Include <stdlib.h>.
1530         * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1531         Include <stdlib.h>.
1532         (update): Fail in default case.  Always initialize `strat'.
1534         * mauve-libgcj: Enable java.util.zip.
1536 1999-05-18  Warren Levy  <warrenl@cygnus.com>
1538         * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1539         DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1540         PlainDatagramSocketImpl.java, and SocketOptions.java.
1541         (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1542         * Makefile.in: Rebuilt.
1544         * java/net/DatagramPacket.java: New file.
1545         * java/net/DatagramSocket.java: New file.
1546         * java/net/DatagramSocketImpl.java: New file.
1547         * java/net/MulticastSocket.java: New file.
1548         * java/net/PlainDatagramSocketImpl.java: New file.
1549         * java/net/SocketOptions.java: New file.
1550         * java/net/natPlainDatagramSocketImpl.cc: New file.
1552 1999-05-18  Tom Tromey  <tromey@cygnus.com>
1554         * java/util/zip/ZipOutputStream.java (level): Initial value is
1555         Deflater.DEFAULT_COMPRESSION.
1556         (close): New method.
1557         (closeEntry): Likewise.
1558         (finish): Likewise.
1559         (put_version): Likewise.
1560         (write_entry): Likewise.
1561         (put2, put4): Now return `int'.
1562         (comment): Default to empty string.
1563         (bytes_written): New instance variable.
1564         (chain): Likewise.
1565         * java/util/zip/ZipEntry.java (setComment): Limit length of
1566         comment string.
1567         (setCrc): Check CRC validity.
1568         (setExtra): Check argument validity.
1569         (setMethod): Likewise.
1570         (setSize): Likewise.
1571         (ZipEntry): Likewise.
1572         * include/javaprims.h: Updated namespace declarations.
1573         * Makefile.in: Rebuilt.
1574         * Makefile.am (ordinary_java_source_files): Mention new files.
1575         (nat_source_files): Likewise.
1576         * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1577         EOFException.
1578         (read4): Likewise.
1579         (getInputStream): Handle compressed entries.
1580         * java/util/zip/GZIPOutputStream.java: New file.
1581         * java/util/zip/GZIPInputStream.java: New file.
1582         * java/util/zip/DataFormatException.java: New file.
1583         * java/util/zip/CheckedInputStream.java: New file.
1584         * java/util/zip/CheckedOutputStream.java: New file.
1585         * java/util/zip/InflaterInputStream.java: Implemented.
1586         * java/util/zip/natInflater.cc: New file.
1587         * java/util/zip/Deflater.java: Implemented.
1588         * java/util/zip/natDeflater.cc: New file.
1589         * java/util/zip/DeflaterOutputStream.java: Implemented.
1591         * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1592         ZipException, not IOException.
1593         * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1594         not IOException.
1596 1999-05-17  Tom Tromey  <tromey@cygnus.com>
1598         * java/lang/natSystem.cc (init_properties): URL now points to
1599         sourceware.
1601 1999-05-12  Per Bothner  <bothner@cygnus.com>
1603         * java/util/Calendar.java (set):  First call computeFields if needed.
1604         * java/util/natGregorianCalendar.cc (computeTime):  Cast 1000 to jlong.
1605         
1606 1999-05-12  Tom Tromey  <tromey@cygnus.com>
1608         * configure: Rebuilt.
1609         * configure.in: Look for -ldl when using the Boehm collector.
1610         Look for sched_yield in -lposix4.
1612 1999-05-12  Per Bothner  <bothner@cygnus.com>
1614         * java/io/File.java (mkdirs):  Handle a null parent directory.
1616 1999-05-12  Tom Tromey  <tromey@cygnus.com>
1618         * include/javaprims.h: Updated namespace declarations.
1619         * classes.pl (scan): Uniquify class list.
1620         * Makefile.in, configure: Rebuilt.
1621         * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1622         (built_java_source_files): New macro.
1623         (nat_headers): Added built_java_source_files.
1624         (javao_files): Likewise.
1625         (EXTRA_libgcj_la_SOURCES): Likewise.
1626         (libgcj.zip): Create built class files.
1627         ($(built_java_source_files:.java=.class)): New target.
1628         (jv_convert_LDADD): Added -L$(here)/.libs.
1629         * configure.in: Create links for ConcreteProcess.java and
1630         natConcreteProcess.cc.
1631         * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1632         * java/lang/natEcosProcess.cc: New file.
1633         * java/lang/EcosProcess.java: New file.
1634         * java/lang/PosixProcess.java: New file.
1635         * java/lang/natPosixProcess.cc: New file.
1637 1999-05-12  Warren Levy  <warrenl@cygnus.com>
1639         * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1640         * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1641         * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1642         (connect): Throw ConnectException.
1644 1999-05-11  Tom Tromey  <tromey@cygnus.com>
1646         * Makefile.in: Rebuilt.
1647         * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1648         * libgcj.spec.in: Don't use `+'.  Instead, put old lib spec after
1649         our libraries.
1651         * Makefile.in: Rebuilt.
1652         * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1653         and it causes problems with libtool.
1655         * Makefile.in, configure: Rebuilt.
1656         * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1657         (jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
1658         (jv_convert_DEPENDENCIES): Added ZDEPS.
1659         * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1660         directory.
1661         (THREADSPEC): Added `-L' to point to qthreads build directory.
1662         (ZLIBS): New subst.
1663         (ZDEPS): New subst.
1665         * configure, Makefile.in: Rebuilt.
1666         * Makefile.am (toolexeclib_DATA): New macro.
1667         * configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
1668         Recognize --with-system-zlib.
1669         (GCSPEC): New subst.
1670         (THREADSPEC): New subst.
1671         (SYSTEMSPEC): New subst.
1672         (ZLIBSPEC): New subst.
1673         * libgcj.spec.in: New file.
1675 1999-05-10  Tom Tromey  <tromey@cygnus.com>
1677         * java/io/InputStreamReader.java (read): If length is 0, return
1678         0.  Reset `wpos' and `wcount' when buffer has been filled and
1679         emptied.
1681         * java/util/Properties.java (save): Removed `FIXME' comment.
1682         (load): Invalid characters in \u now treated as terminators.
1683         Make sure to append character resulting from `\' handling.
1684         Cast to `char' when appending to key or value.
1685         (skip_ws): Inverted test for whitespace.
1687         * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1688         `FIXME' comment.
1689         (readLine): Likewise.
1690         (readFully): Implemented.
1692         * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1694         * java/awt/natToolkit.cc: Added copyright header.
1695         * java/util/zip/InflaterInputStream.java: Added copyright header.
1697         * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1698         comment.
1699         * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1700         `FIXME' comment.
1701         (getNextStream): Likewise.
1703         * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1704         locale.toString().
1705         (getBundle): Don't explicitly throw null pointer exception.
1707         * gnu/gcj/RawData.java: Added copyright header.
1709         * include/jni.h (_Jv_va_list): Always define as va_list.
1711 1999-05-9  Anthony Green  <green@cygnus.com>
1713         * java/text/DateFormat.java (computeInstance): Separate time
1714         and date styles.
1715         (getDateTimeInstance): Ditto.
1716         (getDateTimeInstance(int,int)): New method.
1718         * Makefile.in: Rebuilt.
1719         * Makefile.am (ordinary_java_source_files): Add new classes.
1721         * java/util/PropertyResourceBundle.java: New file.
1722         * gnu/gcj/util/EnumerationChain.java: New file.
1724 1999-05-07  Tom Tromey  <tromey@cygnus.com>
1726         * acconfig.h (GCJVERSION): New undef.
1727         * java/lang/natSystem.cc (init_properties): Define java.version,
1728         java.class.version, os.name, os.arch, os.version.
1729         Include <sys/utsname.h> if required.
1730         * configure: Rebuilt.
1731         * configure.in: Compute and define GCJVERSION.
1733         * java/lang/natSystem.cc (default_file_encoding): Now static.
1735         * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1737         * libtool-version: New file.
1738         * Makefile.in: Rebuilt.
1739         * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1740         -release.
1742         * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1743         Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1744         again (oops).
1746         * mauve-libgcj: Test more from java.text.  Don't mention 1.1 tests
1747         (we pick those up already).
1749 1999-05-05  Per Bothner  <bothner@cygnus.com>
1751         * java/awt/*:  Check a bunch of classes, a few complete, but mostly
1752         stub classes.  (This is enough to get Kawa to compile against libgcj.)
1754         * gnu/gcj/RawData.java:  New class.
1755         * doc/cni.sgml:  Document RawData.
1757         * java/util/zip/InflaterInputStream.java:  New stub class.
1758         * java/util/zip/ZipInputStream.java:  New class.  Partly works.
1759         * java/util/zip/ZipConstants.java:  Add two (internal) constants.
1760         * java/util/zip/ZipEntry.java (timeFromDOS):  New static method.
1761         * java/util/zip/ZipFile.java:  Now mostly works (unless compressed).
1762         * java/util/zip/ZipOutputStream.java:  Start implementation.
1763         
1764         * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
1765         (default_file_encoding):  New global, initial value is above macro.
1766         (init_properties):  Default file.encoding to default_file_encoding.
1767         
1768         * Makefile.am:  Add new classes.
1770 1999-05-05  Tom Tromey  <tromey@cygnus.com>
1772         * Makefile.in: Rebuilt.
1773         * Makefile.am (CLEANFILES): Don't mention $(class_files).
1774         (clean-local): New target
1776         * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1777         (load, loadLibrary): Now native.
1778         (init): New method.
1779         * java/lang/Runtime.java (load, loadLibrary): Now native.
1780         (init): New native method.
1781         (Runtime): Use init.
1782         * prims.cc: Include <ltdl.h> if required.
1783         (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1785 1999-05-05  Gilles Zunino  <Gilles.Zunino@hei.fr>
1787         * configure.in: Switch from irix threads to posix threads
1788         * configure: Regenerate.
1790 1999-04-30  Tom Tromey  <tromey@cygnus.com>
1792         * Makefile.in: Rebuilt.
1793         * Makefile.am (jv_convert_LDADD): Added -lgcc.
1795 1999-04-29  Tom Tromey  <tromey@cygnus.com>
1797         * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1798         vector when shared.
1800         * java/util/Locale.java (Locale(String,String)): Implement in
1801         terms of 3-argument version; variant now defaults to empty
1802         string.
1803         (toString): Assume variant is not null.
1804         (equals): Assume all strings are not null.
1805         (Locale): Throw NullPointerException if any argument is null.
1807         * java/util/ResourceBundle.java (getBundle): Don't try the base
1808         name; now implicit in partialGetBundle call.
1809         (trySomeGetBundle): Search for parent bundles and call setParent
1810         as required.
1811         (partialGetBundle): Added `langStop' argument.  Use
1812         `Locale.toString' to compute bundleName.
1813         (resource_cache): New static field.
1814         (partialGetBundle): Cache the returned resource bundle.  Now
1815         synchronized.
1817         * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1818         missing `<'.
1820         * mauve-libgcj: Enable Collator and RuleBasedCollator.
1821         * java/text/natCollator.cc (decomposeCharacter): `base' now
1822         `const'.
1823         * Makefile.in: Rebuilt.
1824         * Makefile.am (ordinary_java_source_files): Added
1825         CollationElementIterator, CollationKey, Collator,
1826         RuleBasedCollator.
1827         (nat_source_files): Added natCollator.cc.
1828         * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1829         (compare): Pass `this' to CollationElementIterator constructor.
1830         (getCollationElementIterator): Likewise.
1831         (ceiNext): Fix off-by-one error when finding initial substring.
1832         (next): Correctly mask off bits when computing return value.
1833         Fixed return values when one string is shorter than the other.
1834         * java/text/CollationElementIterator.java (collator): New field.
1835         (CollationElementIterator): Added collator argument.
1836         (next): Call ceiNext on collator object.
1838 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1840         * natCollator.cc: New file.
1842         * java/util/GregorianCalendar.java (setDefaultTime): New method.
1843         (GregorianCalendar): Use it in all constructors.
1844         * java/util/Calendar.java (Calendar): Changed argument name to
1845         `zone' to match code.
1847         * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1848         * java/text/CollationKey.java: New file.
1849         * java/text/CollationElementIterator.java: New file.
1850         * java/text/Collator.java: New file.
1851         * java/text/RuleBasedCollator.java: New file.
1853         * Makefile.in: Rebuilt.
1854         * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1855         (jv_convert_LDADD): Explicltly add -lm -lc.
1857 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1859         * configure, Makefile.in: Rebuilt.
1860         * configure.in: Added AM_PROG_LIBTOOL.
1861         (GCOBJS): Use `.lo' form of files.
1862         (THREADOBJS): Likewise.
1863         (GCDEPS): Use `.la' form of library.
1864         (GCLIBS): Set to be the same as GCDEPS.
1865         (THREADDEPS): Use `.la' form of library.
1866         (THREADLIBS): Set to be the same as THREADDEPS.
1867         * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1868         toolexeclib_LIBRARIES.
1869         (libgcj_la_SOURCES): Renamed for libtoolization.
1870         (EXTRA_libgcj_la_SOURCES): Likewise.
1871         (libgcj_la_DEPENDENCIES): Likewise.
1872         (libgcj_la_LIBADD): Likewise.
1873         ($(nat_files)): Use LTCXXCOMPILE.
1874         ($(c_files)): Use LTCOMPILE.
1875         (GCJCOMPILE): New macro.
1876         (.class.o): Use it.
1877         (.java.o): Likewise.
1878         ($(javao_files)): Likewise.
1879         (jv_convert_LINK): Use LIBTOOL.
1880         (nat_files): Use `.lo' files.
1881         (c_files): Likewise.
1882         (javao_files): Likewise.
1883         (.class.lo): Renamed.
1884         (.java.lo): Likewise.
1885         ($(nat_files)): Depend on %.lo.
1886         ($(c_files)): Likewise.
1887         ($(javao_files)): Likewise.
1888         (jv_convert_LDADD): Link against .lo files.
1889         (jv_convert_DEPENDENCIES): Depend on .lo files.
1890         (maintainer-check): Depend on libgcj.la, but examine .a file.
1891         (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1892         (libgcj_la_LDFLAGS): New macro.
1894 1999-04-23  Warren Levy  <warrenl@cygnus.com>
1896         * Makefile.am: Added URLDecoder and URLEncoder.
1897         * Makefile.in: Rebuilt.
1899         * java/net/ServerSocket.java (setSocketFactory): Renamed from
1900         setSocketImplFactory to match spec.
1901         * java/net/Socket.java (getSoLinger): Changed return type to
1902         match spec.
1904         * java/net/URLDecoder.java: New file.
1905         * java/net/URLEncoder.java: New file.
1907 1999-04-21  Tom Tromey  <tromey@cygnus.com>
1909         * java/lang/natString.cc (getBytes): Reverted earlier change and
1910         applied correct fix from Per Bothner.
1912         * java/lang/String.java: Don't throw
1913         UnsupportedEncodingException.
1915         * java/lang/natString.cc (getBytes): Correctly size result
1916         buffer.  From Bryce McKinlay <bryce@albatross.co.nz>.
1918 1999-04-20  Andrew Haley  <aph@cygnus.com>
1920         * include/sparc-signal.h: new file.
1921         * configure.in: include/sparc-signal.h added.
1922         * configure: regenerated.
1923         * prims.cc (JvRunMain): signal handling code rewritten to be more
1924         portable.
1925         (catch_segv): ditto.
1926         (catch_fpe): ditto.
1927         * include/i386-signal.h: reorganized.
1928         * include/default-signal.h: reorganized.
1930 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1932         * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1933         once.  From Anthony Green.
1935 1999-04-19  Andrew Haley  <aph@cygnus.com>
1937         * Makefile.in: Processed with new automake.
1939 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1941         * include/javaprims.h: Removed security namespace.
1943 1999-04-20  Anthony Green  <green@cygnus.com>
1945         * java/io/PrintStream.java (println): Remove extra println.
1947 1999-04-19  Anthony Green  <green@cygnus.com>
1949         * Makefile.in: Rebuilt.
1950         * Makefile.am (ordinary_java_source_files): Add new security files.
1952         * java/security/NoSuchAlgorithmException.java,
1953         java/security/MessageDigest.java: New files.
1955         * include/javaprims.h: Add security namespace.
1957 1999-04-16  Per Bothner  <bothner@cygnus.com>
1959         * gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
1960         * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1961         * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1962         * gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
1963         * gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
1964         * gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
1965         * gnu/gcj/convert/natInput_SJIS.cc:  New file.
1966         * gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
1967         * gnu/gcj/convert/natOutput_SJIS.cc:  New file.
1968         * gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
1969         * gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
1970         * gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.
1971         * Makefile.am:  Various changes for new files and conversions.
1973         * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1974         New overloading, allows greater efficiency.
1975         * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1976         New overloading (for efficiency - avoids copying).
1978         * gnu/gcj/convert/Output_UTF8.java:  Fix typo: 0xC0 -> 0c3F.
1979         * gnu/gcj/convert/Input_UTF8.java:  Fix typos in bit masks.
1981         * java/io/InputStreamReader.java (<init>):  Set super.in correctly.
1982         * java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
1983         (writeChars):  Don't be quite so eager to flush.
1984         * java/io/PrintStream.java:  Rewrite.  Now more similar to
1985         OutputStreamWriter, using explicit UnicodeToBytes converter.
1986         Also, autoflush does not need to flush so often.
1987         * java/lang/natString.cc (getBytes):  More efficient algorithm.
1988         (init(jbyteArray,jint,jint,jstring)):  More efficient.
1989         
1990 1999-04-15  Warren Levy  <warrenl@cygnus.com>
1992         * Makefile.am (ordinary_java_source_files): Added new Connection 
1993         and Handler classes in gnu.gcj.protocol.file package.
1994         * Makefile.in: Rebuilt.
1996         * gnu/gcj/protocol/file/Connection.java: New file.
1997         * gnu/gcj/protocol/file/Handler.java: New file.
1998         * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1999         if doInput allows input.
2000         (getOutputStream): Check if doOutput allows output.
2001         * java/net/URLStreamHandler.java (parseURL): Fix indentation.
2003 1999-04-14  Tom Tromey  <tromey@cygnus.com>
2005         * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
2006         buffer larger to work around bug.
2007         From Bryce McKinlay <bryce@albatross.co.nz>.
2009 1999-04-14  Andrew Haley  <aph@cygnus.com>
2011         * java/lang/natDouble.java (doubleToLongBits): ensure that all
2012         NaNs are always converted to the same long value.  
2013         * java/lang/natFloat.java (floatToIntBits): ditto, but for float
2014         converted to int.
2016 1999-04-13  Tom Tromey  <tromey@cygnus.com>
2018         * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
2019         instead switch on actual element type.
2021         * Makefile.in: Rebuilt.
2022         * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
2024 1999-04-13  Andrew Haley  <aph@cygnus.com>
2026         * include/i386-signal.h, include/default-signal.h: New files.   
2027         * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
2028         handler.
2029         (catch_fpe): New function.      
2030         * configure.in: Make link to appropriate include/java-signal.h.
2031         * configure: Rebuilt.
2032         * Makefile.am: include/java-signal.h added to dependency list.
2033         * Makefile.in: Rebuilt.
2035 1999-04-12  Urban Widmark <urban@svenskatest.se>
2037         * java/io/DataInputStream.java (readLine): Corrected handling of
2038         empty lines, from null to "".
2040 1999-04-12  Tom Tromey  <tromey@cygnus.com>
2042         * Makefile.in: Rebuilt.
2043         * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
2045         * java/lang/natSystem.cc (SystemClass): New define.
2046         (init_properties): Synchronize.
2048 1999-04-08  Geoff Berry  <gcb@gnu.org>
2050         * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
2051         * natPlainSocketImpl.cc (accept): Add missing else if check
2052         for AF_INET6.
2054 1999-04-08  Tom Tromey  <tromey@cygnus.com>
2056         * java/lang/Long.java (parseLong): Corrected overflow detection
2057         code.
2058         * java/lang/Integer.java (parseInt): Corrected overflow detection
2059         code.
2061         * java/io/PrintStream.java (print): Handle null string argument.
2062         (println): Likewise.
2064 1999-04-07  Warren Levy  <warrenl@cygnus.com>
2066         * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
2067         Set count to 0 when InputStreamReader returns -1 for EOF.
2069 1999-04-07  Tom Tromey  <tromey@cygnus.com>
2071         * mauve-libgcj: Omit java.text.Collator,
2072         java.text.RuleBasedCollator.
2074 1999-04-06  Tom Tromey  <tromey@cygnus.com>
2076         * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
2077         IOException from getHttpHeaders().
2078         (getHeaderFieldKey): Likewise.
2080         * include/javaprims.h: Regenerated declarations.
2082         * Makefile.in: Rebuilt.
2083         * Makefile.am (ordinary_java_source_files): Updated for removed
2084         files.
2086 1999-04-06  Per Bothner  <bothner@cygnus.com>
2088         * java/util/zip/Adler32.java:  New class.
2089         * java/util/zip/CRC32.java:  Add working method bodies.
2090         * Makefile.am (ordinary_java_source_files):  Add new Adler32 class.
2091         * Makefile.in:  Re-generate.
2093 Tue Apr  6 18:28:42 1999  Warren Levy  <warrenl@cygnus.com>
2095         * gnu/gcj/protocol/http/Connection.java: New file.  Rewritten
2096         from version in removed www hierarchy.
2097         * gnu/gcj/protocol/http/Handler.java: New file.  Copied from
2098         version in removed www hierarchy.
2100         * gnu/gcj/www/protocol/http/Connection.java: Removed.
2101         * gnu/gcj/www/protocol/http/Handler.java: Removed.
2102         * gnu/gcj/www/protocol/http: Removed dir.
2103         * gnu/gcj/www/protocol: Removed dir.
2104         * gnu/gcj/www: Removed dir.
2106         * java/net/HttpURLConnection.java: Revised comments to indicate
2107         missing JDK 1.2 methods.
2109         * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2110         hierarchy rather than the gnu/gcj/www/protocol one.
2111         * java/net/URLConnection.java: Updated status comments.
2112         (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2113         the gnu/gcj/www/content one.
2115 1999-04-06  Per Bothner  <bothner@cygnus.com>
2117         * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2118         The gen-from-JIS program is in $(CONVERT_DIR).
2120 1999-04-06  Tom Tromey  <tromey@cygnus.com>
2122         * mauve-libgcj: Renamed from mauve-libjava.
2124 Tue Apr  6 03:18:38 1999  Warren Levy  <warrenl@cygnus.com>
2126         * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2127         (getResponseMessage): Implemented.
2128         (getResponseVals): New private method.
2130         * java/net/URLConnection.java (getContent): Implemented.
2131         (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2133 1999-04-05  Tom Tromey  <tromey@cygnus.com>
2135         * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2136         (jv_convert_SOURCES): Renamed.
2137         (EXTRA_jv_convert_SOURCES): Likewise.
2138         (jv_convert_LDFLAGS): Likewise.
2139         (jv_convert_LINK): Likewise.
2140         (jv_convert_LDADD): Likewise.
2141         (jv_convert_DEPENDENCIES): Likewise.
2143         * Makefile.in: Rebuilt.
2144         * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2145         tooldir.
2147 Mon Apr  5 02:14:35 1999  Warren Levy  <warrenl@cygnus.com>
2149         * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2150         method for comparison.
2152         * java/net/URLConnection.java (getContentLength): Implemented.
2153         (getContentType): Implemented.
2154         (getContentEncoding): Implemented.
2155         (getExpiration): Implemented.
2156         (getDate): Implemented.
2157         (getLastModified): Implemented.
2158         (getHeaderFieldInt): Implemented.
2159         (getHeaderFieldDate): Implemented.
2161 Fri Apr  2 18:04:52 1999  Warren Levy  <warrenl@cygnus.com>
2163         * java/net/URLConnection.java (toString): Implemented.
2164         (setContentHandlerFactory): Implemented.
2165         (setContentHandler): Wrote new private helper method.
2167 1999-04-01  Tom Tromey  <tromey@cygnus.com>
2169         * Makefile.in: Rebuilt.
2170         * Makefile.am ($(java_source_files:.java=.class): Reverted change
2171         of 1999-03-31; we always want to build all the .class files.
2172         Depend on java_source_files, not libgcj.zip.
2173         (nat_headers): Define in terms of ordinary_java_source_files.
2175 1999-03-31  Tom Tromey  <tromey@cygnus.com>
2177         * Makefile.in: Rebuilt.
2178         * Makefile.am (special_java_source_files): New macro.
2179         (java_source_files): Use it.
2180         (ordinary_java_source_files): New macro.
2181         (java_source_files): Use it.
2182         ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2183         creating headers for those files with hand-maintained headers.
2185         * include/javaprims.h: Regenerated namespace declarations.
2186         * classes.pl (scan): Include [0-9] in regexp for matching class
2187         names; for java.util.zip.CRC32.
2189         * Makefile.in: Rebuilt.
2190         * Makefile.am (nat_headers): Redefined to generate all possible
2191         header files.
2193         * java/util/zip/ZipException.java: In package java.util.zip, not
2194         java.net.
2196 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2198         * configure: Rebuilt.
2199         * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2200         eh-common.h when not building in tree with gcc.
2202         * Makefile.in: Rebuilt.
2203         * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2204         $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2205         nat_headers.
2206         ($(java_source_files:.java=.class)): New target.
2208         * Makefile.in: Rebuilt.
2209         * Makefile.am (java_source_files): Added
2210         java/net/HttpURLConnection.java and
2211         gnu/gcj/www/protocol/http/Connection.java.
2213 Tue Mar 30 15:20:45 1999  Warren Levy  <warrenl@cygnus.com>
2215         * gnu/gcj/www/protocol/http/Connection.java: New file.
2216         * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2217         * java/net/HttpURLConnection.java: New file.
2218         * java/net/URLConnection.java (getHeaderField): Implemented default.
2219         (getHeaderFieldKey): Implemented default method.
2221 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2223         * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2225         * java/util/zip/Deflater.java: Added copyright header.
2226         * java/util/zip/CRC32.java: Added copyright header.
2228         * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2229         that it is automatically generated.
2230         ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2232         * gnu/gcj/convert/BytesToUnicode.java,
2233         gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2234         gnu/gcj/convert/Input_EUCJIS.java,
2235         gnu/gcj/convert/Input_UTF8.java,
2236         gnu/gcj/convert/JIS0208_to_Unicode.cc,
2237         gnu/gcj/convert/JIS0212_to_Unicode.cc,
2238         gnu/gcj/convert/Output_8859_1.java,
2239         gnu/gcj/convert/Output_JavaSrc.java,
2240         gnu/gcj/convert/Output_UTF8.java,
2241         gnu/gcj/convert/UnicodeToBytes.java,
2242         gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2244         * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2246         * Makefile.in, configure: Rebuilt.
2247         * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2248         not if test subdir exists.
2249         (--enable-gcj-classes): Removed; gcj always used to generate
2250         .class files.
2251         (JAVA, JAVAC): Removed.
2252         (--enable-single-compilation, --enable-source-compilation):
2253         Removed.
2254         (here): New subst.
2255         (NATIVE): New conditional.
2256         * Makefile.am (toolexecdir): Renamed from tooldir to allow
2257         `install-exec' to work.
2258         (toolexeclibdir): Likewise.
2259         (toollib_LIBRARIES): Likewise.
2260         (AM_MAKEFLAGS): Don't pass tooldir.
2261         (JAVAC): New macro.
2262         (javao_files): Redefined.
2263         (java_source_files): New macro.
2264         (c_source_files): New macro.
2265         (c_files): Redefined in terms of c_source_files.
2266         (java_io_files, java_lang_files, java_net_files, java_text_files,
2267         java_util_files, gnu_files, java_files): Removed.
2268         (class_io_files, class_lang_files, class_net_files,
2269         class_text_files, class_util_files, class_gnu_files, class_files):
2270         Removed.
2271         (nat_source_files): New macro.
2272         (nat_files): Redefined in terms of nat_source_files.
2273         (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2274         java_source_files.  Removed no-such-file.c.
2275         (here): Removed.
2276         (ETAGS_ARGS): Removed.
2277         (TAGS_DEPENDENCIES): Likewise.
2278         (libgcj.zip): Depend on java_source_files.  Use $(here) and not
2279         pwd in rule.
2280         (src_io_files, src_lang_files, src_text_files, src_util_files,
2281         src_gnu_files): Removed.
2282         Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2283         (BUILT_SOURCES): Removed.
2284         (header-check): New target.
2285         (javadir): Removed.
2286         (noinst_PROGRAMS): New macro.
2287         ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2288         on MAINTAINER_MODE.
2289         ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2290         (gen-from-JIS): Build in top directory.
2291         (convert_source_files): New macro.
2292         (convert_SOURCES): New macro.
2293         (convert_LDFLAGS): Likewise.
2294         (convert_LINK): Likewise.
2295         (convert_LDADD): Likewise.
2296         (convert_DEPENDENCIES): Likewise.
2297         (convert): Removed.
2298         (gen-from-JIS): Removed.
2299         (gen_from_JIS_SOURCES): New macro.
2300         (gen_from_JIS_LDADD): Likewise.
2301         (gen_from_JIS_DEPENDENCIES): Likewise.
2303         * configure: Rebuilt.
2304         * configure.in (CANADIAN): Set to `yes', not `canadian'.
2305         (NULL_TARGET): Initialize to `no'.  Correctly examine $NULL_TARGET
2306         when defining conditional.
2308 Tue Mar 30 10:36:27 1999  Per Bothner  <bothner@cygnus.com>
2310         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  Remove these files.
2311         The Unicode Consortium does not permit their re-distribution.
2312         * Makefile.am, Makefile.in:  Add comments with URLs for removed files.
2313         (JIS0208.h, JIS0212.h):  Do not depend on removed files.
2315 Mon Mar 29 18:58:13 1999  Per Bothner  <bothner@cygnus.com>
2317         * natSystem.c (init_properties):  Use malloc, realloc, free after all.
2319 Mon Mar 29 13:41:02 1999  Per Bothner  <bothner@cygnus.com>
2321         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  New mapping tables
2322         from Unicode Consortium.
2323         * gnu/gcj/convert/{JIS0208.h,JIS0212.h}:  New generated headers.
2324         * gnu/gcj/convert/gen-from-JIS.c:  New utility for maintainers only.
2325         * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2326         New tables, generated using gen-from-JIS.
2327         * gnu/gcj/convert/Output_JavaSrc.java:  New UnicodeToBytes class.
2328         * gnu/gcj/convert/Output_UTF8.java:  Fix bug.
2329         * gnu/gcj/convert/Input_EUCJIS.java:  New BytesToUnicode class.
2330         * gnu/gcj/convert/natInput_EUCJIS.cc:  Native methods for new class.
2332         * gnu/gcj/convert/Convert.java:  New application.
2333         * Makefile.am, Makefile.in (convert):  New program, using Convert.
2334         Build the various JIS conversion tables (in maintainer mode).
2336 Fri Mar 26 16:51:30 1999  Warren Levy  <warrenl@cygnus.com>
2338         * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2340         * java/net/URL.java (URL): Deal with null property value.  Use "."
2341         as separator in building class name.
2342         * java/net/URLConnection.java: Implemented majority of stubbed methods.
2343         * java/net/URLStreamHandler.java (parseURL): Use "" in string
2344         manipulations instead of 'null'.  Comment cleanup.  Use 0 for the
2345         beginning of the substring rather than 'start'.
2347 1999-03-26  Tom Tromey  <tromey@cygnus.com>
2349         * include/java-chartables.h: Rebuilt.
2350         * include/java-chardecomp.h: New file.
2351         * chartables.pl: Generate output files directly.  Added support
2352         for generating decomposition header.
2353         (canonical_decomposition, full_decomposition): New globals.
2354         (DECOMPOSITION): New constant.
2355         (process_char): Call add_decomposition.
2356         (add_decomposition): New sub.
2357         (write_decompositions): New sub.
2359 1999-03-25  Tom Tromey  <tromey@cygnus.com>
2361         * java/text/CollationElementIterator.java: New file.
2363         * mauve-libjava: Omit StringTest.
2365 Wed Mar 24 15:17:49 1999  Warren Levy  <warrenl@cygnus.com>
2367         * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2368         without a '/' when parsing protocol.  Handle ref outside of parseURL.
2369         (hashCode): Implemented.
2370         (set): Don't expand -1 to default port.
2371         (getDefaultPort): Removed.
2373         * java/net/URLStreamHandler.java (parseURL): Implemented.
2374         (toExternalForm): Implemented.
2376 1999-03-23  Tom Tromey  <tromey@cygnus.com>
2378         * java/text/BreakIterator.java (getSentenceInstance):
2379         Implemented.
2380         * gnu/gcj/text/SentenceBreakIterator.java: New file.
2382         * Makefile.in: Rebuilt.
2383         * Makefile.am (nat_headers): Added IllegalAccessException.
2384         * java/lang/natClass.cc (newInstance): Throw
2385         IllegalAccessException, not IllegalAccessError.
2386         Include IllegalAccessException.h.
2388 1999-03-22  Tom Tromey  <tromey@cygnus.com>
2390         * gnu/gcj/text/LineBreakIterator.java: New file.
2391         * java/text/BreakIterator.java (getLineInstance): Implemented.
2393         * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2394         copy constructor private.
2395         (previous, next): Removed erroneous comment about line
2396         separators.
2397         (previous): Correctly recognize break between non-letter on the
2398         left and letter on the right.  Handle apostrophes correctly.
2400         * java/text/BreakIterator.java (getWordInstance): Implemented.
2401         * gnu/gcj/text/WordBreakIterator.java: New file.
2402         * gnu/gcj/text/CharacterBreakIterator.java: Extend
2403         BaseBreakIterator.
2404         * gnu/gcj/text/BaseBreakIterator.java: New file.
2406 1999-03-19  Tom Tromey  <tromey@cygnus.com>
2408         * java/text/BreakIterator.java: New file (partially stubbed out).
2409         * gnu/gcj/text/CharacterBreakIterator.java: New file.
2411         * include/config.h.in: Rebuilt.
2412         * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2413         (HAVE_TIMEZONE): Likewise.
2414         * configure: Rebuilt.
2415         * configure.in: Added timezone checks.
2416         * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2417         timezone.
2419 Fri Mar 19 15:26:35 1999  Per Bothner  <bothner@cygnus.com>
2421         * gnu/gcj/convert/BytesToUnicode.java:  New abstract class.
2422         * gnu/gcj/convert/UnicodeToBytes.java:  New abstract class.
2423         * gnu/gcj/convert/Input_8859_1.java:  New BytesToUnicode sub-class.
2424         * gnu/gcj/convert/Input_UTF8.java:  New BytesToUnicode sub-class.
2425         * gnu/gcj/convert/Output_8859_1.java:  New UnicodeToBytes sub-class.
2426         * gnu/gcj/convert/Output_UTF8.java:  New UnicodeToBytes sub-class.
2427         * java/io/InputStreamReader.java:  Rewrite to use BytesToUnicode.
2428         * java/io/OutputStreamWriter.java:  Rewrite to use UnicodeToBytes.
2430         * java/io/natFileDescriptorPosix.cc (open):  Use O_BINARY flag.
2431         (BSD_COMP):  Kludge needed for Solaris2.
2433 Fri Mar 19 01:49:46 1999  Warren Levy  <warrenl@cygnus.com>
2435         * java/net/URL.java (URL(java.net.URL, string): Moved code to
2436         URL(java.net.URL, string, URLStreamHandler) and call it with a
2437         null handler.  In latter constructor, added SecurityManager check.
2438         (set): Expect null handler on bad protocol rather than an exception.
2439         (setURLStreamHandler): Simplified exception handling; return null
2440         on invalid protocol.
2442 1999-03-18  Tom Tromey  <tromey@cygnus.com>
2444         * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2446         * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2447         methods.
2448         Include PrintStream.h, InputStream.h.
2449         * java/lang/System.java (ForwardingInputStream,
2450         ForwardingOutputStream): Removed.
2451         (setErr, setIn, setOut): Now native.
2453         Reverted patch from 1999-02-12 to work around problem in
2454         libgcc2.c.
2455         * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2456         (_Jv_eh_free): Use free.
2458         * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2459         for path name.  Minor formatting fixes.
2461         * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2463         * prims.cc (fail_on_finalization): New function.
2464         (_Jv_GCWatch): Likewise.
2466         * prims.cc (JvRunMain): Initialize `nullp'.
2467         (nullp): New global.
2468         (catch_segv): Throw nullp.
2470         * Makefile.in: Rebuilt.
2471         * Makefile.am (ZIP): In "null target" case, zip is found in the
2472         build tree.
2474         * prims.cc (_Jv_PrimClass): Initialize all elements of class
2475         object.
2476         Include Modifier.h.
2478         * java/lang/StringBuffer.java (StringBuffer): Don't use
2479         ensureCapacity to set initial capacity.
2480         (capacity): Subtract `length' from return result.
2482 Thu Mar 18 01:53:35 1999  Warren Levy  <warrenl@cygnus.com>
2484         * java/io/natFileDescriptorPosix.cc (open): Throw
2485         FileNotFoundException, but with filename and errno in msg.
2487 Wed Mar 17 11:09:30 1999  Warren Levy  <warrenl@cygnus.com>
2489         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2490         functionality folded into java/net/URL.java per spec.
2491         
2492         * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2493         than EEXIST for throwing FileNotFoundException.
2494         
2495         * java/net/URL.java: Folded in default URLStreamHandlerFactory 
2496         algorithm per JDK 1.2 doc.  Added SecurityManager checks.
2497         
2498         * java/net/URLStreamHandler.java (parseURL): Added stub.
2500 1999-03-15  Andrew Haley  <aph@cygnus.com>
2502         * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2503         by one errors.
2505 1999-03-15  Andrew Haley  <aph@cygnus.com>
2507         * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2508         support.
2510 1999-03-12  Tom Tromey  <tromey@cygnus.com>
2512         * prims.cc (catch_segv): New function.
2513         Include <signal.h> if HANDLE_SEGV defined.  Include
2514         NullPointerException.h.
2515         (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2516         handler.
2518         * java/text/SimpleDateFormat.java (equals): Ensure that object is
2519         a SimpleDateFormat, not just a DateFormat.
2520         (defaultCenturyStart, formatData, pattern): Now private.
2521         (append): Now `final'.  Use `NumberFormat.format'.
2522         (parse): Wrote.
2523         (SimpleDateFormat): Turn off groupin in NumberFormat object.
2525         * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2526         result.
2528         * java/text/MessageFormat.java (format): Use default MessageFormat
2529         constructor.
2530         (parse, parseObject): Wrote.
2532         * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2533         constructor.
2535 1999-03-12  Andrew Haley  <aph@cygnus.com>
2537         * java/lang/String.java (indexOf): Replace with native method for
2538         better performance.
2539         * java/lang/natString.cc (IndexOf): As above.
2541         * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2542         Argument check corrected.
2543         (init(jbyteArray,jint,jint,jstring)): Likewise.
2544         
2545         * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2546         1.2 compliant method.
2548         * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2549         added.
2550         * java/lang/Float.java (byteValue, shortValue): Likewise.
2552 1999-03-11  Tom Tromey  <tromey@cygnus.com>
2554         * java/text/DecimalFormat.java (parse): Wrote.
2556         * java/text/ChoiceFormat.java (parse): Set error index on
2557         ParsePosition object.
2559         * java/lang/Integer.java (parseInt): Throw exception on overflow
2560         when intermediate result is most negative number.  Changed
2561         overflow detection as well.
2562         * java/lang/Long.java (parseLong): Likewise.
2564         * configure, Makefile.in: Rebuilt.
2565         * configure.in (NULL_TARGET, CANADIAN): New conditionals.  Set
2566         CANADIAN when building in source tree that doesn't include gcc.
2567         * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2568         define.
2570         * java/text/ChoiceFormat.java (nextDouble): Correct some
2571         off-by-one errors when masking or adding.
2573         * java/text/DecimalFormat.java (format): Fill in FieldPosition
2574         parameter, if given.  Use `%', not IEEEremainder.
2575         (scanFix): Throw error if multiplier already set.
2576         (computePattern): Wrote.
2578 1999-03-11  Andrew Haley  <aph@cygnus.com>
2580         * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2581         52.
2582         (nextDouble): Corrected masking logic.  Handle interaction between
2583         `next' and negative numbers.
2585 Wed Mar 10 18:58:37 1999  Warren Levy  <warrenl@cygnus.com>
2587         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2588         * java/net/URL.java: Added general comments.
2590 1999-03-10  Tom Tromey  <tromey@cygnus.com>
2592         * java/text/ChoiceFormat.java (parse): Wrote.
2594         * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2596         * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2597         Create ChoiceFormat objects.
2598         (format): Special-case ChoiceFormat.
2599         (scanFormatElement): Include { and } in generated style string.
2601 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2603         * java/text/ChoiceFormat.java: New file.
2605 Tue Mar  9 17:09:18 1999  Warren Levy  <warrenl@cygnus.com>
2607         * java/net/BindException.java: Created.
2608         * java/net/ConnectException.java: Created.
2609         * java/net/ContentHandler.java: Created.
2610         * java/net/ContentHandlerFactory.java: Created.
2611         * java/net/FileNameMap.java: Created.
2612         * java/net/MalformedURLException.java: Created.
2613         * java/net/NoRouteToHostException.java: Created.
2614         * java/net/ProtocolException.java: Created.
2615         * java/net/ServerSocket.java (@author): Fixed typo.
2616         * java/net/Socket.java (@author): Fixed typo.
2617         * java/net/SocketImpl.java (@author): Fixed typo.
2618         * java/net/SocketImplFactory.java (@author): Fixed typo.
2619         * java/net/URL.java: Created - nearly complete.
2620         * java/net/URLConnection.java: Created - near-empty stub.
2621         * java/net/URLStreamHandler.java: Created - incomplete stub.
2622         * java/net/URLStreamHandlerFactory.java: Created.
2623         * java/net/UnknownServiceException.java: Created.
2625 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2627         * java/lang/System.java (ForwardingInputStream): New class.
2628         (ForwardingOutputStream): Likewise.
2629         (in, out, err): Now `final' forwarding streams.
2630         (setIn, setOut, setErr): Use appropriate method on forwarding
2631         streams.
2633         * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2634         class.
2636 Tue Mar  9 12:16:53 1999  Per Bothner  <bothner@cygnus.com>
2638         * java/util/zip/CRC32.java:  New class (just an incomplete stub).
2639         * java/util/zip/Checksum.java:  New interface (complete).
2640         * java/util/zip/Deflater.java:  New class (near-empty stub).
2641         * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2642         * java/util/zip/ZipConstants.java:  New interface (near-empty stub).
2643         * java/util/zip/ZipEntry.java:  New class (complete).
2644         * java/util/zip/ZipException.java:  New class (complete).
2645         * java/util/zip/ZipFile.java:  New class (incomplete stub).
2646         * java/util/zip/ZipOutputStream.java:  New class (incomplete stub).
2648 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2650         * java/text/MessageFormat.java (MessageFormatElement): Removed
2651         `public' specifiers.
2653         * java/text/DecimalFormat.java (scanFormat): Increment index
2654         before processing exponential format.  Fixed a couple typos in
2655         exception messages.
2656         (format): Correct normalization of exponent.
2658 1999-03-08  Tom Tromey  <tromey@cygnus.com>
2660         * java/text/SimpleDateFormat.java (parse): Throw
2661         IllegalArgumentException, not ParseException.
2663 1999-03-05  Tom Tromey  <tromey@cygnus.com>
2665         * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2666         when constructing DateFormatSymbols.  Initialize numberFormat
2667         field of superclass.
2669         * java/text/DateFormat.java (equals): Rewrote.
2670         (getAvailableLocales): New method.
2671         (getDateInstance): New methods.
2672         (getDateTimeInstance): Likewise.
2673         (getTimeInstance): Likewise.
2674         (getInstance): New method.
2675         (computeInstance): New method.
2677         * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2678         for US.
2679         (safeGetResource): New method.
2680         (DateFormatSymbols): Use Locale paramater.
2681         (equals): Now protected.
2682         Made instance variables private.
2684 1999-03-04  Tom Tromey  <tromey@cygnus.com>
2686         * java/text/DecimalFormat.java: New file.
2688         * java/text/NumberFormat.java (groupingUsed,
2689         maximumFractionDigits, maximumIntegerDigits,
2690         minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2691         New fields.
2692         (setDecimalSeparatorAlwaysShown, setMultiplier,
2693         setPositivePrefix): Removed.
2694         (setMinimumFractionDigits, setMaximumFractionDigits):
2695         Implemented.
2696         (format): Now final.
2697         Added many new methods.
2699         * Makefile.in: Rebuilt.
2700         * Makefile.am (gnu_files): New macro.
2701         (java_files): Added gnu_files.
2702         (class_gnu_files): New macro.
2703         (class_files): Use it.
2704         (src_gnu_files): New macro.
2705         (gnu.o): New target.
2706         (javao_files): Added gnu.o.
2708         * gnu/gcj/text/LocaleData_en_US.java: New file.
2709         * gnu/gcj/text/LocaleData_en.java: New file.
2710         * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2711         (DecimalFormatSymbols): Use ResourceBundle to find resources.
2712         (safeGetString): New method.
2713         (safeGetChar): Likewise.
2715 1999-03-03  Tom Tromey  <tromey@cygnus.com>
2717         * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2718         constants.
2720         * java/text/FieldPosition.java (equals): Don't check for null
2721         object; instanceof does this.
2723         * java/util/Locale.java (clone): New method.
2724         (equals): Likewise.
2726 Wed Mar  3 17:20:15 1999  Anthony Green  <green@cygnus.com>
2728         * doc/cni.sgml: New file.
2730 1999-03-03  Tom Tromey  <tromey@cygnus.com>
2732         * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2734         * java/text/DecimalFormatSymbols.java: New file.
2736 1999-03-02  Tom Tromey  <tromey@cygnus.com>
2738         * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2739         exists.
2740         * configure: Rebuilt.
2741         * configure.in: Check for sys/filio.h.
2743         * java/lang/Runtime.java (checkLink): Throw NullPointerException
2744         if required.
2745         (load): Always throw UnsatisfiedLinkError.
2746         (loadLibrary): Likewise.
2748 1999-03-02  Anthony Green  <green@cygnus.com>
2750         * LIBGCJ_LICENSE: New file.
2751         * LIBJAVA_LICENSE: Removed.
2752         * Many files: libjava now libgcj.
2753         
2754 1999-03-02  Tom Tromey  <tromey@cygnus.com>
2756         * include/java-chartables.h: Rebuilt.
2757         * chartables.pl (print_block): Make table `const'.
2758         (print_numerics): Likewise.
2759         (print_single_map): Likewise.
2760         (print_all_block): Likewise.
2761         (print_case_table): Likewise.
2762         (print_fast_tables): Likewise.
2763         * java/lang/natCharacter.cc (table_search): `table' argument now
2764         const.
2766 1999-03-01  Tom Tromey  <tromey@cygnus.com>
2768         * java/util/Date.java (before, after): Inverted logic.
2770         * java/util/Date.java (parse): Handle case where first character
2771         in string is open parenthesis.
2772         (skipParens): Rewrote.
2774         * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2775         * java/lang/reflect/natField.cc: Include <stdlib.h>.
2777         * java/util/Date.java (parse): Correctly compute beginning of
2778         punctuation.
2780         * java/util/Hashtable.java (get): Throw NullPointerException if
2781         key is null.
2782         (containsKey): Likewise.
2784         * java/util/Properties.java (list): Truncate value to 37
2785         characters and add `...'.
2787         * java/lang/Byte.java (parseByte): Pass `radix' to
2788         Integer.parseInt.
2790         * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2791         fprintf.
2792         Include System.h, PrintStream.h.
2794         * java/lang/natSystem.cc (init_properties): Don't use malloc,
2795         realloc, or free.
2797         * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2798         exists.
2799         * configure: Rebuilt.
2800         * configure.in: Check for getpwuid_r.  Look for `pwd.h', not
2801         `pwd.d'.
2803         * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2805         * java/lang/SecurityManager.java: Import java.net.*.
2806         (checkMulticast): New methods.
2808 Fri Feb 26 14:54:52 1999  Per Bothner  <bothner@cygnus.com>
2810         * Makefile.am, Makefile.in (java/lang/reflect/Method.h):  New rule.
2811         (nat_files):  Add java/lang/reflect/natArray.o.
2812         (nat_headers):  Add Field.h and NoSuchFieldException.h.
2813         
2814         * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2815         _Jv_GetStaticShortField, _Jv_GetStaticByteField):  New inline methods.
2816         (_Jv_FromReflectedField):  Fix buglet.
2817         * include/jvm.h (_Jv_NewMultiArray):  New declaration.
2818         * include/java-assert.h (JvFail):  Pass message string to _Jv_Abort.
2819         * prims.cc (_Jv_Abort):  Include message in print-out.
2821         * prims.cc (_Jv_equal):  New method (compare Utf8Const and jstring).
2822         (new_multi_array):  Rename to _Jv_NewMultiArray.  Make non-static.
2823         * include/jvm.h (_Jv_NewMultiArray, _Jv_equal):  New declarations.
2825         * configure.in (AC_CHECK_HEADERS), configure:  Add pwd.h.
2826         * include/config.h.in (HAVE_PWD_H):  New feature macro.
2827         * java/lang/natSystem.cc (init_properties):  Set file.encoding,
2828         user.name, user.home, user.dir.
2830         * java/lang/reflect/Array.java:  New class.
2831         * java/lang/reflect/natArray.cc:  New native methods.
2832         * include/javaprims.h:  Declare java::lang::reflect::Array.
2834         * java/lang/Class.h (getField):  New private method.  Add friends.
2835         * java/lang/Class.java (getField):  Add private overload.
2836         * java/lang/natClass.cc (getField, getField, getDeclaredField,
2837         getDeclaredMethods):  Add working implementations.
2838         * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2839         Finish implementation, except for access control.
2841         * java/lang/reflect/Modifier.java (toString):  New overload.
2842         * include/java-method.h:  New file.
2843         * java/lang/reflect/Method.java (index):  Replaced by offset field.
2844         Remove various private fields - get them from _Jv_Field instead.
2845         * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2846         New method implementations.
2848         * java/text/NumberFormat.java:  Add a bunch of methods.
2850 Mon Feb 22 17:52:34 1999  Per Bothner  <bothner@cygnus.com>
2852         * java/lang/StringBuffer.java (getChars):  Fix bounds checks.
2854 1999-02-26  Tom Tromey  <tromey@cygnus.com>
2856         * include/config.h.in: Rebuilt.
2857         * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2858         GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2859         HAVE_GETHOSTBYADDR_R): New defines.
2860         * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2861         gethostbyaddr_r if available.
2862         Include <errno.h>.
2863         * configure: Rebuilt.
2864         * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2866         * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2867         Don't use JvFree.
2868         (lookup): Likewise.
2869         Include <jvm.h>.
2870         * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2871         * prims.cc (_Jv_AllocBytesChecked): New function.
2873         * Makefile.in: Rebuilt.
2874         * Makefile.am (SUBDIRS): Removed `test'.
2875         * configure: Rebuilt.
2876         * configure.in: Don't build test/Makefile.
2877         * test/*: Removed all files.
2879 Thu Feb 25 17:27:37 1999  Warren Levy  <warrenl@cygnus.com>
2881         * java/lang/reflect/Constructor.java: Make class final to match spec.
2882         * java/lang/reflect/Method.java: Ditto.
2884 1999-02-25  Tom Tromey  <tromey@cygnus.com>
2886         * java/net/natInetAddress.cc: Include <sys/types.h> before
2887         <sys/socket.h>.
2888         * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2889         <sys/socket.h>.
2891         * java/net/natInetAddress.cc: Declare gethostname if required.
2892         * include/config.h.in: Rebuilt.
2893         * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2894         * configure: Rebuilt.
2895         * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2896         declared in unistd.h.
2898 1999-02-24  Tom Tromey  <tromey@cygnus.com>
2900         * Makefile.in: Rebuilt.
2901         * Makefile.am (java/io/FileDescriptor.h): Removed target.
2902         * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2903         from private to "none".
2905         * include/javaprims.h: Regenerated class declarations with new
2906         classes.pl.
2907         * classes.pl (scan): Only generate decls for java.lang, java.io,
2908         and java.util.
2910 1999-02-24  Tom Tromey  <tromey@cygnus.com>
2912         * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2913         (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2915 1999-02-23  Tom Tromey  <tromey@cygnus.com>
2917         * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2918         not already defined.
2919         * java/io/natFile.cc (_REENTRANT): Only define if not already
2920         defined.
2921         * include/config.h.in: Rebuilt.
2922         * acconfig.h (HAVE_BOEHM_GC): New define.
2923         * configure: Rebuilt.
2924         * configure.in: Define HAVE_BOEHM_GC if using it.
2925         * posix-threads.cc: Include boehm-config.h and gc.h if
2926         HAVE_BOEHM_GC.
2927         * include/posix-threads.h: Added explanatory note about Boehm GC.
2929         * java/io/BufferedReader.java (readLine): Only return null when
2930         EOF seen before any characters read.  (In particular, an empty
2931         line should not return null.)
2933         * java/io/BufferedInputStream.java (read): Only refill once per
2934         invocation.
2936         * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2937         java.lang.Character.classify12, java.lang.String.hash,
2938         java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2939         java.text.SimpleDateFormat.getAndSet2DigitYearStart
2941         * java/text/StringCharacterIterator.java (setIndex): No error if
2942         index == end.
2943         (next): Check for `pos == end', not `end - 1'.
2944         (StringCharacterIterator): Allow `pos == end'.  Explicitly check
2945         for null text in each constructor.
2946         (clone): Fixed order of arguments to constructor.
2948 1999-02-22  Tom Tromey  <tromey@cygnus.com>
2950         * include/config.h.in: Rebuilt.
2951         * acconfig.h (HAVE_INET6): New define.
2952         (HAVE_SOCKLEN_T): Likewise.
2953         * java/net/PlainSocketImpl.java: Added copyright header.
2954         * java/net/natPlainSocketImpl.cc: Added copyright header.
2955         (union SockAddr): Use HAVE_INET6, not AF_INET6.
2956         (bind): Likewise.
2957         (connect): Likewise.
2958         (accept): Likewise.
2959         (socklen_t): New typedef.
2960         (accept): Use socklen_t.
2961         * java/net/natInetAddress.cc: Added copyright header.
2962         (HAVE_GETHOSTNAME): Don't define.
2963         (HAVE_INET_ADDR): Likewise.
2964         (lookup): Fixed typo.
2965         (aton): Don't use `address' as name of local variable.
2966         (lookup): Use HAVE_INET6, not AF_INET6.
2968         * configure: Rebuilt.
2969         * configure.in: Look for functions inet_aton, inet_addr,
2970         gethostname, inet_pton, uname.  Check for sockaddr_in6 structure.
2971         Check for socklen_t typedef.
2973         * exception.cc (__throw): Declare as __noreturn__.
2975 Mon Feb 22 15:27:35 1999  Per Bothner  <bothner@cygnus.com>
2977         * Makefile.am, Makefile.in:  Also build java/net.
2978         (java/io/FileDescriptor.h):  Add friend java::net::PlainSocketImpl.
2980         * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2981         * java/util/natGregorianCalendar.cc:  #define _REENTRANT.
2983         * prims.cc (_Jv_malloc, _Jv_Free):  New functions.
2984         * include/cni.h (JvMalloc, JvFree):  New inline functions.
2985         (JvThrow):  Add __noreturn__ attribute.
2986         * include/javaprims.h (_Jv_Malloc, _Jv_Free):  New declarations.
2987         (_Jv_Throw):  Add __noreturn__ attribute.
2989         * java/net/PlainSocketImpl.java:  Init fnum to -1.
2990         * java/net/ServerSocket.java:  Add missing throws clauses.
2991         * java/lang/Socket.java:  For the constructor taking a SocketImpl,
2992         don't call create on the latter.  Instead, other constructors
2993         have to explicitly call SocketImpl.create.
2994         * java/net/natPlainSocketImpl.cc (accept):  Change variable addrlen
2995         from size_t to int, to match ::accept prototype.
2996         * java/net/natInetAddress.cc:  Use JvFree rather than free.
2999 1999-02-22  Tom Tromey  <tromey@cygnus.com>
3001         * include/javaprims.h: Added new classes.
3002         * java/text/StringCharacterIterator.java: New file.
3003         * java/text/CharacterIterator.java: New file.
3005         * java/text/ParseException.java (errorOffset): Now private.
3007 Mon Feb 22 12:54:53 1999  Per Bothner  <bothner@cygnus.com>
3009         * java/net:  New package.
3010         * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
3011         Socket.java,SocketException.java,SocketImpl.java,
3012         SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
3013         natPlainSocketImpl.cc}:  New classes.
3015         * configure.in (AC_CHECK_HEADERS):  Also check for <sys/socket.h>,
3016         <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
3017         * include/config.h.in:  Add place-holders for HAVE_ARPA_INET_H,
3018         HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
3020         * classes.pl:  Translate package into "namespace", not "class".
3021         * include/javaprims.h:  Update class list, using "namespace".
3023 1999-02-21  Tom Tromey  <tromey@cygnus.com>
3025         * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
3026         Define when appropriate.
3028 1999-02-20  Tom Tromey  <tromey@cygnus.com>
3030         * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
3031         as a single byte and \u07ff as two bytes.
3032         (_Jv_GetStringUTFLength): Likewise.
3033         * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
3034         with 0x0f, not 0x1f.
3036 1999-02-19  Tom Tromey  <tromey@cygnus.com>
3038         * java/io/DataOutputStream.java (writeUTF): When encoding
3039         character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
3040         * java/io/DataInputStream.java (readUTF): Mask second byte of
3041         3-byte character with 0x3f, not 0x1f.
3043         * java/io/DataInputStream.java (readLong): Cast result of
3044         readUnsignedByte to long before using.
3046         * java/io/FileInputStream.java (finalize): Only finalize `fd' if
3047         it is not null.
3049         * mauve-libjava: Re-enabled java.io.DataInputOutput.
3050         * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
3051         argument to avoid warning.
3052         * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
3053         argument to avoid warning.
3055 1999-02-18  Tom Tromey  <tromey@cygnus.com>
3057         * mauve-libjava: Omit java.io.DataInputOutput and
3058         java.io.Utf8Encoding.
3060 1999-02-17  Tom Tromey  <tromey@cygnus.com>
3062         * Makefile.in: Rebuilt.
3063         * Makefile.am (nat_headers): Added InterruptedIOException.h.
3064         * java/io/natFileDescriptorPosix.cc: Include
3065         InterruptedIOException.h, Thread.h.
3066         (write): Throw InterruptedIOException when required.
3067         (read): Likewise.
3068         * posix-threads.cc: Include <signal.h>.
3069         (_Jv_ThreadInterrupt): New function.
3070         (INTR): New define.
3071         (handle_intr): New function.
3072         (_Jv_InitThreads): Register handle_intr via sigaction.
3073         * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
3074         * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
3075         * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
3076         * include/no-threads.h (_Jv_ThreadInterrupt): New function.
3078 1999-02-19  Andrew Haley  <aph@cygnus.com>
3080         * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
3081         of subgroups.
3082         (ThreadGroup (int)): Set the maximum priority of the initial
3083         ThreadGroup.
3085 1999-02-18  Andrew Haley  <aph@cygnus.com>
3087         * java/lang/natClass.cc (forName): Check for the case where a
3088         classname is the name of an array and call FindClassFromSignature
3089         to find the Class.
3091 1999-02-18  Andrew Haley  <aph@cygnus.com>
3093         * java/lang/StringBuffer (insert (int, String)): Move up any
3094         characters above the insert position and increase the length of
3095         the string buffer by the length of the argument.
3096         (insert (int, char[])): Likewise.
3097         (insert (int, char)): Likewise.
3098         (StringBuffer (String)): The initial capacity of the string buffer
3099         is 16 plus the length of the argument.
3100         (getChars): Add a JDK 1.2 FIXME.
3102 1999-02-18  Andrew Haley  <aph@cygnus.com>
3104         * java/lang/Short.java (parseShort(String, int)): Pass radix to
3105         Integer.parseInt.
3107 1999-02-18  Andrew Haley  <aph@cygnus.com>
3109         * java/lang/Double.java (equals): Use a bit-by-bit comparision
3110         instead of floating-point equality.  This is necessary for
3111         correct floating-point Hashtables.
3112         * java/lang/Float.java (equals): Ditto.
3114 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3116         * java/util/Properties.java (list): Truncate value to 37
3117         characters and add "...".
3119 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3121         * java/util/Vector.java (Vector): Throw IllegalArgumentException
3122         if initCap is negative.
3123         (contains): Implement JDK1.2-style handling of null argument.
3124         (removeElement): Likewise.
3125         (indexOf): Likewise.  Also, correctly handle case where idx is
3126         negative.
3127         (lastIndexOf): Likewise.
3129 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3131         * java/lang/natString.cc (init): Increment source pointer in
3132         loop.
3134 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3136         * exception.cc: Include NullPointerException.h.
3137         (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3139 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3141         * Makefile.in: Rebuilt.
3142         * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3144 Sat Feb 13 20:25:09 1999  Bonzo Armstrong  <bonzo@cygnus.com>
3146         * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3147         we're compiling canadian.
3148         * configure: Regenerated.
3150 1999-02-12  Andrew Haley  <aph@cygnus.com>
3152         * java/lang/sf_rint.c: Resurrected.  This file shouldn't have been
3153         deleted from libgcj.
3155 1999-02-12  Tom Tromey  <tromey@cygnus.com>
3157         * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3158         (_Jv_eh_free): Don't call free.
3159         Don't declare malloc or free.
3161 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3163         * configure.host: Use `libgcj', not `libjava'.  Removed `echo'.
3165 1999-02-11  Andrew Haley  <aph@cygnus.com>
3167         * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3168         wf_fmod.c: Deleted.  These are all files from fdlibm which aren't
3169         needed by java.lang.*.
3170         * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3171         wf_fmod.o: Removed from libjava.a.
3173 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3175         * include/javaprims.h: Reverted previous change; with it
3176         exception.cc can't compile.
3178         * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3180         * include/config.h.in: Rebuilt.
3181         * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3182         HAVE_SCHED_YIELD.
3183         * configure: Rebuilt.
3184         * configure.in: Check for sched_yield.  Look in thread library for
3185         all thread functions.
3187         * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3188         no recursive mutexes.
3189         (_Jv_MutexDestroy): Define when required.
3190         (_Jv_MutexLock): Likewise.
3191         (_Jv_MutexUnlock): Likewise.
3192         (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3193         * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3194         (_Jv_Mutex_t): New structure.
3195         (_Jv_MutexDestroy): Only define if recursive mutexes available.
3196         (_Jv_MutexLock): Likewise.
3197         (_Jv_MutexUnlock): Likewise.
3199 1999-02-10  Tom Tromey  <tromey@cygnus.com>
3201         * aclocal.m4, configure, Makefile.in: Rebuilt.
3202         * acinclude.m4: Renamed libjava to libgcj.  Updated to use
3203         automake 1.4.
3204         * configure.in: Changed to track library changes.
3205         * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3206         (AM_CXXFLAGS): Likewise.
3207         (data_DATA): Likewise.
3208         (AM_CFLAGS): Likewise.
3209         (JC1FLAGS): Likewise.
3210         (libgcj_a_SOURCES): Likewise.
3211         (EXTRA_libgcj_a_SOURCES): Likewise.
3212         (libgcj_a_DEPENDENCIES): Likewise.
3213         (libgcj_a_LIBADD): Likewise.
3214         (libgcj.zip): Likewise.
3215         (CLEANFILES): Likewise.
3216         ($(nat_headers)): Likewise.
3217         (java/lang/FirstThread.h): Likewise.
3218         (java/lang/ThreadGroup.h): Likewise.
3219         (java/lang/String.h): Likewise.
3220         (java/lang/reflect/Field.h): Likewise.
3221         (BUILT_SOURCES): Likewise.
3222         (maintainer-check): Likewise.
3223         (CONFIG_STATUS_DEPENDENCIES): Likewise.
3224 Tue Feb  9 11:06:38 1999  Anthony Green  <green@cygnus.com>
3226         * java/util/natGregorianCalendar.cc (computeFields): Only use
3227         gmtime_r and localtime_r when configured for posix threads.
3229         * java/io/natFile.cc (get_entry): Only use readdir_r when
3230         configured for posix threads.
3232         * java/util/natGregorianCalendar.cc: Update copyright notice.
3233         * java/util/TimeZone.java: Ditto.
3234         * java/util/SimpleTimeZone.java: Ditto.
3236 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3238         * java/io/PrintStream.java (line_separator): New constant.
3239         (print): Use line_separator, not `file.separator' property.
3240         (println): Use line_separator.
3242         * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3243         when trying to instantiate Class.
3245         * java/lang/ThreadGroup.java (ThreadGroup): Throw
3246         NullPointerException if argument is null.
3248         * java/lang/Thread.java (setName): Throw NullPointerException, not
3249         IllegalArgumentException.
3250         (Thread): Likewise.
3252 1999-02-08  Andrew Haley  <aph@cygnus.com>
3254         * java/lang/natClass.cc (newInstance): Don't allow anyone to
3255         create new Classes with Class.newInstance().
3257         * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3258         semiciolon to end of an array Class's signature if the elements of
3259         the array aren't themselves arrays.
3261         * java/lang/natSystem.cc (arraycopy): The size of an element of an
3262         array of objects is always sizeof(jobject), not the size of the
3263         object to which the reference points.
3265 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3267         * java/util/BitSet.java (and): Throw NullPointerException when
3268         required.
3269         (or): Likewise.
3270         (xor): Likewise.
3272         * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3273         if argument is negative.
3274         (clear): Correctly compute `offset'.  Throw
3275         IndexOutOfBoundsException when required.
3276         (set): Likewise.
3277         (get): Likewise.  Also, return correct value.
3278         (ensure): Changed meaning of argument.
3279         (toString): Wrap contents in `{}'; put spaces after commas.
3280         (hashCode): Don't try to examine elements off the end of array.
3281         (or): Correctly include bits past the end of this bit set.
3282         (xor): Likewise.
3284 Thu Feb  4 12:48:03 1999  Warren Levy  <warrenl@cygnus.com>
3286         * configure.host (mips-tx39-*): Use jmr3904dram.ld link script 
3287         instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3289 1999-02-04  Andrew Haley  <aph@cygnus.com>
3291         * java/lang/natClass.cc (Class::forName): Remove code which mapped
3292         '/' in signatures to '.'
3293         (Class::getName): Likewise,
3294         (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3295         signature.
3296         * java/lang/natFirstThread.cc (run): Change '/' in main's
3297         signature to '.'.
3299 1999-02-03  Andrew Haley  <aph@cygnus.com>
3301         * configure.host: -ffloat-store added when compiling libjava on
3302         x86.  fdlibm apparently relies on this.
3304         * java/lang/ThreadGroup.java (add): throw an exception if the
3305         ThreadGroup has been destroyed.
3307         * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3308         behaviour.
3310 1999-01-27  Tom Tromey  <tromey@cygnus.com>
3312         * java/lang/StringBuffer.java (StringBuffer): Handle null
3313         argument.
3315 1999-01-21  Tom Tromey  <tromey@cygnus.com>
3317         * java/lang/natFirstThread.cc (run): Don't require main to be
3318         public.
3320 Wed Jan 20 15:44:56 1999  Anthony Green  <green@cygnus.com>
3322         * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3324 1999-01-20  Tom Tromey  <tromey@cygnus.com>
3326         * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3327         StringClass.
3328         (rehash): Likewise.
3329         (intern): Likewise.
3330         (unintern): Likewise.
3331         (_Jv_NewStringUtf8Const): Likewise.
3333         * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3334         Character.isLetter, to see if character is self-quoting.  Also,
3335         correctly handle quoted characters.
3336         (parse): Fixed typo.  Also now throws ParseException.
3338 1999-01-15  Tom Tromey  <tromey@cygnus.com>
3340         * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3342         * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3343         _Jv_SyncInfo has `init' member.
3345         * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3346         coop_mutex_unlock.
3348         * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3349         IllegalMonitorStateException if unlock fails.
3351         * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3352         zero.
3353         (_Jv_NewObjectArray): Likewise.
3355 1999-01-14  Tom Tromey  <tromey@cygnus.com>
3357         * java/lang/Character.java (isJavaIdentifierPart): Allow
3358         LETTER_NUMBER characters.
3360         * chartables.pl (process_char): Fixed error messages.
3362         * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3363         * chartables.pl: Updated comments.  Changed detection of non-digit
3364         numeric values (no longer miss \u00b2 and friends).
3366         * java/lang/Character.java (isJavaIdentifierPart): Recognize
3367         currency symbols and connector punctuation.
3368         (isIdentifierIgnorable): Make 7f-9f ignorable.
3370         * prims.cc (_Jv_NewObjectArray): Check for overflow.
3371         (_Jv_NewPrimArray): Likewise.
3372         (SIZE_T_MAX): New define.
3374         * java/lang/ClassLoader.java (system): Now private and final.
3376         * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3377         null.
3379         * configure: Rebuilt.
3380         * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3381         well.
3382         * exception.cc: Include gansidecl.h.
3384 1999-01-14  Andrew Haley  <aph@cygnus.com>
3386         * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3387         corrected: they didn't treat -0.0 and NaNs correctly.
3389 Wed Jan 13 13:32:22 1999  Anthony Green  <green@cygnus.com>
3391         * nogc.cc: Use calloc to zero out memory.
3393 1999-01-11  Tom Tromey  <tromey@cygnus.com>
3395         * java/lang/natClass.cc (isInstance): Return false if this class
3396         is primitive, not if class of `obj' is primitive.
3397         (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3399         * java/io/SequenceInputStream.java (close): Handle case where `in'
3400         is already null.
3402         * java/text/DateFormat.java (format): New method.
3404         * mauve-libjava: Omit java.text.DateFormat.
3406 1999-01-08  Tom Tromey  <tromey@cygnus.com>
3408         * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3409         argument.
3410         * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3411         argument.
3412         (_Jv_CondNotifyAll): Likewise.
3414         * configure: Rebuilt.
3415         * configure.in: Change --enable-source-compilation logic to work
3416         correctly.
3418 1999-01-07  Andrew Haley  <aph@cygnus.co.uk>
3420         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
3421         and RUNTESTFLAGS from AM_MAKEFLAGS.
3422         * configure.in: AM_RUNTESTFLAGS added.
3423         * configure.host: AM_RUNTESTFLAGS added.
3424         * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3425         * configure: rebuilt.
3426         * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3428         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3429         argv[] made conditional because embedded targets may not have
3430         argv[].
3431         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3432         explanatory comments added in call to super.
3434         * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3435         exception thrown in the test harness itself added.
3436         * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3438 Wed Jan  6 17:27:39 1999  Per Bothner  <bothner@cygnus.com>
3440         * java/text/DateFormatSymbols.java (zoneStringsDefault):  Make static.
3442 1999-01-06  Tom Tromey  <tromey@cygnus.com>
3444         * java/io/natFile.cc (get_entry): New function.
3445         (performList): Use get_entry.
3446         * include/config.h.in: Rebuilt.
3447         * acconfig.h (HAVE_READDIR_R): New define.
3448         * configure: Rebuilt.
3449         * configure.in: Look for readdir_r.
3451         * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3453         * java/util/natDate.cc: Added copyright header.
3455 1999-01-05  Tom Tromey  <tromey@cygnus.com>
3457         * include/config.h.in: Rebuilt.
3458         * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3459         HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3460         * configure: Rebuilt.
3461         * configure.in: Check for access, stat, mkdir, rename, rmdir,
3462         unlink, and realpath.
3463         * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3464         (stat): Conditionalize on HAVE_STAT.
3465         (attr): Likewise.
3466         (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3467         (performMkdir): Conditionalize on HAVE_MKDIR.
3468         (performRenameTo): Conditionalize on HAVE_RENAME.
3469         (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3471         * include/config.h.in: Rebuilt.
3472         * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3473         * configure: Rebuilt.
3474         * configure.in: Check for gmtime_r and localtime_r.  For cross
3475         builds, assume they exist.
3477         * mauve-libjava: Include java.text.DateFormatSymbols again.
3478         * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3479         from setAmPmStrings.
3481         * mauve-libjava: Omit java.text.DateFormatSymbols.
3483 1999-01-04  Tom Tromey  <tromey@cygnus.com>
3485         * java/io/PushbackReader.java: `off' already includes `numBytes'.
3487         * java/io/LineNumberReader.java (read): Decrement `count' in
3488         loop.
3490         * java/io/BufferedWriter.java (write): Correctly determine when
3491         incoming data would overrun buffer.  Flush buffer if write causes
3492         it to become full.
3494         * java/io/BufferedOutputStream.java (write): Increment `count'
3495         after copying data into buffer.
3497         * java/io/FilterOutputStream.java (close): Call flush first.
3499         * java/io/PipedReader.java (read): If read causes `out' to catch
3500         up with `in', then set `in' to -1.
3502         * java/io/LineNumberInputStream.java (read): If no bytes read,
3503         return -1.  If no bytes requested, return 0.
3505         * java/lang/StringBuffer.java (insert): If `str' is null, use
3506         string "null".
3508 1998-12-30  Anthony Green  <green@cygnus.com>
3510         * README: Removed.
3511         * LIBJAVA_LICENSE, COPYING.LIB: Created.
3513 1998-12-23  Tom Tromey  <tromey@cygnus.com>
3515         * java/io/PushbackInputStream.java (read): `off' already includes
3516         `numBytes'.
3518 1998-12-17  Tom Tromey  <tromey@cygnus.com>
3520         * Makefile.in: Rebuilt.
3521         * Makefile.am (GCJ_canadian): Include target_alias.
3523         * java/lang/natFirstThread.cc (run): Require main's class to be
3524         public.
3526 1998-12-16  Tom Tromey  <tromey@cygnus.com>
3528         * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3530         * java/util/ResourceBundle.java (getBundle): Throw
3531         NullPointerException if locale argument is null.
3533         * java/lang/natClass.cc (forName): Throw NullPointerException if
3534         argument is null.
3535         Include NullPointerException.h.
3537 1998-12-14  Tom Tromey  <tromey@cygnus.com>
3539         * java/lang/Character.java (Character): Implement Comparable.
3540         (compareTo): New methods.
3542         * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'.  Use
3543         correct country and language codes.
3544         (UK, US): New constants.
3545         (setDefault): Language codes are lower-case.
3547         * java/lang/natClass.cc (getDeclaredConstructor): New method.
3548         (getDeclaredConstructors): Likewise.
3549         (getDeclaredField): Likewise.
3550         (getDeclaredFields): Likewise.
3551         (getDeclaredMethod): Likewise.
3552         (getDeclaredMethods): Likewise.
3553         (getField): Likewise.
3554         (getFields): Likewise.
3555         (getMethod): Likewise.
3556         (getMethods): Likewise.
3557         * java/lang/Class.java: Declare new methods.
3558         * java/lang/Class.h: Declare new methods.
3560         * java/lang/natString.cc: Removed `#pragma implementation'.
3561         * include/cni.h (_Jv_GetStringChars): New function.
3562         * Makefile.in: Rebuilt.
3563         * Makefile.am (java/lang/String.h): Don't generate definition for
3564         _Jv_GetStringChars.
3566         * java/lang/natString.cc: Added `#pragma implementation'.
3568         * Makefile.in: Rebuilt.
3569         * Makefile.am (libjava.zip): Put build directory first in class
3570         path to avoid bug in compiler.
3572 1998-12-14  Anthony Green  <green@cygnus.com>
3574         * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3576         * include/javaprims.h: Add EventObject, ListResourceBundle and
3577         ResourceBundle.
3579 1998-12-13  Anthony Green  <green@cygnus.com>
3581         * mauve-libjava: Run the ResourceBundle tests.
3583         * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3584         NULL.
3586 Sun Dec 13 18:11:21 1998  Per Bothner  <bothner@cygnus.com>
3588         * configure.in, configure:  Make --enable-gcj-classes and
3589         --enable-source-compilation the default.  (Nervously...)  Yeah!
3590         Based on a patch from Tom Tromey.
3592 1998-12-13  Tom Tromey  <tromey@cygnus.com>
3594         * java/util/EventObject.java: New file.
3595         * java/util/EventListener.java: New file.
3597         * include/javaprims.h: Updated class declarations.
3598         * Makefile.in: Rebuilt.
3599         * Makefile.am (nat_headers): Added Constructor.h.
3600         (java/lang/String.h): Don't inline String::length().
3601         * java/lang/Class.h (getConstructor, getConstructors): Declare.
3602         * java/lang/Class.java (initializeClass, hackRunInitializers,
3603         hackTrampoline): No need to mark `final'.
3604         (getConstructor, getConstructors): Declare.
3605         * java/lang/reflect/Field.java (equals): New method.
3606         * java/lang/natClass.cc (getConstructor): New method.
3607         (getConstructors): Likewise.
3608         Include Method.h, Field.h, Constructor.h.
3609         * java/lang/reflect/Constructor.java: New file.
3610         * java/lang/reflect/Method.java (toString): No space before open
3611         paren.
3612         (equals): Simplified.
3614 1998-12-13  Anthony Green  <green@cygnus.com>
3616         * java/util/ResourceBundle.java: New file.
3617         * java/util/ListResourceBundle.java: New file.
3619 1998-12-12  Tom Tromey  <tromey@cygnus.com>
3621         * java/lang/System.java (in, out, err): Now buffered streams by
3622         default.
3624         * include/javaprims.h: Updated class declarations.
3625         * Makefile.in: Rebuilt.
3626         * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3627         InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3628         Long.h, Boolean.h.
3629         (nat_files): Added natMethod.o.
3630         * java/lang/reflect/natMethod.cc: New file.
3631         * java/lang/reflect/Field.java (Field): Now extends
3632         AccessibleObject.
3633         * java/lang/reflect/AccessibleObject.java: New file.
3634         * java/lang/reflect/InvocationTargetException.java: New file.
3636 1998-12-11  Tom Tromey  <tromey@cygnus.com>
3638         * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3639         java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3640         Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3642         * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3644 1998-12-09  Tom Tromey  <tromey@cygnus.com>
3646         * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3647         HAVE_CTIME_R.
3649         * java/lang/natCharacter.cc (toTitleCase): Handle case where
3650         character is already titlecase.
3652         * java/lang/Character.java (isJavaLetter): Follow spec.
3653         (isJavaLetterOrDigit): Likewise.
3655         * java/util/GregorianCalendar.java (gregorianCutover): Append
3656         `L'.
3658         * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3660 1998-12-08  Tom Tromey  <tromey@cygnus.com>
3662         * java/lang/reflect/Modifier.java (toString): Replace second
3663         `static' with `synchronized'.
3665         * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3666         * java/lang/Object.h (Object::hack12_6): Declare.
3667         * java/lang/Object.java (hack12_6): New function.
3669 1998-12-07  Tom Tromey  <tromey@cygnus.com>
3671         * include/java-array.h (__JArray::clone): Removed decl.
3672         * prims.cc (__JArray::clone): Removed.
3673         * java/lang/natObject.cc (clone): Incorporate code to clone an
3674         array.
3676         * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3677         (_Jv_FindArrayClass): Set dtable_method_count on new class.
3678         Correctly use dtable_method_count.
3680 1998-12-07  Andrew Haley  <aph@cygnus.co.uk>
3682         * java/lang/Double.java (isInfinite, isNaN): Handle correct
3683         IEEE754 values.
3685 1998-12-06  Anthony Green  <green@cygnus.com>
3687         * mauve-libjava: Don't test ResourceBundle.
3689 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3691         More JDK 1.2 spec fixes:
3692         * java/util/Date.java (millis): Now private.
3693         * java/text/DateFormat.java (DateFormat): Constructor now
3694         protected.
3695         * java/lang/Void.java (Void): New private constructor.
3696         * java/lang/System.java (System): New private constructor.
3697         * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3698         body.
3699         (currentClassLoader): New method.
3700         (currentLoadedClass): New method.
3701         * java/lang/Math.java (Math): New private constructor.
3702         * java/lang/Compiler.java (Compiler): New private constructor.
3703         * java/lang/Class.java (Class): New private constructor.
3704         * java/lang/Double.java (toString): Removed access specifier from
3705         two-argument `toString' method.
3707 1998-12-04  Andrew Haley  <aph@cygnus.co.uk>
3709         * java/lang/s_rint.c (rint): Make the variable w volatile; this
3710         causes it to be flushed from an fp register (where it may be
3711         longer than double precision) to a double in memory.  This is
3712         essential to ensure correct rounding behaviour.
3714 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3716         * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3717         function.
3719         * java/lang/Character.java (isIdentifierIgnorable): Added comment
3720         explaining apparent divergence from JDK 1.2.
3722 1998-12-04  Per Bothner  <bothner@cygnus.com>
3724         * include/no-threads.h:  Remove unused parameter names.
3725         This silences a bunch of warnings.
3727 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3729         * include/config.h.in: Rebuilt.
3730         * acconfig.h (HAVE_CTIME_R): New symbol.
3732 1998-12-03  Tom Tromey  <tromey@cygnus.com>
3734         * mauve-libjava: Added many more categories to reject.
3736         Changes to follow JDK1.2 spec:
3737         * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3738         setErr, setIn, setOut): No need to be `final'.
3739         * java/lang/natObject.cc (wait): `nanos' argument is an int.
3740         * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3741         * java/lang/Object.java (wait): `nanos' argument is an int.
3742         * java/lang/VirtualMachineError.java: Class is abstract.
3743         * java/lang/ThreadDeath.java: Made constructors public.
3744         * java/io/FileDescriptor.java (FileDescriptor): Added missing
3745         constructor.
3747 Thu Dec  3 20:29:38 1998  Warren Levy  <warrenl@cygnus.com>
3749         * java/text/DateFormatSymbols.java (getAmPmStrings,
3750         getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3752 Thu Dec  3 19:21:53 1998  Warren Levy  <warrenl@cygnus.com>
3754         * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3755         writeDouble, writeByte, writeBytes, writeChar, writeChars,
3756         writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3757         and 1.2.
3759         * java/lang/IllegalThreadStateException.java
3760         (IllegalThreadStateException): Changed extending class to match spec.
3762         * java/lang/NumberFormatException.java
3763         (java/lang/NumberFormatException): Changed extending class to match
3764         spec.
3766         * java/util/Observer.java (Observer): Changed sig to match JCL.
3768 Thu Dec  3 19:05:26 1998  Warren Levy  <warrenl@cygnus.com>
3770         * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3771         writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3772         signature to match JDK 1.1 and 1.2.
3774 Thu Dec  3 16:47:42 1998  Warren Levy  <warrenl@cygnus.com>
3776         * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3777         * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3778         * Makefile.in, configure: Rebuilt.
3780         * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3781         name.
3783 1998-12-02  Tom Tromey  <tromey@cygnus.com>
3785         * mauve-libjava: New file.
3787         The remaining `-W -Wall' fixes:
3788         * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3789         avoid warning.
3790         * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3791         `else'.
3792         * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3793         warning.
3794         * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3795         avoid warning.
3796         * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3797         ambiguous `else'.
3798         * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3799         warning.
3800         * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3801         suggestion.
3802         * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3803         suggestion.
3804         * java/lang/mprec.c (Balloc): Removed unused variable.
3805         (mult): Added parentheses per gcc suggestion.
3806         (pow5mult): Likewise.
3807         (lshift): Likewise.
3808         (ulp): Likewise.
3809         (b2d): Likewise.
3810         (d2b): Likewise.
3811         * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3812         suggestion.  Added cast to `int' to avoid signed/unsigned
3813         comparison.
3814         * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3815         parameter.
3816         (IsAssignableFrom): Likewise.
3817         (_Jv_JNI_GetObjectField): Likewise.
3818         (_Jv_JNI_GetByteField): Likewise.
3819         (_Jv_JNI_GetShortField): Likewise.
3820         (_Jv_JNI_GetIntField): Likewise.
3821         (_Jv_JNI_GetLongField): Likewise.
3822         (_Jv_JNI_GetStringLength): Likewise.
3823         (_Jv_JNI_ToReflectedField): Likewise.
3824         (_Jv_JNI_FromReflectedField): Likewise.
3825         (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3827         * Makefile.in: Rebuilt.
3828         * Makefile.am (AM_CFLAGS): Define conditionally.
3829         (WARNINGS): New macro.
3830         (AM_CXXFLAGS): Include WARNINGS.
3831         * configure: Rebuilt.
3832         * configure.in (USING_GCC): New conditional.
3834         * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3836         * java/lang/Character.java: Changed classification constants to
3837         type `byte' to match JDK 1.2 docs.
3839 1998-12-01  Tom Tromey  <tromey@cygnus.com>
3841         Some fixes to be `-W -Wall' clean:
3842         * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3843         (_Jv_MarkArray): Likewise.
3844         * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3845         (to_upper_title): Likewise.
3846         (isTitleCase): Likewise.
3847         (toTitleCase): Likewise.
3848         (getNumericValue): Likewise.
3849         (isLowerCase): Likewise.
3850         * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3851         (avoids compiler warning).
3852         * java/lang/natClass.cc (getDeclaredClasses): Always return a
3853         value.
3854         (getDeclaringClass): Likewise.
3855         (_Jv_LookupInterfaceMethod): Likewise.
3856         (_Jv_NewClass): Removed name of unused parameter.
3857         * exception.cc (_Jv_type_matcher): Removed unused variable.
3858         (_Jv_setup_eh_info): Removed name of unused parameter.
3859         * prims.cc (_Jv_NewArray): Always return a value.
3860         (_Jv_FindClassFromSignature): Likewise.
3861         * include/java-field.h (getNameUtf8Const): Removed name of unused
3862         parameter.
3863         * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3864         unused parameter.
3865         (_Jv_ThreadSetPriority): Likewise.
3867         * java/lang/natString.cc (hashChars): Now static.
3869         * java/lang/FirstThread.java (FirstThread): Now final.
3871         * java/io/File.java (performMkdir, performRenameTo): Now private.
3873         * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3874         if no time function defined.
3876         * configure: Rebuilt.
3877         * configure.in: Look for ctime_r, ctime.
3878         * java/util/Date.java (toString): Now native.
3879         * java/util/natDate.cc (toString): Rewrote.
3881 1998-11-27  Andrew Haley  <aph@viagra.cygnus.co.uk>
3883         * Add LDFLAGS line to allow TX39 test cases to link when cross
3884         compiling.
3886 1998-11-23  Anthony Green  <green@cygnus.com>
3888         * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3889         no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3890         quick-threads.cc, include/boehm-gc.h, include/cni.h,
3891         include/java-array.h, include/java-assert.h, include/java-field.h,
3892         include/javaprims.h, include/jni.h, include/jvm.h,
3893         include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3894         include/quick-threads.h, java/io/BufferedInputStream.java,
3895         java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3896         java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3897         java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3898         java/io/CharArrayWriter.java,
3899         java/io/CharConversionException.java, java/io/DataInput.java,
3900         java/io/DataInputStream.java, java/io/DataOutput.java,
3901         java/io/DataOutputStream.java, java/io/EOFException.java,
3902         java/io/File.java, java/io/FileDescriptor.java,
3903         java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3904         java/io/FileOutputStream.java, java/io/FileReader.java,
3905         java/io/FileWriter.java, java/io/FilenameFilter.java,
3906         java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3907         java/io/FilterReader.java, java/io/FilterWriter.java,
3908         java/io/IOException.java, java/io/InputStream.java,
3909         java/io/InputStreamReader.java,
3910         java/io/InterruptedIOException.java,
3911         java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3912         java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3913         java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3914         java/io/PipedReader.java, java/io/PipedWriter.java,
3915         java/io/PrintStream.java, java/io/PrintWriter.java,
3916         java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3917         java/io/RandomAccessFile.java, java/io/Reader.java,
3918         java/io/SequenceInputStream.java, java/io/Serializable.java,
3919         java/io/StreamTokenizer.java,
3920         java/io/StringBufferInputStream.java, java/io/StringReader.java,
3921         java/io/StringWriter.java, java/io/SyncFailedException.java,
3922         java/io/UTFDataFormatException.java,
3923         java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3924         java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3925         java/io/natFileDescriptorPosix.cc,
3926         java/lang/AbstractMethodError.java,
3927         java/lang/ArithmeticException.java,
3928         java/lang/ArrayIndexOutOfBoundsException.java,
3929         java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3930         java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3931         java/lang/Class.java, java/lang/ClassCastException.java,
3932         java/lang/ClassCircularityError.java,
3933         java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3934         java/lang/ClassNotFoundException.java,
3935         java/lang/CloneNotSupportedException.java,
3936         java/lang/Cloneable.java, java/lang/Comparable.java,
3937         java/lang/Compiler.java, java/lang/Double.java,
3938         java/lang/Error.java, java/lang/Exception.java,
3939         java/lang/ExceptionInInitializerError.java,
3940         java/lang/FirstThread.java, java/lang/Float.java,
3941         java/lang/IllegalAccessError.java,
3942         java/lang/IllegalAccessException.java,
3943         java/lang/IllegalArgumentException.java,
3944         java/lang/IllegalMonitorStateException.java,
3945         java/lang/IllegalStateException.java,
3946         java/lang/IllegalThreadStateException.java,
3947         java/lang/IncompatibleClassChangeError.java,
3948         java/lang/IndexOutOfBoundsException.java,
3949         java/lang/InstantiationError.java,
3950         java/lang/InstantiationException.java, java/lang/Integer.java,
3951         java/lang/InternalError.java, java/lang/InterruptedException.java,
3952         java/lang/LinkageError.java, java/lang/Long.java,
3953         java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3954         java/lang/NoClassDefFoundError.java,
3955         java/lang/NoSuchFieldError.java,
3956         java/lang/NoSuchFieldException.java,
3957         java/lang/NoSuchMethodError.java,
3958         java/lang/NoSuchMethodException.java,
3959         java/lang/NullPointerException.java, java/lang/Number.java,
3960         java/lang/NumberFormatException.java, java/lang/Object.h,
3961         java/lang/Object.java, java/lang/OutOfMemoryError.java,
3962         java/lang/Process.java, java/lang/Runnable.java,
3963         java/lang/Runtime.java, java/lang/RuntimeException.java,
3964         java/lang/SecurityException.java, java/lang/SecurityManager.java,
3965         java/lang/Short.java, java/lang/StackOverflowError.java,
3966         java/lang/String.java, java/lang/StringBuffer.java,
3967         java/lang/StringIndexOutOfBoundsException.java,
3968         java/lang/System.java, java/lang/Thread.java,
3969         java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3970         java/lang/Throwable.java, java/lang/UnknownError.java,
3971         java/lang/UnsatisfiedLinkError.java,
3972         java/lang/UnsupportedOperationException.java,
3973         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3974         java/lang/Void.java, java/lang/natCharacter.cc,
3975         java/lang/natClass.cc, java/lang/natDouble.cc,
3976         java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3977         java/lang/natMath.cc, java/lang/natObject.cc,
3978         java/lang/natRuntime.cc, java/lang/natString.cc,
3979         java/lang/natSystem.cc, java/lang/natThread.cc,
3980         java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3981         java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3982         java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3983         java/text/FieldPosition.java, java/text/Format.java,
3984         java/text/NumberFormat.java, java/text/ParseException.java,
3985         java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3986         java/util/BitSet.java, java/util/Calendar.java,
3987         java/util/ConcurrentModificationException.java,
3988         java/util/Date.java, java/util/Dictionary.java,
3989         java/util/EmptyStackException.java, java/util/Enumeration.java,
3990         java/util/GregorianCalendar.java, java/util/Hashtable.java,
3991         java/util/Locale.java, java/util/MissingResourceException.java,
3992         java/util/NoSuchElementException.java, java/util/Observable.java,
3993         java/util/Observer.java, java/util/Properties.java,
3994         java/util/Random.java, java/util/SimpleTimeZone.java,
3995         java/util/Stack.java, java/util/StringTokenizer.java,
3996         java/util/TimeZone.java, java/util/TooManyListenersException.java,
3997         java/util/Vector.java, java/util/natGregorianCalendar.cc:  Updated
3998         copyright notices.
4000         * exception.cc: Include eh-common.h instead of duplicating 
4001         code.
4003 1998-11-23  Tom Tromey  <tromey@cygnus.com>
4005         * configure.host: Don't add `-O2' to libjava_flags.  Only add
4006         `-Os' to libjava_flags once.
4008 1998-11-17  Andrew Haley  <aph@viagra.cygnus.co.uk>
4010         * Makefile.am: add LIBJAVA_JAVAFLAGS.
4011         * Makefile.in: likewise
4012         * acconfig.h: add ECOS conditional for configure.h
4013         * config.h.in: likewise
4014         * configure: add test for --with-ecos
4015         * configure.in: likewise
4016         * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
4017         rename call to avoid name clash.
4018         * java/lang/natSystem.cc: add eCos clock support.
4019         * java/util/natGregorianCalendar.cc: add eCos support.
4020         
4021 1998-11-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4023         * Makefile.am, Makefile.in, configure.host: tx39 build option 
4024         "-G 0" added.
4026 Wed Nov 18 18:55:25 1998  Warren Levy  <warrenl@cygnus.com>
4028         * java/io/BufferedReader.java: Added more comments for clarity.
4029         (mark): Used more mnemonic name for local var extraBuffSpace.
4031         * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
4032         confusion with private method of same name in superclass.
4033         (skipRedundantLF): Set fields in special case to avoid infinite
4034         recursion.  Check if markPos has been invalidated in special case.
4035         (readLine): Rewritten to use readLine method of superclass.
4036         (skip): Incorporated code from lineEnd.
4038 Wed Nov 18 02:46:03 1998  Warren Levy  <warrenl@cygnus.com>
4040         * java/io/BufferedReader.java (readLine): New method.
4041         (lineEnd): new private method.
4042         (mark): Track special case for readLine of getting '\r' at the
4043         end of the buffer.
4044         (reset): Ditto.
4045         (read): Ditto.
4046         (fill): Ditto.
4047         (skip): Ditto.
4049         * java/io/InputStreamReader.java (read): Return number chars skipped
4050         rather than requested.
4052         * java/lang/StringBuffer.java (append): Update count and differentiate
4053         between field and local variable.
4055         * java/util/Date.java (parseTz): Evaluate in minutes rather than
4056         seconds.  Deal with military style time.
4057         (parse): Consistently treat all timezones in minutes until final
4058         calculation.  Flag as non-local timezone.  Return value in milliseconds.
4059         (setTime): Adjust for year offset from 1900.
4060         (UTC): Adjust for year offset from 1900.
4062 1998-11-17  Tom Tromey  <tromey@cygnus.com>
4064         * configure: Rebuilt.
4065         * configure.in: Switch on host, not target.
4067         * Makefile.in: Rebuilt.
4068         * Makefile.am (GCJ_no): New macro.
4069         (GCJ): Use @CANADIAN@.
4070         (GCJH_no): New macro
4071         (GCJH_canadian): New macro.
4072         (GCJH): Use @CANADIAN@.
4073         (ZIP_no): New macro.
4074         (ZIP_canadian): New macro.
4075         (ZIP): Use @CANADIAN@.
4076         * aclocal.m4, configure: Rebuilt.
4077         * configure.in (CANADIAN): Compute and subst.
4079 Tue Nov 17 12:44:37 1998  Anthony Green  <green@cygnus.com>
4081         * java/io/FileDescriptor.java (finalize): Only close file
4082         descriptor if valid.
4084 1998-11-17  Tom Tromey  <tromey@cygnus.com>
4086         * prims.cc (_Jv_InitRuntime): Removed.
4088 1998-11-16  Tom Tromey  <tromey@cygnus.com>
4090         * java/io/FileOutputStream.java (close): Only close file
4091         descriptor if valid.
4092         (finalize): New method.
4094         * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4095         (_Jv_NewPrimArray): Likewise.
4096         * boehm.cc (_Jv_RegisterFinalizer): Use
4097         GC_REGISTER_FINALIZER_NO_ORDER.
4098         (GC_GENERIC_MALLOC): New define.
4099         (_Jv_AllocObj): Use it.
4100         (_Jv_AllocArray): Likewise.
4101         (_Jv_AllocBytes): Likewise.
4102         (_Jv_MarkObj): Just return if vtbl not set.
4103         (_Jv_MarkArray): Likewise.
4104         (MAYBE_MARK): New macro; use everywhere.
4105         (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4107 Mon Nov 16 14:57:53 1998  Warren Levy  <warrenl@cygnus.com>
4109         * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4110         to a jlong before calculation to prevent overflow.
4112 1998-11-16  Tom Tromey  <tromey@cygnus.com>
4114         * Makefile.in: Rebuilt.
4115         * Makefile.am (nat_headers): Fixed typo.
4117 1998-11-15  Tom Tromey  <tromey@cygnus.com>
4119         * java/lang/Class.h (Class::getName): Removed definition.
4120         * Makefile.in: Rebuilt.
4121         * Makefile.am (nat_headers): Added InstantiationException.h,
4122         NoSuchMethodException.h.
4123         * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4124         (init_name): New global.
4125         (hackRunInitializers): Use clinit_name.
4126         Include InstantiationException.h, NoSuchMethodException.h.
4127         (newInstance): Do some error checking (but not all).  Call
4128         constructor.
4129         (forName): Throw exception if class not found.
4130         (getName): New method.
4131         (forName): Transform class name from external format to internal
4132         format before lookup.
4134 1998-11-15  Anthony Green  <green@cygnus.com>
4136         * java/lang/Class.h (Class::forName): Method is static.
4138         * java/lang/natClass.cc (newInstance): Add simple implementation.
4139         (forName): Ditto.
4141 Sat Nov 14 18:25:13 1998  Per Bothner  <bothner@cygnus.com>
4143         * java/lang/Class.h (Class::accflags):  Must be unsigned short (not
4144         int), for compatibility with jc1.
4146 1998-11-14  Tom Tromey  <tromey@cygnus.com>
4148         * include/config.h.in: Rebuilt.
4149         * acconfig.h (LINUX_THREADS): New define.
4150         * configure: Rebuilt.
4151         * configure.in: Define LINUX_THREADS if using POSIX threads on
4152         Linux.  Look for pthread_mutexattr_setkind_np function.
4153         * posix-threads.cc (throw_cleanup): New function.
4154         (really_start): Push cleanup function.
4155         (_Jv_ThreadCancel): New function.
4156         (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4157         (_Jv_ThreadInitData): Set `exception' field in new structure.
4158         (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4159         thread.
4160         (_Jv_ThreadWait): New function.
4161         (_Jv_InitThreads): Initialize daemon globals.
4162         (FLAG_DAEMON): New macro.
4163         (really_start): Notify daemon_cond when non-daemon thread exits.
4164         Include <java/lang/System.h>.
4165         (struct starter): `object' field now a thread.
4166         (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4167         * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4168         (_Jv_ThreadWait): Removed definition.
4169         (_Jv_Thread_t): Added `exception' field.
4170         (_Jv_ThreadCancel): Removed definition.
4172 1998-11-13  Tom Tromey  <tromey@cygnus.com>
4174         * Makefile.in: Rebuilt.
4175         * Makefile.am (libjava.zip): Compute javac before changing
4176         directory.
4178         * Makefile.in: Rebuilt.
4179         * Makefile.am (libjava.zip): Include directory entries.
4181         * Makefile.in: Rebuilt.
4182         * Makefile.am (expanded): New macro.
4183         (GCJ): Use it.
4185 1998-11-12  Tom Tromey  <tromey@cygnus.com>
4187         * prims.cc (clone): New function.
4188         * include/java-array.h (__JArray::clone): Removed definition.
4190         * java/lang/natObject.cc (clone): Don't assert that class is not
4191         an array; array's `clone' method just calls this one.
4193         * Makefile.in: Rebuilt.
4194         * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4195         Now creates zip file.  Changed all users.
4196         (ZIP): New macro.
4197         (data_DATA): New macro.
4199 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4201         * configure: Rebuilt.
4202         * configure.in: Recognize --enable-java-gc, not --enable-gc.
4204 Wed Nov 11 18:13:46 1998  Warren Levy  <warrenl@cygnus.com>
4206         * java/io/InputStream.java (reset): Add msg to thrown exception.
4208 Wed Nov 11 17:57:02 1998  Warren Levy  <warrenl@cygnus.com>
4210         * java/io/LineNumberInputStream.java: Rewritten.
4212         * java/io/StringBufferInputStream.java: Removed extraneous import.
4214 Wed Nov 11 15:19:33 1998  Warren Levy  <warrenl@cygnus.com>
4216         * java/io/StringBufferInputStream.java: Rewritten.
4218         * java/util/Date.java (parseMonth): Optimize.
4219         (parseDayOfWeek): Created.
4220         (parse): Optimize to use parseDayOfWeek.
4222 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4224         * java/lang/StringBuffer.java (append): Handle case where STR is
4225         `null'.
4227         * include/javaprims.h: Regenerated class declarations.
4229         * configure: Rebuilt.
4230         * configure.in: Added --enable-gcj-classes,
4231         --enable-single-compilation, --enable-source-compilation flags.
4232         * Makefile.in: Rebuilt.
4233         * Makefile.am (java_io_files): New macro.
4234         (java_lang_files): Likewise.
4235         (java_text_files): Likewise.
4236         (java_util_files): Likewise.
4237         (java_files): Use new macros.
4238         (java-io.o): New target.
4239         (java-lang.o): Likewise.
4240         (java-text.o): Likewise.
4241         (java-util.o): Likewise.
4242         (src_io_files): New macro.
4243         (src_lang_files): Likewise.
4244         (src_text_files): Likewise.
4245         (src_util_files): Likewise.
4246         (class_io_files): New macro.
4247         (class_lang_files): Likewise.
4248         (class_text_files): Likewise.
4249         (class_util_files): Likewise.
4250         (class_files): Use new macros.
4251         (javao_files): Define conditionally.
4252         (.java.o): New target.
4253         ($(javao_files)): New target.
4254         (GCJ): new macro.
4255         (GCJH): Added $(EXEEXT).
4256         (CLASSPATH_ENV): Removed.
4257         (GCJCOMPILE): New macro.
4259 Wed Nov 11 12:03:15 1998  Warren Levy  <warrenl@cygnus.com>
4261         * java/util/Date.java (parse): Written from scratch.
4263 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4265         * java/lang/Throwable.java (toString): Correct sense of test for
4266         determining when to include detail message in result.
4268         * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4269         constructor.
4271 Fri Nov  6 16:30:20 1998  Tom Tromey  <tromey@ferrule.cygnus.com>
4273         * java/lang/Class.h: Use _Jv_RegisterClasses, not
4274         _Jv_RegisterClass.
4275         * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4276         (_Jv_RegisterClass): Use it.
4277         * include/jvm.h (_Jv_RegisterClasses): Declare.
4278         * java/lang/natObject.cc (init): Removed.
4279         (sync_init): Never call _Jv_InitializeSyncMutex.
4280         (_Jv_InitializeSyncMutex): Don't set `init'.
4281         * prims.cc (JvRunMain): Don't run init functions.
4283 Thu Nov  5 17:14:37 1998  Tom Tromey  <tromey@sanguine.cygnus.com>
4285         * java/lang/natClass.cc (initializeClass): Set state before
4286         resolving constants.
4288         * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4289         (STATE_RESOLVED): New macro.
4290         (initializeClass): Call resolveConstants.
4291         (hackRunInitializers): Don't call resolveConstants.
4292         (_Jv_FindArrayClass): Move short-circuit return for primitive
4293         element types earlier in function.
4295 1998-11-03  Tom Tromey  <tromey@hoser.cygnus.com>
4297         * prims.cc (no_memory): New global.
4298         (_Jv_makeUtf8Const): Throw no_memory.
4299         (_Jv_AllocObject): Likewise.
4300         (_Jv_NewObjectArray): Likewise.
4301         (_Jv_NewPrimArray): Likewise.
4302         (JvRunMain): Initialize no_memory.
4304 Tue Nov  3 17:15:45 1998  Warren Levy  <warrenl@cygnus.com>
4306         * java/io/FileInputStream.java: Corrected date comment.
4307         * java/io/SequenceInputStream.java: Rewritten.
4309 Mon Nov  2 17:20:31 1998  Tom Tromey  (tromey@cygnus.com)
4311         * java/lang/FirstThread.java (die): New method.
4312         * java/lang/natFirstThread.cc (die): Removed.
4313         (DIE): New macro.
4314         (run): Use `DIE', not `die'.
4316 Mon Nov  2 16:23:41 1998  Warren Levy  <warrenl@cygnus.com>
4318         * java/io/CharArrayReader.java (read): Move check into synchronized
4319         block to prevent a close while in progress.
4320         (reset): Ditto.
4321         (skip): Ditto.
4322         * java/io/PushbackReader.java (read): Ditto.
4323         (ready): Ditto.
4324         (unread): Ditto.
4325         * java/io/StringReader.java (mark): Ditto.
4326         (read): Ditto.
4327         (reset): Ditto.
4328         (skip): Ditto.
4330 Mon Nov  2 15:56:20 1998  Warren Levy  <warrenl@cygnus.com>
4332         * java/io/PipedInputStream.java: Updated status.
4333         (connect): Added code to prevent infinite recursion and to
4334         differentiate exception causes.
4335         (read): Added code to differentiate exception causes.
4336         (receive): Made exception pass string with the cause.
4338         * java/io/PipedOutputStream.java: Updated status.
4339         (connect): Added code to call connect at the other end of the pipe.
4341 Mon Nov  2 00:22:12 1998  Warren Levy  <warrenl@cygnus.com>
4342         
4343         * java/io/PipedInputStream.java (connect): Throw exception if
4344         already connected to the same output stream.
4345         (read): Do bounds checking first.
4347 Sun Nov  1 22:48:55 1998  Warren Levy  <warrenl@cygnus.com>
4349         * java/io/PipedInputStream.java: Added private boolean outClosed.
4350         (available): Removed check if output stream is open.
4351         (close): Mark the buffer as empty so available returns 0.
4352         (read): Check if the output stream was closed and then return EOF
4353         when the buffer is empty.
4354         (receive): Mark the output stream as closed when passed a -1.
4356         * java/io/PipedOutputStream.java (close): Notify the input stream
4357         that there's no more data coming.
4358         (connect): Added a FIXME comment to note more coordination needed
4359         with PipedInputStream.
4360         (flush): Added a FIXME comment to mark what this method might do
4361         instead of nothing.
4363 Fri Oct 30 14:27:21 1998  Warren Levy  <warrenl@cygnus.com>
4365         * java/io/PipedInputStream.java: Rewritten.
4367 1998-10-30  Tom Tromey  <tromey@cygnus.com>
4369         * java/lang/Throwable.java: Rewrote from scratch.
4371         * java/lang/Class.h (Class): Don't mention newMultiArray.
4372         * prims.cc (newMultiArray): Removed.
4373         (_Jv_NewMultiArray): Removed.
4374         (newArray): Removed.
4375         (new_multi_array): New function.
4376         (_Jv_NewMultiArray): Rewrote from scratch.
4378         * include/javaprims.h: Regenerated class declarations.
4379         * classes.pl (scan): Don't declare PrimClass.
4380         * include/cni.h (JvPrimClass): Use new names for classes.
4381         * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4382         added _Jv_PrimClass.
4383         * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4384         (_Jv_initPrimClass): Removed.
4385         (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4386         (_Jv_AllocObject): Added comment.
4387         (_Jv_NewObjectArray): Likewise.
4388         (_Jv_NewPrimArray): Likewise.
4390 1998-10-29  Tom Tromey  <tromey@cygnus.com>
4392         * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4393         (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4394         new dtable.
4395         * java/lang/Class.h (Class): Added `dtable_method_count' field.
4397         * java/lang/natObject.cc (init): New global.
4398         (sync_init): Call _Jv_InitializeSyncMutex if required.
4400         * Makefile.in: Rebuilt.
4401         * Makefile.am (nat_headers): Added ClassLoader.h.
4402         * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4403         * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4404         internalAddClass, lookupArray no longer friends.
4405         _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4406         _Jv_FindArrayClass now friends.
4407         * java/lang/natClass.cc (HASH_LEN): New macro.
4408         (HASH_UTF): Likewise.
4409         (loaded_classes): New global.
4410         (_Jv_FindClass): New function.
4411         (ClassClass): New define.
4412         (_Jv_FindClassInCache): New function.
4413         (_Jv_RegisterClass): Likewise.
4414         (_Jv_NewClass): Likewise.
4415         Include <string.h>
4416         (ObjectClass): New define.
4417         (CloneableClass): New define.
4418         * prims.cc (_Jv_FindClass): Removed.
4419         (simpleLookupClass): Removed.
4420         (insertClass): Removed.
4421         (CLASSHASHSZ): Removed.
4422         (classPool): Removed.
4423         (_Jv_RegisterClass): Removed.
4424         (internalAddClass): Removed.
4425         (ClassClass): Removed.
4426         (RuntimeClass): Removed.
4427         (lookupArray): Removed.
4428         (CloneableClass): Removed.
4429         (CLASSMAXSIG): Removed.
4430         Rearranged file to group related functions together.
4431         (_Jv_IsInstanceOf): Moved to natClass.cc.
4432         (abort_final): Removed.
4433         Removed some unused includes.
4434         (classFromSig): Removed.
4435         (_Jv_FindClassFromSignature): New function.
4436         (_Jv_initPrimClass): Renamed.
4437         (getClass): Removed.
4439 Thu Oct 29 23:17:17 1998  Warren Levy  <warrenl@cygnus.com>
4441         * java/io/FileDescriptor.java (finalize): Throws IOException
4442         instead of Throwable.
4444         * java/io/FileInputStream.java: Rewritten.
4446         * java/io/StreamTokenizer.java (nextToken): Unread newline character
4447         at the end of a comment.
4449 1998-10-29  Tom Tromey  <tromey@cygnus.com>
4451         * include/javaprims.h: Regenerated class declarations.
4452         * classes.pl (scan): Don't special-case ClassLoader.
4454         * prims.cc (processClass): Removed.
4455         (_Jv_InitClass): Removed.
4456         Removed all CSTATE_ macros.
4457         (resolveConstants): Removed.
4458         (MAXDIMS): Removed.
4459         (_Jv_NewMultiArray): Cleaned up.
4460         * Makefile.in: Rebuilt.
4461         * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4462         * java/lang/Class.h (Class): Declare new methods.  processClass no
4463         longer a friend.
4464         * java/lang/Class.java (hackTrampoline): New method.
4465         (initializeClass): Declare.
4466         (hackRunInitializers): Declare.
4467         * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4468         (initializeClass): New method.
4469         (hackRunInitializers): New method.
4470         (init_name, void_signature): Moved from prims.cc.
4471         (_Jv_InitClass): New function.
4472         (isAssignableFrom): Don't call processClass.
4473         (STATE_NOTHING): New macro.
4474         (resolveConstants): New function.
4475         Include Thread.h.
4476         (ErrorClass): New define.
4478         * java/lang/Class.java (getClassLoader): Declare.
4479         * java/lang/ClassLoader.java: Rewrote from scratch.
4481         * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4482         AbstractMethodError.h, IllegalAccessError.h,
4483         NoClassDefFoundError.h.
4484         * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4485         * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4486         longer static.  Changed return type.
4487         * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4488         * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4489         * prims.cc (findMethodLocal): Removed.
4490         (processClass): Use _Jv_GetMethodLocal.
4492 1998-10-28  Tom Tromey  <tromey@cygnus.com>
4494         * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4495         * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4496         friend.
4497         * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4498         (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4500         * include/jni.h: Added copyright header.
4501         * include/javaprims.h: Added copyright header.
4502         * include/java-field.h: Added copyright header.
4503         * include/java-array.h: Added copyright header.
4504         * include/cni.h: Added copyright header.
4506         * include/javaprims.h: Regenerated class declarations using
4507         classes.pl; now they are complete.
4508         * classes.pl: New file.
4510         * java/lang/natMath.cc: Include <config.h>.
4511         * java/lang/reflect/natField.cc: Include <config.h>.
4512         * java/util/NativeUtil.java: Removed.
4513         * Makefile.in: Rebuilt.
4514         * Makefile.am (nat_headers): Added Math.h.
4515         * java/lang/Math.h: Removed.
4516         * java/util/natGregorianCalendar.cc: Added copyright header.
4517         Include <config.h>.
4518         * java/lang/natFloat.cc: Added copyright header.
4519         * java/lang/Byte.java: Added copyright header.
4520         * java/lang/Void.java: Added copyright header.
4521         * java/lang/Short.java: Added copyright header.
4523 Wed Oct 28 12:55:47 1998  Warren Levy  <warrenl@cygnus.com>
4525         * include/javaprims.h (java::io): Added bunch of missing classes.
4526         
4527         * java/io/DataInputStream.java (readLine): Added a special case
4528         for handling BufferedInputStream data to reduce the likelihood
4529         of a pushback error.
4530         (skipBytes): Added code to handle negative number of skip bytes.
4531         
4532         * java/io/StreamTokenizer.java: Rewritten.
4534 1998-10-28  Tom Tromey  <tromey@cygnus.com>
4536         * java/util/natGregorianCalendar.cc (computeFields): Call
4537         getRawOffset as a method.
4539         * include/javaprims.h (java::io): Added FilterOutputStream.
4540         * Makefile.in: Rebuilt.
4541         * Makefile.am (nat_headers): Added PrintStream.h,
4542         FilterOutputStream.h.
4543         * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4544         PrintStream.h.
4545         (die): New function.
4546         (run): Die if `main' not found, is not public, or is not static.
4548         * boehm.cc (_Jv_MarkObj): Use new field names.
4549         * include/java-field.h (JvGetFirstInstanceField): Use new field
4550         names.
4551         (JvNumInstanceFields): Likewise.
4552         * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4553         (getInterfaces): Likewise.
4554         * prims.cc (CLASS_CONSTANTS): Removed.
4555         (CLASS_CONST_SIZE): Likewise.
4556         (CLASS_CONST_TAG): Likewise.
4557         (CLASS_CONST_DATA): Likewise.
4558         (CLASS_CONST_UTF8): Likewise.
4559         (WORD2UTF): Likewise.
4560         (CLASS_CLASS): Likewise.
4561         (CLASS_PRIM_SIG): Likewise.
4562         (CLASS_ARRAY_CACHE): Likewise.
4563         (HASH_CHARS): Likewise.
4564         (hashClassName): Likewise.
4565         Many changes to use new field names.
4566         * java/lang/Class.h (Class): Renamed fields to track compiler.
4568 1998-10-27  Tom Tromey  <tromey@cygnus.com>
4570         * java/lang/natClass.cc: Use #pragma implementation.
4571         (getComponentType): Moved into header.
4572         (getModifiers): Likewise.
4573         (getName): Likewise.
4574         (getSuperclass): Likewise.
4575         (isArray): Likewise.
4576         (isPrimitive): Likewise.
4577         * include/jvm.h (_Jv_FindClass): Declare.
4578         * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4579         * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4580         * include/javaprims.h: Use _Jv_Method, not JvMethod.
4581         * java/lang/Class.h: Rewrote from scratch.
4582         * prims.cc: Many changes to work with new Class.h.
4583         * include/java-field.h (CLASS_FIELDS): Removed.
4584         (CLASS_SFIELDS): Likewise.
4585         (CLASS_IFIELDS): Likewise.
4586         (CLASS_NFIELDS): Likewise.
4587         (CLASS_NIFIELDS): Likewise.
4588         (CLASS_NSFIELDS): Likewise.
4589         (CLASS_FSIZE): Likewise.
4590         (JvGetFirstInstanceField): Rewrote.
4591         (JvNumInstanceFields): Likewise.
4593         * java/lang/Object.h: Added copyright comment.
4595 Wed Oct 28 00:32:23 1998  Per Bothner  <bothner@cygnus.com>
4597         * java/text:  New package directory.
4598         * java/text/FieldPosition.java:  New class.
4599         * java/text/ParsePosition.java:  New class. 
4600         * java/text/ParseException.java:  New Exception class.
4601         * java/text/Format.java:  New class.
4602         * java/text/NumberFormat.java:  New (empty placeholder) class.
4603         * java/text/DateFormatSymbols.java:  New class (no Locales support).
4604         * java/text/DateFormat.java:  New Format class (incomplete).
4605         * java/text/SimpleDateFormat.java:  New DateFormat class.
4606         
4607         * include/javaprims.h (java::test):  Added new package and classes.
4608         * java/util/Calendar.java (clone):  New method.
4609         * java/util/Date.java (toString):  Added non-native implementation.
4610         (parse):  Made public instead of synchronized.
4611         * java/util/natDate.cc (toString):  Removed.
4612         * java/util/natGregorianCalendar.cc (computeFields):
4613         Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4615 1998-10-27  Tom Tromey  <tromey@cygnus.com>
4617         * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4619         * prims.cc (lookupArray): Added explanatory comment.
4620         * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4621         class.  Mark the class of each object.
4622         (_Jv_MarkArray): Mark the object's class.
4624         * configure: Rebuilt.
4625         * configure.in: Create java-gc.h.
4626         * include/boehm-gc.h: New file.
4627         * include/no-gc.h: New file.
4628         * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4629         defined.
4630         * java/lang/Object.h: Include java-gc.h.
4631         (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4632         friends, if defined.
4633         * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4634         signature.
4635         (_Jv_MarkArray): Renamed from mark_array; changed signature.
4637 1998-10-26  Tom Tromey  <tromey@cygnus.com>
4639         * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4640         paragraph separators, not numbers.
4642         * java/io/Writer.java (write): Removed write(char) to avoid
4643         ambiguity.
4644         * java/util/Properties.java: Rewrote from scratch.
4645         * include/javaprims.h (java::io): Added PrintWriter,
4646         BufferedWriter, PushbackReader.
4648 Mon Oct 26 13:13:28 1998  Anthony Green  <green@cygnus.com>
4650         * java/lang/System.java: exit() is a static method.
4652 1998-10-26  Tom Tromey  <tromey@cygnus.com>
4654         * java/lang/natString.cc (_Jv_NewStringUTF): Use
4655         _Jv_strLengthUtf8.
4656         (_Jv_NewStringUtf8Const): Likewise.
4657         * include/jvm.h (_Jv_strLengthUtf8): Declare.
4658         * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4660         * java/lang/Object.h (Object): Add mark_array as friend function.
4661         * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4662         _Jv_AllocBytes, to ensure that header is marked.
4663         * boehm.cc (mark_obj): Push sync_info field for all objects, not
4664         just Objects.
4665         (mark_array): Push sync_info field for array.
4667 1998-10-24  Tom Tromey  <tromey@cygnus.com>
4669         * java/lang/String.java (String): Updated for StringBuffer
4670         change.
4671         * java/util/BitSet.java: Renamed field (data->bits) to conform to
4672         serialization spec.
4673         * java/lang/StringBuffer.java: Renamed fields to conform to
4674         serialization spec: buffer->value, next->count, copy->shared.
4676 Wed Oct 21 18:24:57 1998  Per Bothner  <bothner@cygnus.com>
4678         * java/util/TimeZone.java:  New class.
4679         * java/util/SimpleTimeZone.java:  New class.
4680         * java/util/Locale.java:  New file.
4681         * java/util/Calendar.java:  Make almost complete.
4682         * java/util/GregorianCalendar.java
4683         * java/util/natGregorianCalendar.cc:  New file.
4684         * java/util/Date.java:  Re-written from scratch.
4685         * java/util/natDate.cc (setTime):  Removed - no longer native.
4686         * include/javaprims.h (java::util):  Add new classes.
4687         * Makefile.am (nat_files):  Add java/util/natGregorianCalendar.o.
4688         (nat_headers);  Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4690 Sat Oct 24 22:58:25 1998  Warren Levy  <warrenl@cygnus.com>
4692         * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4693         returning it as a jint.
4695 1998-10-23  Tom Tromey  <tromey@cygnus.com>
4697         * prims.cc (arg_vec, main_group, main_thread): New globals.
4698         (JvRunMain): Use them.
4700 Fri Oct 23 17:10:12 1998  Warren Levy  <warrenl@cygnus.com>
4702         * java/io/DataInputStream.java: Rewritten.
4704         * java/io/DataOutputStream.java (writeUTF): OR secondary and
4705         tertiary bytes with 0x80 per spec.
4707 1998-10-23  Tom Tromey  <tromey@cygnus.com>
4709         * java/lang/String.java (init): Changed name of `copy' argument.
4710         * java/lang/natString.cc (init): Inverted sense of `copy'
4711         argument.
4713         * java/lang/Object.h (Object): Declare mark_obj as a friend.
4714         * java/lang/Class.h (Class): Declare mark_obj as a friend.
4715         * boehm.cc (ObjectClass): New define.
4716         (ClassClass): Likewise.
4717         (mark_obj): Special-case Object and Class.
4719         * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4721         * java/util/BitSet.java: Rewrote from scratch.
4723         * prims.cc (lookupArray): Removed useless cast.
4725         * java/lang/natObject.cc: Use `#pragma implementation'.
4727         * java/lang/String.java (init): Added `copy' argument.
4728         (String): Look in StringBuffer to find char array.
4729         * java/lang/natString.cc (init): Added `copy' argument.
4730         * java/lang/StringBuffer.java: Rewrote from scratch.
4732         * java/lang/Compiler.java: Rewrote from scratch.
4733         * java/lang/Throwable.java: Don't use NativeLang.
4734         * include/javaprims.h (java::lang): Don't mention NativeLang.
4735         * java/lang/Process.java: Rewrote from scratch.
4736         * java/lang/SecurityManager.java (classLoaderDepth): Commented
4737         out.
4738         (currentClassLoader): Likewise.
4739         (currentLoadedClass): Likewise.
4740         * java/lang/natClass.cc (getClassLoader): Commented out.
4741         * java/lang/Class.java (getClassLoader): Commented out.
4742         * java/lang/Compiler.java: Removed.
4743         * java/lang/NativeLang.java: Removed.
4745         * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4746         * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4747         * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4748         (_Jv_hashUtf8String): Now static.
4749         * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4750         name of return type.
4752         * java/lang/Class.h (Class): Declare checkMemberAccess.
4753         * Makefile.in: Rebuilt.
4754         * Makefile.am (nat_headers): Added Member.h.
4755         * java/lang/natClass.cc: Include Member.h.
4756         (getDeclaredClasses): Call checkMemberAccess.
4757         * java/lang/Class.java (checkMemberAccess): Call
4758         SecurityManager.checkMemberAccess.
4760 Fri Oct 23 08:01:54 1998  Anthony Green  <green@cygnus.com>
4762         * java/lang/SecurityManager.java: Rewritten.
4764 Thu Oct 22 17:16:10 1998  Anthony Green  <green@cygnus.com>
4766         * java/applet/Applet.java, java/applet/AppletContext.java,
4767         java/applet/AppletStub.java, java/applet/AudioClip.java,
4768         java/awt/AWTError.java, java/awt/AWTException.java,
4769         java/awt/BorderLayout.java, java/awt/Button.java,
4770         java/awt/Canvas.java, java/awt/CardLayout.java,
4771         java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4772         java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4773         java/awt/Color.java, java/awt/Component.java,
4774         java/awt/Container.java, java/awt/Dialog.java,
4775         java/awt/Dimension.java, java/awt/Event.java,
4776         java/awt/FileDialog.java, java/awt/FlowLayout.java,
4777         java/awt/Font.java, java/awt/FontMetrics.java,
4778         java/awt/Frame.java, java/awt/Graphics.java,
4779         java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4780         java/awt/GridLayout.java, java/awt/Image.java,
4781         java/awt/Insets.java, java/awt/Label.java,
4782         java/awt/LayoutManager.java, java/awt/List.java,
4783         java/awt/MediaTracker.java, java/awt/Menu.java,
4784         java/awt/MenuBar.java, java/awt/MenuComponent.java,
4785         java/awt/MenuContainer.java, java/awt/MenuItem.java,
4786         java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4787         java/awt/Rectangle.java, java/awt/Scrollbar.java,
4788         java/awt/TextArea.java, java/awt/TextComponent.java,
4789         java/awt/TextField.java, java/awt/Toolkit.java,
4790         java/awt/Window.java, java/awt/image/ColorModel.java,
4791         java/awt/image/CropImageFilter.java,
4792         java/awt/image/DirectColorModel.java,
4793         java/awt/image/FilteredImageSource.java,
4794         java/awt/image/ImageConsumer.java,
4795         java/awt/image/ImageFilter.java,
4796         java/awt/image/ImageObserver.java,
4797         java/awt/image/ImageProducer.java,
4798         java/awt/image/IndexColorModel.java,
4799         java/awt/image/MemoryImageSource.java,
4800         java/awt/image/PixelGrabber.java,
4801         java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4802         java/awt/peer/CanvasPeer.java,
4803         java/awt/peer/CheckboxMenuItemPeer.java,
4804         java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4805         java/awt/peer/ComponentPeer.java,
4806         java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4807         java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4808         java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4809         java/awt/peer/MenuBarPeer.java,
4810         java/awt/peer/MenuComponentPeer.java,
4811         java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4812         java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4813         java/awt/peer/TextAreaPeer.java,
4814         java/awt/peer/TextComponentPeer.java,
4815         java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4816         java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4817         java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4818         java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4819         java/net/MalformedURLException.java, java/net/NativeNet.java,
4820         java/net/ProtocolException.java, java/net/ServerSocket.java,
4821         java/net/Socket.java, java/net/SocketException.java,
4822         java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4823         java/net/URL.java, java/net/URLConnection.java,
4824         java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4825         java/net/URLStreamHandlerFactory.java,
4826         java/net/UnknownHostException.java,
4827         java/net/UnknownServiceException.java: Removed.
4829 1998-10-22  Tom Tromey  <tromey@cygnus.com>
4831         * prims.cc (_Jv_AllocObject): Register finalizer if class'
4832         finalizer is not Object.finalize.
4833         (internalAddClass): Don't set `final' member of class.
4834         * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4835         other places that know about finalize() location.
4836         * java/lang/Class.h (Class): Removed `final' field.
4838         * aclocal.m4, configure: Rebuilt.
4839         * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4840         AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4841         set.
4842         * configure.in (AC_OUTPUT): Pass CXX to config.status.
4843         * Makefile.in: Rebuilt.
4844         * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4846 1998-10-21  Tom Tromey  <tromey@cygnus.com>
4848         * java/lang/Object.java (finalize): Move to be first method in
4849         class.
4851         * configure: Rebuilt.
4852         * configure.in (GCINCS): Include contents of boehm-cflags file.
4854 Tue Oct 20 13:11:04 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4856         * java/lang/ArrayIndexOutOfBoundsException.java
4857         (ArrayIndexOutOfBoundsException): Fixed string literal.
4858         * java/lang/StringIndexOutOfBoundsException.java
4859         (StringIndexOutOfBoundsException): Fixed string literal.
4861 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4863         * natFileDescriptorEcos.cc added.
4864         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
4866 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4868         * acconfig.h: test for __int32_t and __uint32_t added.
4869         * include/config.h.in: test for __int32_t and __uint32_t added.
4870         * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4871         * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4872         * configure.in: test for __int32_t and __uint32_t added.
4873         * configure: test for __int32_t and __uint32_t added.
4874         
4875         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
4877         * configure.in: Test for --enable ecos and link
4878         natFileDescriptor.cc to natFileDescriptorEcos.cc or
4879         natFileDescriptorPosix.cc
4880         
4881         * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4882         
4883 Mon Oct 19 18:13:58 1998  Warren Levy  <warrenl@cygnus.com>
4885         * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4886         in isn't negative.
4888         * java/io/CharArrayReader.java (close): Synchronize on lock
4889         object per Reader contract.
4890         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
4891         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
4892         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
4893         Ensure that arg passed in isn't negative.
4895         * java/io/FilterReader.java (FilterReader): Use the lock obj when
4896         constructing the superclass.
4898         * java/io/PushbackReader.java (close): Synchronize on lock
4899         object per Reader contract.
4900         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
4901         (ready): Synchronize on lock obj.  Throw IOException if reader
4902         wasn't closed.
4903         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
4904         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
4905         Ensure that arg passed in isn't negative.
4906         (unread): Synchronize on lock obj.  Verify that reader wasn't closed.
4908         * java/io/StringReader.java: Created.
4909         
4910 Sun Oct 18 02:19:11 1998  Warren Levy  <warrenl@cygnus.com>
4912         * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4913         to match JCL.
4914         (read): Removed synchronized modifier to match JCL.
4915         (reset): Removed synchronized modifier to match JCL.
4916         (skip): Removed synchronized modifier to match JCL.
4918 Sun Oct 18 02:01:54 1998  Warren Levy  <warrenl@cygnus.com>
4920         * java/io/PushbackReader.java (PushbackReader): Made
4921         constructors public.
4923 1998-10-17  Tom Tromey  <tromey@cygnus.com>
4925         * java/io/PushbackInputStream.java (PushbackInputStream): Made
4926         constructors public.
4928 1998-10-16  Anthony Green  <green@cygnus.com>
4930         * aclocal.m4, configure: Rebuilt.
4931         * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4932         configure.host.
4933         * configure.host: Rewrote.
4934         * Makefile.in: Rebuilt.
4935         * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4936         (AM_CFLAGS): New macro.
4937         ($(c_files)): Use COMPILE macro.
4938         (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4939         automake problem(s).
4941 Fri Oct 16 16:36:28 1998  Warren Levy  <warrenl@cygnus.com>
4943         * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4945         * java/io/CharArrayReader.java: Created.
4947 Fri Oct 16 15:17:01 1998  Warren Levy  <warrenl@cygnus.com>
4949         * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4950         size check to allow 0 per JCL.
4952         * java/io/PushbackReader.java: Created.
4954 1998-10-16  Tom Tromey  <tromey@cygnus.com>
4956         * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4957         <sys/time.h> includes. 
4958         * java/io/natFile.cc: Conditionalize <unistd.h> include.
4959         * include/no-threads.h: Conditionalize <unistd.h> include on
4960         HAVE_UNISTD_H.
4962 Fri Oct 16 14:39:51 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
4964         * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4965         is defined.
4967 Thu Oct 15 19:27:54 1998  Warren Levy  <warrenl@cygnus.com>
4969         * java/io/FilterReader.java: Created.
4971 Thu Oct 15 17:49:43 1998  Warren Levy  <warrenl@cygnus.com>
4973         * java/io/PushbackInputStream.java: Rewritten.
4975         * java/io/BufferedInputStream.java (BufferedInputStream): Check
4976         that size passed to constructor is legal.
4977         (read): Check that args passed in are legal.
4978         (skip): Rewritten to get rid of the temporary buffer.
4979         (refill): Added marklimit check to grow the buffer.
4981         * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4982         check.
4983         (bytesAvail): Removed.
4984         (read): Changed bytesAvail to Math.min.
4985         (skip): Changed bytesAvail to Math.min.
4987         * java/io/InputStream.java (read): Got rid of extraneous exceptions
4988         from the throws clause.
4989         (skip): Rewritten to use a temporary buffer.
4991 Thu Oct 15 19:42:55 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
4993         * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4994         some target OSes
4996         * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4998         * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4999         to write the double one word at a time.
5001 Tue Oct 13 14:41:47 1998  Warren Levy  <warrenl@cygnus.com>
5003         * java/io/BufferedInputStream.java:  Rewritten.
5005 1998-10-12  Tom Tromey  <tromey@cygnus.com>
5007         * jni.cc: Include config.h and stddef.h.
5009         * java/lang/Class.h (_dispatchTable): Removed again.
5010         Removed all ACC_* defines again.
5012 Fri Oct  9 17:08:34 1998  Per Bothner  <bothner@cygnus.com>
5014         * Makefile.am (nat_files):  Add netField.o.
5015         (libjava_a_SOURCES):  Add jni.cc.
5016         (java/lang/reflect/Field.h):  New rule.
5017         * Makefile.in:  Re-generated.
5018         * include/javaprims.h:  Add some extra class and typedefs.
5019         * include/jni.h:  New file.
5020         * jni.cc:  New file.
5022         * include/java-field.h:  New file.
5023         * include/jvm.h:  #include <java-field.h>.
5024         * boehm.cc:  #include <java-field.h>.
5025         * java/lang/Class.h (JvField, inline numbers):  Moved to java-field.h.
5026         * java/lang/reflect/Member.java:  New class.
5027         * java/lang/reflect/Field.java:  New class.  (Very incomplete.)
5028         * java/lang/reflect/natField.cc:  New file.  (Very incomplete.)
5030 Sun Oct 11 00:34:44 1998  Anthony Green  <green@cygnus.com>
5032         * Makefile.in, aclocal.m4, configure, test/Makefile.in,
5033         testsuite/Makefile.in: Rebuilt.
5034         * Makefile.am, acinclude.m4, configure.in: Add multilib support.
5035         * configure.host: Created.
5037 1998-10-10  Tom Tromey  <tromey@cygnus.com>
5039         * java/lang/natObject.cc (sync_init): Always allocate a new
5040         sync_info.
5042 1998-10-09  Tom Tromey  <tromey@cygnus.com>
5044         * java/io/ByteArrayInputStream.java (mark): Renamed from
5045         `mark_FIXME'.
5047         * java/io/FileOutputStream.java (finalize): Removed.
5048         * java/io/FileDescriptor.java (finalize): New method.
5050 Thu Oct  8 17:59:43 1998  Warren Levy  <warrenl@cygnus.com>
5052         * ByteArrayInputStream.java: Corrected status comment.
5054 Thu Oct  8 17:22:49 1998  Warren Levy  <warrenl@cygnus.com>
5056         * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
5058 1998-10-08  Tom Tromey  <tromey@cygnus.com>
5060         * prims.cc (lookupArray): Use static array to initialize list of
5061         interfaces.
5063 Thu Oct  8 12:45:03 1998  Anthony Green  <green@cygnus.com>
5065         * prims.cc (lookupArray): Initialize the msize for new
5066         array classes.
5068 Wed Oct  7 12:13:59 1998  Anthony Green  <green@cygnus.com>
5070         * configure: Rebuilt.
5071         * configure.in: Check for fsync and sleep.
5072         * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
5074         * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
5075         HAVE_SLEEP. Include config.h.
5077         * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
5078         * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
5079         with HAVE_FSYNC.
5081 1998-10-08  Tom Tromey  <tromey@cygnus.com>
5083         * java/io/natFile.cc: Don't include SecurityManager.h.
5084         (performList): Renamed.
5085         (performMkdir): Likewise.
5086         (performRenameTo): Likewise.
5087         (performDelete): Likewise.
5088         Include <stdlib.h>.
5089         * java/io/File.java (performDelete): Renamed from natDelete.
5090         (list): Now written in Java.
5091         (performList): New method.
5092         (performMkdir): New method.
5093         (mkdir): Now written in Java.
5094         (performRenameTo): New method.
5095         (renameTo): Now written in Java.
5097 1998-10-06  Tom Tromey  <tromey@cygnus.com>
5099         * Makefile.in: Rebuilt.
5100         * Makefile.am (ETAGS_ARGS): New macro.
5101         (TAGS_DEPENDENCIES): Likewise.
5103 Tue Oct  6 22:04:44 PDT 1998 Anthony Green  <green@cygnus.com>
5105         * Makefile.in: Rebuilt.
5106         * Makefile.am: Use -classpath option with javac.
5107         
5108 Tue Oct  6 18:51:31 1998  Tom Tromey  <tromey@cygnus.com>
5110         * java/io/FileOutputStream.java (finalize): Call
5111         super.finalize().
5113 Tue Oct  6 16:02:45 1998  Anthony Green  <green@cygnus.com>
5115         * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5116         with newlib's libm.
5117         * java/lang/mprec.c: Ditto.
5119         * java/lang/mprec.h: Include math.h for HUGE_VAL when
5120         cross-compiling.
5122 Tue Oct  6 14:27:00 1998  Warren Levy  <warrenl@cygnus.com>
5124         * java/io/InputStream.java (skip): Make local var i a long.
5126 Mon Oct  5 09:44:24 1998  Tom Tromey  <tromey@cygnus.com>
5128         * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5129         * prims.cc (lookupArray): Use memcpy, not memmove.
5130         * include/config.h.in: Rebuilt.
5131         * acconfig.h (HAVE_MEMCPY): Added.
5132         * configure: Rebuilt.
5133         * configure.in: Check for memcpy again.
5135         * java/io/RandomAccessFile.java (RandomAccessFile): Use
5136         String.compareTo, not ==.
5138         * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5139         (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5140         * java/lang/natObject.cc (struct _dispatchTable): Removed.
5141         * include/jvm.h (struct _Jv_DispatchTable): New structure.
5142         * prims.cc (lookupArray): Removed dead code.  Copy Object's dtable
5143         into new array's dtable.
5144         (_Jv_AllocObject): Use _Jv_DispatchTable.
5145         (_Jv_NewPrimArray): Likewise.
5146         (_Jv_NewObjectArray): Likewise.
5148 Fri Oct  2 18:57:14 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5150         * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5151         offending index value.
5152         (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5153         appropriate.
5154         * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5155         * java/lang/Throwable.java: (Throwable): fixed argument to this().
5157 Fri Oct  2 15:58:23 1998  Warren Levy  <warrenl@cygnus.com>
5159         * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5160         
5161         * java/io/OutputStream.java (write): Use off and len parameters to
5162         output partial byte array.
5163         
5164         * java/io/BufferedReader.java, java/io/FileReader.java,
5165         java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5166         java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5167         java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5168         java/io/Writer.java: Added COPYRIGHT-TBD comment.
5170         * include/javaprims.h (java::lang): Added
5171         ExceptionInInitializerError, IllegalStateException,
5172         NoSuchFieldException, and UnsupportedOperationException.
5174 Fri Oct  2 01:05:38 1998  Tom Tromey  <tromey@cygnus.com>
5176         * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5177         Class*.
5179         * include/java-array.h (__JArray): Added clone method.
5180         * prims.cc (CloneableClass): New define.
5181         (lookupArray): Initialize array class to indicate that it
5182         implements Cloneable.
5184         * java/lang/Class.h: Removed all ACC_* defines.
5185         * prims.cc: Include Modifier.h.
5186         (_Jv_LookupInterfaceMethod): Use methods in
5187         java.lang.reflect.Modifier, not ACC_ defines.
5189         * java/lang/Class.h (Class): Declare getClasses,
5190         getDeclaredClasses, getDeclaringClass, getModifiers, 
5191         * java/lang/Class.java: Rewrote from scratch.
5193         * include/javaprims.h (java::lang): Added reflect and
5194         reflect::Modifier.
5195         * Makefile.in: Rebuilt.
5196         * Makefile.am (nat_headers): Added Modifier.h.
5198         * prims.cc (_Jv_IsInstanceOf): Return false if class is
5199         primitive.
5201 Fri Oct 2 06:49:00 1998  Anthony Green  <green@cygnus.com>
5203         * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5204         instead of test and abort.
5206         * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5207         remove compiler warning.
5209 Fri Oct  2 12:33:44 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5211         * java/lang/natDouble.cc: zero terminate string.
5212         * strtod.c: Set errno if no digits are found in fraction.
5214 Thu Oct  1 11:48:28 1998  Tom Tromey  <tromey@cygnus.com>
5216         * java/lang/reflect/Modifier.java: New file.
5218         * java/lang/VirtualMachineError.java: Rewrote from scratch.
5219         * java/lang/VerifyError.java: Rewrote from scratch.
5220         * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5221         * java/lang/UnknownError.java: Rewrote from scratch.
5222         * java/lang/StackOverflowError.java: Rewrote from scratch.
5223         * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5224         * java/lang/InternalError.java: Rewrote from scratch.
5225         * java/lang/IllegalAccessError.java: Rewrote from scratch.
5226         * java/lang/ExceptionInInitializerError.java: New file.
5227         * java/lang/Error.java: Rewrote from scratch.
5228         * java/lang/ClassFormatError.java: Rewrote from scratch.
5229         * java/lang/ClassCircularityError.java: Rewrote from scratch.
5230         * java/lang/AbstractMethodError.java: Rewrote from scratch.
5231         * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5232         * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5233         * java/lang/LinkageError.java: Rewrote from scratch.
5234         * java/lang/IncompatibleClassChangeError.java: Rewrote from
5235         scratch.
5236         * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5238         * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5239         * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5240         friend.
5241         * include/cni.h (JvAllocObject): Moved from prims.cc.
5242         Include Class.h.
5243         * prims.cc (JvAllocObject): Moved to cni.h.
5244         (_Jv_AllocObject): Use _Jv_FinalizeObject.
5245         (finalize_name): Removed.
5247 Wed Sep 30 12:09:34 1998  Tom Tromey  <tromey@cygnus.com>
5249         * java/lang/Class.h (Class): Added size() method.
5250         * prims.cc (_Jv_MonitorEnter): Removed.
5251         (_Jv_MonitorExit): Removed.
5252         * java/lang/Object.h (JvSyncInfo): Removed.
5253         * Makefile.in: Rebuilt.
5254         * Makefile.am (nat_headers): Added Cloneable.h,
5255         CloneNotSupportedException.h.
5256         * java/lang/Object.h: Rewrote.
5257         * java/lang/natObject.cc: Rewrote from scratch.
5258         * java/lang/Object.java: Rewrote from scratch.
5260         * java/io/natFile.cc: Conditionally include <dirent.h>.
5261         (list): If no <dirent.h>, always return NULL.
5262         * configure: Rebuilt.
5263         * configure.in: Check for dirent.h.
5265         * prims.cc (lookupArray): Don't use sprintf.
5267         * java/util/Hashtable.java (containsKey): Use `abs' to compute
5268         initial index.
5269         (get): Likewise.
5270         (put): Likewise.
5271         (rehash): Likewise.
5272         (remove): Likewise.
5274         * java/util/Hashtable.java (hsize): Renamed from size to avoid
5275         name conflict with method.
5277         * include/javaprims.h (java::util): Added HashtableEntry.
5279 Tue Sep 29 16:48:01 1998  Warren Levy  <warrenl@cygnus.com>
5281         * java/util/Hashtable.java: Rewritten.
5283 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5285         * java/io/natFileDescriptor.cc (write): Correctly test `write'
5286         return value.
5287         (write): Likewise.
5289         * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5290         not `curr_nt'.
5292         * posix-threads.cc (_Jv_CondWait): Now returns int.
5293         * include/javaprims.h (java::lang): Added
5294         IllegalMonitorStateException.
5295         * Makefile.in: Rebuilt.
5296         * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5297         * include/no-threads.h (_Jv_CondDestroy): Removed.
5298         (_Jv_MutexDestroy): Removed.
5299         (_Jv_CondWait): Now returns int.
5300         (_Jv_CondNotify): Likewise.  Added mutex argument.
5301         (_Jv_CondNotifyAll): Likewise.
5302         (_Jv_MutexLock): Always succeed.
5303         (_Jv_MutexUnlock): Likewise.
5304         * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5305         (_Jv_HaveMutexDestroy): Define.
5306         (_Jv_CondNotify): Now returns int.  Added mutex argument.
5307         (_Jv_CondNotifyAll): Likewise.
5308         * include/quick-threads.h (_Jv_CondDestroy): Removed.
5309         (_Jv_MutexDestroy): Removed.
5310         (_Jv_CondWait): Now returns int.
5311         (_Jv_CondNotify): Likewise.  Added mutex argument.
5312         (_Jv_CondNotifyAll): Likewise.
5313         * java/lang/natObject.cc (finalize_sync_info): New function.
5314         (init_mutex): Initialize `init' and register finalizer if
5315         required.
5316         (CHECK): New macro.
5317         (init_mutex): Use it.
5318         (notify): Use it.
5319         (notifyAll): Use it.
5320         (wait): Use it.
5321         (notify): Throw IllegalMonitorStateException on failure.
5322         (notifyAll): Likewise.
5323         (wait): Likewise.  Also, throw InterruptedException if
5324         appropriate.
5325         Include cni.h, Thread.h, IllegalMonitorStateException.h,
5326         InterruptedException.h, IllegalArgumentException.h.
5327         * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5329         * java/lang/natString.cc: Renamed all `JvPriv' functions.
5330         * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5331         * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5332         * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5333         * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5334         * quick-threads.cc: Renamed all `JvPriv' functions.
5335         * prims.cc: Renamed all `JvPriv' functions.
5336         * posix-threads.cc: Renamed all `JvPriv' functions.
5337         * nogc.cc: Renamed all `JvPriv' functions.
5338         * no-threads.cc: Renamed all `JvPriv' functions.
5339         * boehm.cc: Renamed all `JvPriv' functions.
5340         * include/quick-threads.h: Renamed all `JvPriv' functions.
5341         * include/posix-threads.h: Renamed all `JvPriv' functions.
5342         * include/no-threads.h: Renamed all `JvPriv' functions.
5343         * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5345         * include/no-threads.h (JvPrivCondWait): Wrote minimal
5346         implementation.
5347         (JvPrivCondNotify): Do nothing.
5348         (JvPrivCondNotifyAll): Do nothing.
5350         * prims.cc (processClass): Handle case where state is
5351         DOING_CONSTINIT.
5353         * java/lang/natFirstThread.cc: Include <stdlib.h>
5355         * configure: Rebuilt.
5356         * configure.in: Fixed sense of --enable-libjava-debug.
5358         * java/lang/natThread.cc (join): Declare `t' outside the loop so
5359         it can be used afterward by the assertion.
5361         * configure: Rebuilt.
5362         * configure.in: When cross-compiling, assume alloca.
5364         * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5365         __builtin_alloca (autoconf docs are wrong here).
5367         * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5368         closing.
5369         (available): Use `FD_ZERO' (typo fix).
5371 Tue Sep 29 17:43:30 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
5373         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5374         java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5375         struct _Jv_Bigint.
5376         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5377         java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5378         struct _Jv_reent.
5380         * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5381         
5382 Tue Sep 29 07:57:13 1998  Anthony Green  <green@cygnus.com>
5384         * java/lang/natDouble.cc: Declare alloca safely.
5386         * configure, include/config.h.in: Rebuilt.
5387         * configure.in: Add alloca check.
5389 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5391         * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5392         condition while calling notify.
5393         (join): Remove `curr_nt' from `nt's join list, not vice versa.
5394         (interrupt): Hold mutex for interrupt condition while calling
5395         notify.
5397         * java/lang/natString.cc (init): Allocate and try to read `count'
5398         characters, not `count - offset' characters.
5400         * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5401         Correctly compute `count'.
5403         * java/lang/Boolean.java (getBoolean): Return false if property
5404         not found.
5406         * java/lang/System.java (setProperties): Set prop_init.
5408 Mon Sep 28 12:39:25 1998  Tom Tromey  <tromey@cygnus.com>
5410         * java/io/PrintStream.java (println): Use line.separator, not
5411         file.separator.
5412         * java/lang/System.java (out, err): Make both autoflush streams.
5413         * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5415         * include/config.h.in: Rebuilt.
5416         * acconfig.h (HAVE_MEMCPY): Removed.
5417         * configure: Rebuilt.
5418         * configure.in: Never define HAVE_MEMCPY.
5420         * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5421         Class.h.
5422         (_Jv_AllocString): Use JvAllocObject again.
5423         * java/lang/Class.h (thread): New field.
5424         (_Jv_AllocString): No longer a friend.
5425         * prims.cc (processClass): Removed dead code.  Changed to more
5426         closely follow the Java Language Specification.
5427         (processClass): Return early if already at the right state.
5429         * prims.cc (JvNewStringUTF): Removed.
5430         * include/cni.h (JvNewStringUTF): New function.
5431         (_Jv_NewStringUTF): Declare as `extern "C"'.
5432         * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5434         * java/lang/natDouble.cc: Added copyright info and header
5435         comment.  Include <stdlib.h>.
5436         (doubleValueOf): Use alloca, not malloc.  Allocate 3 times as many
5437         bytes as are chars in string.
5439 Sat Sep 26 00:19:27 1998  Tom Tromey  <tromey@cygnus.com>
5441         * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5442         clash with method.
5443         (hsize): Likewise.
5445         * java/lang/System.java (init_properties): Now native.
5446         * java/lang/natSystem.cc (init_properties): New method.
5447         Include java/util/Properties.h.
5449         * Makefile.in: Rebuilt.
5450         * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5451         OutputStreamWriter.h, ByteArrayInputStream.h,
5452         InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5453         Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5454         SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5455         Properties.h, Hashtable.h, Dictionary.h.
5456         (CFLAGS): Removed.
5458         * include/javaprims.h (java::io): Added Reader, Writer,
5459         InputStreamReader, OutputStreamWriter,
5460         UnsupportedEncodingException, ByteArrayInputStream,
5461         ByteArrayOutputStream, EOFException, SyncFailedException,
5462         PushbackInputStream.
5463         (java::lang): Added Cloneable.
5464         (java::util): Added NoSuchElementException, VectorEnumeration,
5465         Dictionary, HashtableEnumeration, PropertiesEnumeration.
5467         * java/io/PipedReader.java: New file.
5469 Fri Sep 25 00:11:25 1998  Tom Tromey  <tromey@cygnus.com>
5471         * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5472         up A-Z.
5474         * java/io/io-defs.h: Removed.
5476         * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5477         (FileInputStream): Use new constructor.  Can throw IOException.
5479         * java/lang/System.java (getProperty): Don't throw
5480         NullPointerException.
5482         * java/io/RandomAccessFile.java: Rewrote from scratch.
5484         * java/io/natFileDescriptor.cc: Include EOFException.h.
5485         (seek): New method.
5486         (length): New method.
5487         (getFilePointer): New method.
5488         (read): New method.
5489         (available): New method.
5490         * java/io/FileDescriptor.java (SET, CUR): New constants.
5491         (seek, length, getFilePointer, read, available): New decls.
5493         * java/io/PipedWriter.java: New file.
5494         * java/io/StringWriter.java: New file.
5495         * java/io/CharArrayWriter.java: New file.
5496         * java/io/CharConversionException.java: New file.
5497         * java/io/BufferedWriter.java: New file.
5498         * java/io/FilterWriter.java: New file.
5499         * java/io/FileWriter.java: New file.
5501         * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5502         OutputStreamWriter.h, NullPointerException.h,
5503         ByteArrayInputStream.h, InputStreamReader.h.
5504         (getBytes): New method.
5505         (init): Throw NullPointerException.
5506         (init): New function.
5507         * java/lang/String.java (getBytes): Added missing decl.
5508         (getBytes): New method.
5509         (String): Added byte[]-based constructors.
5510         (copyValueOf): Wrote.
5511         (init): Declare variant which takes byte array and encoding.
5512         Import java.io.UnsupportedEncodingException.
5514         * java/io/File.java: Rewrote from scratch.
5515         * java/io/natFileDescriptor.cc: Rewrote from scratch.
5516         * java/io/FileDescriptor.java: Rewrote from scratch.
5517         * java/io/FilenameFilter.java: Rewrote from scratch.
5519 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
5521         * java/io/SyncFailedException.java: New file.
5522         * java/io/UTFDataFormatException.java: Rewrote from scratch.
5523         * java/io/InterruptedIOException.java: Rewrote from scratch.
5524         * java/io/FileNotFoundException.java: Rewrote from scratch.
5525         * java/io/EOFException.java: Rewrote from scratch.
5526         * java/io/IOException.java: Rewrote from scratch.
5527         * java/io/PrintStream.java: Rewrote from scratch.
5528         * java/io/DataOutputStream.java: Rewrote from scratch.
5529         * java/io/BufferedOutputStream.java: Rewrote from scratch.
5530         * java/io/FilterOutputStream.java: Rewrote from scratch.
5531         * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5532         * java/io/PipedOutputStream.java: Rewrote from scratch.
5533         * java/io/FileOutputStream.java: Rewrote from scratch.
5534         * java/io/OutputStream.java: Rewrote from scratch.
5535         * java/io/DataOutput.java: Rewrote from scratch.
5537 Mon Sep 28 22:59:54 1998  Per Bothner  <bothner@cygnus.com>
5539         * prims.cc (_Jv_CheckCast):  Add missing ! operator.
5541 Mon Sep 28 15:50:06 1998  Anthony Green  <green@cygnus.com>
5543         * configure.in: Add --enable-libjava-debug
5545         * Makefile.am (nat_headers): Add java/lang/Float.h and 
5546         java/lang/Double.h
5548         * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5550         * Makefile.in, configure, include/config.h.in: Rebuilt.
5552 Mon Sep 28 17:05:58 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5554         * java/lang/Float.java: Rewritten
5555         * java/lang/Double.java: Rewritten
5556         * java/lang/natFloat.cc: toString() added.
5557         * java/lang/natDouble.cc: toString() added.
5558         * java/lang/natDouble.cc: doubleValueOf() added.
5559         * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h, 
5560         java/lang/strtod.c: added.
5561         * ieeefp.h: __sparc added.
5562         * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5563         
5564 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
5566         * include/javaprims.h (java::lang): Added
5567         CloneNotSupportedException.
5569         * java/lang/Object.java (clone): No longer native.  Implemented.
5570         * java/lang/natObject.cc (clone): Removed.
5572 Wed Sep 23 12:03:38 1998  Tom Tromey  <tromey@cygnus.com>
5574         * prims.cc: Don't make definitions `extern "C"'.
5575         (_Jv_RegisterClass): Renamed from registerClass.
5576         * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5577         (_Jv_NewArray): Likewise.
5578         (_Jv_NewMultiArray): Likewise.
5579         (_Jv_CheckCast): Likewise.
5580         (_Jv_LookupInterfaceMethod): Likewise.
5581         (_Jv_CheckArrayStore): Likewise.
5582         (_Jv_RegisterClass): Likewise.
5584         * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5585         * configure: Rebuilt.
5586         * configure.in: Don't check for fmod; it is provided by the fdlibm
5587         code.
5588         * prims.cc (fmod): Removed.
5590         * java/lang/natString.cc (charAt): Use _Jv_uint.
5591         * java/lang/Class.h (class JvField): Use _Jv_ushort.
5592         * prims.cc (HASH_CHARS): Use _Jv_ushort.
5593         (equalUtf8Consts): Likewise.
5594         (internalAddClass): Use _Jv_uint.
5595         (processClass): Likewise.
5596         * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5597         (_Jv_uint): Renamed from uint32.
5598         (struct _Jv_Utf8Const): Changed members to use new type names.
5600         * configure: Rebuilt.
5601         * configure.in: Don't check for memcpy.  Require memmove and a way
5602         to get the time.
5603         * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5604         #error.
5605         (currentTimeMillis): Don't use #error.
5607 Tue Sep 22 18:00:16 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5609         * java/lang/Math.java: static member random renamed to random_ to
5610         avoid conflict with member function of the same name.
5611         * include/javaprims.h: java.util.Random added.
5613 Tue Sep 22 13:53:14 1998  Tom Tromey  <tromey@cygnus.com>
5615         * include/java-chartables.h: Regenerated.
5616         * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5617         printed.
5619 Tue Sep 22 17:17:52 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
5621         * java/lang/Math.java: Rewritten.
5622         * java/lang/natMath.cc: New file.
5623         * Files added from fdlibm:
5624           java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5625           java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5626           java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5627           java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5628           java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5629           java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5630           java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5631           java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5632           java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5633           java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5634           java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5635           java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5636           java/lang/k_cos.c, java/lang/sf_ceil.c,
5637           java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5638           java/lang/ieeefp.h, java/lang/fdlibm.h
5639         * Makefile.am: rules added for compiling C files from fdlibm.
5640         
5641 Mon Sep 21 15:40:58 1998  Tom Tromey  <tromey@cygnus.com>
5643         * chartables.pl: Minor documentation fixes.
5645         * configure: Rebuilt.
5646         * configure.in: Fixed --help output for --enable-fast-character.
5648 Thu Sep 17 11:03:27 1998  Tom Tromey  <tromey@cygnus.com>
5650         * configure: Rebuilt.
5651         * configure.in: Recognize --enable-fast-character.
5652         * acconfig.h (COMPACT_CHARACTER): New define.
5653         * include/config.h.in: Rebuilt.
5654         * include/java-chartables.h: New file.
5655         * Makefile.in: Rebuilt.
5656         * Makefile.am (nat_files): Added natCharacter.o.
5657         * java/lang/natCharacter.cc: New file.
5658         * chartables.pl (set_attribute): New function.
5659         (@attributes, @second_attributes): New globals.
5660         ($ROMAN_START, $ROMAN_END): Likewise.
5661         (process_char): Call set_attribute when required.
5662         (print_char): Just print hex value.
5663         (print_block): Generate C++ syntax.
5664         (print_numerics): Likewise.
5665         (print_single_map): Likewise.
5666         (print_all_block): Likewise.
5667         (print_case_table): Likewise.
5668         (print_fast_tables): New function.
5669         Generate C++ code suitable for a header file.
5670         * java/lang/Character.java (table_search): Removed.
5671         (digit_value): Now native.
5672         (getNumericValue): Likewise.
5673         (getType): Likewise.
5674         Removed all automatically-generated tables.
5675         (Tamil_Digit_One): Removed.
5676         (isSpaceChar): Now native.
5677         (isTitleCase): Likewise.
5678         (isLowerCase): Likewise.
5679         (isUpperCase): Likewise.
5680         (toLowerCase): Likewise.
5681         (toTitleCase): Likewise.
5682         (toUpperCase): Likewise.
5683         (isDefined): Fixed sense of test.
5685 Wed Sep 16 12:00:19 1998  Tom Tromey  <tromey@cygnus.com>
5687         * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5688         FIXME comment.
5689         (regionMatches): Likewise.
5691 Tue Sep 15 14:35:12 1998  Tom Tromey  <tromey@cygnus.com>
5693         * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5695         * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5696         a friend.
5697         * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5698         _Jv_AllocObject.
5700         * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5701         not a char.
5703         * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5705 Fri Sep 11 14:01:08 1998  Tom Tromey  <tromey@cygnus.com>
5707         * prims.cc (instanceof_class): Removed.
5708         (instanceof_array): Likewise.
5709         (instanceof): Likewise.
5710         (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5711         (_Jv_CheckCast): Likewise.
5712         * java/lang/natClass.cc (isAssignableFrom): New method.
5713         * java/lang/Class.java (isAssignableFrom): Now native.
5715         * include/cni.h (JvThrow): Use `extern inline'.
5716         (JvAllocObject): Likewise.
5717         (JvInitClass): Likewise.
5719         * java/lang/natSystem.cc (arraycopy): Only check class of source
5720         object if not null.
5722         * prims.cc (_Jv_CheckArrayStore): Wrote.
5723         (_Jv_MonitorEnter): Prefer `JvThrow'.
5724         Include ArrayStoreException.h.
5725         (_Jv_CheckCast): Indentation cleanup.
5727 Thu Sep 10 18:59:29 1998  Tom Tromey  <tromey@cygnus.com>
5729         * chartables.pl: New file.
5730         * java/lang/Character.java: Rewrote from scratch.
5732 Fri Sep 18 18:15:58 1998  Warren Levy  <warrenl@cygnus.com>
5734         * java/lang/ArithmeticException.java,
5735         java/lang/ArrayIndexOutOfBoundsException.java,
5736         java/lang/ArrayStoreException.java,
5737         java/lang/ClassCastException.java,
5738         java/lang/ClassNotFoundException.java,
5739         java/lang/CloneNotSupportedException.java,
5740         java/lang/Exception.java, java/lang/IllegalAccessException.java,
5741         java/lang/IllegalArgumentException.java,
5742         java/lang/IllegalMonitorStateException.java,
5743         java/lang/IllegalThreadStateException.java,
5744         java/lang/IndexOutOfBoundsException.java,
5745         java/lang/InstantiationException.java,
5746         java/lang/InterruptedException.java,
5747         java/lang/NegativeArraySizeException.java,
5748         java/lang/NoSuchMethodException.java,
5749         java/lang/NullPointerException.java,
5750         java/lang/NumberFormatException.java,
5751         java/lang/RuntimeException.java, java/lang/SecurityException.java,
5752         java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5754         * java/lang/IllegalStateException.java,
5755         java/lang/NoSuchFieldException.java,
5756         java/lang/UnsupportedOperationException.java: Created.
5758 Fri Sep 18 15:01:42 1998  Warren Levy  <warrenl@cygnus.com>
5760         * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5761         * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5763 Fri Sep 11 16:49:19 1998  Per Bothner  <bothner@cygnus.com>
5765         * prims.cc (JvRunMain):  No longer need to call _Jv_InitClass.
5767 Thu Sep 10 12:23:55 1998  Warren Levy  <warrenl@cygnus.com>
5769         * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5771         * Makefile.in: Rebuilt.
5773         * include/javaprims.h (java::lang): Added
5774         StringIndexOutOfBoundsException.
5776         * java/lang/String.java: Added header comment and FIXME comment for 
5777         missing constructors/methods.
5778         (endsWith): Adjusted offset into string to look at just the last chars.
5779         Commented out undocumented method.
5781         * java/lang/natString.cc: Added includes for
5782         ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5783         (String::init): Throw StringIndexOutOfBoundsException.
5784         (String::charAt): Throw StringIndexOutOfBoundsException.
5785         (String::substring): Throw StringIndexOutOfBoundsException.
5786         (String::getChars): Throw ArrayIndexOutOfBoundsException.
5787         (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5788         (String::compareTo): Return difference/offset between chars/strings.
5790 Tue Sep  8 13:22:33 1998  Warren Levy  <warrenl@cygnus.com>
5792         * java/lang/Boolean.java (TYPE): Added comment.
5793         
5794         * java/lang/Byte.java (decode): Added - commented out until dependent
5795         code for Integer is written.
5796         (compareTo): JDK 1.2 methods written.
5797         (hashCode): Added comment to note that values have been verified.
5798         
5799         * java/lang/Short.java (decode): Added - commented out until dependent
5800         code for Integer is written.
5801         (compareTo): JDK 1.2 methods written.
5802         (hashCode): Added comment to note that values have been verified.
5804         * java/lang/Comparable.java: Created - JDK 1.2 interface.
5806 Fri Sep  4 10:36:35 1998  Tom Tromey  <tromey@cygnus.com>
5808         * include/javaprims.h (java::lang): Added VirtualMachineError,
5809         OutOfMemoryError.
5810         * Makefile.in: Rebuilt.
5811         * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5812         VirtualMachineError.h.
5813         * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5814         (lookupArray): Likewise.
5815         (makeUtf8Const): Likewise.
5816         (_Jv_AllocObject): Likewise.
5817         (_Jv_NewObjectArray): Likewise.
5818         Include OutOfMemoryError.h.
5820         * java/io/natFileDescriptor.cc (newstr): Removed.  Changed callers
5821         to use JvNewStringLatin1.
5823         * java/io/io-defs.h: Include java/lang/IOException.h.
5824         * Makefile.in: Rebuilt.
5825         * Makefile.am (nat_headers): Added
5826         ArrayIndexOutOfBoundsException.h,
5827         ClassFormatError.h,ClassNotFoundException.h,
5828         ClassCircularityError.h, ClassCastException.h,
5829         IncompatibleClassChangeError.h, AbstractMethodError.h,
5830         IllegalAccessError.h, LinkageError.h, Error.h,
5831         NegativeArraySizeException.h, IOException.h.
5832         * include/cni.h (SignalError): Removed declaration.
5833         * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5834         * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5835         * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5836         (newInstance): Likewise.
5837         (forName): Likewise.
5838         * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5839         sorry.
5840         (read): Use JvThrow, not SignalError.
5841         (read): Likewise.
5842         (write): Likewise.
5843         (skip): Likewise.
5844         (close): Likewise.
5845         (open_read): Likewise.
5846         (open_write): Likewise.
5847         (ftell): Likewise.
5848         (fseek): Likewise.
5849         (newstr): New function.
5850         * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5851         sorry.
5852         (lastModifiedUnchecked): Likewise.
5853         (lengthUnchecked): Likewise.
5854         * include/javaprims.h (sorry): Removed declaration.
5855         (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5856         ClassFormatError, ClassNotFoundException, ClassCircularityError,
5857         ClassCastException, IncompatibleClassChangeError,
5858         AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5859         * prims.cc (instanceof_array): Use JvFail, not sorry.
5860         (sorry): Removed.
5861         Include ArrayIndexOutOfBoundsException.h,
5862         ClassFormatError.h,ClassNotFoundException.h,
5863         ClassCircularityError.h, ClassCastException.h,
5864         IncompatibleClassChangeError.h, AbstractMethodError.h,
5865         IllegalAccessError.h, NegativeArraySizeException.h.
5866         (_Jv_ThrowBadArrayIndex): Implemented.
5867         (JvNewStringUTF): Use JvFail, not sorry.
5868         (_Jv_FindClass): Likewise.
5869         (_Jv_NewArray): Likewise.
5870         (throwException): Removed.
5871         (getClass): Use JvThrow.
5872         (processClass): Likewise.
5873         (_Jv_NewObjectArray): Likewise.
5874         (_Jv_NewMultiArray): Likewise.
5875         (_Jv_CheckCast): Likewise.
5876         (_Jv_LookupInterfaceMethod): Likewise.
5877         (SignalError): Removed.
5878         (getClass): Use _Jv_NewStringUtf8Const to create String.
5880         * java/lang/natSystem.cc (arraycopy): Throw
5881         ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5883         * Makefile.in: Rebuilt.
5884         * Makefile.am (GCJH): Renamed.  Now use `gcjh'.  Changed all
5885         users.
5886         * include/java-array.h: Mention gcjh, not gjavah.
5888         * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5889         (canReadUnchecked): Likewise.
5890         (canWriteUnchecked): Likewise.
5891         (isFileUnchecked): Likewise.
5892         * java/io/natFileDescriptor.cc: Don't include cni.h.
5894         * java/lang/Thread.java (run__): Declare.
5895         * java/lang/natThread.cc (run__): New method, to avoid compiler
5896         warning.
5897         (start): Use run__, not run_.
5899         * java/io/io-defs.h: Include cni.h and jvm.h.
5901 Thu Sep  3 18:20:08 1998  Per Bothner  <bothner@cygnus.com>
5903         Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5904         * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1):  Moved
5905         to natString.cc (with suitable renaming, inlines etc).
5906         (javaString2CString):  Removed.  Subsumed by _Jv_GetStringUTFRegion.
5907         * java/lang/Class.h:  Renamed Utf8Const to _Jv_Utf8Const.
5908         * java/lang/String.h:  Removed - now generated using gjavah.
5909         * java/lang/String.java:  Re-written from scratch. Many native methods.
5910         * java/lang/natDouble.cc, java/util/natDate.cc:  #include <cni.h>.
5911         * java/lang/natString.cc:  Many functions re-written for "compact
5912         strings" representation, or native java.lang.String methods added.
5913         (Utf8Const2JavaString):  Renamed to _Jv_NewStringUtf8Const.
5914         (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion):  New methods.
5915         * java/lang/natClass.cc (getName):  Use new _Jv_NewStringUtf8Const.
5916         * java/io/natFileDescriptor.cc:  Use new JvGetStringUTFRegion.
5917         * include/cni.h:  Add inline method.
5918         * include/java-array.h (jobjectArrayjchar):  gjavah bug work-around.
5919         * include/javaprims.h:  Moved some stuff frm String.h.
5920         * include/jvm.h (UTF8_GET, Utf8Const, StringClass):  Moved here.
5921         * Makefile.am (nat_header):  Added Character.h and String.h.
5922         (String.h):  Add new rule.
5924 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
5926         * no-threads.cc: Include config.h, cni.h, jvm.h.  Don't include
5927         java-assert.h.
5928         * posix-threads.cc: Include cni.h, jvm.h.
5929         * quick-threads.cc: Include cni.h, jvm.h.
5930         * nogc.cc: Include cni.h, not javaprims.h.
5931         * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5932         * java/lang/natThread.cc: Rearranged #include ordering.  Don't
5933         include java-assert.h.
5934         * java/lang/natSystem.cc: Include cni.h.  Don't include
5935         java-assert.h.
5936         * java/lang/natRuntime.cc: Include cni.h.  Don't include
5937         java-assert.h.
5938         * prims.cc: Rearranged #include ordering.  Don't include
5939         java-array.h or java-assert.h.
5940         * boehm.cc: Include config.h, cni.h.
5941         * exception.cc: Include config.h, cni.h.
5942         * include/jvm.h: Include java-assert.h.
5943         * include/cni.h: Include java/lang/Object.h.  Don't include
5944         java-threads.h or java-array.h.
5946 Thu Sep  3 16:03:08 1998  Warren Levy  <warrenl@cygnus.com>
5948         * java/lang/Boolean.java: Rewritten.
5950 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
5952         * java/lang/natFirstThread.cc (main_func): New typedef.
5953         (run): Use main_func, not JvPrivThreadStartFunc.
5954         * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5955         argument type.
5956         * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5957         argument type.
5958         * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5959         argument type.
5961         Can't throw Java exceptions with C++ `throw':
5962         * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5963         * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5964         (setPriority): Likewise.
5965         (sleep): Likewise.
5966         (start): Likewise.
5967         (stop): Likewise.
5968         * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5969         * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5971         Can't catch Java exceptions from C++:
5972         * java/lang/natThread.cc (finish_): New method.
5973         (run_): Removed.
5974         * java/lang/Thread.java (run_): Rewrote in Java.
5975         (finish_): New native method.
5977 Wed Sep  2 17:30:39 1998  Warren Levy  <warrenl@cygnus.com>
5979         * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5981         * include/javaprims.h (java::io): Added Serializable.
5983 Wed Sep  2 15:22:00 1998  Warren Levy  <warrenl@cygnus.com>
5985         * java/util/EmptyStackException.java,
5986         java/util/NoSuchElementException.java: Rewritten.
5987         
5988         * java/util/ConcurrentModificationException.java,
5989         java/util/MissingResourceException.java,
5990         java/util/TooManyListenersException.java: Created.
5992 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
5994         * include/cni.h (JvThrow): New function.
5995         * include/javaprims.h (_Jv_Throw): Declare.
5997 Wed Sep  2 14:07:48 1998  Warren Levy  <warrenl@cygnus.com>
5999         * java/util/Observable.java: Rewritten.
6001 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
6003         * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
6004         (_Jv_MonitorEnter): Throw NullPointerException if object is null.
6005         Include NullPointerException.h.
6007 Tue Sep  1 12:07:35 1998  Tom Tromey  <tromey@cygnus.com>
6009         * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
6010         assignability checks.  Don't bother using memcpy.
6012         * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
6013         (started): Removed.
6014         * include/quick-threads.h (JvPrivThreadWait): New function.
6015         * include/no-threads.h (JvPrivThreadWait): New function.
6016         * include/posix-threads.h (JvPrivThreadWait): New function.
6017         * prims.cc (JvRunMain): Call JvPrivThreadWait.
6019         * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
6021         * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
6022         offsets by size of type that is being copied.
6024         * java/lang/natThread.cc (start): Don't pass `object' argument to
6025         JvPrivThreadStart.
6026         * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
6027         * posix-threads.cc (JvPrivThreadStart): Removed `object'
6028         argument.
6029         * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
6030         always pass thread as object.
6031         * include/quick-threads.h, include/posix-threads.h,
6032         include/no-threads.h (JvPrivThreadStart): Removed `object'
6033         argument.
6035 Mon Aug 31 19:11:53 1998  Warren Levy  <warrenl@cygnus.com>
6037         * java/util/Dictionary.java: Rewritten.
6039 Mon Aug 31 14:35:55 1998  Tom Tromey  <tromey@cygnus.com>
6041         * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
6042         (JvPrivThreadDestroy): Likewise.
6043         
6044 Mon Aug 31 12:56:01 1998  Warren Levy  <warrenl@cygnus.com>
6046         * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
6048 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
6050         * java/lang/natSystem.cc: Rewrote from scratch.
6051         * java/lang/System.java: Rewrote from scratch.
6052         * java/lang/Class.h (Class): Declare isAssignableFrom.
6053         * include/javaprims.h (java::lang): Added ArrayStoreException,
6054         IndexOutOfBoundsException.
6055         * Makefile.in: Rebuilt.
6056         * Makefile.am (nat_headers): Added ArrayStoreException.h,
6057         IndexOutOfBoundsException.h.
6058         * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
6059         * include/jvm.h (_Jv_HashCode): New function.
6061         * java/lang/natThread.cc (suspend): Call checkAccess.
6062         (resume): Likewise.
6063         * java/lang/Thread.java (setDaemon): Call checkAccess.
6065 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
6067         * java/lang/Runtime.java: Rewrote from scratch.
6068         * java/lang/natRuntime.cc: Rewrote from scratch.
6070         * nogc.cc (JvPrivGCTotalMemory): New function.
6071         (JvPrivGCFreeMemory): Likewise.
6072         (total): New global.
6073         (JvPrivAllocObj): Increment total.
6074         (JvPrivAllocArray): Likewise.
6075         (JvPrivAllocBytes): Likewise.
6076         * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
6077         * boehm.cc (JvPrivGCTotalMemory): New function.
6078         (sum_blocks): Likewise.
6079         (JvPrivGCFreeMemory): Likewise.
6081 Wed Aug 26 12:30:32 1998  Tom Tromey  <tromey@cygnus.com>
6083         * include/javaprims.h (java::lang): Added FirstThread.
6084         * java/lang/natFirstThread.cc: New file.
6085         * java/lang/FirstThread.java: New file.
6086         * prims.cc (main_signature): Removed.
6087         (main_name): Removed.
6088         #include FirstThread.h.
6089         * Makefile.in: Rebuilt.
6090         * Makefile.am (TFRIEND): Removed.
6091         (java/lang/Thread.h): Likewise.
6092         (FTFRIEND): New macro.
6093         (java/lang/FirstThread.h): New target.
6094         (nat_files): Added natFirstThread.o.
6095         (nat_headers): Added FirstThread.h.
6096         * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6097         * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6099         * java/lang/Thread.java (setName): Throw IllegalArgumentException
6100         if name is null.
6101         (Thread): Likewise.
6103         * java/lang/natThread.cc (start): Synchronize the thread.
6104         (stop): Synchronize the thread.
6106         * java/lang/ThreadDeath.java: Rewrote from scratch.
6108         * Makefile.in: Rebuilt.
6109         * Makefile.am (TGFRIEND): New macro.
6110         (java/lang/ThreadGroup.h): New target.
6111         ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6112         native headers.
6113         ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6115         * nogc.cc: Include config.h.
6117         * java/lang/ThreadGroup.java: Rewrote from scratch.
6119 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6121         * java/lang/Thread.java (checkAccess): Only call in to security
6122         manager if it exists.
6123         (Thread): Don't check access when creating the first thread.  Add
6124         this thread to the appropriate ThreadGroup.
6126         * java/lang/natThread.cc (run_): Call uncaughtException method on
6127         the ThreadGroup.
6129         * java/lang/Runnable.java: Rewrote from scratch.
6130         * java/lang/Thread.java: Updated copyright comment to correct
6131         form.
6133 Wed Aug 26 15:16:18 1998  Warren Levy  <warrenl@cygnus.com>
6135         * java/util/Random.java: Rewritten.
6137 Wed Aug 26 14:25:39 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6139         * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6140         trailing 0 in array[].
6142 Wed Aug 26 12:21:06 1998  Anthony Green  <green@cygnus.com>
6144         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
6145         and RUNTESTFLAGS from AM_MAKEFLAGS.
6146         (SUBDIRS): Conditionally include testsuite.
6147         * Makefile.in: Rebuilt.
6149 Tue Aug 25 18:14:53 1998  Anthony Green  <green@cygnus.com>
6151         * java/lang/Object.h: Include java-assert.h.
6153 Tue Aug 25 17:33:57 1998  Anthony Green  <green@cygnus.com>
6155         * Makefile.am: Add testsuite directory.
6156         * configure.in: Build testsuite/Makefile.
6157         * Makefile.in, configure: Rebuilt.
6158         
6159 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6161         * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6162         * include/jvm.h (_Jv_StartFirstThread): Declare.
6164         * include/javaprims.h (java::lang): Added Exception,
6165         RuntimeException.
6167         * Makefile.in: Rebuilt.
6168         * Makefile.am (nat_headers): Added NullPointerException.h,
6169         InterruptedException.h, IllegalArgumentException.h, Exception.h,
6170         Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6171         (java/lang/Thread.h): New target.
6172         (TFRIEND): New macro
6174         * include/java-assert.h (JvFail): Use 0 and not NULL.
6176         * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6177         instead of assuming we are a friend of Thread.
6178         * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6179         instead of assuming we are a friend of Thread.
6181 Mon Aug 24 15:58:36 1998  Tom Tromey  <tromey@cygnus.com>
6183         * java/lang/natThread.cc: Rewrote from scratch.
6184         * java/lang/Thread.java: Rewrote from scratch.
6185         * prims.cc (JvRunMain): Use new Thread constructor.
6186         * include/javaprims.h (java::lang): Added InterruptedException.
6187         * Makefile.in: Rebuilt.
6188         * Makefile.am (nat_headers): Added java/lang/Thread.h.
6189         * java/lang/Thread.h: Removed.
6190         * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6191         * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6192         argument.
6193         * posix-threads.cc (JvPrivThreadJoin): Removed.
6194         (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6195         (really_start): Don't notify join_cond.
6196         (JvPrivThreadStart): Added `data' argument.
6197         * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6198         (JvPrivThreadJoin): Likewise.
6199         Use JvFail instead of sorry.
6200         (JvPrivThreadSuspend): Removed.
6201         (JvPrivThreadResume): Removed.
6202         * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6203         (JvPrivThreadJoin): Likewise.
6204         (JvPrivThreadSuspend): Use JvFail.
6205         (JvPrivThreadResume): Likewise.
6206         (JvPrivThreadSuspend): Removed.
6207         (JvPrivThreadResume): Likewise.
6208         * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6209         (JvPrivThread_t): Removed join_mutex, join_cond.
6210         Use JvFail instead of sorry.
6211         (JvPrivThreadSuspend): Removed.
6212         (JvPrivThreadResume): Likewise.
6214 Tue Aug 25 12:50:13 1998  Warren Levy  <warrenl@cygnus.com>
6216         * java/util/Observer.java: Rewritten
6217         * java/util/Enumeration.java: Rewritten
6219 Tue Aug 25 11:33:54 1998  Warren Levy  <warrenl@cygnus.com>
6221         * java/util/StringTokenizer.java: Rewritten
6222         * java/util/Stack.java: Added COPYRIGHT-TBD comment
6223         * java/util/Vector.java: Added COPYRIGHT-TBD comment
6224         * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6225         
6226 Fri Aug 21 10:14:22 1998  Tom Tromey  <tromey@cygnus.com>
6228         * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6229         not defined.
6231         * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6232         Include java-assert.h.
6233         * include/java-assert.h: New file.
6234         * prims.cc (_Jv_Abort): New function.
6235         Include java-assert.h, not assert.h.
6236         (_Jv_MonitorExit): Use JvAssert.
6237         (resolveConstants): Likewise.
6238         (processClass): Likewise.
6239         (JvRunMain): Assert that method is found.
6241         * configure: Rebuilt.
6242         * configure.in: Check for test subdir.
6243         * Makefile.in: Rebuilt.
6244         * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6246         * prims.cc (JvRunMain): Use NORM_PRIORITY.
6247         * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6249         * prims.cc (resolveConstants): Removed unused variables.
6250         (processClass): Likewise.
6252         * include/quick-threads.h (JvPrivThreadCurrent): Use
6253         coop_getspecific.
6254         * quick-threads.cc (destroy_data): New function.
6255         (JvPrivInitThreads): Create key.
6256         (JvPrivThreadKey): New global.
6257         (JvPrivThreadStart): Use coop_setspecific.
6259         * include/quick-threads.h, include/posix-threads.h,
6260         include/no-threads.h, no-threads.cc, quick-threads.cc,
6261         posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6263 Thu Aug 20 10:57:30 1998  Tom Tromey  <tromey@cygnus.com>
6265         * include/no-threads.h (JvPrivThreadInitData): Don't set
6266         JvPrivOnlyThread.
6268         * include/quick-threads.h (JvPrivCondWait): coop function now
6269         takes microseconds.
6270         (JvPrivThreadJoin): Likewise.
6272         * java/lang/Thread.h (Thread): Updated declaration of
6273         JvPrivThreadStart.
6274         * include/quick-threads.h, include/posix-threads.h: Updated
6275         declaration of JvPrivThreadStart.
6276         * include/no-threads.h (JvPrivThreadStart): Changed definition
6277         into declaration.
6278         * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6279         * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6280         * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6282 Wed Aug 19 14:53:59 1998  Tom Tromey  <tromey@cygnus.com>
6284         * quick-threads.cc (qthrow): New function.
6285         (JvPrivInitThreads): New function.
6286         (started): New global.
6287         (JvPrivThreadStart): Call coop_start if required.
6288         * include/quick-threads.h (JvPrivThreadCancel): Implement.
6289         (JvPrivThreadDestroy): Likewise.
6290         (JvPrivInitThreads): Removed.
6291         * include/posix-threads.h (JvPrivThreadCancel): Added error
6292         argument.
6293         * java/lang/natThread.cc (stop_): Pass exception to
6294         JvPrivThreadCancel.
6296 Tue Aug 18 12:58:22 1998  Tom Tromey  <tromey@cygnus.com>
6298         * include/javaprims.h (java::lang): Added
6299         IllegalArgumentException, IllegalThreadStateException, Math,
6300         NullPointerException, ThreadDeath.
6301         (java::util): Added Enumeration.
6303         * Makefile.in: Rebuilt.
6304         * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6306         * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6307         now public.
6308         (threadsv): Renamed from threads to avoid clash in C++ header.
6309         (groupsv): Likewise.
6310         * include/no-threads.h (JvPrivThreadStart): Removed.
6311         * no-threads.cc (JvPrivThreadStart): New function.
6312         * java/lang/Thread.java (Thread): New constructor for internal use.
6313         * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6314         (Thread): Declare constructor.
6315         * prims.cc (JvRunMain): Create the initial Thread and
6316         ThreadGroup.
6317         Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6318         * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6319         Removed `daemon' argument.
6321         * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6322         * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6323         a friend.
6324         * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6326         * Makefile.in: Rebuilt.
6327         * Makefile.am (INCLUDES): Include THREADINCS.
6329         * configure: Rebuilt.
6330         * configure.in: Recognize `qt' as a threads package.
6332 Thu Aug 20 12:42:32 1998  Warren Levy  <warrenl@cygnus.com>
6334         * java/util/Stack.java (pop): Null out topmost node for robustness.
6336 Thu Aug 20 12:30:30 1998  Warren Levy  <warrenl@cygnus.com>
6338         * java/util/Stack.java: Rewritten.
6339         * java/util/Vector.java (isEmpty): Simplified expression.
6341 Wed Aug 19 18:02:19 1998  Warren Levy  <warrenl@cygnus.com>
6343         * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6344         (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6346         * include/java-array.h (JvNewObjectArray): Created inline to
6347         _Jv_NewObjectArray.
6349         * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6350         JvNewObjectArray.
6351         
6352 Wed Aug 19 14:12:02 1998  Warren Levy  <warrenl@cygnus.com>
6354         * java/util/Vector.java: Rewritten.
6355         * java/io/Serializable.java: Created.
6357 Fri Aug 14 10:31:54 1998  Tom Tromey  <tromey@cygnus.com>
6359         * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6360         Infinity is 1/0, not 1/1.
6362         * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6364         * configure: Rebuilt.
6365         * configure.in: Removed duplicate AC_ARG_WITH.
6367 Thu Aug 13 14:51:47 1998  Warren Levy  <warrenl@cygnus.com>
6369         * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6370         soft_badarrayindex.
6371         (_Jv_InitClass): Renamed from soft_initialise_class.
6372         (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6373         (_Jv_CheckCast): Renamed from soft_checkcast.
6374         (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6375         (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6376         (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6377         * include/cni.h (JvInitClass): New function.
6378         (_Jv_InitClass): Renamed from soft_initialise_class.
6380 Wed Aug 12 10:07:04 1998  Tom Tromey  <tromey@cygnus.com>
6382         * configure: Rebuilt.
6383         * configure.in (CXX): Don't set.
6384         * Makefile.in: Rebuilt.
6385         * Makefile.am (AM_CXXFLAGS): New macro.
6387         * Makefile.in: Rebuilt.
6388         * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6389         nogc.o): New target.
6391         * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6392         GC.
6393         (mark_array): Likewise.
6395 Tue Aug 11 11:44:53 1998  Per Bothner  <bothner@cygnus.com>
6397         * java/lang/Class.h (JvMethod):  Removed some unused fields.
6398         (JvField.info):  Removed unused idx union variant.
6400 Mon Aug 10 15:00:14 1998  Tom Tromey  <tromey@cygnus.com>
6402         * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6403         match compiler.
6405 Mon Aug  3 16:13:54 1998  Per Bothner  <bothner@cygnus.com>
6407         * configure.in, configure (CXX):  Add -fvtable-thunks.
6409 Thu Jul 30 14:34:47 1998  Per Bothner  <bothner@cygnus.com>
6411         * java/lang/Object.java (finalize):  Move first.
6412         * java/lang/Object.h (_JvObjectPrefix):  New dummy base class.
6413         (Object):  Re-arrange order to match Object.java.
6415 Tue Jul 28 21:42:16 1998  Per Bothner  <bothner@cygnus.com>
6417         * prims.cc (hashUtf8String):  Fix - use new JavaSoft specification.
6418         * java/lang/natString.cc (hashChars):  Likewise.
6420         * prims.cc (RuntimeClass):  New macro.
6421         (JvRunMain):  Do soft_initialise_class of RuntimeClass before exit.
6423 Mon Jul 27 22:20:10 1998  Tom Tromey  <tromey@cygnus.com>
6425         * Makefile.in: Rebuilt.
6426         * Makefile.am (AM_MAKEFLAGS): New macro.
6428 Fri Jul 24 11:21:24 1998  Tom Tromey  <tromey@cygnus.com>
6430         * nogc.cc: Include <javaprims.h>.
6432         * Makefile.in: Rebuilt.
6433         * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6435 Thu Jul 23 11:38:40 1998  Tom Tromey  <tromey@cygnus.com>
6437         * exception.cc (terminate): Removed.
6438         (unexpected): Removed.
6440         * configure: Rebuilt.
6441         * configure.in: Handle case where target subdir is ".".
6443         * configure: Rebuilt.
6444         * configure.in: Compute COMPPATH based on --with-target-subdir
6445         option.  Added --with-target-subdir and --with-cross-host.  Use
6446         --with-cross-host to determine when a cross compiler is in use.
6448         * Makefile.in: Rebuilt.
6449         * Makefile.am (GJAVAH): Include COMPPATH.
6450         * configure: Rebuilt.
6451         * configure.in: Subst COMPPATH.
6453 Mon Jul 20 16:13:43 1998  Tom Tromey  <tromey@cygnus.com>
6455         * prims.cc (lockMutex): Removed.
6456         (unlockMutex): Likewise.
6457         (processClass): Lock the class using a JvSynchronize object.
6459 Fri Jul 17 11:27:48 1998  Tom Tromey  <tromey@cygnus.com>
6461         * java/lang/natString.cc (gc_calloc_fixed): Removed.
6462         (gc_free_fixed): Removed.
6463         (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6464         freeing old value of strhash.
6466         * exception.cc (_Jv_type_matcher): Cast first argument to
6467         _Jv_IsInstanceOf.
6469 Thu Jul 16 14:51:44 1998  Tom Tromey  <tromey@cygnus.com>
6471         * include/java-array.h (jstringArray): New type.
6472         * java/lang/natSystem.cc (setProperty): Removed.
6473         (initProperties): Directly call JvNewStringLatin1 for arguments.
6474         * java/util/natDate.cc: Include java/util/Date.h, not
6475         java-util.h.
6476         (setTime): Removed.
6477         * java/io/FileDescriptor.java (available): No longer static.
6478         * java/lang/natDouble.cc (Double): Removed class definition.
6479         * include/javaprims.h (java::lang::Number): Declare.
6480         (java::lang::NumberFormatException): Likewise.
6481         (java::io::FilenameFilter): Likewise.
6482         (java::lang::Character): Likewise.
6483         (java::lang::Error): Likewise.
6484         (java::lang::SecurityManager): Likewise.
6485         (java::util::Vector): Likewise.
6486         (java::io::FileNotFoundException): Likewise.
6487         (java::io::IOException): Likewise.
6488         (java::lang::NativeLang): Likewise.
6489         (java::lang::UnsatisfiedLinkError): Likewise.
6490         (java::util::StringTokenizer): Likewise.
6491         (java::io::InputStream, java::io::OutputStream): Likewise.
6492         (java::io::PrintStream, java::lang::SecurityException): Likewise.
6493         (java::util::Hashtable): Likewise.
6494         * Makefile.in: Rebuilt.
6495         * Makefile.am (nat_headers): Added java/lang/Double.h,
6496         java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6497         (MOSTLYCLEANFILES): Added nat_headers.
6498         * include/jvm.h: Moved many defines, declarations, and functions
6499         to java/lang/Class.h.
6500         (struct JvSyncInfo): Moved to java/lang/Object.h.
6501         (UTF8_GET): Moved to java/lang/String.h.
6503 Wed Jul 15 09:02:31 1998  Tom Tromey  <tromey@cygnus.com>
6505         * java/io/io-defs.h: Don't include java-io.h.
6506         * include/java-io.h: Removed.
6507         * include/javaprims.h: Include java::io.
6509 Tue Jul 14 17:04:26 1998  Tom Tromey  <tromey@cygnus.com>
6511         * include/java-io.h (File): Removed
6512         (FileDescriptor): Likewise.
6514         * java/io/io-defs.h: Include java/io/File.h and
6515         java/io/FileDescriptor.h.
6517         * Makefile.in: Rebuilt.
6518         * Makefile.am (GJAVAH): New macro.
6519         (.class.h): New rule.
6520         (SUFFIXES): Added .h.
6521         (nat_headers): New macro.
6522         ($(nat_headers)): New target.
6523         (BUILT_SOURCES): Added nat_headers.
6525         * include/java-util.h: Removed.
6527 Fri Jul  3 10:17:14 1998  Tom Tromey  <tromey@cygnus.com>
6529         * include/java-io.h: Changed to avoid java-lang.h.
6530         * java/lang/natThread.cc: Include java/lang/Thread.h, not
6531         java-lang.h.
6532         * java/lang/natSystem.cc: Include java/lang/System.h, not
6533         java-lang.h.
6534         * java/lang/natString.cc: Include java/lang/String.h, not
6535         java-lang.h.
6536         * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6537         java-lang.h.
6538         * java/lang/natClass.cc: Include java/lang/Class.h, not
6539         java-lang.h.
6540         * java/lang/natDouble.cc: Include java/lang/Object.h, not
6541         java-lang.h.
6542         * java/lang/natObject.cc: Include java/lang/Object.h, not
6543         java-lang.h.
6544         * exception.cc: Don't include java-lang.h.
6545         * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6546         * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6547         * nogc.cc: Don't include java-lang.h.
6548         * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6549         * prims.cc (processClass): Don't use `init_type'; just cast to
6550         type directly.
6551         Include java/lang/Class.h and jvm.h, not java-lang.h.
6552         (JvAllocObject): Wrote single-argument version.
6553         (PrimClass): Inherit from Class.
6554         (initPrimClass): Removed.
6555         * include/java-lang.h: Removed.
6556         * include/jvm.h: Declare struct _dispatchTable.
6557         * include/cni.h: Don't declare _Jv_MonitorEnter,
6558         _Jv_MonitorExit, struct _dispatchTable.
6559         * include/javaprims.h: Moved all typedefs here, from cni.h.
6560         * java/lang/Class.h: New file.
6561         * include/java-array.h: New file.
6562         * java/lang/Object.h: New file.
6564         * prims.cc (classFromSig): Now static.
6566 Wed Jul  1 12:28:48 1998  Tom Tromey  <tromey@cygnus.com>
6568         * include/cni.h: Don't mention soft_new.
6569         * include/java-lang.h (Object): Don't mention soft_new.  Mention
6570         _Jv_NewPrimArray, not newPrimArray.
6571         * prims.cc (soft_new): Removed.
6572         (_Jv_NewArray): Renamed from soft_newarray.
6573         (soft_anewarray): Use JvNewObjectArray.
6574         (newArray): Likewise.
6575         (newRefArray): Removed.
6576         (_Jv_NewPrimArray): Renamed from newPrimArray.
6577         (equalUtf8Consts): Now static.
6578         (soft_instanceof): Removed.
6579         * java/lang/natDouble.cc (doubleToString): Now static.
6581         * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6582         java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6583         Removed.
6585 Tue Jun 30 10:54:57 1998  Tom Tromey  <tromey@cygnus.com>
6587         * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6588         _Jv_MonitorExit.
6589         * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6590         _Jv_MonitorExit.
6591         * include/no-threads.h (JvPrivMutexLock): Always return -1.
6592         (JvPrivMutexUnlock): Likewise.
6593         * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6594         Return value now jint.
6595         (_Jv_MonitorExit): Renamed from soft_monitorexit.  Return value
6596         now jint.
6598         * Makefile.in: Rebuilt.
6599         * Makefile.am: Don't allow `jV' names.
6600         (maintainer-check): Depend on libjava.a.
6601         * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6603         * Makefile.in: Rebuilt.
6604         * Makefile.am (NM): New macro.
6605         (maintainer-check): New target.
6607         * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6609         * configure: Rebuilt.
6610         * configure.in: Use --enable-threads, not --enable-gc.  Fix
6611         documentation for --enable-threads.  Changed option to work like
6612         identical option in gcc/configure.
6614 Mon Jun 29 10:44:29 1998  Tom Tromey  <tromey@cygnus.com>
6616         * boehm.cc (mark_array): Use JvGetArrayLength.
6618 Thu Jun 25 11:56:21 1998  Per Bothner  <bothner@cygnus.com>
6620         * exception.cc:  New file (mostly written by Andrew MacLeod),
6621         exception handling support.
6622         * Makefile.am (libjava_a_SOURCES), Makefile.in:  Add exception.cc.
6623         Remove -fexceptions - it is now the default.
6625         * prims.cc (JvIsInstanceOf):  Renamed to _Jv_IsInstanceOf.
6626         (JvAllocObject):  Renamed to _Jv_AllocObject.
6627         (soft_athrow):  Removed.  Replaced by _Jv_Throw in exception.cc.
6628         (loadClass):  Renamed to _Jv_FindClass.
6629         * include/cni.h (JvIsInstanceOf, JvAllocObject).  Make into
6630         inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6631         * include/java-lang.h (JvGetArrayLength):  New CNI function.
6632         * include/jvm.h (_Jv_FindClass):  Added declaration.
6634         * java/lang/natString.cc:  More implementation if COMPACT_STRINGS.
6636 Wed Jun 24 16:41:30 1998  Per Bothner  <bothner@cygnus.com>
6638         * java/lang/natClass.cc (getName):  Add implementation.
6639         * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6641 Tue Jun 23 15:56:24 1998  Tom Tromey  <tromey@cygnus.com>
6643         * Makefile.in: Rebuilt.
6644         * Makefile.am (.class.o): Added -fexceptions.
6646 Mon Jun 15 14:54:06 1998  Tom Tromey  <tromey@cygnus.com>
6648         * configure: Rebuilt.
6649         * configure.in: Don't check for __nanosleep.
6650         * posix-threads.cc (nanosleep): Never define.
6652 Sun Jun 14 22:37:23 1998  Tom Tromey  <tromey@cygnus.com>
6654         * posix-threads.cc (JvPrivCondWait): Fixed computation of
6655         timespec.
6657 Thu Jun 11 10:51:44 1998  Tom Tromey  <tromey@cygnus.com>
6659         * java/lang/natThread.cc (enumerate): Uncommented.
6660         * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6661         (interrupt): Call it.
6663 Wed Jun 10 15:57:16 1998  Tom Tromey  <tromey@cygnus.com>
6665         * configure: Rebuilt.
6666         * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6668 Mon Jun  8 12:04:11 1998  Tom Tromey  <tromey@cygnus.com>
6670         * include/no-threads.h (JvPrivThreadInterrupt): New method.
6671         * include/java-lang.h (Thread): Added `interrupted_' method.
6672         * java/lang/Thread.java (interrupted_): New method.
6673         * java/lang/natThread.cc (join): Possibly throw interrupted
6674         exception after join finishes.
6675         (interrupted_): New method.
6676         * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6677         join_cond.
6678         (JvPrivThreadJoin): New function.
6679         (really_start): Notify all threads waiting for this thread.
6680         (struct starter): Added `data' member.
6681         (JvPrivThreadStart): Set it.
6682         * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6683         join_cond.
6684         (JvPrivThreadJoin): No longer inline.
6685         (JvPrivThreadInterrupt): New function.
6687         * include/no-threads.h (JvPrivThreadSleep): Removed.
6688         * posix-threads.cc (JvPrivThreadSleep): Removed.
6690 Fri Jun  5 13:51:25 1998  Tom Tromey  <tromey@cygnus.com>
6692         * configure: Rebuilt.
6693         * configure.in (THREADOBJS): Initialize to no-threads.o in
6694         no-threads case.
6695         * posix-threads.cc (key): New global.
6696         (JvPrivInitThreads): New function.
6697         (really_start): Set thread-specific data to point to object.
6698         (JvPrivThreadStart): Added `daemon' argument.
6699         (JvPrivThreadSleep): Added `data' argument.
6700         * include/posix-threads.h (JvPrivInitThreads): Removed
6701         implementation.
6702         (JvPrivThreadCurrent): New function.
6703         * include/no-threads.h (JvPrivThreadInitData): Initialize
6704         JvPrivOnlyThread.  Added `thread' argument.
6705         (JvPrivThreadCurrent): New function.
6706         (JvPrivThreadStart): Added `daemon' argument.
6707         * no-threads.cc: New file.
6708         * java/lang/natThread.cc (init_data): New function.
6709         (isAlive): Removed.
6710         (start): Set `alive' member.
6711         (stop_): Clear `alive' member.
6712         (destroy): Likewise.
6713         (currentThread): Implemented.
6714         (start): Pass `daemon' argument to JvPrivThreadStart.
6715         (sleep): Rewrote.
6716         * include/java-lang.h (Thread): Added `alive', `tsync' members.
6717         (Thread): Added `init_data' method.
6718         * java/lang/Thread.java (alive, data): New instance variables.
6719         (init_data): New private method.
6720         (isAlive): No longer native.
6722 Thu Jun  4 14:09:32 1998  Tom Tromey  <tromey@cygnus.com>
6724         * include/java-lang.h (JvRunMain): Declare.
6725         * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6726         * prims.cc (JvRunMain): New function.
6727         (main_signature, main_name): New globals.
6729         * boehm.cc (mark_array): Use `elements' function and not
6730         operator[] on jarray.
6732         * posix-threads.cc: Include <config.h>.  Define nanosleep if
6733         required.
6735         * configure: Rebuilt.
6736         * configure.in: Check for _nanosleep.
6738         * configure: Rebuilt.
6739         * configure.in: Check for pthread_mutexattr_settype.
6741         * include/cni.h (class JvSynchronize): New class.
6742         * java/lang/Thread.java (sleep): Throws InterruptedException.
6743         (join): Throws InterruptedException.
6744         (resume): Not native.
6745         (resume_): New method.
6746         (start): Now synchronized.
6747         (stop_): New method.
6748         (Thread): Synchronize when accessing threadNumber.
6749         (misc): Removed.
6750         * java/lang/natThread.cc (throwException): New macro.
6751         (sleep): Throw InterruptedException.
6752         (resume_): Renamed.
6753         (stop_): Renamed.
6754         * include/java-lang.h (Runtime): Added interrupted().
6756         * boehm.cc (call_finalizer): Correctly initialize jobj.
6757         * include/java-lang.h (Runtime): Added getRuntime() and exit().
6759         * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6760         `#elseif'.
6762         * configure: Rebuilt.
6763         * configure.in: Added support for --disable-threads.
6764         * include/no-threads.h: New file.
6766         * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6768         * Makefile.in: Rebuilt.
6769         * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6770         (libjava_a_DEPENDENCIES): Added THREADOBJS.
6771         (libjava_a_LIBADD): Added THREADOBJS.
6772         * configure: Rebuilt.
6773         * configure.in: Added --with-threads option.
6774         * posix-threads.cc: New file.
6775         * include/posix-threads.h: New file.
6776         * include/java-lang.h (Object): Added static member sync_mutex,
6777         member sync_info, method init_mutex.
6778         (struct JvSyncInfo): New struct.
6779         Include "java-threads.h".
6780         * prims.cc (soft_monitorenter): Wrote.
6781         (soft_monitorexit): Likewise.
6782         * java/lang/natObject.cc (init_mutex): New method.
6783         (notify): Wrote.
6784         (notifyAll): Wrote.
6785         (wait): Wrote.
6786         (sync_mutex): Define.
6787         Include "java-threads.h".
6789 Tue Jun  2 15:24:33 1998  Per Bothner  <bothner@cygnus.com>
6791         * include/java-lang.h (JvPrivInitGC):  Make extern "C".
6792         * include/jvm.h (JvConvertArgv, JvNewObjectArray):  Likewise.
6794 Mon Jun  1 11:21:34 1998  Per Bothner  <bothner@cygnus.com>
6796         * include/cni.h (jbyte etc):  Re-define using __java_byte etc.
6797         Added extern "Java" in places to tell G++ Object is a "Java" type.
6798         Other minor renaming and fixes.
6799         * include/java-io.h (FileDescriptor):  Add friend class declarations.
6800         G++ no longer allows non-Java types in method parameters and results
6801         of Java classes.  Converted most offending methods to friends.
6802         * java/lang/natDouble.cc (Double::toString):  Rename to doubleToString.
6803         * java/lang/natSystem.cc (setProperty):  Make friend.
6804         * java/lang/natString.cc, include/java-lang.h (String):  Rename
6805         methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6806         * include/java-lang.h (JArray):  Remove getData and eoprator[].
6807         Add elements friend function instead.
6808         * java/lang/natSystem.cc (arraycopy):  Use elements function.
6809         * java/io/natFileDescriptor.cc (read, write):  Likewise.
6810         * include/java-lang.h (Object):  Remove unused make method.
6811         (System::setProperty(char*,char*)): Turn into friend function.
6812         (Class):  Rename newObject by JvAllocObject.
6813         * prims.cc:  Update to use JvAllocObject, and elements.
6815         * java/lang/natDouble.cc:  Fix double -> jdouble.
6817 Wed May 20 16:50:06 1998  Per Bothner  <bothner@cygnus.com>
6819         * Makefile.am (INCLUDES):  Add -Iinclude (to get config.h).
6821 Mon May 18 13:46:02 1998  Tom Tromey  <tromey@cygnus.com>
6823         * java/lang/natRuntime.cc (finalize_on_exit): Define.
6824         * include/java-lang.h (Runtime): finalize_on_exit and
6825         runFinalizersOnExit now static.
6826         * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6827         match JDK 1.2b3.
6828         (finalize_on_exit): Now static.
6830         * boehm.cc (mark_obj): Get class using getClass() method on
6831         object.
6832         (_dispatchTable): Removed.
6834 Mon May 11 15:26:52 1998  Tom Tromey  <tromey@cygnus.com>
6836         * java/io/natFileDescriptor.cc (open_read): Only call open if
6837         HAVE_OPEN defined.
6838         (open_write): Likewise.
6840         * Makefile.in: Rebuilt.
6841         * Makefile.am ($(nat_files)): Depend on config.h.
6843 Thu May  7 16:22:00 1998  Tom Tromey  <tromey@cygnus.com>
6845         * prims.cc (ObjectClass): Now a macro; updated for new class name
6846         mangling scheme.
6847         (StringClass): Likewise.
6848         (ClassClass): Likewise.
6850 Wed May  6 00:26:44 1998  Tom Tromey  <tromey@cygnus.com>
6852         * java/io/natFileDescriptor.cc (available): Do nothing unless
6853         HAVE_SELECT defined.
6854         * java/util/natDate.cc (setTime): Conditional on
6855         HAVE_GETTIMEOFDAY.
6856         (toString): Conditional on HAVE_TIME.
6857         * aclocal.m4, configure: Rebuilt.
6858         * acinclude.m4: New file.
6859         * configure.in: Don't actually call AM_EXEEXT.  Call
6860         AC_CANONICAL_HOST.  Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX.  Added
6861         --with-target-subdir option.  Check for select and open
6862         functions.
6864 Tue May  5 00:10:45 1998  Tom Tromey  <tromey@cygnus.com>
6866         * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6867         (call_finalizer): Likewise.
6868         * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6869         * prims.cc (newObject): Pass actual method pointer to
6870         JvPrivRegisterFinalizer.
6871         * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6872         (JvPrivRegisterFinalizer): Changed interface.
6874         * Makefile.in: Rebuilt.
6875         * Makefile.am (MOSTLYCLEANFILES): New macro.
6876         (CLEANFILES): Removed javao_files.
6878 Fri May  1 22:52:24 1998  Tom Tromey  <tromey@cygnus.com>
6880         * nogc.cc: New file.
6881         * Makefile.in: Rebuilt.
6882         * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6883         (EXTRA_libjava_a_SOURCES): New macro.
6884         (libjava_a_SOURCES): Removed boehm.cc.
6885         (libjava_a_DEPENDENCIES): Added GCOBJS.
6886         (libjava_a_LIBADD): Likewise.
6887         * configure: Rebuilt.
6888         * configure.in: Added code for --enable-gc=TYPE.
6890 Thu Apr 30 14:54:00 1998  Tom Tromey  <tromey@cygnus.com>
6892         * boehm.cc (mark_array): Don't further dereference pointer from
6893         array.
6895         * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6896         * Makefile.in: Rebuilt.
6897         * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6898         one for boehm-gc build directory.
6900 Wed Apr 29 09:45:19 1998  Tom Tromey  <tromey@cygnus.com>
6902         * include/java-lang.h (finalize_on_exit): New instance variable in
6903         java::lang::Runtime.
6904         (runFinalizersOnExit): New method.
6905         * java/lang/Runtime.java (finalize_on_exit): New instance
6906         variable.
6907         (runAllFinalizers_): New private method.
6908         (runFinalizersOnExit): New method.
6909         * boehm.cc (JvPrivRunFinalizers): New function.
6910         (JvPrivRunAllFinalizers): Likewise.
6911         (JvPrivRunGC): Likewise.
6912         * java/lang/natRuntime.cc: Include "jvm.h".
6913         (gc): Call JvPrivRunGC.
6914         (runFinalization): Call JvPrivRunFinalizers.
6915         (runFinalizersOnExit): New method.
6916         (exit_): Call JvPrivRunAllFinalizers if required.
6917         * include/jvm.h: Declare JvPrivRunFinalizers,
6918         JvPrivRunAllFinalizers, JvPrivRunGC.
6920 Tue Apr 28 15:06:50 1998  Tom Tromey  <tromey@cygnus.com>
6922         * boehm.cc (JvPrivRegisterFinalizer): New function.
6923         (call_finalizer): Likewise.
6924         * include/jvm.h: Declare JvPrivRegisterFinalizer.
6925         * prims.cc (finalize_name): New global.
6926         (newObject): Just call other newObject.
6927         (newObject): Register finalizer if it exists.
6929 Mon Apr 27 12:47:03 1998  Tom Tromey  <tromey@cygnus.com>
6931         * prims.cc (gc_malloc): Removed.
6932         (makeUtf8Const): Use JvPrivAllocBytes.
6933         (lookupArray): Likewise.
6934         (newPrimArray): Likewise.
6935         (JvNewObjectArray): Use JvPrivAllocArray.
6936         (newObject): Use JvPrivAllocObj.
6937         (newObject): Likewise.
6938         Changed Method -> JvMethod everywhere.
6939         Changed Field -> JvField everywhere.
6940         * include/java-lang.h (Object): Changed type of `fields' to
6941         JvField*.
6942         (jmethodID, jfieldID): New typedefs.
6943         (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6944         friends.
6945         * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6946         from java-lang.h.
6947         (METHOD_NATIVECODE): Moved from java-lang.h.
6948         (class JvField): New class.
6949         (JvGetFirstInstanceField): New function.
6950         (JvFieldIsRef): Likewise.
6951         (JvGetObjectField): Likewise.
6952         (JvNumInstanceFields): Likewise.
6954 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
6956         * boehm.cc: New file.
6957         * Makefile.in: Rebuilt.
6958         * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6959         (INCLUDES): Added -I options to find boehm-gc files.
6961 Wed Apr 29 15:11:37 1998  Tom Tromey  <tromey@cygnus.com>
6963         * configure: Rebuilt.
6964         * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6966         * Makefile.in: Rebuilt.
6967         * Makefile.am (nat_files): New macro.
6968         (libjava_a_DEPENDENCIES): Use it.
6969         (libjava_a_LIBADD): Likewise.
6970         ($(nat_files)): New static pattern rule.
6971         (class_files): Run separate find to find .class files.
6972         (javao_files): Compute based on class_files.
6973         (BUILT_SOURCES): New macro.
6975 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
6977         * Makefile.am (java_files): New macro.
6978         (class_files): Likewise.
6979         (javao_files): Likewise.
6980         (libjava_a_DEPENDENCIES): Include $(javao_files).
6981         (libjava_a_LIBADD): Likewise.
6982         (classes.stamp): Depend on $(java_files); only recompile changed
6983         files.
6984         (here): New macro.
6985         (CLEANFILES): Don't run find; use macros.  Don't mention
6986         libjava.a.
6987         (.class.o): New target.
6988         (compiled.stamp): Removed.
6990 Thu Apr 23 14:17:43 1998  Per Bothner  <bothner@cygnus.com>
6992         * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6993         LineNumberReader}>java:  Newly-implemented standard classes.
6995 Thu Apr 23 14:02:04 1998  Tom Tromey  <tromey@cygnus.com>
6997         * Makefile.in: Rebuilt.
6998         * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
7000         * Makefile.in: Rebuilt.
7001         * Makefile.am (hack): New macro.
7002         (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
7004 Wed Apr 22 16:49:57 1998  Tom Tromey  <tromey@cygnus.com>
7006         * include/config.h.in: New file.
7007         * include/config.h: Removed.
7008         * acconfig.h: New file.
7009         * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
7010         (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
7011         libjava_a_LIBADD): New macros.
7012         (INCLUDES): New macro.
7013         (prims.o): Removed.
7014         (.cc.o): Removed.
7015         (SUFFIXES): Removed.
7016         (all): Removed.
7017         (libjava.a): Removed.
7019         * configure: Rebuilt.
7020         * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
7021         Look for headers and functions we require.  Create
7022         include/config.h.
7024 Mon Apr 20 22:25:00 1998  Per Bothner  <bothner@cygnus.com>
7026         * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
7027         soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
7028         soft_lookupinterfacemethod):  New functions.
7029         (PrimClass):  Actually initialize the primitive classes.
7030         (Utf8Const2JavaString):  Moved to java/lang/natString.cc.
7032         * include/java-util.h:  Removed java::util definition.
7033         * include/cni.h:  Moved java::util here and added Properties.
7034         Added more function prototypes.
7035         * include/java-lang.h:  Added mroe methods and friend declarations.
7036         * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME):  Added.
7037         * include/jvm.h (strLengthUtf8):  Add declaration.
7038         
7039         * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
7040         New static field.
7041         * java/lang/{Byte,Short,Void}.java:  New classes.
7042         * java/lang/Character.java (isJavaIdentifierStart,
7043         JavaIdentifierPart):  New static methods.
7044         * java/lang/Number.java (byteValue, shortValue):  New methods.
7046         * java/lang/String.java (intern, hashCode):  Make native.
7047         * java/lang/natString.cc:  New file.  Handle the string pool.
7048         * Makefile.am:  Build natString.o.  Use CXXFLAGS.
7050         * java/lang/Class.java (isArray, isPrimitive, getComponentType,
7051         isInstance, isAssignableFrom), java/lang/natClass.cc:  New methods.
7052         * java/lang/Throwable.java (<init>):  Don't fillInStackTrace yet.
7053         * java/lang/System.java (setProperty):  New private method.
7054         (initProperties):  Take argument, and make native.
7055         * java/lang/natSystem.cc:  Implement (preliminary) initProperties.
7056         (currentTimeMillis):  Make more robust.
7058         * java/io/{Writer,PrintWriter,OutputStreamWriter}.java:  New classes.
7059         * java/io/UnsupportedEncodingException.java:  New exception class.
7061         * java/io/DataInputStream.java:  Don't use a PushbackInputStream.
7062         * java/io/FilterOutputStream.java:  Add missing 'extends OutputStream'.
7063         
7064 Fri Apr 10 11:52:10 1998  Per Bothner  <bothner@cygnus.com>
7066         * Makefile.am (CXXFLAGS, JC1FLAGS):  New macro.
7067         * prims.cc:  Added bunch of stuff.
7068         * include/cni.h:  Added various definitions.
7069         * include/java-lang.h:  Added Method, various friends, some macros.
7071         * include/config.h:  Added HAVA_MEMMOVE and HAVE_MEMCPY.
7072         * java/lang/System.java (arraycopy):  Make native.
7074 Sun Apr  5 23:58:51 1998  Per Bothner  <bothner@cygnus.com>
7076         * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
7077         natSystem.cc,natThread.cc}:  Native (C++) methods for various classes.
7078         * java/lang/ClassLoader.java (defineClass):  Now takes extra argument.
7079         * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
7080         Make native.
7081         * java/lang/Runtime.java:  Declare methods as native instead of
7082         using NativeLang.
7083         * java/lang/SecurityManager.java (getClassContext):  Just throw Error.
7084         * java/lang/System.java:  Comment out some stuff, for now.
7085         * java/lang/Thread.java:  Re-write.  Use native methods.
7086         * java/lang/NativeLang.java:  Remove most of it.
7087         
7088         * java/util/natDate.cc:  Native (C++) methods for Date.
7089         * java/util/{Calendar.java,GregorianCalendar.java}:  New classes.
7090         * java/util/Date.java:  Complete re-write.
7092         * java/io/io-defs.h:  New header file.
7093         * java/io/FileDescriptor.java:  Add a bunch of private methods,
7094         mostly moved from NativeIO.java and natNativeIO.cc.
7095         * java/io/{natFile.cc,java/io/natFileDescriptor.cc}:  New native code.
7096         * java/io/File.java:  Use new code.
7097         * java/io/{FileInputStream.java.FileOutputStream.java,
7098         RandomAccessFile.java}:  Use new private FileDescriptor methods.
7099         * java/io/NativeIO.java:  Removed, no longer used.
7101         * java/io/StreamTokenizer.java (numericChars):  Make char array.
7103         * include/*.h:  Various header files used by the C++ native code.
7105         * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7106         New autoconf+automake-based setup.
7107         * prims.cc:  New file for Java "primitives".