* config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
[official-gcc.git] / libjava / ChangeLog
blob27181ab1fc869781738973b6cdf86d9124116b1b
1 1999-12-05  Anthony Green  <green@cygnus.com>
3         * include/jvm.h: Declare many functions with
4         __attribute__((__malloc__)).
5         * gcj/javaprims.h: Ditto.
7 Thu Dec  2 17:26:47 1999  Anthony Green  <green@cygnus.com>
9         * THANKS: Giving credit where credit is due.
11 1999-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
13         * java/net/ServerSocket.java (ServerSocket): Bind to any interface 
14         if bindAddr is null.
15         * java/lang/natString.cc (equalsIgnoreCase): return false if
16         anotherString is null.
17         * java/lang/Boolean.java (valueOf): return FALSE if argument is
18         null.
20 1999-11-30  Tom Tromey  <tromey@cygnus.com>
22         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
23         mutex to initialize.  Initialize `count' if required.
24         Fixes PR libgcj/98.
26 1999-11-27  Per Bothner  <per@bothner.com>
28         * exception.cc:  Remove prototype declarations for malloc and free.
29         These clash with recent versions of glibc, which specifies `throws ()'
30         when __cplusplus is defined.  Instead, #include <stdlib.h>.
32 1999-11-24  Tom Tromey  <tromey@cygnus.com>
34         * prims.cc (_Jv_NewObjectArray): Use
35         _Jv_GetArrayElementFromElementType.
36         (_Jv_NewPrimArray): Likewise.
37         * java/lang/natObject.cc (clone): Use
38         _Jv_GetArrayElementFromElementType instead of sizeof.
39         * java/lang/natSystem.cc (arraycopy): Use
40         _Jv_GetArrayElementFromElementType.
41         * include/jvm.h (_Jv_GetArrayElementFromElementType): New
42         function.
44 1999-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
46         * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
47         Exception messages. PR java.net/57.
48         (bind): set SO_REUSEADDR before bind.
49         * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
50         overruns. PR java.net/57.
52 1999-11-19  Tom Tromey  <tromey@cygnus.com>
54         * Makefile.am (DIVIDESPEC): Removed.
55         (EXCEPTIONSPEC): Removed.
57 1999-11-19  Andrew Haley  <aph@cygnus.com>
59         * Makefile.am (JCFLAGS): Add -L$(here)
60         (JC1FLAGS): Ditto.
61         * Makefile.in: Rebuild.
63 1999-11-18  Tom Tromey  <tromey@cygnus.com>
65         * java/lang/natDouble.cc: Include <config.h>.
67         * include/config.h.in: Rebuilt.
68         * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
69         * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
70         targets.
71         * configure: Rebuilt.
72         * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
73         requested by configure.host.  Don't put `-D' option into
74         libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
76         * configure: Rebuilt.
77         * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
78         sjlj-exceptions.
80 1999-11-18  Andrew Haley  <aph@cygnus.com>
82         * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
83         (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
84         (JC1FLAGS): Ditto.
85         * Makefile.in: Rebuild
86         * acconfig.h: remove SJLJ_EXCEPTIONS
87         * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
88         Do not AC_DEFINE SJLJ_EXCEPTIONS.
89         * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
90         * gcj/Makefile.in, include/Makefile.in: rebuild.
91         * include/config.h.in: remove SJLJ_EXCEPTIONS.
92                 
93 1999-11-18  Andrew Haley  <aph@cygnus.com>
95         * gij.cc (main): Rename label to prevent conflict.
97         * exception.cc (_Jv_type_matcher): Don't check the table if we're
98         using setjmp/longjmp exceptions: there isn't one.
100 1999-11-17  Andrew Haley  <aph@cygnus.com>
102         * exception.cc (_Jv_type_matcher): Ignore null exception tables.
103         (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
104         (__sjthrow): Add declaration.
105         * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
106         (JC1FLAGS): Ditto
107         (AM_CFLAGS): Ditto
108         (AM_CXXFLAGS): Ditto
109         * Makefile.in: Rebuild
110         * acconfig.h: Add SJLJ_EXCEPTIONS
111         * configure.in: Add SJLJ_EXCEPTIONS
112         * configure: Rebuild.
113         * gcj/Makefile.in: Rebuild.
114         * gcj/cni.h: Add support for sjlj-exceptions.
115         * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
116         * include/Makefile.in: Rebuild.
117         * include/default-signal.h: Add support for sjlj-exceptions.
119 1999-11-18  Tom Tromey  <tromey@cygnus.com>
121         * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
123         * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
124         minus 1.
125         (method_cache): Made larger.
127 1999-11-11  Tom Tromey  <tromey@cygnus.com>
129         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
130         initializing mutex.  Initialize `count' when required.
132 1999-11-07  Anthony Green  <green@trip.cygnus.com>
134         * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
135         data correctly.
137 1999-11-05  Tom Tromey  <tromey@cygnus.com>
139         * java/lang/natThread.cc (destroy): Removed incorrect comment.
141 1999-11-05  Jeff Sturm  <jsturm@sigma6.com>
143         * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
144         * prims.cc (parse_heap_size): Use end, not spec.  Use 1024
145         multipler for `k'.
147 1999-11-05  Tom Tromey  <tromey@cygnus.com>
149         * java/lang/natThread.cc (stop): Removed argument name.
151         * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
152         `private'; now has default access.
153         * Makefile.in: Rebuilt.
154         * Makefile.am (java/lang/ThreadGroup.h): Removed.
156 1999-11-04  Tom Tromey  <tromey@cygnus.com>
158         * java/lang/natClass.cc (method_cache_count): Removed.
159         (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
160         (_Jv_AddMethodToCache): Don't loop.
162         * configure.in: Removed `qt' threads case.
163         * include/quick-threads.h: Removed.
164         * quick-threads.cc: Removed.
166         * include/quick-threads.h (_Jv_ThreadCancel): Removed.
167         (_Jv_ThreadDestroy): Likewise.
168         * include/no-threads.h (_Jv_ThreadCancel): Removed.
169         (_Jv_ThreadDestroy): Likewise.
170         * include/posix-threads.h (struct _Jv_Thread_t): Removed
171         `exception' field.
172         (_Jv_ThreadCancel): Removed decl.
173         (_Jv_ThreadDestroy): Removed.
174         * posix-threads.cc (_Jv_ThreadCancel): Removed.
175         (throw_cleanup): Removed.
176         (really_start): Don't push or pop cleanup.
177         (_Jv_ThreadInitData): Don't initialize `exception' field.
178         * java/lang/Thread.java (stop): Officially unimplemented.
179         * java/lang/natThread.cc (stop): Officially unimplemented.
181 1999-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
183         * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h 
184         instead.
186 1999-11-02  Tom Tromey  <tromey@cygnus.com>
188         * boehm.cc: Don't include boehm-config.h.
190 1999-11-01  Tom Tromey  <tromey@cygnus.com>
192         * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
193         (sum_blocks): Removed.
194         (_Jv_GCFreeMemory): Use GC_get_free_bytes.
196 1999-11-01  Bryce McKinlay  <bryce@albatross.co.nz>
198         * java/io/PrintStream (PrintStream): Fix illegal usage of "this" 
199           before "super".
200         * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
201         * java/io/InputStreamReader (InputStreamReader): ditto.
203 1999-10-22  Tom Tromey  <tromey@cygnus.com>
205         * Makefile.in: Rebuilt.
206         * Makefile.am (java/lang/ClassLoader.h): New target.
207         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
208         to `redirect'.
210         * include/java-props.h (_Jv_Compiler_Properties): Changed
211         declaration.
212         * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
213         * include/jvm.h (_Jv_GCSetInitialHeapSize,
214         _Jv_GCSetMaximumHeapSize): Declare.
215         (JvRunMain, _Jv_RunMain): Declare.
216         (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
217         * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
218         (_Jv_GCSetMaximumHeapSize): Likewise.
219         * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
220         (_Jv_GCSetMaximumHeapSize): Likewise.
221         * prims.cc (parse_heap_size): New function.
222         (_Jv_SetInitialHeapSize): Likewise.
223         (_Jv_SetMaximumHeapSize): Likewise.
224         (_Jv_Compiler_Properties): New global.
225         * gij.cc (help): New function.
226         (version): Likewise.
227         (heap_size): Likewise.
228         (heap_max_size): Likewise.
229         (main): Parse arguments.  Set _Jv_Compiler_Properties.
230         Include <config.h>, <java-props.h>.
231         (_Jv_Compiler_Properties): Removed.
233 1999-10-18  Tom Tromey  <tromey@cygnus.com>
235         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
236         method.
237         (redirect): New static field.
238         * java/lang/ClassLoader.java (getSystemClassLoader): Now
239         native
240         (getVMClassLoader0): Removed.
241         * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
242         (redirect): Removed.
243         (getSystemClassLoader): Implemented.
245 1999-10-16  Anthony Green  <green@cygnus.com>
247         * java/lang/ClassLoader.java (getSystemResource): Use
248         getSystemClassLoader instead of ClassLoader.system.
249         (getSystemResourceAsStream): Ditto.
251         * java/lang/natClassLoader.cc (redirect): Make static and
252         remove #ifdef INTERPRETER so it is always defined.
253         (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
254         returns a VMClassLoader.
256         * java/util/ResourceBundle.java (trySomeGetBundle): Create a
257         PropertyResourceBundle if a properties file is found before a
258         ResourceBundle class.
260 1999-10-15  Tom Tromey  <tromey@cygnus.com>
262         * gij.cc (main): Formatting fixes.
263         (_Jv_Compiler_Properties): Define.
264         * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
265         declare.
266         (init_properties): Set properites from _Jv_Compiler_Properties.
267         * include/java-props.h (_Jv_Compiler_Properties,
268         _Jv_Environment_Properties): Declare.
270         * include/java-props.h: Added copyright.
272 1999-10-13  Anthony Green  <green@cygnus.com>
274         * libtool-version: Catch up by incrementing current.
276         * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
277         * configure, include/config.h.in: Rebuilt.
278         * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
279         * configure.in: Added --disable-getenv-properties and new define
280         `DISABLE_GETENV_PROPERTIES'.
282         * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
283         (next_property_key): New function.
284         (next_property_value): New function.
285         (process_gcj_properties): New function.
286         (JvRunMain): Call process_gcj_properties.
287         (_JvRunMain): Ditto.
289         * java/lang/natSystem.cc (init_properties): Set properties defined
290         in GCJ_PROPERTIES.
292         * include/java-props.h: New file.
294         * java/lang/natSystem.cc (init_properties): Add new properties to
295         conform with Java Product Versioning Specification.
297 1999-10-12  Tom Tromey  <tromey@cygnus.com>
299         * configure: Rebuilt.
300         * configure.in: Fixed test for --disable-java-net.
302 1999-10-06  Tom Tromey  <tromey@cygnus.com>
304         * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
305         when building Canadian cross.
306         (NATIVE): Don't define when cross-compiling.
308 1999-10-04  Tom Tromey  <tromey@cygnus.com>
310         * java/net/natPlainSocketImpl.cc: Don't include headers if
311         java.net is disabled.
313         * Makefile.in: Rebuilt.
314         * Makefile.am (ZINCS): Removed.  This is defined in configure.in
315         when needed, and must be left empty when not needed.
317 1999-10-01  Anthony Green  <green@cygnus.com>
319         * THANKS: Refreshed from htdocs version.
321 1999-10-01  Steve Chamberlain  <sac@pobox.com>
323         * Makefile.in: Rebuilt.
324         * Makefile.am (ZINCS): Define
326         * configure: Rebuilt.
327         * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
329         * java/lang/ieeefp.h: Add definitions for picoJava.
331 1999-10-01  Tom Tromey  <tromey@cygnus.com>
333         * configure: Rebuilt.
334         * configure.in: Set classpath when invoking gcj.  Use changequote
335         around sed invocation.
337         * java/net/natPlainSocketImpl.cc: Stub native functions if
338         DISABLE_JAVA_NET is defined.
339         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
340         typo in exception string.
341         (getTimeToLive): Likewise.
342         Stub native functions if DISABLE_JAVA_NET is defined.
343         * java/net/natInetAddress.cc: Stub native functions if
344         DISABLE_JAVA_NET is defined.
345         * configure.host: Disable java.net for mips-tx39.
346         * configure, include/config.h.in: Rebuilt.
347         * acconfig.h (DISABLE_JAVA_NET): Undefine.
348         * configure.in: Added --disable-java-net and new define
349         `DISABLE_JAVA_NET'.
351 1999-09-30  Tom Tromey  <tromey@cygnus.com>
353         * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
355 1999-09-29  Bryce McKinlay  <bryce@albatross.co.nz>
357         * README: New file.
359 1999-09-28  Tom Tromey  <tromey@cygnus.com>
361         * configure: Rebuilt.
362         * configure.in (PROCESS): In POSIX case, only set if not already
363         set.
364         * configure.host (PROCESS): Set in mips-tx39 case.
366         * aclocal.m4, configure: Rebuilt.
367         * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
368         appropriate AC_PROG_ symbol.
370 1999-09-24  Tom Tromey  <tromey@cygnus.com>
372         * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
373         `void *'.
374         (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
376         Fix for PR java.util/47:
377         * configure, include/config.h: Rebuilt.
378         * configure.in: Don't look for ctime or ctime_r.
379         * Makefile.in: Rebuilt.
380         * Makefile.am (nat_source_files): Don't mention natDate.cc.
381         * java/util/natDate.cc: Removed.
382         * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
383         static fields.
384         (getAvailableIDs): Rewrote.
385         (getTimeZone): Rewrote.
386         * java/util/Date.java (toGMTString): New method.
387         (toLocaleString): New method.
388         (toString): Rewrote.
390 1999-09-23  Tom Tromey  <tromey@cygnus.com>
392         * configure: Rebuilt.
393         * configure.in: Print message when checking to see if gcj can
394         handle -fuse-divide-subroutine.
396         * java/lang/natFirstThread.cc (run): Renamed from `run0'.  Removed
397         dead code.
398         * java/lang/FirstThread.java (run0): Renamed to `run'.
399         (run): Removed.
401         * prims.cc (main_init): New function.
402         (JvRunMain): Call it.
403         (_Jv_RunMain): Likewise.
404         Include <signal.h>.
405         (main_init): Ignore SIGPIPE.  Fixes PR 51.
407 1999-09-22  Tom Tromey  <tromey@cygnus.com>
409         * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
411 1999-09-16  Bryce McKinlay  <bryce@albatross.co.nz>
413         * java/text/MessageFormat.java (MessageFormat(String)): Set the
414         default locale.
415         * java/text/NumberFormat.java: Check that object is a Number. If
416         not, throw IllegialArgumentException.
418 1999-09-21  Tom Tromey  <tromey@cygnus.com>
420         * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
421         both `inlength' and `bytes_todo' are 0.  Simplified 2-byte case.
423         * include/posix-threads.h (_Jv_MutexDestroy): Use
424         _Jv_PthreadGetMutex.
425         (_Jv_MutexLock): Likewise.
426         (_Jv_MutexUnlock): Likewise.
428         * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
429         previous patch; it too was incorrect.
430         * java/io/PrintStream.java (PrintStream): Likewise.
432         * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
433         refer to `this' before calling superclass constructor.
434         * java/io/PrintStream.java (PrintStream): Don't refer to `this'
435         before calling superclass constructor.
437 1999-09-20  Tom Tromey  <tromey@cygnus.com>
439         * configure: Rebuilt.
440         * configure.in: Send output of `-fuse-divide-subroutine' test
441         compilation to /dev/null.
443 1999-09-14  Tom Tromey  <tromey@cygnus.com>
445         * include/java-insns.h: Turned constants into an enum.  Added
446         multiple-inclusion protection.
448 1999-09-10  Tom Tromey  <tromey@cygnus.com>
450         * configure: Rebuilt.
451         * configure.in: Build include/Makefile.
452         * Makefile.in: Rebuilt.
453         * Makefile.am (SUBDIRS): Added gcj and include.
454         (install-data-local): New target.
455         (extra_headers): New macro.
456         * include/Makefile.in: New file.
457         * include/Makefile.am: New file.
459         * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
460         * java/lang/reflect/natField.cc: Don't include gcj/field.h or
461         gcj/cni.h.
462         * boehm.cc: Don't include java-threads.h or gcj/field.h.
463         * resolve.cc: Include config.h.
464         * defineclass.cc: Include config.h.
465         * include/java-interp.h: Don't include config.h.
466         * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
467         cni.h.
469         * gcj/javaprims.h: Regenerated namespace decls.
470         * classes.pl (scan): Don't put `;' after closing brace.
472         * Makefile.in: Rebuilt.
473         * Makefile.am (INCLUDES): Added -I for top_srcdir.
474         * configure.in: Create gcj/Makefile.
475         * gcj/Makefile.in: New file.
476         * gcj/Makefile.am: New file.
477         * java/lang/Object.h: Don't include any other headers.
478         * gcj/array.h: Renamed from include/java-array.h.
479         * gcj/field.h: Renamed from include/java-field.h.
480         * gcj/method.h: Renamed from include/java-method.h.
481         * gcj/cni.h, gcj/javaprims.h: Moved from include/.
482         Updated all files to reflect new include structure.
484 1999-09-09  Tom Tromey  <tromey@cygnus.com>
486         * configure: Rebuilt.
487         * configure.in: Fixed typo; variable is THREADSPEC and not
488         THREADSPECS.
490 1999-09-08  Tom Tromey  <tromey@cygnus.com>
492         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
493         previous change and implemented a correct test in the __m_count
494         case.
496         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
497         in __m_count case.
499 1999-09-07  Tom Tromey  <tromey@cygnus.com>
501         * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
502         code and don't set errno.
504         * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
505         not `r'.  Changed `done_sleeping' to a `bool'.
507 1999-09-07  Matt Welsh <mdw@cs.berkeley.edu>
509         * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
510         Added FLAG_INTERRUPTED to indicate that a thread was interrupted
511         by another thread, rather than by the GC.
512         (_Jv_CondWait): Prevent premature thread wakeup by GC.
513         (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
514         * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New 
515         function.
517 1999-09-03  Tom Tromey  <tromey@cygnus.com>
519         * configure: Rebuilt.
520         * configure.in: Check for fstat function.
521         * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
522         FIONREAD fails.
524 1999-09-02  Tom Tromey  <tromey@cygnus.com>
526         * include/java-array.h (jobjectArrayjchar): Removed unused
527         declaration.
529         * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
530         _Jv_PrepareCompiledClass while holding class mutex.
532 1999-09-01  Tom Tromey  <tromey@cygnus.com>
534         * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
535         (_Jv_PthreadGetMutex): Use it.
536         (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
537         (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
538         (_Jv_MutexLock): Likewise.
539         (_Jv_MutexUnlock): Likewise.
540         * include/config.h.in: Rebuilt.
541         * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
542         PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
543         * configure: Rebuilt.
544         * libgcj.spec.in: Don't mention INTERPSPEC.
545         * configure.in (INTERPSPEC): Removed.
546         Only run pthreads-related checks when using POSIX threads.  Check
547         for m_count and __m_count in mutex structure.
549 1999-09-01  Matt Welsh <mdw@cs.berkeley.edu>
551         * java/lang/natClass.cc: Fixed notification of threads
552         when class initialization is complete.
554 1999-09-01  Tom Tromey  <tromey@cygnus.com>
556         * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
557         * resolve.cc: Removed constants defined by
558         java.lang.reflect.Modifier.
559         Include <java/lang/reflect/Modifier.h>.
560         (_Jv_ResolvePoolEntry): Use values from Modifier.
561         (_Jv_DetermineVTableIndex): Likewise.
562         (_Jv_PrepareClass): Likewise.
563         (ncode): Likewise.
564         * defineclass.cc (_Jv_ClassReader): Removed constants defined by
565         java.lang.reflect.Modifier.
566         Include <java/lang/reflect/Modifier.h>.
567         (checkExtends): Use values from Modifier.
568         (checkImplements): Likewise.
569         (handleField): Likewise.
570         (handleConstantValueAttribute): Likewise.
571         (handleFieldsEnd): Likewise.
572         (handleMethod ): Likewise.
573         (handleMethodsEnd): Likewise.
574         (handleClassBegin): Likewise.
575         * interpret.cc: Removed constants defined by
576         java.lang.reflect.Modifier.
577         (continue1): Use values from Modifier.
578         * java/lang/natClassLoader.cc: Removed constants defined by
579         java.lang.reflect.Modifier.
581         * java/lang/natClassLoader.cc (_Jv_NewClass): Use
582         JV_STATE_NOTHING, not `0'.
583         * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
585         * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
586         * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
587         except on Linux.
588         (_Jv_PthreadGetMutex): New function.
589         (_Jv_PthreadCheckMonitor): Use it.
590         (_Jv_MutexInit): Likewise.  ALso, initialize `count'.
591         (_Jv_MutexLock): Update `count'.
592         (_Jv_MutexUnlock): Likewise.
593         (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
594         appropriate.
596 1999-09-01  Kresten Krab Thorup  <krab@gnu.org>
598         * Makefile.am (.java.lo): Add rule.
600         * Makefile.in: Rebuilt.
602 1999-09-01  Tom Tromey  <tromey@cygnus.com>
604         * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
605         * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
606         function.
607         (_Jv_CondNotify): Use it.
608         (_Jv_CondNotifyAll): Likewise.
610         * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
612 1999-08-31  Tom Tromey  <tromey@cygnus.com>
614         * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
615         declaration.
617 1999-08-24  Bryce McKinlay  <bryce@albatross.co.nz>
619         * posix-threads.cc: Include <errno.h>.
621 1999-08-23  Tom Tromey  <tromey@cygnus.com>
623         * boehm.cc: Undefine TRUE and FALSE.
625         * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
627 1999-08-21  Tom Tromey  <tromey@cygnus.com>
629         * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
630         result.  PR 40.
632 1999-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
634         * configure.in: Check for in_addr_t in netinet/in.h too.  Check
635         for ip_mreq too.
636         * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
637         (HAVE_STRUCT_IP_MREQ): Added.
638         * configure, include/config.h.in: Rebuilt.
639         * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
640         if needed.
641         * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
642         Disable if ip_mreq is not available.
643         
644         * configure.in: Check types ssize_t and in_addr_t.
645         * acconfig.h: Undefine them.
646         * configure, include/config.h.in: Rebuilt.
648         * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
649         function that detects the signature of getpwuid_r.
650         (init_properties): Use it.
651         * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
652         (toString): Use it.
654 1999-08-20  Kresten Krab Thorup  <krab@samam.daimi.au.dk>
656         * interpret.cc (continue1): Implement explicit dispatch table.
657         insn_target: Explicit interpreter switch table.  
658         SAVE_PC: New macro, moves pc saving code into instructions that
659         require so.
660         NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
661         PC_REGISTER_ASM: New macro.
662         INLINE_SWITCH: New macro.  Constrols dispatching strategy.
663         opcode: Remove local variable.
664         {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
665         (POKEI): Use _Jv_word.
666         (iinc): Use _Jv_word.
667         (dupx): Change reference argument (sp) to pointer.  
668         (jvdump): Remove
669         
670         * interpret.cc: Remove instruction timing instrumentation.  
672         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
673         comment.  Don't use _Jv_ClassNameSamePackage. 
675         * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
676         URLPathEntry, CacheEntry}: Removed.
677         
678         * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
679         package.
680         (.java.lo): Rule removed.
682         * Makefile.in: Rebuilt.
684 1999-08-19  Tom Tromey  <tromey@cygnus.com>
686         * java/lang/natThread.cc (class locker): New class.
687         (join): Use a locker around _Jv_CondWait.
688         (sleep): Likewise.
690 1999-08-18  Tom Tromey  <tromey@cygnus.com>
692         * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
693         * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
695 1999-08-18  Tom Tromey  <tromey@cygnus.com>
697         * include/javaprims.h ("Java"): Regenerated namespace decls.
699 1999-08-18  Kresten Krab Thorup  <krab@gnu.org>
701         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
702         from _Jv_InternClassStrings.   
704         * prims.cc (_Jv_RunMain): New function.
705         (JvRunMain): Remove gij-support.
707         * gij.cc (main): Use _Jv_RunMain.
709         * java/util/zip/ZipFile.java: Call readDirectory in constructor.
711         * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
712         argument in temp variable.
713         (continue1): For all op_x2y insns, use temp variable for
714         intermediate value.  Also remove some comments.
716         * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
717         (forName): Don't call _Jv_InitClass.
719         * java/lang/Class.java (getResource,getResourceAsStream): Implement.
721         * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
723         * java/util/jar/JarInputStream.java: New file.
725         * java/util/jar/JarEntry.java: New file.
727         * java/util/jar/JarFile.java: New file.
729         * java/net/URLClassLoader.java: New file.
731         * java/net/JarURLConnection.java: New file.
733         * gnu/gcj/protocol/jar/Handler.java: New file.
735         * gnu/gcj/protocol/jar/Connection.java: New file.
737         * java/security/SecureClassLoader.java: New file.
739         * java/lang/ClassLoader.java (parent): New variable.
740         (ClassLoader (ClassLoader)): new constructor.  
741         (findClass): New method.
742         (loadClass): Add default 1.2 implementation.
743         (getSystemResourceAsBytes, getResourceAsBytes): Removed.
744         (readfully): Removed.
746         * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. 
747         (findSystemClass): New method.
748         (VMClassLoader): Constructor rewritten.
749         (init): New method.
750         All other methods removed.
751         
752         * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
753         to gnu::gcj::runtime::VMClassLoader. 
754         (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
755         class entries.   
756         (VMClassLoader::findSystemClass): renamed from findBootClass.
758         * Makefile.am: Add new files.
759         (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
761         * Makefile.in: Rebuilt.
763 1999-08-17  Tom Tromey  <tromey@cygnus.com>
765         * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
766         nano.
767         * include/quick-threads.h (_Jv_CondWait): Don't round to 0
768         inappropriately.
770 1999-08-16  Tom Tromey  <tromey@cygnus.com>
772         * configure: Rebuilt.
773         * configure.in: Set DIVIDESPEC to empty string if compiler does
774         not support -fuse-divide-subroutine.
776 1999-08-14  Per Bothner  <per@bothner.com>
778         * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
779         * java/lang/natClass.cc (initializeClass): Likewise.
780         * java/lang/ClassLoader.java (resolveClass0): New static method.
781         (resolveClass): Call resolveClass0.
782         (findSystemClass): No longer static.
784 1999-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
786         * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
788 1999-08-11  Bryce McKinlay  <bryce@albatross.co.nz>
790         * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
791         as long.
793 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
795         * Makefile: Rebuilt.
796         * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
797         builds.
799         * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
800         present.
802         * configure: Rebuilt.
803         * configure.in: Properly align --help output, fix capitalization
804         and punctuation.
805         * acinclude.m4: Likewise.
807 1999-08-09  Kresten Krab Thorup  <krab@gnu.org>
809         * include/javaprims.h (_Jv_word, _Jv_word2): New types.
811         * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
812         (_Jv_callInterpretedMethod): Unused. Remove.
813         (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
814         Use ffi_raw.
815         * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
816         (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
817         * boehm.cc (_Jv_MarkObj): Use _Jv_word.
818         * interpret.cc: use _Jv_word.
819         * defineclass.cc: use_Jv_word.
820         * resolve.cc: Use _Jv_word.
821         (_Jv_ResolvePoolEntry): Return _Jv_word.
822         * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
823         * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
825         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): 
826         Change comment.
828 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
830         * configure: Rebuilt.
831         * configure.in (sched_yield): Try librt first, then libposix4.
832         Add -lrt, -lposix4 to THREADSPEC.
834 1999-08-08  Anthony Green  <green@cygnus.com>
836         * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
838 1999-08-08  Anthony Green  <green@cygnus.com>
840         * defineclass.cc (_Jv_VerifyClassName): Verify array names
841         correctly.
843 1999-08-08  Anthony Green  <green@cygnus.com>
845         * gij.cc: New file.
847         * include/config.h.in: Rebuilt.
848         * acconfig.h: Add INTERPRETER.
850         * Makefile.in: Rebuilt.
851         * Makefile.am (libffi_files): Identify the libffi object files for
852         inclusion in libgcj.
853         (LIBFFIINCS): Define.
855         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
856         Dummy definition for configurations without an interpreter.
857         
858         * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
859         java::lang::Boolean constructor.
861         * include/java-interp.h: Always include java-cpool.h.
863         * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
864         when INTERPRETER not defined.
866         * java/lang/Class.h (finalize): Define.
868         * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
869         IOException from File.getCanonicalPath.
870         (getStream): Likewise.
872         * NEWS: More news.
873         * THANKS: More thanks.
875 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
877         * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
878         jchar type.
879         (_Jv_PrepareClass): Allow non-abstract classes to
880         have abstract subclasses.
881         (_Jv_ResolvePoolEntry): Revert subclass check for protected
882         fields and methods.
883         * interpret.cc (continue1/perform_invoke): Don't sign extend
884         uint16 return val. 
885         (continue1/lshl,lshr): Push long, not int.
886         (continue1/ulshr): Use UINT64, not long long.
887         * defineclass.cc (handleFieldsEnd): Handle case when all fields
888         are static.
889         * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
890         * java/lang/FirstThread.java (run): Add top-level exception
891         handler. 
892         (run0): Renamed from run.
894 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
896         * configure.in (--with-interpreter): Added.
897         * include/config.h.in (INTERPRETER): Added.
899         * java/lang/ClassLoader.java: File replaced.
900         * java/lang/VMClassLoader.java: New file.
901         * java/lang/natClassLoader.cc: New file.
902         * gnu/gcj/runtime/MethodInvocation.java: New file.
903         * gnu/gcj/util/path/SearchPath.java: New file.
904         * gnu/gcj/util/path/PathEntry.java: New file.
905         * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
906         * gnu/gcj/util/path/ZipPathEntry.java: New file.
907         * gnu/gcj/util/path/URLPathEntry.java: New file.
908         * gnu/gcj/util/path/CacheEntry.java: New file. 
909         * include/java-interp.h: New file.
910         * include/java-cpool.h: New file.
911         * include/java-insns.h: New file.
912         * defineclass.cc: New file.
913         * interpret.cc: New file.
914         * resolve.cc: New file.
916         * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
917         _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
918         _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
919         (finalize): New.
920         (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
921         STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
922         prefix. 
923         (initializeClass): Use new JV_ prefixed names.  Also, call
924         ClassLoader::resolveClass instead of _Jv_ResolveClass.
925                 
926         * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
927         JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
928         JV_STATE_LINKED): New.
929         (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
930         _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
931         (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
932         _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
933         _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
934         _Jv_InterpMethodInvocation): New friends for interpreter.
935         (finalize): New.
936         (CONSTANT_Class, CONSTANT_String, etc.): Moved to
937         include/java-cpool.h and renamed with JV_ prefix.
938         
939         * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
940         decls.
941         (_Jv_UnregisterClass): New decl.
943         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
944         class loader argument. 
945         (_Jv_FindClass): Use class loader.
946         
947         * prims.cc (_Jv_makeUtf8Const): New function.
948         (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
949         (_Jv_NewPrimArray): Ditto.
950         (_Jv_FindClassFromSignature): Ditto.
951         * java/lang/reflect/natArray.cc (newInstance): Ditto.
952         * java/lang/reflect/natMethod.cc (getType): Ditto.
954         * include/java-field.h (_Jv_Field::isRef): Make robust for
955         non-resolved contexts. 
957         * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields. 
958         Also, don't mark class->next field.
960         * java/lang/VirtualMachineError.java: Added FIXME note.
962         * configure.in (INTERPSPEC): New spec.
963         * libgcj.spec.in: Added INTERPSPEC.
964         * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
965         gnu/gcj/runtime/MethodInvocation.
966         (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
967         (ordinary_java_source_files): Added above mentioned java classes.
969         * configure: Rebuilt.
970         * Makefile.in: Rebuilt.
972 1999-08-06  Tom Tromey  <tromey@cygnus.com>
974         * configure: Rebuilt.
975         * configure.in: Look for sched_yield in -lrt.
977 1999-08-06  Mojo Jojo <mojojojo@pacbell.net>
979         * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
980         ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
981         SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
982         locales.
983         (toString): Print correctly when `country' is empty.
985 1999-08-04  Per Bothner <per@bothner.com>
987         * configure.in:  Also do AC_SUBST for DIVIDESPEC.
989 1999-08-02  Tom Tromey  <tromey@cygnus.com>
991         * aclocal.m4, configure: Rebuilt for new libtool.
993 1999-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
995         * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
996         * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
997         * java/net/ServerSocket.java: Define ANY_IF.
998         (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
999         all network interfaces.
1000         * java/net/DatagramSocket.java (DatagramSocket): ditto.
1001         * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1002         null.
1003         * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1004         instead of null.
1005         * java/io/natFile.cc (performMkdir): Remove FIXME.
1006         * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1008 1999-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
1010         * configure.in: Check for bstring.h.
1011         * configure, include/config.h.in: Rebuilt.
1012         * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1013         * java/net/natPlainSocketImpl.cc: Likewise.
1015 1999-07-31  Tom Tromey  <tromey@cygnus.com>
1017         * NEWS: Likewise.
1018         * THANKS: New file.
1020 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1022         * configure.in: Check for struct hostent_data and need for
1023         -D_REENTRANT for gethostbyname_r declaration.
1024         * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1025         (lookup): Use hostent_data for fixed_buffer.
1026         * configure, include/config.h.in: Rebuilt.
1028 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1030         * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1031         available.  Don't cast memmove args to (void*).
1032         * configure.in: Do not abort if memmove is not available.
1034 1999-07-22  Bryce McKinlay  <bryce@albatross.co.nz>
1036         * java/lang/natString.cc (substring): optimize where substring is
1037         entire String.
1038         * java/io/File.java (getName): don't return separator with file name.
1039         * java/io/natFile.cc (attr): fix overflow.
1041 Sun Jul 25 01:43:34 1999  Anthony Green  <green@cygnus.com>
1043         * mauve-libgcj: Disable Object Serialization tests.
1045 1999-07-20  Warren Levy  <warrenl@cygnus.com>
1047         * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1048         Default to using PlainDatagramSocketImpl.
1049         * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1051 1999-07-19  Tom Tromey  <tromey@cygnus.com>
1053         * include/stamp-h.in: New file.
1055 1999-07-12  Tom Tromey  <tromey@cygnus.com>
1057         * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1058         _UINT32_T.
1060 1999-07-07  Andrew Haley  <aph@cygnus.com>
1062         * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1063         bytes to make it point after the instruction where the trap
1064         occurred.
1065         (HANDLE_DIVIDE_OVERFLOW): Ditto.
1067 1999-07-07  Tom Tromey  <tromey@cygnus.com>
1069         * mauve-libgcj: Explicitly enable formerly disabled java.text
1070         tests.
1072         * mauve-libgcj: Turn off ClassTest test.  Enable java.text tests
1073         again.
1075 Mon Jul  5 12:01:35 1999  Anthony Green  <green@cygnus.com>
1077         * java/net/URL.java (equals): Compare strings using String.equals.
1078         * java/net/URL.java (sameFile): Ditto.
1080 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1082         * configure: Rebuilt.
1083         * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1084         * include/config.h.in: Rebuilt.
1085         * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1086         (mcastGrp): Updated FIXME comments.
1087         (setOption): Fixed typo.
1088         (getOption):Implemented IP_MULTICAST_IF.
1090 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1092         * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1093         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1094         (getTimeToLive): Implemented.
1095         (setOption): Implemented IP_MULTICAST_IF.
1097 1999-07-01  Bryce McKinlay  <bryce@albatross.co.nz>
1099         * java/lang/String.java (toString): Check for this == null and throw
1100         NullPointerException.
1102 1999-07-01  Warren Levy  <warrenl@cygnus.com>
1104         * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1105         to count and revised comments to match.
1106         * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1107         * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1108         * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1109         * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1110         * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1111         * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1113 1999-07-01  John-Marc Chandonia  <jmc@cmpharm.ucsf.edu>
1115         * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1116         properly as count rather than outlength.
1117         * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1118         output on overflow rather than buffer fill.
1119         * java/io/BufferedReader.java (fill): Don't clear out the buffer
1120         if markPos is 0 and there is still room in the buffer.
1122 1999-07-01  Andrew Haley  <aph@cygnus.com>
1124         * include/i386-signal.h: Replace sigaction () with __sigaction ().
1125         This is a workaround for a bug in glibc's pthreads package which
1126         doesn't deliver any sigcontext information to a signal handler.
1128 1999-06-24  Tom Tromey  <tromey@cygnus.com>
1130         * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1131         * java/lang/fdlibm.h (HUGE): Conditionally define.
1133 Fri May 28 22:20:03 1999  Anthony Green  <green@cygnus.com>
1135         * java/lang/fdlibm.h: Don't use __uint32_t.  Include mprec.h.
1136         * java/lang/e_log.c: Don't use __uint32_t.
1138 1999-05-27  Eric Christopher <echristo@cygnus.com>
1140         * configure: Rebuilt
1141         * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1142         * acconfig.h: Rebuilt
1143         * include/config.h.in: Rebuilt
1145         * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1146         java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1147         e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1148         java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1149         k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1150         java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1151         s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1152         and namespace collision with __uint32_t
1154 1999-06-23  Tom Tromey  <tromey@cygnus.com>
1156         * java/util/zip/InflaterInputStream.java (read): Throw
1157         ZipException if inflater throws a DataFormatException.
1159 1999-06-23  Warren Levy  <warrenl@cygnus.com>
1161         * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1162         * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1163         * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1164         is not final per JDK.
1165         * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1166         public per JDK.
1167         * java/util/zip/DataFormatException.java: Class extends Exception.
1168         * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1169         * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1170         * java/util/zip/ZipInputStream.java: ditto.
1171         (closeEntry): Changed method name to match JDK spec.
1173 1999-06-21  Tom Tromey  <tromey@cygnus.com>
1175         * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1176         From Jeff Sturm.
1178         * Makefile.in: Rebuilt.
1179         * Makefile.am (toolexeclibdir): Define as libdir when
1180         appropriate.
1181         * configure: Rebuilt.
1182         * configure.in (USE_LIBDIR): New conditional.
1184 1999-06-18  Bryce McKinlay  <bryce@albatross.co.nz>
1186         * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1187         hostname in returned InetAddress objects.
1188         (getLocalHostname): Fix typo.
1189         * java/net/InetAddress.java (getByName): Set hostname on return
1190         object.
1191         (getLocalHost): Call lookup directly to ensure that a fully-qualified
1192         name is returned.
1194 1999-06-17  Bryce McKinlay  <bryce@albatross.co.nz>
1196         * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1197         interfaces if host==NULL. 
1198         (accept): Throw message with InterruptedIOException.
1199         (getOption): Cache localAddress.
1200         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1201         'address' for DatagramSocket.
1202         (setTimeToLive): Fix compiler warnings.
1203         (getOption): Cache localAddress.
1204         * java/net/Socket.java (getLocalAddress): Don't need local
1205         InetAddress object. Add FIXME comment about calling checkConnect().
1206         * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1207         connection queue to 50 as per JDK 1.2 docs.
1208         (ServerSocket(int,int)): Listen on all network interfaces by
1209         default, per JDK 1.2 docs.
1210         * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1211         Add localAddress caching. 
1213 1999-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
1215         * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1216         to JDK 1.2 docs.
1217         (write(byte[],int,int)): ditto.
1219 1999-06-14  Bryce McKinlay  <bryce@albatross.co.nz>
1221         * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1223 1999-06-11  Warren Levy  <warrenl@cygnus.com>
1225         * mauve-libgcj: Activated java.net Mauve tests.
1227 1999-06-10  Bryce McKinlay  <bryce@albatross.co.nz>
1229         * java/net/natInetAddress.cc (aton): Fix typos.
1230         (lookup): Use a bigger buffer size for gethostbyname_r on all
1231         versions of glibc. Updated FIXME comment explaining this.
1232         Modified while loops to not set herr = ERANGE to work around glibc 
1233         problems. Use user specified hostname in InetAddress result when
1234         available (consistent with JDK).
1236 1999-06-10  Warren Levy  <warrenl@cygnus.com>
1238         * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1239         Throw FileNotFoundException instead of IOException.
1240         (open): ditto.
1241         * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1242         IOException.
1243         * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1244         in static field name.
1245         * java/text/DecimalFormat.java: Throw IllegalArgumentException
1246         throughout rather than ParseException.
1248 1999-06-09  Bryce McKinlay  <bryce@albatross.co.nz>
1250         * java/lang/Runtime.java (exec): Convert prog name and arguments
1251         to string array.
1252         * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1253         environment array conversion. Preserve current environment if envp
1254         not passed. Preserve PATH unless explicitly specified.
1255         * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1256         followed by EOF. Set a flag when a line is terminated by '\r' and
1257         ignore following '\n' if set.
1259 1999-06-02  Warren Levy  <warrenl@cygnus.com>
1261         * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1262         Ignore context if spec is an absolute URL.  Fix braindead
1263         string comparison.
1264         (hashCode): Use JDK 1.2 style algorithm.
1265         * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1266         context URL properly.
1268 1999-05-30  Anthony Green  <green@cygnus.com>
1270         * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1271         correctly.  Clean up "/../" an\e[Bd "/./" path fragments.
1273 1999-05-28  Warren Levy  <warrenl@cygnus.com>
1275         * java/net/DatagramSocket.java (laddr): Removed.
1276         (DatagramSocket): Removed attempts to get or set laddr if null.
1277         (getLocalAddress): Reimplemented per spec.
1278         * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1279         when ttl is 0.
1280         (joinGroup): Throw NullPointerException if any argument is null.
1281         (leaveGroup): ditto.
1282         * java/net/PlainDatagramSocketImpl.java: Updated comments.
1283         * java/net/PlainSocketImpl.java (timeout): Added.
1284         (getInputStream): Added FIXME comment on how to support timeouts
1285         for TCP.
1286         * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1287         * java/net/Socket.java: Added FIXME comments to identify
1288         conflicting specs between the JCL and JDK 1.2 documents.
1289         * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1290         if host is null.  Get localport value resolved by kernel if bind
1291         lport is 0.
1292         (receive): Implemented support for timeouts in UDP.
1293         (setOption): Implemented based on natPlainSocketImpl version.
1294         (getOption): ditto.
1295         * java/net/natPlainSocketImpl.cc (bind): Get localport value
1296         resolved by kernel if bind lport is 0.
1297         (connect): Get localport value resolved by kernel if bind wasn't
1298         done to set localport.
1299         (accept): Implemented support for timeouts for ServerSocket.
1300         (setOption): Save value for SO_TIMEOUT.
1301         (getOption): Return timeout for SO_TIMEOUT.
1303 1999-05-26  Bryce McKinlay <bryce@albatross.co.nz>
1305         * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1306         * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1307         (setOption): Made abstract.
1308         * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1309         to avoid cpp conflicts in native code.
1310         * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1311         cpp conflicts in native code.
1312         * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1313         * java/net/Socket.java (getLocalAddress): Implemented.
1314         (setTcpNoDelay): Implemented.
1315         (getTcpNoDelay): Implemented.
1316         (setSoLinger): Implemented.
1317         (getSoLinger): Implemented.
1318         (getSoTimeout): Verify class type.
1319         (setSendBufferSize): Implemented.
1320         (getSendBufferSize): Implemented.
1321         (setReceiveBufferSize): Implemented.
1322         (getReceiveBufferSize): Implemented.
1323         (toString): Prepended "Socket".
1324         * java/net/SocketImpl.java (toString): Rewritten.
1325         (getOption): Made abstract.
1326         (setOption): Made abstract.
1327         * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1328         (setOption): Implemented.
1329         (getOption): Implemented.
1331 1999-05-26  Warren Levy  <warrenl@cygnus.com>
1333         * java/net/DatagramSocket.java (DatagramSocket): Get local host
1334         address when null.  Set SO_REUSEADDR for multicasts.
1335         (getSoTimeout): Implemented.
1336         (setSoTimeout): Implemented.
1337         * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1338         * java/net/MulticastSocket.java (getInterface): Implemented.
1339         (setInterface): Implemented.
1340         (setTimeToLive): Check for invalid ttl.
1341         (joinGroup): Verify multicast address and security.
1342         (leaveGroup): Verify multicast address and security.
1343         (send): Implemented.
1344         * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1345         (iface): Added.
1346         (ttl): Added.
1347         (setOption): Added.
1348         (getOption): Added.
1349         (mcastGrp): Added.
1350         (getTTL): Implemented as non-native.
1351         (setTTL): ditto.
1352         (join): ditto.
1353         (leave): ditto.
1354         * java/net/ServerSocket.java (setSoTimeout): Implemented.
1355         (getSoTimeout): Implemented.
1356         (setSocketFactory): Made synchronized.
1357         * java/net/Socket.java (setSoTimeout): Implemented.
1358         (getSoTimeout): Implemented.
1359         (close): Made synchronized.
1360         (setSocketImplFactory): Made synchronized.
1361         * java/net/SocketImpl.java: Implement SocketOptions interface.
1362         * java/net/natInetAddress.cc: Corrected module name at top of file.
1363         * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1364         (bind): Added FIXME.
1365         (peek): Implemented.
1366         (setTTL): Removed.
1367         (getTTL): Removed.
1368         (join): Removed.
1369         (leave): Removed.
1370         (mcastGrp): Added.
1371         (setOption): Implemented for SO_REUSEADDR.
1372         (getOption): Implemented for SO_REUSEADDR.
1374 1999-05-24  Tom Tromey  <tromey@cygnus.com>
1376         * java/util/ResourceBundle.java (getBundle): Throw
1377         NullPointerException if baseName is null.
1379 1999-05-22  Tom Tromey  <tromey@cygnus.com>
1381         * java/util/zip/ZipInputStream.java (fill): New method.
1382         (compressed_len): New instance variable.
1383         (getNextStream): Set it.
1384         (read): Reset inflater on EOF.  Only read via `super' if entry is
1385         deflated.
1386         (skip): Only skip via `super' if entry is deflated.
1387         * java/util/zip/Deflater.java (last_input_count): Removed.
1388         * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1389         is length 0.
1390         (needsInput): Don't use last_input_count.
1391         (setInput): Don't set last_input_count.
1392         * java/util/zip/natInflater.cc (getRemaining): Return correct
1393         result.
1394         (inflate): Return 0 if input array is length 0.
1395         (setInput): Don't set last_input_count.
1396         * java/util/zip/Inflater.java (last_input_count): Removed.
1398 1999-05-21  Tom Tromey  <tromey@cygnus.com>
1400         * Makefile.in: Rebuilt.
1401         * Makefile.am (INCLUDES): Added $(ZINCS).
1402         * configure: Rebuilt.
1403         * configure.in (ZINCS): New subst.
1405 1999-05-21  Andrew Haley  <aph@cygnus.com>
1407         * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1408         to signal options to allow the same exceptions to be rethrown
1409         later.
1411 1999-05-20  Andrew Haley  <aph@cygnus.com>
1413         * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1414         added.
1415         * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1416         (INIT_FPE): Exception string made more informative.
1417         * include/sparc-signal.h (INIT_FPE): Exception string made more
1418         informative.
1419         * testsuite/libjava.lang/Divide_1.java: New file.
1420         * testsuite/libjava.lang/Divide_1.out: New file.
1422 1999-05-19  Tom Tromey  <tromey@cygnus.com>
1424         * aclocal.m4, configure: Rebuilt.
1425         * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1427         * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1428         method.
1430         * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1431         Include <stdlib.h>.
1432         * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1433         Include <stdlib.h>.
1434         (update): Fail in default case.  Always initialize `strat'.
1436         * mauve-libgcj: Enable java.util.zip.
1438 1999-05-18  Warren Levy  <warrenl@cygnus.com>
1440         * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1441         DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1442         PlainDatagramSocketImpl.java, and SocketOptions.java.
1443         (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1444         * Makefile.in: Rebuilt.
1446         * java/net/DatagramPacket.java: New file.
1447         * java/net/DatagramSocket.java: New file.
1448         * java/net/DatagramSocketImpl.java: New file.
1449         * java/net/MulticastSocket.java: New file.
1450         * java/net/PlainDatagramSocketImpl.java: New file.
1451         * java/net/SocketOptions.java: New file.
1452         * java/net/natPlainDatagramSocketImpl.cc: New file.
1454 1999-05-18  Tom Tromey  <tromey@cygnus.com>
1456         * java/util/zip/ZipOutputStream.java (level): Initial value is
1457         Deflater.DEFAULT_COMPRESSION.
1458         (close): New method.
1459         (closeEntry): Likewise.
1460         (finish): Likewise.
1461         (put_version): Likewise.
1462         (write_entry): Likewise.
1463         (put2, put4): Now return `int'.
1464         (comment): Default to empty string.
1465         (bytes_written): New instance variable.
1466         (chain): Likewise.
1467         * java/util/zip/ZipEntry.java (setComment): Limit length of
1468         comment string.
1469         (setCrc): Check CRC validity.
1470         (setExtra): Check argument validity.
1471         (setMethod): Likewise.
1472         (setSize): Likewise.
1473         (ZipEntry): Likewise.
1474         * include/javaprims.h: Updated namespace declarations.
1475         * Makefile.in: Rebuilt.
1476         * Makefile.am (ordinary_java_source_files): Mention new files.
1477         (nat_source_files): Likewise.
1478         * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1479         EOFException.
1480         (read4): Likewise.
1481         (getInputStream): Handle compressed entries.
1482         * java/util/zip/GZIPOutputStream.java: New file.
1483         * java/util/zip/GZIPInputStream.java: New file.
1484         * java/util/zip/DataFormatException.java: New file.
1485         * java/util/zip/CheckedInputStream.java: New file.
1486         * java/util/zip/CheckedOutputStream.java: New file.
1487         * java/util/zip/InflaterInputStream.java: Implemented.
1488         * java/util/zip/natInflater.cc: New file.
1489         * java/util/zip/Deflater.java: Implemented.
1490         * java/util/zip/natDeflater.cc: New file.
1491         * java/util/zip/DeflaterOutputStream.java: Implemented.
1493         * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1494         ZipException, not IOException.
1495         * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1496         not IOException.
1498 1999-05-17  Tom Tromey  <tromey@cygnus.com>
1500         * java/lang/natSystem.cc (init_properties): URL now points to
1501         sourceware.
1503 1999-05-12  Per Bothner  <bothner@cygnus.com>
1505         * java/util/Calendar.java (set):  First call computeFields if needed.
1506         * java/util/natGregorianCalendar.cc (computeTime):  Cast 1000 to jlong.
1507         
1508 1999-05-12  Tom Tromey  <tromey@cygnus.com>
1510         * configure: Rebuilt.
1511         * configure.in: Look for -ldl when using the Boehm collector.
1512         Look for sched_yield in -lposix4.
1514 1999-05-12  Per Bothner  <bothner@cygnus.com>
1516         * java/io/File.java (mkdirs):  Handle a null parent directory.
1518 1999-05-12  Tom Tromey  <tromey@cygnus.com>
1520         * include/javaprims.h: Updated namespace declarations.
1521         * classes.pl (scan): Uniquify class list.
1522         * Makefile.in, configure: Rebuilt.
1523         * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1524         (built_java_source_files): New macro.
1525         (nat_headers): Added built_java_source_files.
1526         (javao_files): Likewise.
1527         (EXTRA_libgcj_la_SOURCES): Likewise.
1528         (libgcj.zip): Create built class files.
1529         ($(built_java_source_files:.java=.class)): New target.
1530         (jv_convert_LDADD): Added -L$(here)/.libs.
1531         * configure.in: Create links for ConcreteProcess.java and
1532         natConcreteProcess.cc.
1533         * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1534         * java/lang/natEcosProcess.cc: New file.
1535         * java/lang/EcosProcess.java: New file.
1536         * java/lang/PosixProcess.java: New file.
1537         * java/lang/natPosixProcess.cc: New file.
1539 1999-05-12  Warren Levy  <warrenl@cygnus.com>
1541         * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1542         * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1543         * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1544         (connect): Throw ConnectException.
1546 1999-05-11  Tom Tromey  <tromey@cygnus.com>
1548         * Makefile.in: Rebuilt.
1549         * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1550         * libgcj.spec.in: Don't use `+'.  Instead, put old lib spec after
1551         our libraries.
1553         * Makefile.in: Rebuilt.
1554         * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1555         and it causes problems with libtool.
1557         * Makefile.in, configure: Rebuilt.
1558         * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1559         (jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
1560         (jv_convert_DEPENDENCIES): Added ZDEPS.
1561         * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1562         directory.
1563         (THREADSPEC): Added `-L' to point to qthreads build directory.
1564         (ZLIBS): New subst.
1565         (ZDEPS): New subst.
1567         * configure, Makefile.in: Rebuilt.
1568         * Makefile.am (toolexeclib_DATA): New macro.
1569         * configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
1570         Recognize --with-system-zlib.
1571         (GCSPEC): New subst.
1572         (THREADSPEC): New subst.
1573         (SYSTEMSPEC): New subst.
1574         (ZLIBSPEC): New subst.
1575         * libgcj.spec.in: New file.
1577 1999-05-10  Tom Tromey  <tromey@cygnus.com>
1579         * java/io/InputStreamReader.java (read): If length is 0, return
1580         0.  Reset `wpos' and `wcount' when buffer has been filled and
1581         emptied.
1583         * java/util/Properties.java (save): Removed `FIXME' comment.
1584         (load): Invalid characters in \u now treated as terminators.
1585         Make sure to append character resulting from `\' handling.
1586         Cast to `char' when appending to key or value.
1587         (skip_ws): Inverted test for whitespace.
1589         * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1590         `FIXME' comment.
1591         (readLine): Likewise.
1592         (readFully): Implemented.
1594         * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1596         * java/awt/natToolkit.cc: Added copyright header.
1597         * java/util/zip/InflaterInputStream.java: Added copyright header.
1599         * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1600         comment.
1601         * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1602         `FIXME' comment.
1603         (getNextStream): Likewise.
1605         * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1606         locale.toString().
1607         (getBundle): Don't explicitly throw null pointer exception.
1609         * gnu/gcj/RawData.java: Added copyright header.
1611         * include/jni.h (_Jv_va_list): Always define as va_list.
1613 1999-05-9  Anthony Green  <green@cygnus.com>
1615         * java/text/DateFormat.java (computeInstance): Separate time
1616         and date styles.
1617         (getDateTimeInstance): Ditto.
1618         (getDateTimeInstance(int,int)): New method.
1620         * Makefile.in: Rebuilt.
1621         * Makefile.am (ordinary_java_source_files): Add new classes.
1623         * java/util/PropertyResourceBundle.java: New file.
1624         * gnu/gcj/util/EnumerationChain.java: New file.
1626 1999-05-07  Tom Tromey  <tromey@cygnus.com>
1628         * acconfig.h (GCJVERSION): New undef.
1629         * java/lang/natSystem.cc (init_properties): Define java.version,
1630         java.class.version, os.name, os.arch, os.version.
1631         Include <sys/utsname.h> if required.
1632         * configure: Rebuilt.
1633         * configure.in: Compute and define GCJVERSION.
1635         * java/lang/natSystem.cc (default_file_encoding): Now static.
1637         * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1639         * libtool-version: New file.
1640         * Makefile.in: Rebuilt.
1641         * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1642         -release.
1644         * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1645         Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1646         again (oops).
1648         * mauve-libgcj: Test more from java.text.  Don't mention 1.1 tests
1649         (we pick those up already).
1651 1999-05-05  Per Bothner  <bothner@cygnus.com>
1653         * java/awt/*:  Check a bunch of classes, a few complete, but mostly
1654         stub classes.  (This is enough to get Kawa to compile against libgcj.)
1656         * gnu/gcj/RawData.java:  New class.
1657         * doc/cni.sgml:  Document RawData.
1659         * java/util/zip/InflaterInputStream.java:  New stub class.
1660         * java/util/zip/ZipInputStream.java:  New class.  Partly works.
1661         * java/util/zip/ZipConstants.java:  Add two (internal) constants.
1662         * java/util/zip/ZipEntry.java (timeFromDOS):  New static method.
1663         * java/util/zip/ZipFile.java:  Now mostly works (unless compressed).
1664         * java/util/zip/ZipOutputStream.java:  Start implementation.
1665         
1666         * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
1667         (default_file_encoding):  New global, initial value is above macro.
1668         (init_properties):  Default file.encoding to default_file_encoding.
1669         
1670         * Makefile.am:  Add new classes.
1672 1999-05-05  Tom Tromey  <tromey@cygnus.com>
1674         * Makefile.in: Rebuilt.
1675         * Makefile.am (CLEANFILES): Don't mention $(class_files).
1676         (clean-local): New target
1678         * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1679         (load, loadLibrary): Now native.
1680         (init): New method.
1681         * java/lang/Runtime.java (load, loadLibrary): Now native.
1682         (init): New native method.
1683         (Runtime): Use init.
1684         * prims.cc: Include <ltdl.h> if required.
1685         (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1687 1999-05-05  Gilles Zunino  <Gilles.Zunino@hei.fr>
1689         * configure.in: Switch from irix threads to posix threads
1690         * configure: Regenerate.
1692 1999-04-30  Tom Tromey  <tromey@cygnus.com>
1694         * Makefile.in: Rebuilt.
1695         * Makefile.am (jv_convert_LDADD): Added -lgcc.
1697 1999-04-29  Tom Tromey  <tromey@cygnus.com>
1699         * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1700         vector when shared.
1702         * java/util/Locale.java (Locale(String,String)): Implement in
1703         terms of 3-argument version; variant now defaults to empty
1704         string.
1705         (toString): Assume variant is not null.
1706         (equals): Assume all strings are not null.
1707         (Locale): Throw NullPointerException if any argument is null.
1709         * java/util/ResourceBundle.java (getBundle): Don't try the base
1710         name; now implicit in partialGetBundle call.
1711         (trySomeGetBundle): Search for parent bundles and call setParent
1712         as required.
1713         (partialGetBundle): Added `langStop' argument.  Use
1714         `Locale.toString' to compute bundleName.
1715         (resource_cache): New static field.
1716         (partialGetBundle): Cache the returned resource bundle.  Now
1717         synchronized.
1719         * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1720         missing `<'.
1722         * mauve-libgcj: Enable Collator and RuleBasedCollator.
1723         * java/text/natCollator.cc (decomposeCharacter): `base' now
1724         `const'.
1725         * Makefile.in: Rebuilt.
1726         * Makefile.am (ordinary_java_source_files): Added
1727         CollationElementIterator, CollationKey, Collator,
1728         RuleBasedCollator.
1729         (nat_source_files): Added natCollator.cc.
1730         * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1731         (compare): Pass `this' to CollationElementIterator constructor.
1732         (getCollationElementIterator): Likewise.
1733         (ceiNext): Fix off-by-one error when finding initial substring.
1734         (next): Correctly mask off bits when computing return value.
1735         Fixed return values when one string is shorter than the other.
1736         * java/text/CollationElementIterator.java (collator): New field.
1737         (CollationElementIterator): Added collator argument.
1738         (next): Call ceiNext on collator object.
1740 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1742         * natCollator.cc: New file.
1744         * java/util/GregorianCalendar.java (setDefaultTime): New method.
1745         (GregorianCalendar): Use it in all constructors.
1746         * java/util/Calendar.java (Calendar): Changed argument name to
1747         `zone' to match code.
1749         * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1750         * java/text/CollationKey.java: New file.
1751         * java/text/CollationElementIterator.java: New file.
1752         * java/text/Collator.java: New file.
1753         * java/text/RuleBasedCollator.java: New file.
1755         * Makefile.in: Rebuilt.
1756         * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1757         (jv_convert_LDADD): Explicltly add -lm -lc.
1759 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1761         * configure, Makefile.in: Rebuilt.
1762         * configure.in: Added AM_PROG_LIBTOOL.
1763         (GCOBJS): Use `.lo' form of files.
1764         (THREADOBJS): Likewise.
1765         (GCDEPS): Use `.la' form of library.
1766         (GCLIBS): Set to be the same as GCDEPS.
1767         (THREADDEPS): Use `.la' form of library.
1768         (THREADLIBS): Set to be the same as THREADDEPS.
1769         * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1770         toolexeclib_LIBRARIES.
1771         (libgcj_la_SOURCES): Renamed for libtoolization.
1772         (EXTRA_libgcj_la_SOURCES): Likewise.
1773         (libgcj_la_DEPENDENCIES): Likewise.
1774         (libgcj_la_LIBADD): Likewise.
1775         ($(nat_files)): Use LTCXXCOMPILE.
1776         ($(c_files)): Use LTCOMPILE.
1777         (GCJCOMPILE): New macro.
1778         (.class.o): Use it.
1779         (.java.o): Likewise.
1780         ($(javao_files)): Likewise.
1781         (jv_convert_LINK): Use LIBTOOL.
1782         (nat_files): Use `.lo' files.
1783         (c_files): Likewise.
1784         (javao_files): Likewise.
1785         (.class.lo): Renamed.
1786         (.java.lo): Likewise.
1787         ($(nat_files)): Depend on %.lo.
1788         ($(c_files)): Likewise.
1789         ($(javao_files)): Likewise.
1790         (jv_convert_LDADD): Link against .lo files.
1791         (jv_convert_DEPENDENCIES): Depend on .lo files.
1792         (maintainer-check): Depend on libgcj.la, but examine .a file.
1793         (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1794         (libgcj_la_LDFLAGS): New macro.
1796 1999-04-23  Warren Levy  <warrenl@cygnus.com>
1798         * Makefile.am: Added URLDecoder and URLEncoder.
1799         * Makefile.in: Rebuilt.
1801         * java/net/ServerSocket.java (setSocketFactory): Renamed from
1802         setSocketImplFactory to match spec.
1803         * java/net/Socket.java (getSoLinger): Changed return type to
1804         match spec.
1806         * java/net/URLDecoder.java: New file.
1807         * java/net/URLEncoder.java: New file.
1809 1999-04-21  Tom Tromey  <tromey@cygnus.com>
1811         * java/lang/natString.cc (getBytes): Reverted earlier change and
1812         applied correct fix from Per Bothner.
1814         * java/lang/String.java: Don't throw
1815         UnsupportedEncodingException.
1817         * java/lang/natString.cc (getBytes): Correctly size result
1818         buffer.  From Bryce McKinlay <bryce@albatross.co.nz>.
1820 1999-04-20  Andrew Haley  <aph@cygnus.com>
1822         * include/sparc-signal.h: new file.
1823         * configure.in: include/sparc-signal.h added.
1824         * configure: regenerated.
1825         * prims.cc (JvRunMain): signal handling code rewritten to be more
1826         portable.
1827         (catch_segv): ditto.
1828         (catch_fpe): ditto.
1829         * include/i386-signal.h: reorganized.
1830         * include/default-signal.h: reorganized.
1832 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1834         * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1835         once.  From Anthony Green.
1837 1999-04-19  Andrew Haley  <aph@cygnus.com>
1839         * Makefile.in: Processed with new automake.
1841 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1843         * include/javaprims.h: Removed security namespace.
1845 1999-04-20  Anthony Green  <green@cygnus.com>
1847         * java/io/PrintStream.java (println): Remove extra println.
1849 1999-04-19  Anthony Green  <green@cygnus.com>
1851         * Makefile.in: Rebuilt.
1852         * Makefile.am (ordinary_java_source_files): Add new security files.
1854         * java/security/NoSuchAlgorithmException.java,
1855         java/security/MessageDigest.java: New files.
1857         * include/javaprims.h: Add security namespace.
1859 1999-04-16  Per Bothner  <bothner@cygnus.com>
1861         * gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
1862         * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1863         * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1864         * gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
1865         * gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
1866         * gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
1867         * gnu/gcj/convert/natInput_SJIS.cc:  New file.
1868         * gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
1869         * gnu/gcj/convert/natOutput_SJIS.cc:  New file.
1870         * gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
1871         * gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
1872         * gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.
1873         * Makefile.am:  Various changes for new files and conversions.
1875         * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1876         New overloading, allows greater efficiency.
1877         * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1878         New overloading (for efficiency - avoids copying).
1880         * gnu/gcj/convert/Output_UTF8.java:  Fix typo: 0xC0 -> 0c3F.
1881         * gnu/gcj/convert/Input_UTF8.java:  Fix typos in bit masks.
1883         * java/io/InputStreamReader.java (<init>):  Set super.in correctly.
1884         * java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
1885         (writeChars):  Don't be quite so eager to flush.
1886         * java/io/PrintStream.java:  Rewrite.  Now more similar to
1887         OutputStreamWriter, using explicit UnicodeToBytes converter.
1888         Also, autoflush does not need to flush so often.
1889         * java/lang/natString.cc (getBytes):  More efficient algorithm.
1890         (init(jbyteArray,jint,jint,jstring)):  More efficient.
1891         
1892 1999-04-15  Warren Levy  <warrenl@cygnus.com>
1894         * Makefile.am (ordinary_java_source_files): Added new Connection 
1895         and Handler classes in gnu.gcj.protocol.file package.
1896         * Makefile.in: Rebuilt.
1898         * gnu/gcj/protocol/file/Connection.java: New file.
1899         * gnu/gcj/protocol/file/Handler.java: New file.
1900         * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1901         if doInput allows input.
1902         (getOutputStream): Check if doOutput allows output.
1903         * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1905 1999-04-14  Tom Tromey  <tromey@cygnus.com>
1907         * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1908         buffer larger to work around bug.
1909         From Bryce McKinlay <bryce@albatross.co.nz>.
1911 1999-04-14  Andrew Haley  <aph@cygnus.com>
1913         * java/lang/natDouble.java (doubleToLongBits): ensure that all
1914         NaNs are always converted to the same long value.  
1915         * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1916         converted to int.
1918 1999-04-13  Tom Tromey  <tromey@cygnus.com>
1920         * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1921         instead switch on actual element type.
1923         * Makefile.in: Rebuilt.
1924         * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1926 1999-04-13  Andrew Haley  <aph@cygnus.com>
1928         * include/i386-signal.h, include/default-signal.h: New files.   
1929         * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1930         handler.
1931         (catch_fpe): New function.      
1932         * configure.in: Make link to appropriate include/java-signal.h.
1933         * configure: Rebuilt.
1934         * Makefile.am: include/java-signal.h added to dependency list.
1935         * Makefile.in: Rebuilt.
1937 1999-04-12  Urban Widmark <urban@svenskatest.se>
1939         * java/io/DataInputStream.java (readLine): Corrected handling of
1940         empty lines, from null to "".
1942 1999-04-12  Tom Tromey  <tromey@cygnus.com>
1944         * Makefile.in: Rebuilt.
1945         * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1947         * java/lang/natSystem.cc (SystemClass): New define.
1948         (init_properties): Synchronize.
1950 1999-04-08  Geoff Berry  <gcb@gnu.org>
1952         * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1953         * natPlainSocketImpl.cc (accept): Add missing else if check
1954         for AF_INET6.
1956 1999-04-08  Tom Tromey  <tromey@cygnus.com>
1958         * java/lang/Long.java (parseLong): Corrected overflow detection
1959         code.
1960         * java/lang/Integer.java (parseInt): Corrected overflow detection
1961         code.
1963         * java/io/PrintStream.java (print): Handle null string argument.
1964         (println): Likewise.
1966 1999-04-07  Warren Levy  <warrenl@cygnus.com>
1968         * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
1969         Set count to 0 when InputStreamReader returns -1 for EOF.
1971 1999-04-07  Tom Tromey  <tromey@cygnus.com>
1973         * mauve-libgcj: Omit java.text.Collator,
1974         java.text.RuleBasedCollator.
1976 1999-04-06  Tom Tromey  <tromey@cygnus.com>
1978         * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
1979         IOException from getHttpHeaders().
1980         (getHeaderFieldKey): Likewise.
1982         * include/javaprims.h: Regenerated declarations.
1984         * Makefile.in: Rebuilt.
1985         * Makefile.am (ordinary_java_source_files): Updated for removed
1986         files.
1988 1999-04-06  Per Bothner  <bothner@cygnus.com>
1990         * java/util/zip/Adler32.java:  New class.
1991         * java/util/zip/CRC32.java:  Add working method bodies.
1992         * Makefile.am (ordinary_java_source_files):  Add new Adler32 class.
1993         * Makefile.in:  Re-generate.
1995 Tue Apr  6 18:28:42 1999  Warren Levy  <warrenl@cygnus.com>
1997         * gnu/gcj/protocol/http/Connection.java: New file.  Rewritten
1998         from version in removed www hierarchy.
1999         * gnu/gcj/protocol/http/Handler.java: New file.  Copied from
2000         version in removed www hierarchy.
2002         * gnu/gcj/www/protocol/http/Connection.java: Removed.
2003         * gnu/gcj/www/protocol/http/Handler.java: Removed.
2004         * gnu/gcj/www/protocol/http: Removed dir.
2005         * gnu/gcj/www/protocol: Removed dir.
2006         * gnu/gcj/www: Removed dir.
2008         * java/net/HttpURLConnection.java: Revised comments to indicate
2009         missing JDK 1.2 methods.
2011         * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2012         hierarchy rather than the gnu/gcj/www/protocol one.
2013         * java/net/URLConnection.java: Updated status comments.
2014         (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2015         the gnu/gcj/www/content one.
2017 1999-04-06  Per Bothner  <bothner@cygnus.com>
2019         * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2020         The gen-from-JIS program is in $(CONVERT_DIR).
2022 1999-04-06  Tom Tromey  <tromey@cygnus.com>
2024         * mauve-libgcj: Renamed from mauve-libjava.
2026 Tue Apr  6 03:18:38 1999  Warren Levy  <warrenl@cygnus.com>
2028         * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2029         (getResponseMessage): Implemented.
2030         (getResponseVals): New private method.
2032         * java/net/URLConnection.java (getContent): Implemented.
2033         (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2035 1999-04-05  Tom Tromey  <tromey@cygnus.com>
2037         * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2038         (jv_convert_SOURCES): Renamed.
2039         (EXTRA_jv_convert_SOURCES): Likewise.
2040         (jv_convert_LDFLAGS): Likewise.
2041         (jv_convert_LINK): Likewise.
2042         (jv_convert_LDADD): Likewise.
2043         (jv_convert_DEPENDENCIES): Likewise.
2045         * Makefile.in: Rebuilt.
2046         * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2047         tooldir.
2049 Mon Apr  5 02:14:35 1999  Warren Levy  <warrenl@cygnus.com>
2051         * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2052         method for comparison.
2054         * java/net/URLConnection.java (getContentLength): Implemented.
2055         (getContentType): Implemented.
2056         (getContentEncoding): Implemented.
2057         (getExpiration): Implemented.
2058         (getDate): Implemented.
2059         (getLastModified): Implemented.
2060         (getHeaderFieldInt): Implemented.
2061         (getHeaderFieldDate): Implemented.
2063 Fri Apr  2 18:04:52 1999  Warren Levy  <warrenl@cygnus.com>
2065         * java/net/URLConnection.java (toString): Implemented.
2066         (setContentHandlerFactory): Implemented.
2067         (setContentHandler): Wrote new private helper method.
2069 1999-04-01  Tom Tromey  <tromey@cygnus.com>
2071         * Makefile.in: Rebuilt.
2072         * Makefile.am ($(java_source_files:.java=.class): Reverted change
2073         of 1999-03-31; we always want to build all the .class files.
2074         Depend on java_source_files, not libgcj.zip.
2075         (nat_headers): Define in terms of ordinary_java_source_files.
2077 1999-03-31  Tom Tromey  <tromey@cygnus.com>
2079         * Makefile.in: Rebuilt.
2080         * Makefile.am (special_java_source_files): New macro.
2081         (java_source_files): Use it.
2082         (ordinary_java_source_files): New macro.
2083         (java_source_files): Use it.
2084         ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2085         creating headers for those files with hand-maintained headers.
2087         * include/javaprims.h: Regenerated namespace declarations.
2088         * classes.pl (scan): Include [0-9] in regexp for matching class
2089         names; for java.util.zip.CRC32.
2091         * Makefile.in: Rebuilt.
2092         * Makefile.am (nat_headers): Redefined to generate all possible
2093         header files.
2095         * java/util/zip/ZipException.java: In package java.util.zip, not
2096         java.net.
2098 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2100         * configure: Rebuilt.
2101         * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2102         eh-common.h when not building in tree with gcc.
2104         * Makefile.in: Rebuilt.
2105         * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2106         $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2107         nat_headers.
2108         ($(java_source_files:.java=.class)): New target.
2110         * Makefile.in: Rebuilt.
2111         * Makefile.am (java_source_files): Added
2112         java/net/HttpURLConnection.java and
2113         gnu/gcj/www/protocol/http/Connection.java.
2115 Tue Mar 30 15:20:45 1999  Warren Levy  <warrenl@cygnus.com>
2117         * gnu/gcj/www/protocol/http/Connection.java: New file.
2118         * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2119         * java/net/HttpURLConnection.java: New file.
2120         * java/net/URLConnection.java (getHeaderField): Implemented default.
2121         (getHeaderFieldKey): Implemented default method.
2123 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2125         * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2127         * java/util/zip/Deflater.java: Added copyright header.
2128         * java/util/zip/CRC32.java: Added copyright header.
2130         * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2131         that it is automatically generated.
2132         ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2134         * gnu/gcj/convert/BytesToUnicode.java,
2135         gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2136         gnu/gcj/convert/Input_EUCJIS.java,
2137         gnu/gcj/convert/Input_UTF8.java,
2138         gnu/gcj/convert/JIS0208_to_Unicode.cc,
2139         gnu/gcj/convert/JIS0212_to_Unicode.cc,
2140         gnu/gcj/convert/Output_8859_1.java,
2141         gnu/gcj/convert/Output_JavaSrc.java,
2142         gnu/gcj/convert/Output_UTF8.java,
2143         gnu/gcj/convert/UnicodeToBytes.java,
2144         gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2146         * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2148         * Makefile.in, configure: Rebuilt.
2149         * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2150         not if test subdir exists.
2151         (--enable-gcj-classes): Removed; gcj always used to generate
2152         .class files.
2153         (JAVA, JAVAC): Removed.
2154         (--enable-single-compilation, --enable-source-compilation):
2155         Removed.
2156         (here): New subst.
2157         (NATIVE): New conditional.
2158         * Makefile.am (toolexecdir): Renamed from tooldir to allow
2159         `install-exec' to work.
2160         (toolexeclibdir): Likewise.
2161         (toollib_LIBRARIES): Likewise.
2162         (AM_MAKEFLAGS): Don't pass tooldir.
2163         (JAVAC): New macro.
2164         (javao_files): Redefined.
2165         (java_source_files): New macro.
2166         (c_source_files): New macro.
2167         (c_files): Redefined in terms of c_source_files.
2168         (java_io_files, java_lang_files, java_net_files, java_text_files,
2169         java_util_files, gnu_files, java_files): Removed.
2170         (class_io_files, class_lang_files, class_net_files,
2171         class_text_files, class_util_files, class_gnu_files, class_files):
2172         Removed.
2173         (nat_source_files): New macro.
2174         (nat_files): Redefined in terms of nat_source_files.
2175         (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2176         java_source_files.  Removed no-such-file.c.
2177         (here): Removed.
2178         (ETAGS_ARGS): Removed.
2179         (TAGS_DEPENDENCIES): Likewise.
2180         (libgcj.zip): Depend on java_source_files.  Use $(here) and not
2181         pwd in rule.
2182         (src_io_files, src_lang_files, src_text_files, src_util_files,
2183         src_gnu_files): Removed.
2184         Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2185         (BUILT_SOURCES): Removed.
2186         (header-check): New target.
2187         (javadir): Removed.
2188         (noinst_PROGRAMS): New macro.
2189         ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2190         on MAINTAINER_MODE.
2191         ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2192         (gen-from-JIS): Build in top directory.
2193         (convert_source_files): New macro.
2194         (convert_SOURCES): New macro.
2195         (convert_LDFLAGS): Likewise.
2196         (convert_LINK): Likewise.
2197         (convert_LDADD): Likewise.
2198         (convert_DEPENDENCIES): Likewise.
2199         (convert): Removed.
2200         (gen-from-JIS): Removed.
2201         (gen_from_JIS_SOURCES): New macro.
2202         (gen_from_JIS_LDADD): Likewise.
2203         (gen_from_JIS_DEPENDENCIES): Likewise.
2205         * configure: Rebuilt.
2206         * configure.in (CANADIAN): Set to `yes', not `canadian'.
2207         (NULL_TARGET): Initialize to `no'.  Correctly examine $NULL_TARGET
2208         when defining conditional.
2210 Tue Mar 30 10:36:27 1999  Per Bothner  <bothner@cygnus.com>
2212         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  Remove these files.
2213         The Unicode Consortium does not permit their re-distribution.
2214         * Makefile.am, Makefile.in:  Add comments with URLs for removed files.
2215         (JIS0208.h, JIS0212.h):  Do not depend on removed files.
2217 Mon Mar 29 18:58:13 1999  Per Bothner  <bothner@cygnus.com>
2219         * natSystem.c (init_properties):  Use malloc, realloc, free after all.
2221 Mon Mar 29 13:41:02 1999  Per Bothner  <bothner@cygnus.com>
2223         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  New mapping tables
2224         from Unicode Consortium.
2225         * gnu/gcj/convert/{JIS0208.h,JIS0212.h}:  New generated headers.
2226         * gnu/gcj/convert/gen-from-JIS.c:  New utility for maintainers only.
2227         * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2228         New tables, generated using gen-from-JIS.
2229         * gnu/gcj/convert/Output_JavaSrc.java:  New UnicodeToBytes class.
2230         * gnu/gcj/convert/Output_UTF8.java:  Fix bug.
2231         * gnu/gcj/convert/Input_EUCJIS.java:  New BytesToUnicode class.
2232         * gnu/gcj/convert/natInput_EUCJIS.cc:  Native methods for new class.
2234         * gnu/gcj/convert/Convert.java:  New application.
2235         * Makefile.am, Makefile.in (convert):  New program, using Convert.
2236         Build the various JIS conversion tables (in maintainer mode).
2238 Fri Mar 26 16:51:30 1999  Warren Levy  <warrenl@cygnus.com>
2240         * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2242         * java/net/URL.java (URL): Deal with null property value.  Use "."
2243         as separator in building class name.
2244         * java/net/URLConnection.java: Implemented majority of stubbed methods.
2245         * java/net/URLStreamHandler.java (parseURL): Use "" in string
2246         manipulations instead of 'null'.  Comment cleanup.  Use 0 for the
2247         beginning of the substring rather than 'start'.
2249 1999-03-26  Tom Tromey  <tromey@cygnus.com>
2251         * include/java-chartables.h: Rebuilt.
2252         * include/java-chardecomp.h: New file.
2253         * chartables.pl: Generate output files directly.  Added support
2254         for generating decomposition header.
2255         (canonical_decomposition, full_decomposition): New globals.
2256         (DECOMPOSITION): New constant.
2257         (process_char): Call add_decomposition.
2258         (add_decomposition): New sub.
2259         (write_decompositions): New sub.
2261 1999-03-25  Tom Tromey  <tromey@cygnus.com>
2263         * java/text/CollationElementIterator.java: New file.
2265         * mauve-libjava: Omit StringTest.
2267 Wed Mar 24 15:17:49 1999  Warren Levy  <warrenl@cygnus.com>
2269         * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2270         without a '/' when parsing protocol.  Handle ref outside of parseURL.
2271         (hashCode): Implemented.
2272         (set): Don't expand -1 to default port.
2273         (getDefaultPort): Removed.
2275         * java/net/URLStreamHandler.java (parseURL): Implemented.
2276         (toExternalForm): Implemented.
2278 1999-03-23  Tom Tromey  <tromey@cygnus.com>
2280         * java/text/BreakIterator.java (getSentenceInstance):
2281         Implemented.
2282         * gnu/gcj/text/SentenceBreakIterator.java: New file.
2284         * Makefile.in: Rebuilt.
2285         * Makefile.am (nat_headers): Added IllegalAccessException.
2286         * java/lang/natClass.cc (newInstance): Throw
2287         IllegalAccessException, not IllegalAccessError.
2288         Include IllegalAccessException.h.
2290 1999-03-22  Tom Tromey  <tromey@cygnus.com>
2292         * gnu/gcj/text/LineBreakIterator.java: New file.
2293         * java/text/BreakIterator.java (getLineInstance): Implemented.
2295         * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2296         copy constructor private.
2297         (previous, next): Removed erroneous comment about line
2298         separators.
2299         (previous): Correctly recognize break between non-letter on the
2300         left and letter on the right.  Handle apostrophes correctly.
2302         * java/text/BreakIterator.java (getWordInstance): Implemented.
2303         * gnu/gcj/text/WordBreakIterator.java: New file.
2304         * gnu/gcj/text/CharacterBreakIterator.java: Extend
2305         BaseBreakIterator.
2306         * gnu/gcj/text/BaseBreakIterator.java: New file.
2308 1999-03-19  Tom Tromey  <tromey@cygnus.com>
2310         * java/text/BreakIterator.java: New file (partially stubbed out).
2311         * gnu/gcj/text/CharacterBreakIterator.java: New file.
2313         * include/config.h.in: Rebuilt.
2314         * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2315         (HAVE_TIMEZONE): Likewise.
2316         * configure: Rebuilt.
2317         * configure.in: Added timezone checks.
2318         * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2319         timezone.
2321 Fri Mar 19 15:26:35 1999  Per Bothner  <bothner@cygnus.com>
2323         * gnu/gcj/convert/BytesToUnicode.java:  New abstract class.
2324         * gnu/gcj/convert/UnicodeToBytes.java:  New abstract class.
2325         * gnu/gcj/convert/Input_8859_1.java:  New BytesToUnicode sub-class.
2326         * gnu/gcj/convert/Input_UTF8.java:  New BytesToUnicode sub-class.
2327         * gnu/gcj/convert/Output_8859_1.java:  New UnicodeToBytes sub-class.
2328         * gnu/gcj/convert/Output_UTF8.java:  New UnicodeToBytes sub-class.
2329         * java/io/InputStreamReader.java:  Rewrite to use BytesToUnicode.
2330         * java/io/OutputStreamWriter.java:  Rewrite to use UnicodeToBytes.
2332         * java/io/natFileDescriptorPosix.cc (open):  Use O_BINARY flag.
2333         (BSD_COMP):  Kludge needed for Solaris2.
2335 Fri Mar 19 01:49:46 1999  Warren Levy  <warrenl@cygnus.com>
2337         * java/net/URL.java (URL(java.net.URL, string): Moved code to
2338         URL(java.net.URL, string, URLStreamHandler) and call it with a
2339         null handler.  In latter constructor, added SecurityManager check.
2340         (set): Expect null handler on bad protocol rather than an exception.
2341         (setURLStreamHandler): Simplified exception handling; return null
2342         on invalid protocol.
2344 1999-03-18  Tom Tromey  <tromey@cygnus.com>
2346         * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2348         * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2349         methods.
2350         Include PrintStream.h, InputStream.h.
2351         * java/lang/System.java (ForwardingInputStream,
2352         ForwardingOutputStream): Removed.
2353         (setErr, setIn, setOut): Now native.
2355         Reverted patch from 1999-02-12 to work around problem in
2356         libgcc2.c.
2357         * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2358         (_Jv_eh_free): Use free.
2360         * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2361         for path name.  Minor formatting fixes.
2363         * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2365         * prims.cc (fail_on_finalization): New function.
2366         (_Jv_GCWatch): Likewise.
2368         * prims.cc (JvRunMain): Initialize `nullp'.
2369         (nullp): New global.
2370         (catch_segv): Throw nullp.
2372         * Makefile.in: Rebuilt.
2373         * Makefile.am (ZIP): In "null target" case, zip is found in the
2374         build tree.
2376         * prims.cc (_Jv_PrimClass): Initialize all elements of class
2377         object.
2378         Include Modifier.h.
2380         * java/lang/StringBuffer.java (StringBuffer): Don't use
2381         ensureCapacity to set initial capacity.
2382         (capacity): Subtract `length' from return result.
2384 Thu Mar 18 01:53:35 1999  Warren Levy  <warrenl@cygnus.com>
2386         * java/io/natFileDescriptorPosix.cc (open): Throw
2387         FileNotFoundException, but with filename and errno in msg.
2389 Wed Mar 17 11:09:30 1999  Warren Levy  <warrenl@cygnus.com>
2391         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2392         functionality folded into java/net/URL.java per spec.
2393         
2394         * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2395         than EEXIST for throwing FileNotFoundException.
2396         
2397         * java/net/URL.java: Folded in default URLStreamHandlerFactory 
2398         algorithm per JDK 1.2 doc.  Added SecurityManager checks.
2399         
2400         * java/net/URLStreamHandler.java (parseURL): Added stub.
2402 1999-03-15  Andrew Haley  <aph@cygnus.com>
2404         * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2405         by one errors.
2407 1999-03-15  Andrew Haley  <aph@cygnus.com>
2409         * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2410         support.
2412 1999-03-12  Tom Tromey  <tromey@cygnus.com>
2414         * prims.cc (catch_segv): New function.
2415         Include <signal.h> if HANDLE_SEGV defined.  Include
2416         NullPointerException.h.
2417         (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2418         handler.
2420         * java/text/SimpleDateFormat.java (equals): Ensure that object is
2421         a SimpleDateFormat, not just a DateFormat.
2422         (defaultCenturyStart, formatData, pattern): Now private.
2423         (append): Now `final'.  Use `NumberFormat.format'.
2424         (parse): Wrote.
2425         (SimpleDateFormat): Turn off groupin in NumberFormat object.
2427         * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2428         result.
2430         * java/text/MessageFormat.java (format): Use default MessageFormat
2431         constructor.
2432         (parse, parseObject): Wrote.
2434         * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2435         constructor.
2437 1999-03-12  Andrew Haley  <aph@cygnus.com>
2439         * java/lang/String.java (indexOf): Replace with native method for
2440         better performance.
2441         * java/lang/natString.cc (IndexOf): As above.
2443         * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2444         Argument check corrected.
2445         (init(jbyteArray,jint,jint,jstring)): Likewise.
2446         
2447         * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2448         1.2 compliant method.
2450         * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2451         added.
2452         * java/lang/Float.java (byteValue, shortValue): Likewise.
2454 1999-03-11  Tom Tromey  <tromey@cygnus.com>
2456         * java/text/DecimalFormat.java (parse): Wrote.
2458         * java/text/ChoiceFormat.java (parse): Set error index on
2459         ParsePosition object.
2461         * java/lang/Integer.java (parseInt): Throw exception on overflow
2462         when intermediate result is most negative number.  Changed
2463         overflow detection as well.
2464         * java/lang/Long.java (parseLong): Likewise.
2466         * configure, Makefile.in: Rebuilt.
2467         * configure.in (NULL_TARGET, CANADIAN): New conditionals.  Set
2468         CANADIAN when building in source tree that doesn't include gcc.
2469         * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2470         define.
2472         * java/text/ChoiceFormat.java (nextDouble): Correct some
2473         off-by-one errors when masking or adding.
2475         * java/text/DecimalFormat.java (format): Fill in FieldPosition
2476         parameter, if given.  Use `%', not IEEEremainder.
2477         (scanFix): Throw error if multiplier already set.
2478         (computePattern): Wrote.
2480 1999-03-11  Andrew Haley  <aph@cygnus.com>
2482         * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2483         52.
2484         (nextDouble): Corrected masking logic.  Handle interaction between
2485         `next' and negative numbers.
2487 Wed Mar 10 18:58:37 1999  Warren Levy  <warrenl@cygnus.com>
2489         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2490         * java/net/URL.java: Added general comments.
2492 1999-03-10  Tom Tromey  <tromey@cygnus.com>
2494         * java/text/ChoiceFormat.java (parse): Wrote.
2496         * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2498         * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2499         Create ChoiceFormat objects.
2500         (format): Special-case ChoiceFormat.
2501         (scanFormatElement): Include { and } in generated style string.
2503 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2505         * java/text/ChoiceFormat.java: New file.
2507 Tue Mar  9 17:09:18 1999  Warren Levy  <warrenl@cygnus.com>
2509         * java/net/BindException.java: Created.
2510         * java/net/ConnectException.java: Created.
2511         * java/net/ContentHandler.java: Created.
2512         * java/net/ContentHandlerFactory.java: Created.
2513         * java/net/FileNameMap.java: Created.
2514         * java/net/MalformedURLException.java: Created.
2515         * java/net/NoRouteToHostException.java: Created.
2516         * java/net/ProtocolException.java: Created.
2517         * java/net/ServerSocket.java (@author): Fixed typo.
2518         * java/net/Socket.java (@author): Fixed typo.
2519         * java/net/SocketImpl.java (@author): Fixed typo.
2520         * java/net/SocketImplFactory.java (@author): Fixed typo.
2521         * java/net/URL.java: Created - nearly complete.
2522         * java/net/URLConnection.java: Created - near-empty stub.
2523         * java/net/URLStreamHandler.java: Created - incomplete stub.
2524         * java/net/URLStreamHandlerFactory.java: Created.
2525         * java/net/UnknownServiceException.java: Created.
2527 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2529         * java/lang/System.java (ForwardingInputStream): New class.
2530         (ForwardingOutputStream): Likewise.
2531         (in, out, err): Now `final' forwarding streams.
2532         (setIn, setOut, setErr): Use appropriate method on forwarding
2533         streams.
2535         * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2536         class.
2538 Tue Mar  9 12:16:53 1999  Per Bothner  <bothner@cygnus.com>
2540         * java/util/zip/CRC32.java:  New class (just an incomplete stub).
2541         * java/util/zip/Checksum.java:  New interface (complete).
2542         * java/util/zip/Deflater.java:  New class (near-empty stub).
2543         * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2544         * java/util/zip/ZipConstants.java:  New interface (near-empty stub).
2545         * java/util/zip/ZipEntry.java:  New class (complete).
2546         * java/util/zip/ZipException.java:  New class (complete).
2547         * java/util/zip/ZipFile.java:  New class (incomplete stub).
2548         * java/util/zip/ZipOutputStream.java:  New class (incomplete stub).
2550 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2552         * java/text/MessageFormat.java (MessageFormatElement): Removed
2553         `public' specifiers.
2555         * java/text/DecimalFormat.java (scanFormat): Increment index
2556         before processing exponential format.  Fixed a couple typos in
2557         exception messages.
2558         (format): Correct normalization of exponent.
2560 1999-03-08  Tom Tromey  <tromey@cygnus.com>
2562         * java/text/SimpleDateFormat.java (parse): Throw
2563         IllegalArgumentException, not ParseException.
2565 1999-03-05  Tom Tromey  <tromey@cygnus.com>
2567         * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2568         when constructing DateFormatSymbols.  Initialize numberFormat
2569         field of superclass.
2571         * java/text/DateFormat.java (equals): Rewrote.
2572         (getAvailableLocales): New method.
2573         (getDateInstance): New methods.
2574         (getDateTimeInstance): Likewise.
2575         (getTimeInstance): Likewise.
2576         (getInstance): New method.
2577         (computeInstance): New method.
2579         * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2580         for US.
2581         (safeGetResource): New method.
2582         (DateFormatSymbols): Use Locale paramater.
2583         (equals): Now protected.
2584         Made instance variables private.
2586 1999-03-04  Tom Tromey  <tromey@cygnus.com>
2588         * java/text/DecimalFormat.java: New file.
2590         * java/text/NumberFormat.java (groupingUsed,
2591         maximumFractionDigits, maximumIntegerDigits,
2592         minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2593         New fields.
2594         (setDecimalSeparatorAlwaysShown, setMultiplier,
2595         setPositivePrefix): Removed.
2596         (setMinimumFractionDigits, setMaximumFractionDigits):
2597         Implemented.
2598         (format): Now final.
2599         Added many new methods.
2601         * Makefile.in: Rebuilt.
2602         * Makefile.am (gnu_files): New macro.
2603         (java_files): Added gnu_files.
2604         (class_gnu_files): New macro.
2605         (class_files): Use it.
2606         (src_gnu_files): New macro.
2607         (gnu.o): New target.
2608         (javao_files): Added gnu.o.
2610         * gnu/gcj/text/LocaleData_en_US.java: New file.
2611         * gnu/gcj/text/LocaleData_en.java: New file.
2612         * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2613         (DecimalFormatSymbols): Use ResourceBundle to find resources.
2614         (safeGetString): New method.
2615         (safeGetChar): Likewise.
2617 1999-03-03  Tom Tromey  <tromey@cygnus.com>
2619         * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2620         constants.
2622         * java/text/FieldPosition.java (equals): Don't check for null
2623         object; instanceof does this.
2625         * java/util/Locale.java (clone): New method.
2626         (equals): Likewise.
2628 Wed Mar  3 17:20:15 1999  Anthony Green  <green@cygnus.com>
2630         * doc/cni.sgml: New file.
2632 1999-03-03  Tom Tromey  <tromey@cygnus.com>
2634         * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2636         * java/text/DecimalFormatSymbols.java: New file.
2638 1999-03-02  Tom Tromey  <tromey@cygnus.com>
2640         * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2641         exists.
2642         * configure: Rebuilt.
2643         * configure.in: Check for sys/filio.h.
2645         * java/lang/Runtime.java (checkLink): Throw NullPointerException
2646         if required.
2647         (load): Always throw UnsatisfiedLinkError.
2648         (loadLibrary): Likewise.
2650 1999-03-02  Anthony Green  <green@cygnus.com>
2652         * LIBGCJ_LICENSE: New file.
2653         * LIBJAVA_LICENSE: Removed.
2654         * Many files: libjava now libgcj.
2655         
2656 1999-03-02  Tom Tromey  <tromey@cygnus.com>
2658         * include/java-chartables.h: Rebuilt.
2659         * chartables.pl (print_block): Make table `const'.
2660         (print_numerics): Likewise.
2661         (print_single_map): Likewise.
2662         (print_all_block): Likewise.
2663         (print_case_table): Likewise.
2664         (print_fast_tables): Likewise.
2665         * java/lang/natCharacter.cc (table_search): `table' argument now
2666         const.
2668 1999-03-01  Tom Tromey  <tromey@cygnus.com>
2670         * java/util/Date.java (before, after): Inverted logic.
2672         * java/util/Date.java (parse): Handle case where first character
2673         in string is open parenthesis.
2674         (skipParens): Rewrote.
2676         * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2677         * java/lang/reflect/natField.cc: Include <stdlib.h>.
2679         * java/util/Date.java (parse): Correctly compute beginning of
2680         punctuation.
2682         * java/util/Hashtable.java (get): Throw NullPointerException if
2683         key is null.
2684         (containsKey): Likewise.
2686         * java/util/Properties.java (list): Truncate value to 37
2687         characters and add `...'.
2689         * java/lang/Byte.java (parseByte): Pass `radix' to
2690         Integer.parseInt.
2692         * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2693         fprintf.
2694         Include System.h, PrintStream.h.
2696         * java/lang/natSystem.cc (init_properties): Don't use malloc,
2697         realloc, or free.
2699         * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2700         exists.
2701         * configure: Rebuilt.
2702         * configure.in: Check for getpwuid_r.  Look for `pwd.h', not
2703         `pwd.d'.
2705         * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2707         * java/lang/SecurityManager.java: Import java.net.*.
2708         (checkMulticast): New methods.
2710 Fri Feb 26 14:54:52 1999  Per Bothner  <bothner@cygnus.com>
2712         * Makefile.am, Makefile.in (java/lang/reflect/Method.h):  New rule.
2713         (nat_files):  Add java/lang/reflect/natArray.o.
2714         (nat_headers):  Add Field.h and NoSuchFieldException.h.
2715         
2716         * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2717         _Jv_GetStaticShortField, _Jv_GetStaticByteField):  New inline methods.
2718         (_Jv_FromReflectedField):  Fix buglet.
2719         * include/jvm.h (_Jv_NewMultiArray):  New declaration.
2720         * include/java-assert.h (JvFail):  Pass message string to _Jv_Abort.
2721         * prims.cc (_Jv_Abort):  Include message in print-out.
2723         * prims.cc (_Jv_equal):  New method (compare Utf8Const and jstring).
2724         (new_multi_array):  Rename to _Jv_NewMultiArray.  Make non-static.
2725         * include/jvm.h (_Jv_NewMultiArray, _Jv_equal):  New declarations.
2727         * configure.in (AC_CHECK_HEADERS), configure:  Add pwd.h.
2728         * include/config.h.in (HAVE_PWD_H):  New feature macro.
2729         * java/lang/natSystem.cc (init_properties):  Set file.encoding,
2730         user.name, user.home, user.dir.
2732         * java/lang/reflect/Array.java:  New class.
2733         * java/lang/reflect/natArray.cc:  New native methods.
2734         * include/javaprims.h:  Declare java::lang::reflect::Array.
2736         * java/lang/Class.h (getField):  New private method.  Add friends.
2737         * java/lang/Class.java (getField):  Add private overload.
2738         * java/lang/natClass.cc (getField, getField, getDeclaredField,
2739         getDeclaredMethods):  Add working implementations.
2740         * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2741         Finish implementation, except for access control.
2743         * java/lang/reflect/Modifier.java (toString):  New overload.
2744         * include/java-method.h:  New file.
2745         * java/lang/reflect/Method.java (index):  Replaced by offset field.
2746         Remove various private fields - get them from _Jv_Field instead.
2747         * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2748         New method implementations.
2750         * java/text/NumberFormat.java:  Add a bunch of methods.
2752 Mon Feb 22 17:52:34 1999  Per Bothner  <bothner@cygnus.com>
2754         * java/lang/StringBuffer.java (getChars):  Fix bounds checks.
2756 1999-02-26  Tom Tromey  <tromey@cygnus.com>
2758         * include/config.h.in: Rebuilt.
2759         * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2760         GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2761         HAVE_GETHOSTBYADDR_R): New defines.
2762         * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2763         gethostbyaddr_r if available.
2764         Include <errno.h>.
2765         * configure: Rebuilt.
2766         * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2768         * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2769         Don't use JvFree.
2770         (lookup): Likewise.
2771         Include <jvm.h>.
2772         * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2773         * prims.cc (_Jv_AllocBytesChecked): New function.
2775         * Makefile.in: Rebuilt.
2776         * Makefile.am (SUBDIRS): Removed `test'.
2777         * configure: Rebuilt.
2778         * configure.in: Don't build test/Makefile.
2779         * test/*: Removed all files.
2781 Thu Feb 25 17:27:37 1999  Warren Levy  <warrenl@cygnus.com>
2783         * java/lang/reflect/Constructor.java: Make class final to match spec.
2784         * java/lang/reflect/Method.java: Ditto.
2786 1999-02-25  Tom Tromey  <tromey@cygnus.com>
2788         * java/net/natInetAddress.cc: Include <sys/types.h> before
2789         <sys/socket.h>.
2790         * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2791         <sys/socket.h>.
2793         * java/net/natInetAddress.cc: Declare gethostname if required.
2794         * include/config.h.in: Rebuilt.
2795         * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2796         * configure: Rebuilt.
2797         * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2798         declared in unistd.h.
2800 1999-02-24  Tom Tromey  <tromey@cygnus.com>
2802         * Makefile.in: Rebuilt.
2803         * Makefile.am (java/io/FileDescriptor.h): Removed target.
2804         * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2805         from private to "none".
2807         * include/javaprims.h: Regenerated class declarations with new
2808         classes.pl.
2809         * classes.pl (scan): Only generate decls for java.lang, java.io,
2810         and java.util.
2812 1999-02-24  Tom Tromey  <tromey@cygnus.com>
2814         * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2815         (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2817 1999-02-23  Tom Tromey  <tromey@cygnus.com>
2819         * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2820         not already defined.
2821         * java/io/natFile.cc (_REENTRANT): Only define if not already
2822         defined.
2823         * include/config.h.in: Rebuilt.
2824         * acconfig.h (HAVE_BOEHM_GC): New define.
2825         * configure: Rebuilt.
2826         * configure.in: Define HAVE_BOEHM_GC if using it.
2827         * posix-threads.cc: Include boehm-config.h and gc.h if
2828         HAVE_BOEHM_GC.
2829         * include/posix-threads.h: Added explanatory note about Boehm GC.
2831         * java/io/BufferedReader.java (readLine): Only return null when
2832         EOF seen before any characters read.  (In particular, an empty
2833         line should not return null.)
2835         * java/io/BufferedInputStream.java (read): Only refill once per
2836         invocation.
2838         * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2839         java.lang.Character.classify12, java.lang.String.hash,
2840         java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2841         java.text.SimpleDateFormat.getAndSet2DigitYearStart
2843         * java/text/StringCharacterIterator.java (setIndex): No error if
2844         index == end.
2845         (next): Check for `pos == end', not `end - 1'.
2846         (StringCharacterIterator): Allow `pos == end'.  Explicitly check
2847         for null text in each constructor.
2848         (clone): Fixed order of arguments to constructor.
2850 1999-02-22  Tom Tromey  <tromey@cygnus.com>
2852         * include/config.h.in: Rebuilt.
2853         * acconfig.h (HAVE_INET6): New define.
2854         (HAVE_SOCKLEN_T): Likewise.
2855         * java/net/PlainSocketImpl.java: Added copyright header.
2856         * java/net/natPlainSocketImpl.cc: Added copyright header.
2857         (union SockAddr): Use HAVE_INET6, not AF_INET6.
2858         (bind): Likewise.
2859         (connect): Likewise.
2860         (accept): Likewise.
2861         (socklen_t): New typedef.
2862         (accept): Use socklen_t.
2863         * java/net/natInetAddress.cc: Added copyright header.
2864         (HAVE_GETHOSTNAME): Don't define.
2865         (HAVE_INET_ADDR): Likewise.
2866         (lookup): Fixed typo.
2867         (aton): Don't use `address' as name of local variable.
2868         (lookup): Use HAVE_INET6, not AF_INET6.
2870         * configure: Rebuilt.
2871         * configure.in: Look for functions inet_aton, inet_addr,
2872         gethostname, inet_pton, uname.  Check for sockaddr_in6 structure.
2873         Check for socklen_t typedef.
2875         * exception.cc (__throw): Declare as __noreturn__.
2877 Mon Feb 22 15:27:35 1999  Per Bothner  <bothner@cygnus.com>
2879         * Makefile.am, Makefile.in:  Also build java/net.
2880         (java/io/FileDescriptor.h):  Add friend java::net::PlainSocketImpl.
2882         * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2883         * java/util/natGregorianCalendar.cc:  #define _REENTRANT.
2885         * prims.cc (_Jv_malloc, _Jv_Free):  New functions.
2886         * include/cni.h (JvMalloc, JvFree):  New inline functions.
2887         (JvThrow):  Add __noreturn__ attribute.
2888         * include/javaprims.h (_Jv_Malloc, _Jv_Free):  New declarations.
2889         (_Jv_Throw):  Add __noreturn__ attribute.
2891         * java/net/PlainSocketImpl.java:  Init fnum to -1.
2892         * java/net/ServerSocket.java:  Add missing throws clauses.
2893         * java/lang/Socket.java:  For the constructor taking a SocketImpl,
2894         don't call create on the latter.  Instead, other constructors
2895         have to explicitly call SocketImpl.create.
2896         * java/net/natPlainSocketImpl.cc (accept):  Change variable addrlen
2897         from size_t to int, to match ::accept prototype.
2898         * java/net/natInetAddress.cc:  Use JvFree rather than free.
2901 1999-02-22  Tom Tromey  <tromey@cygnus.com>
2903         * include/javaprims.h: Added new classes.
2904         * java/text/StringCharacterIterator.java: New file.
2905         * java/text/CharacterIterator.java: New file.
2907         * java/text/ParseException.java (errorOffset): Now private.
2909 Mon Feb 22 12:54:53 1999  Per Bothner  <bothner@cygnus.com>
2911         * java/net:  New package.
2912         * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2913         Socket.java,SocketException.java,SocketImpl.java,
2914         SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2915         natPlainSocketImpl.cc}:  New classes.
2917         * configure.in (AC_CHECK_HEADERS):  Also check for <sys/socket.h>,
2918         <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2919         * include/config.h.in:  Add place-holders for HAVE_ARPA_INET_H,
2920         HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2922         * classes.pl:  Translate package into "namespace", not "class".
2923         * include/javaprims.h:  Update class list, using "namespace".
2925 1999-02-21  Tom Tromey  <tromey@cygnus.com>
2927         * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2928         Define when appropriate.
2930 1999-02-20  Tom Tromey  <tromey@cygnus.com>
2932         * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2933         as a single byte and \u07ff as two bytes.
2934         (_Jv_GetStringUTFLength): Likewise.
2935         * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2936         with 0x0f, not 0x1f.
2938 1999-02-19  Tom Tromey  <tromey@cygnus.com>
2940         * java/io/DataOutputStream.java (writeUTF): When encoding
2941         character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2942         * java/io/DataInputStream.java (readUTF): Mask second byte of
2943         3-byte character with 0x3f, not 0x1f.
2945         * java/io/DataInputStream.java (readLong): Cast result of
2946         readUnsignedByte to long before using.
2948         * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2949         it is not null.
2951         * mauve-libjava: Re-enabled java.io.DataInputOutput.
2952         * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2953         argument to avoid warning.
2954         * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2955         argument to avoid warning.
2957 1999-02-18  Tom Tromey  <tromey@cygnus.com>
2959         * mauve-libjava: Omit java.io.DataInputOutput and
2960         java.io.Utf8Encoding.
2962 1999-02-17  Tom Tromey  <tromey@cygnus.com>
2964         * Makefile.in: Rebuilt.
2965         * Makefile.am (nat_headers): Added InterruptedIOException.h.
2966         * java/io/natFileDescriptorPosix.cc: Include
2967         InterruptedIOException.h, Thread.h.
2968         (write): Throw InterruptedIOException when required.
2969         (read): Likewise.
2970         * posix-threads.cc: Include <signal.h>.
2971         (_Jv_ThreadInterrupt): New function.
2972         (INTR): New define.
2973         (handle_intr): New function.
2974         (_Jv_InitThreads): Register handle_intr via sigaction.
2975         * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
2976         * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
2977         * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
2978         * include/no-threads.h (_Jv_ThreadInterrupt): New function.
2980 1999-02-19  Andrew Haley  <aph@cygnus.com>
2982         * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
2983         of subgroups.
2984         (ThreadGroup (int)): Set the maximum priority of the initial
2985         ThreadGroup.
2987 1999-02-18  Andrew Haley  <aph@cygnus.com>
2989         * java/lang/natClass.cc (forName): Check for the case where a
2990         classname is the name of an array and call FindClassFromSignature
2991         to find the Class.
2993 1999-02-18  Andrew Haley  <aph@cygnus.com>
2995         * java/lang/StringBuffer (insert (int, String)): Move up any
2996         characters above the insert position and increase the length of
2997         the string buffer by the length of the argument.
2998         (insert (int, char[])): Likewise.
2999         (insert (int, char)): Likewise.
3000         (StringBuffer (String)): The initial capacity of the string buffer
3001         is 16 plus the length of the argument.
3002         (getChars): Add a JDK 1.2 FIXME.
3004 1999-02-18  Andrew Haley  <aph@cygnus.com>
3006         * java/lang/Short.java (parseShort(String, int)): Pass radix to
3007         Integer.parseInt.
3009 1999-02-18  Andrew Haley  <aph@cygnus.com>
3011         * java/lang/Double.java (equals): Use a bit-by-bit comparision
3012         instead of floating-point equality.  This is necessary for
3013         correct floating-point Hashtables.
3014         * java/lang/Float.java (equals): Ditto.
3016 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3018         * java/util/Properties.java (list): Truncate value to 37
3019         characters and add "...".
3021 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3023         * java/util/Vector.java (Vector): Throw IllegalArgumentException
3024         if initCap is negative.
3025         (contains): Implement JDK1.2-style handling of null argument.
3026         (removeElement): Likewise.
3027         (indexOf): Likewise.  Also, correctly handle case where idx is
3028         negative.
3029         (lastIndexOf): Likewise.
3031 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3033         * java/lang/natString.cc (init): Increment source pointer in
3034         loop.
3036 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3038         * exception.cc: Include NullPointerException.h.
3039         (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3041 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3043         * Makefile.in: Rebuilt.
3044         * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3046 Sat Feb 13 20:25:09 1999  Bonzo Armstrong  <bonzo@cygnus.com>
3048         * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3049         we're compiling canadian.
3050         * configure: Regenerated.
3052 1999-02-12  Andrew Haley  <aph@cygnus.com>
3054         * java/lang/sf_rint.c: Resurrected.  This file shouldn't have been
3055         deleted from libgcj.
3057 1999-02-12  Tom Tromey  <tromey@cygnus.com>
3059         * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3060         (_Jv_eh_free): Don't call free.
3061         Don't declare malloc or free.
3063 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3065         * configure.host: Use `libgcj', not `libjava'.  Removed `echo'.
3067 1999-02-11  Andrew Haley  <aph@cygnus.com>
3069         * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3070         wf_fmod.c: Deleted.  These are all files from fdlibm which aren't
3071         needed by java.lang.*.
3072         * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3073         wf_fmod.o: Removed from libjava.a.
3075 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3077         * include/javaprims.h: Reverted previous change; with it
3078         exception.cc can't compile.
3080         * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3082         * include/config.h.in: Rebuilt.
3083         * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3084         HAVE_SCHED_YIELD.
3085         * configure: Rebuilt.
3086         * configure.in: Check for sched_yield.  Look in thread library for
3087         all thread functions.
3089         * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3090         no recursive mutexes.
3091         (_Jv_MutexDestroy): Define when required.
3092         (_Jv_MutexLock): Likewise.
3093         (_Jv_MutexUnlock): Likewise.
3094         (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3095         * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3096         (_Jv_Mutex_t): New structure.
3097         (_Jv_MutexDestroy): Only define if recursive mutexes available.
3098         (_Jv_MutexLock): Likewise.
3099         (_Jv_MutexUnlock): Likewise.
3101 1999-02-10  Tom Tromey  <tromey@cygnus.com>
3103         * aclocal.m4, configure, Makefile.in: Rebuilt.
3104         * acinclude.m4: Renamed libjava to libgcj.  Updated to use
3105         automake 1.4.
3106         * configure.in: Changed to track library changes.
3107         * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3108         (AM_CXXFLAGS): Likewise.
3109         (data_DATA): Likewise.
3110         (AM_CFLAGS): Likewise.
3111         (JC1FLAGS): Likewise.
3112         (libgcj_a_SOURCES): Likewise.
3113         (EXTRA_libgcj_a_SOURCES): Likewise.
3114         (libgcj_a_DEPENDENCIES): Likewise.
3115         (libgcj_a_LIBADD): Likewise.
3116         (libgcj.zip): Likewise.
3117         (CLEANFILES): Likewise.
3118         ($(nat_headers)): Likewise.
3119         (java/lang/FirstThread.h): Likewise.
3120         (java/lang/ThreadGroup.h): Likewise.
3121         (java/lang/String.h): Likewise.
3122         (java/lang/reflect/Field.h): Likewise.
3123         (BUILT_SOURCES): Likewise.
3124         (maintainer-check): Likewise.
3125         (CONFIG_STATUS_DEPENDENCIES): Likewise.
3126 Tue Feb  9 11:06:38 1999  Anthony Green  <green@cygnus.com>
3128         * java/util/natGregorianCalendar.cc (computeFields): Only use
3129         gmtime_r and localtime_r when configured for posix threads.
3131         * java/io/natFile.cc (get_entry): Only use readdir_r when
3132         configured for posix threads.
3134         * java/util/natGregorianCalendar.cc: Update copyright notice.
3135         * java/util/TimeZone.java: Ditto.
3136         * java/util/SimpleTimeZone.java: Ditto.
3138 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3140         * java/io/PrintStream.java (line_separator): New constant.
3141         (print): Use line_separator, not `file.separator' property.
3142         (println): Use line_separator.
3144         * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3145         when trying to instantiate Class.
3147         * java/lang/ThreadGroup.java (ThreadGroup): Throw
3148         NullPointerException if argument is null.
3150         * java/lang/Thread.java (setName): Throw NullPointerException, not
3151         IllegalArgumentException.
3152         (Thread): Likewise.
3154 1999-02-08  Andrew Haley  <aph@cygnus.com>
3156         * java/lang/natClass.cc (newInstance): Don't allow anyone to
3157         create new Classes with Class.newInstance().
3159         * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3160         semiciolon to end of an array Class's signature if the elements of
3161         the array aren't themselves arrays.
3163         * java/lang/natSystem.cc (arraycopy): The size of an element of an
3164         array of objects is always sizeof(jobject), not the size of the
3165         object to which the reference points.
3167 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3169         * java/util/BitSet.java (and): Throw NullPointerException when
3170         required.
3171         (or): Likewise.
3172         (xor): Likewise.
3174         * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3175         if argument is negative.
3176         (clear): Correctly compute `offset'.  Throw
3177         IndexOutOfBoundsException when required.
3178         (set): Likewise.
3179         (get): Likewise.  Also, return correct value.
3180         (ensure): Changed meaning of argument.
3181         (toString): Wrap contents in `{}'; put spaces after commas.
3182         (hashCode): Don't try to examine elements off the end of array.
3183         (or): Correctly include bits past the end of this bit set.
3184         (xor): Likewise.
3186 Thu Feb  4 12:48:03 1999  Warren Levy  <warrenl@cygnus.com>
3188         * configure.host (mips-tx39-*): Use jmr3904dram.ld link script 
3189         instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3191 1999-02-04  Andrew Haley  <aph@cygnus.com>
3193         * java/lang/natClass.cc (Class::forName): Remove code which mapped
3194         '/' in signatures to '.'
3195         (Class::getName): Likewise,
3196         (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3197         signature.
3198         * java/lang/natFirstThread.cc (run): Change '/' in main's
3199         signature to '.'.
3201 1999-02-03  Andrew Haley  <aph@cygnus.com>
3203         * configure.host: -ffloat-store added when compiling libjava on
3204         x86.  fdlibm apparently relies on this.
3206         * java/lang/ThreadGroup.java (add): throw an exception if the
3207         ThreadGroup has been destroyed.
3209         * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3210         behaviour.
3212 1999-01-27  Tom Tromey  <tromey@cygnus.com>
3214         * java/lang/StringBuffer.java (StringBuffer): Handle null
3215         argument.
3217 1999-01-21  Tom Tromey  <tromey@cygnus.com>
3219         * java/lang/natFirstThread.cc (run): Don't require main to be
3220         public.
3222 Wed Jan 20 15:44:56 1999  Anthony Green  <green@cygnus.com>
3224         * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3226 1999-01-20  Tom Tromey  <tromey@cygnus.com>
3228         * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3229         StringClass.
3230         (rehash): Likewise.
3231         (intern): Likewise.
3232         (unintern): Likewise.
3233         (_Jv_NewStringUtf8Const): Likewise.
3235         * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3236         Character.isLetter, to see if character is self-quoting.  Also,
3237         correctly handle quoted characters.
3238         (parse): Fixed typo.  Also now throws ParseException.
3240 1999-01-15  Tom Tromey  <tromey@cygnus.com>
3242         * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3244         * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3245         _Jv_SyncInfo has `init' member.
3247         * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3248         coop_mutex_unlock.
3250         * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3251         IllegalMonitorStateException if unlock fails.
3253         * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3254         zero.
3255         (_Jv_NewObjectArray): Likewise.
3257 1999-01-14  Tom Tromey  <tromey@cygnus.com>
3259         * java/lang/Character.java (isJavaIdentifierPart): Allow
3260         LETTER_NUMBER characters.
3262         * chartables.pl (process_char): Fixed error messages.
3264         * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3265         * chartables.pl: Updated comments.  Changed detection of non-digit
3266         numeric values (no longer miss \u00b2 and friends).
3268         * java/lang/Character.java (isJavaIdentifierPart): Recognize
3269         currency symbols and connector punctuation.
3270         (isIdentifierIgnorable): Make 7f-9f ignorable.
3272         * prims.cc (_Jv_NewObjectArray): Check for overflow.
3273         (_Jv_NewPrimArray): Likewise.
3274         (SIZE_T_MAX): New define.
3276         * java/lang/ClassLoader.java (system): Now private and final.
3278         * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3279         null.
3281         * configure: Rebuilt.
3282         * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3283         well.
3284         * exception.cc: Include gansidecl.h.
3286 1999-01-14  Andrew Haley  <aph@cygnus.com>
3288         * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3289         corrected: they didn't treat -0.0 and NaNs correctly.
3291 Wed Jan 13 13:32:22 1999  Anthony Green  <green@cygnus.com>
3293         * nogc.cc: Use calloc to zero out memory.
3295 1999-01-11  Tom Tromey  <tromey@cygnus.com>
3297         * java/lang/natClass.cc (isInstance): Return false if this class
3298         is primitive, not if class of `obj' is primitive.
3299         (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3301         * java/io/SequenceInputStream.java (close): Handle case where `in'
3302         is already null.
3304         * java/text/DateFormat.java (format): New method.
3306         * mauve-libjava: Omit java.text.DateFormat.
3308 1999-01-08  Tom Tromey  <tromey@cygnus.com>
3310         * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3311         argument.
3312         * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3313         argument.
3314         (_Jv_CondNotifyAll): Likewise.
3316         * configure: Rebuilt.
3317         * configure.in: Change --enable-source-compilation logic to work
3318         correctly.
3320 1999-01-07  Andrew Haley  <aph@cygnus.co.uk>
3322         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
3323         and RUNTESTFLAGS from AM_MAKEFLAGS.
3324         * configure.in: AM_RUNTESTFLAGS added.
3325         * configure.host: AM_RUNTESTFLAGS added.
3326         * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3327         * configure: rebuilt.
3328         * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3330         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3331         argv[] made conditional because embedded targets may not have
3332         argv[].
3333         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3334         explanatory comments added in call to super.
3336         * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3337         exception thrown in the test harness itself added.
3338         * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3340 Wed Jan  6 17:27:39 1999  Per Bothner  <bothner@cygnus.com>
3342         * java/text/DateFormatSymbols.java (zoneStringsDefault):  Make static.
3344 1999-01-06  Tom Tromey  <tromey@cygnus.com>
3346         * java/io/natFile.cc (get_entry): New function.
3347         (performList): Use get_entry.
3348         * include/config.h.in: Rebuilt.
3349         * acconfig.h (HAVE_READDIR_R): New define.
3350         * configure: Rebuilt.
3351         * configure.in: Look for readdir_r.
3353         * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3355         * java/util/natDate.cc: Added copyright header.
3357 1999-01-05  Tom Tromey  <tromey@cygnus.com>
3359         * include/config.h.in: Rebuilt.
3360         * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3361         HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3362         * configure: Rebuilt.
3363         * configure.in: Check for access, stat, mkdir, rename, rmdir,
3364         unlink, and realpath.
3365         * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3366         (stat): Conditionalize on HAVE_STAT.
3367         (attr): Likewise.
3368         (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3369         (performMkdir): Conditionalize on HAVE_MKDIR.
3370         (performRenameTo): Conditionalize on HAVE_RENAME.
3371         (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3373         * include/config.h.in: Rebuilt.
3374         * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3375         * configure: Rebuilt.
3376         * configure.in: Check for gmtime_r and localtime_r.  For cross
3377         builds, assume they exist.
3379         * mauve-libjava: Include java.text.DateFormatSymbols again.
3380         * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3381         from setAmPmStrings.
3383         * mauve-libjava: Omit java.text.DateFormatSymbols.
3385 1999-01-04  Tom Tromey  <tromey@cygnus.com>
3387         * java/io/PushbackReader.java: `off' already includes `numBytes'.
3389         * java/io/LineNumberReader.java (read): Decrement `count' in
3390         loop.
3392         * java/io/BufferedWriter.java (write): Correctly determine when
3393         incoming data would overrun buffer.  Flush buffer if write causes
3394         it to become full.
3396         * java/io/BufferedOutputStream.java (write): Increment `count'
3397         after copying data into buffer.
3399         * java/io/FilterOutputStream.java (close): Call flush first.
3401         * java/io/PipedReader.java (read): If read causes `out' to catch
3402         up with `in', then set `in' to -1.
3404         * java/io/LineNumberInputStream.java (read): If no bytes read,
3405         return -1.  If no bytes requested, return 0.
3407         * java/lang/StringBuffer.java (insert): If `str' is null, use
3408         string "null".
3410 1998-12-30  Anthony Green  <green@cygnus.com>
3412         * README: Removed.
3413         * LIBJAVA_LICENSE, COPYING.LIB: Created.
3415 1998-12-23  Tom Tromey  <tromey@cygnus.com>
3417         * java/io/PushbackInputStream.java (read): `off' already includes
3418         `numBytes'.
3420 1998-12-17  Tom Tromey  <tromey@cygnus.com>
3422         * Makefile.in: Rebuilt.
3423         * Makefile.am (GCJ_canadian): Include target_alias.
3425         * java/lang/natFirstThread.cc (run): Require main's class to be
3426         public.
3428 1998-12-16  Tom Tromey  <tromey@cygnus.com>
3430         * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3432         * java/util/ResourceBundle.java (getBundle): Throw
3433         NullPointerException if locale argument is null.
3435         * java/lang/natClass.cc (forName): Throw NullPointerException if
3436         argument is null.
3437         Include NullPointerException.h.
3439 1998-12-14  Tom Tromey  <tromey@cygnus.com>
3441         * java/lang/Character.java (Character): Implement Comparable.
3442         (compareTo): New methods.
3444         * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'.  Use
3445         correct country and language codes.
3446         (UK, US): New constants.
3447         (setDefault): Language codes are lower-case.
3449         * java/lang/natClass.cc (getDeclaredConstructor): New method.
3450         (getDeclaredConstructors): Likewise.
3451         (getDeclaredField): Likewise.
3452         (getDeclaredFields): Likewise.
3453         (getDeclaredMethod): Likewise.
3454         (getDeclaredMethods): Likewise.
3455         (getField): Likewise.
3456         (getFields): Likewise.
3457         (getMethod): Likewise.
3458         (getMethods): Likewise.
3459         * java/lang/Class.java: Declare new methods.
3460         * java/lang/Class.h: Declare new methods.
3462         * java/lang/natString.cc: Removed `#pragma implementation'.
3463         * include/cni.h (_Jv_GetStringChars): New function.
3464         * Makefile.in: Rebuilt.
3465         * Makefile.am (java/lang/String.h): Don't generate definition for
3466         _Jv_GetStringChars.
3468         * java/lang/natString.cc: Added `#pragma implementation'.
3470         * Makefile.in: Rebuilt.
3471         * Makefile.am (libjava.zip): Put build directory first in class
3472         path to avoid bug in compiler.
3474 1998-12-14  Anthony Green  <green@cygnus.com>
3476         * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3478         * include/javaprims.h: Add EventObject, ListResourceBundle and
3479         ResourceBundle.
3481 1998-12-13  Anthony Green  <green@cygnus.com>
3483         * mauve-libjava: Run the ResourceBundle tests.
3485         * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3486         NULL.
3488 Sun Dec 13 18:11:21 1998  Per Bothner  <bothner@cygnus.com>
3490         * configure.in, configure:  Make --enable-gcj-classes and
3491         --enable-source-compilation the default.  (Nervously...)  Yeah!
3492         Based on a patch from Tom Tromey.
3494 1998-12-13  Tom Tromey  <tromey@cygnus.com>
3496         * java/util/EventObject.java: New file.
3497         * java/util/EventListener.java: New file.
3499         * include/javaprims.h: Updated class declarations.
3500         * Makefile.in: Rebuilt.
3501         * Makefile.am (nat_headers): Added Constructor.h.
3502         (java/lang/String.h): Don't inline String::length().
3503         * java/lang/Class.h (getConstructor, getConstructors): Declare.
3504         * java/lang/Class.java (initializeClass, hackRunInitializers,
3505         hackTrampoline): No need to mark `final'.
3506         (getConstructor, getConstructors): Declare.
3507         * java/lang/reflect/Field.java (equals): New method.
3508         * java/lang/natClass.cc (getConstructor): New method.
3509         (getConstructors): Likewise.
3510         Include Method.h, Field.h, Constructor.h.
3511         * java/lang/reflect/Constructor.java: New file.
3512         * java/lang/reflect/Method.java (toString): No space before open
3513         paren.
3514         (equals): Simplified.
3516 1998-12-13  Anthony Green  <green@cygnus.com>
3518         * java/util/ResourceBundle.java: New file.
3519         * java/util/ListResourceBundle.java: New file.
3521 1998-12-12  Tom Tromey  <tromey@cygnus.com>
3523         * java/lang/System.java (in, out, err): Now buffered streams by
3524         default.
3526         * include/javaprims.h: Updated class declarations.
3527         * Makefile.in: Rebuilt.
3528         * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3529         InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3530         Long.h, Boolean.h.
3531         (nat_files): Added natMethod.o.
3532         * java/lang/reflect/natMethod.cc: New file.
3533         * java/lang/reflect/Field.java (Field): Now extends
3534         AccessibleObject.
3535         * java/lang/reflect/AccessibleObject.java: New file.
3536         * java/lang/reflect/InvocationTargetException.java: New file.
3538 1998-12-11  Tom Tromey  <tromey@cygnus.com>
3540         * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3541         java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3542         Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3544         * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3546 1998-12-09  Tom Tromey  <tromey@cygnus.com>
3548         * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3549         HAVE_CTIME_R.
3551         * java/lang/natCharacter.cc (toTitleCase): Handle case where
3552         character is already titlecase.
3554         * java/lang/Character.java (isJavaLetter): Follow spec.
3555         (isJavaLetterOrDigit): Likewise.
3557         * java/util/GregorianCalendar.java (gregorianCutover): Append
3558         `L'.
3560         * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3562 1998-12-08  Tom Tromey  <tromey@cygnus.com>
3564         * java/lang/reflect/Modifier.java (toString): Replace second
3565         `static' with `synchronized'.
3567         * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3568         * java/lang/Object.h (Object::hack12_6): Declare.
3569         * java/lang/Object.java (hack12_6): New function.
3571 1998-12-07  Tom Tromey  <tromey@cygnus.com>
3573         * include/java-array.h (__JArray::clone): Removed decl.
3574         * prims.cc (__JArray::clone): Removed.
3575         * java/lang/natObject.cc (clone): Incorporate code to clone an
3576         array.
3578         * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3579         (_Jv_FindArrayClass): Set dtable_method_count on new class.
3580         Correctly use dtable_method_count.
3582 1998-12-07  Andrew Haley  <aph@cygnus.co.uk>
3584         * java/lang/Double.java (isInfinite, isNaN): Handle correct
3585         IEEE754 values.
3587 1998-12-06  Anthony Green  <green@cygnus.com>
3589         * mauve-libjava: Don't test ResourceBundle.
3591 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3593         More JDK 1.2 spec fixes:
3594         * java/util/Date.java (millis): Now private.
3595         * java/text/DateFormat.java (DateFormat): Constructor now
3596         protected.
3597         * java/lang/Void.java (Void): New private constructor.
3598         * java/lang/System.java (System): New private constructor.
3599         * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3600         body.
3601         (currentClassLoader): New method.
3602         (currentLoadedClass): New method.
3603         * java/lang/Math.java (Math): New private constructor.
3604         * java/lang/Compiler.java (Compiler): New private constructor.
3605         * java/lang/Class.java (Class): New private constructor.
3606         * java/lang/Double.java (toString): Removed access specifier from
3607         two-argument `toString' method.
3609 1998-12-04  Andrew Haley  <aph@cygnus.co.uk>
3611         * java/lang/s_rint.c (rint): Make the variable w volatile; this
3612         causes it to be flushed from an fp register (where it may be
3613         longer than double precision) to a double in memory.  This is
3614         essential to ensure correct rounding behaviour.
3616 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3618         * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3619         function.
3621         * java/lang/Character.java (isIdentifierIgnorable): Added comment
3622         explaining apparent divergence from JDK 1.2.
3624 1998-12-04  Per Bothner  <bothner@cygnus.com>
3626         * include/no-threads.h:  Remove unused parameter names.
3627         This silences a bunch of warnings.
3629 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3631         * include/config.h.in: Rebuilt.
3632         * acconfig.h (HAVE_CTIME_R): New symbol.
3634 1998-12-03  Tom Tromey  <tromey@cygnus.com>
3636         * mauve-libjava: Added many more categories to reject.
3638         Changes to follow JDK1.2 spec:
3639         * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3640         setErr, setIn, setOut): No need to be `final'.
3641         * java/lang/natObject.cc (wait): `nanos' argument is an int.
3642         * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3643         * java/lang/Object.java (wait): `nanos' argument is an int.
3644         * java/lang/VirtualMachineError.java: Class is abstract.
3645         * java/lang/ThreadDeath.java: Made constructors public.
3646         * java/io/FileDescriptor.java (FileDescriptor): Added missing
3647         constructor.
3649 Thu Dec  3 20:29:38 1998  Warren Levy  <warrenl@cygnus.com>
3651         * java/text/DateFormatSymbols.java (getAmPmStrings,
3652         getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3654 Thu Dec  3 19:21:53 1998  Warren Levy  <warrenl@cygnus.com>
3656         * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3657         writeDouble, writeByte, writeBytes, writeChar, writeChars,
3658         writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3659         and 1.2.
3661         * java/lang/IllegalThreadStateException.java
3662         (IllegalThreadStateException): Changed extending class to match spec.
3664         * java/lang/NumberFormatException.java
3665         (java/lang/NumberFormatException): Changed extending class to match
3666         spec.
3668         * java/util/Observer.java (Observer): Changed sig to match JCL.
3670 Thu Dec  3 19:05:26 1998  Warren Levy  <warrenl@cygnus.com>
3672         * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3673         writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3674         signature to match JDK 1.1 and 1.2.
3676 Thu Dec  3 16:47:42 1998  Warren Levy  <warrenl@cygnus.com>
3678         * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3679         * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3680         * Makefile.in, configure: Rebuilt.
3682         * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3683         name.
3685 1998-12-02  Tom Tromey  <tromey@cygnus.com>
3687         * mauve-libjava: New file.
3689         The remaining `-W -Wall' fixes:
3690         * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3691         avoid warning.
3692         * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3693         `else'.
3694         * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3695         warning.
3696         * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3697         avoid warning.
3698         * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3699         ambiguous `else'.
3700         * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3701         warning.
3702         * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3703         suggestion.
3704         * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3705         suggestion.
3706         * java/lang/mprec.c (Balloc): Removed unused variable.
3707         (mult): Added parentheses per gcc suggestion.
3708         (pow5mult): Likewise.
3709         (lshift): Likewise.
3710         (ulp): Likewise.
3711         (b2d): Likewise.
3712         (d2b): Likewise.
3713         * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3714         suggestion.  Added cast to `int' to avoid signed/unsigned
3715         comparison.
3716         * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3717         parameter.
3718         (IsAssignableFrom): Likewise.
3719         (_Jv_JNI_GetObjectField): Likewise.
3720         (_Jv_JNI_GetByteField): Likewise.
3721         (_Jv_JNI_GetShortField): Likewise.
3722         (_Jv_JNI_GetIntField): Likewise.
3723         (_Jv_JNI_GetLongField): Likewise.
3724         (_Jv_JNI_GetStringLength): Likewise.
3725         (_Jv_JNI_ToReflectedField): Likewise.
3726         (_Jv_JNI_FromReflectedField): Likewise.
3727         (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3729         * Makefile.in: Rebuilt.
3730         * Makefile.am (AM_CFLAGS): Define conditionally.
3731         (WARNINGS): New macro.
3732         (AM_CXXFLAGS): Include WARNINGS.
3733         * configure: Rebuilt.
3734         * configure.in (USING_GCC): New conditional.
3736         * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3738         * java/lang/Character.java: Changed classification constants to
3739         type `byte' to match JDK 1.2 docs.
3741 1998-12-01  Tom Tromey  <tromey@cygnus.com>
3743         Some fixes to be `-W -Wall' clean:
3744         * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3745         (_Jv_MarkArray): Likewise.
3746         * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3747         (to_upper_title): Likewise.
3748         (isTitleCase): Likewise.
3749         (toTitleCase): Likewise.
3750         (getNumericValue): Likewise.
3751         (isLowerCase): Likewise.
3752         * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3753         (avoids compiler warning).
3754         * java/lang/natClass.cc (getDeclaredClasses): Always return a
3755         value.
3756         (getDeclaringClass): Likewise.
3757         (_Jv_LookupInterfaceMethod): Likewise.
3758         (_Jv_NewClass): Removed name of unused parameter.
3759         * exception.cc (_Jv_type_matcher): Removed unused variable.
3760         (_Jv_setup_eh_info): Removed name of unused parameter.
3761         * prims.cc (_Jv_NewArray): Always return a value.
3762         (_Jv_FindClassFromSignature): Likewise.
3763         * include/java-field.h (getNameUtf8Const): Removed name of unused
3764         parameter.
3765         * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3766         unused parameter.
3767         (_Jv_ThreadSetPriority): Likewise.
3769         * java/lang/natString.cc (hashChars): Now static.
3771         * java/lang/FirstThread.java (FirstThread): Now final.
3773         * java/io/File.java (performMkdir, performRenameTo): Now private.
3775         * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3776         if no time function defined.
3778         * configure: Rebuilt.
3779         * configure.in: Look for ctime_r, ctime.
3780         * java/util/Date.java (toString): Now native.
3781         * java/util/natDate.cc (toString): Rewrote.
3783 1998-11-27  Andrew Haley  <aph@viagra.cygnus.co.uk>
3785         * Add LDFLAGS line to allow TX39 test cases to link when cross
3786         compiling.
3788 1998-11-23  Anthony Green  <green@cygnus.com>
3790         * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3791         no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3792         quick-threads.cc, include/boehm-gc.h, include/cni.h,
3793         include/java-array.h, include/java-assert.h, include/java-field.h,
3794         include/javaprims.h, include/jni.h, include/jvm.h,
3795         include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3796         include/quick-threads.h, java/io/BufferedInputStream.java,
3797         java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3798         java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3799         java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3800         java/io/CharArrayWriter.java,
3801         java/io/CharConversionException.java, java/io/DataInput.java,
3802         java/io/DataInputStream.java, java/io/DataOutput.java,
3803         java/io/DataOutputStream.java, java/io/EOFException.java,
3804         java/io/File.java, java/io/FileDescriptor.java,
3805         java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3806         java/io/FileOutputStream.java, java/io/FileReader.java,
3807         java/io/FileWriter.java, java/io/FilenameFilter.java,
3808         java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3809         java/io/FilterReader.java, java/io/FilterWriter.java,
3810         java/io/IOException.java, java/io/InputStream.java,
3811         java/io/InputStreamReader.java,
3812         java/io/InterruptedIOException.java,
3813         java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3814         java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3815         java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3816         java/io/PipedReader.java, java/io/PipedWriter.java,
3817         java/io/PrintStream.java, java/io/PrintWriter.java,
3818         java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3819         java/io/RandomAccessFile.java, java/io/Reader.java,
3820         java/io/SequenceInputStream.java, java/io/Serializable.java,
3821         java/io/StreamTokenizer.java,
3822         java/io/StringBufferInputStream.java, java/io/StringReader.java,
3823         java/io/StringWriter.java, java/io/SyncFailedException.java,
3824         java/io/UTFDataFormatException.java,
3825         java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3826         java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3827         java/io/natFileDescriptorPosix.cc,
3828         java/lang/AbstractMethodError.java,
3829         java/lang/ArithmeticException.java,
3830         java/lang/ArrayIndexOutOfBoundsException.java,
3831         java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3832         java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3833         java/lang/Class.java, java/lang/ClassCastException.java,
3834         java/lang/ClassCircularityError.java,
3835         java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3836         java/lang/ClassNotFoundException.java,
3837         java/lang/CloneNotSupportedException.java,
3838         java/lang/Cloneable.java, java/lang/Comparable.java,
3839         java/lang/Compiler.java, java/lang/Double.java,
3840         java/lang/Error.java, java/lang/Exception.java,
3841         java/lang/ExceptionInInitializerError.java,
3842         java/lang/FirstThread.java, java/lang/Float.java,
3843         java/lang/IllegalAccessError.java,
3844         java/lang/IllegalAccessException.java,
3845         java/lang/IllegalArgumentException.java,
3846         java/lang/IllegalMonitorStateException.java,
3847         java/lang/IllegalStateException.java,
3848         java/lang/IllegalThreadStateException.java,
3849         java/lang/IncompatibleClassChangeError.java,
3850         java/lang/IndexOutOfBoundsException.java,
3851         java/lang/InstantiationError.java,
3852         java/lang/InstantiationException.java, java/lang/Integer.java,
3853         java/lang/InternalError.java, java/lang/InterruptedException.java,
3854         java/lang/LinkageError.java, java/lang/Long.java,
3855         java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3856         java/lang/NoClassDefFoundError.java,
3857         java/lang/NoSuchFieldError.java,
3858         java/lang/NoSuchFieldException.java,
3859         java/lang/NoSuchMethodError.java,
3860         java/lang/NoSuchMethodException.java,
3861         java/lang/NullPointerException.java, java/lang/Number.java,
3862         java/lang/NumberFormatException.java, java/lang/Object.h,
3863         java/lang/Object.java, java/lang/OutOfMemoryError.java,
3864         java/lang/Process.java, java/lang/Runnable.java,
3865         java/lang/Runtime.java, java/lang/RuntimeException.java,
3866         java/lang/SecurityException.java, java/lang/SecurityManager.java,
3867         java/lang/Short.java, java/lang/StackOverflowError.java,
3868         java/lang/String.java, java/lang/StringBuffer.java,
3869         java/lang/StringIndexOutOfBoundsException.java,
3870         java/lang/System.java, java/lang/Thread.java,
3871         java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3872         java/lang/Throwable.java, java/lang/UnknownError.java,
3873         java/lang/UnsatisfiedLinkError.java,
3874         java/lang/UnsupportedOperationException.java,
3875         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3876         java/lang/Void.java, java/lang/natCharacter.cc,
3877         java/lang/natClass.cc, java/lang/natDouble.cc,
3878         java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3879         java/lang/natMath.cc, java/lang/natObject.cc,
3880         java/lang/natRuntime.cc, java/lang/natString.cc,
3881         java/lang/natSystem.cc, java/lang/natThread.cc,
3882         java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3883         java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3884         java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3885         java/text/FieldPosition.java, java/text/Format.java,
3886         java/text/NumberFormat.java, java/text/ParseException.java,
3887         java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3888         java/util/BitSet.java, java/util/Calendar.java,
3889         java/util/ConcurrentModificationException.java,
3890         java/util/Date.java, java/util/Dictionary.java,
3891         java/util/EmptyStackException.java, java/util/Enumeration.java,
3892         java/util/GregorianCalendar.java, java/util/Hashtable.java,
3893         java/util/Locale.java, java/util/MissingResourceException.java,
3894         java/util/NoSuchElementException.java, java/util/Observable.java,
3895         java/util/Observer.java, java/util/Properties.java,
3896         java/util/Random.java, java/util/SimpleTimeZone.java,
3897         java/util/Stack.java, java/util/StringTokenizer.java,
3898         java/util/TimeZone.java, java/util/TooManyListenersException.java,
3899         java/util/Vector.java, java/util/natGregorianCalendar.cc:  Updated
3900         copyright notices.
3902         * exception.cc: Include eh-common.h instead of duplicating 
3903         code.
3905 1998-11-23  Tom Tromey  <tromey@cygnus.com>
3907         * configure.host: Don't add `-O2' to libjava_flags.  Only add
3908         `-Os' to libjava_flags once.
3910 1998-11-17  Andrew Haley  <aph@viagra.cygnus.co.uk>
3912         * Makefile.am: add LIBJAVA_JAVAFLAGS.
3913         * Makefile.in: likewise
3914         * acconfig.h: add ECOS conditional for configure.h
3915         * config.h.in: likewise
3916         * configure: add test for --with-ecos
3917         * configure.in: likewise
3918         * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3919         rename call to avoid name clash.
3920         * java/lang/natSystem.cc: add eCos clock support.
3921         * java/util/natGregorianCalendar.cc: add eCos support.
3922         
3923 1998-11-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
3925         * Makefile.am, Makefile.in, configure.host: tx39 build option 
3926         "-G 0" added.
3928 Wed Nov 18 18:55:25 1998  Warren Levy  <warrenl@cygnus.com>
3930         * java/io/BufferedReader.java: Added more comments for clarity.
3931         (mark): Used more mnemonic name for local var extraBuffSpace.
3933         * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3934         confusion with private method of same name in superclass.
3935         (skipRedundantLF): Set fields in special case to avoid infinite
3936         recursion.  Check if markPos has been invalidated in special case.
3937         (readLine): Rewritten to use readLine method of superclass.
3938         (skip): Incorporated code from lineEnd.
3940 Wed Nov 18 02:46:03 1998  Warren Levy  <warrenl@cygnus.com>
3942         * java/io/BufferedReader.java (readLine): New method.
3943         (lineEnd): new private method.
3944         (mark): Track special case for readLine of getting '\r' at the
3945         end of the buffer.
3946         (reset): Ditto.
3947         (read): Ditto.
3948         (fill): Ditto.
3949         (skip): Ditto.
3951         * java/io/InputStreamReader.java (read): Return number chars skipped
3952         rather than requested.
3954         * java/lang/StringBuffer.java (append): Update count and differentiate
3955         between field and local variable.
3957         * java/util/Date.java (parseTz): Evaluate in minutes rather than
3958         seconds.  Deal with military style time.
3959         (parse): Consistently treat all timezones in minutes until final
3960         calculation.  Flag as non-local timezone.  Return value in milliseconds.
3961         (setTime): Adjust for year offset from 1900.
3962         (UTC): Adjust for year offset from 1900.
3964 1998-11-17  Tom Tromey  <tromey@cygnus.com>
3966         * configure: Rebuilt.
3967         * configure.in: Switch on host, not target.
3969         * Makefile.in: Rebuilt.
3970         * Makefile.am (GCJ_no): New macro.
3971         (GCJ): Use @CANADIAN@.
3972         (GCJH_no): New macro
3973         (GCJH_canadian): New macro.
3974         (GCJH): Use @CANADIAN@.
3975         (ZIP_no): New macro.
3976         (ZIP_canadian): New macro.
3977         (ZIP): Use @CANADIAN@.
3978         * aclocal.m4, configure: Rebuilt.
3979         * configure.in (CANADIAN): Compute and subst.
3981 Tue Nov 17 12:44:37 1998  Anthony Green  <green@cygnus.com>
3983         * java/io/FileDescriptor.java (finalize): Only close file
3984         descriptor if valid.
3986 1998-11-17  Tom Tromey  <tromey@cygnus.com>
3988         * prims.cc (_Jv_InitRuntime): Removed.
3990 1998-11-16  Tom Tromey  <tromey@cygnus.com>
3992         * java/io/FileOutputStream.java (close): Only close file
3993         descriptor if valid.
3994         (finalize): New method.
3996         * prims.cc (_Jv_NewObjectArray): Set vtbl last.
3997         (_Jv_NewPrimArray): Likewise.
3998         * boehm.cc (_Jv_RegisterFinalizer): Use
3999         GC_REGISTER_FINALIZER_NO_ORDER.
4000         (GC_GENERIC_MALLOC): New define.
4001         (_Jv_AllocObj): Use it.
4002         (_Jv_AllocArray): Likewise.
4003         (_Jv_AllocBytes): Likewise.
4004         (_Jv_MarkObj): Just return if vtbl not set.
4005         (_Jv_MarkArray): Likewise.
4006         (MAYBE_MARK): New macro; use everywhere.
4007         (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4009 Mon Nov 16 14:57:53 1998  Warren Levy  <warrenl@cygnus.com>
4011         * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4012         to a jlong before calculation to prevent overflow.
4014 1998-11-16  Tom Tromey  <tromey@cygnus.com>
4016         * Makefile.in: Rebuilt.
4017         * Makefile.am (nat_headers): Fixed typo.
4019 1998-11-15  Tom Tromey  <tromey@cygnus.com>
4021         * java/lang/Class.h (Class::getName): Removed definition.
4022         * Makefile.in: Rebuilt.
4023         * Makefile.am (nat_headers): Added InstantiationException.h,
4024         NoSuchMethodException.h.
4025         * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4026         (init_name): New global.
4027         (hackRunInitializers): Use clinit_name.
4028         Include InstantiationException.h, NoSuchMethodException.h.
4029         (newInstance): Do some error checking (but not all).  Call
4030         constructor.
4031         (forName): Throw exception if class not found.
4032         (getName): New method.
4033         (forName): Transform class name from external format to internal
4034         format before lookup.
4036 1998-11-15  Anthony Green  <green@cygnus.com>
4038         * java/lang/Class.h (Class::forName): Method is static.
4040         * java/lang/natClass.cc (newInstance): Add simple implementation.
4041         (forName): Ditto.
4043 Sat Nov 14 18:25:13 1998  Per Bothner  <bothner@cygnus.com>
4045         * java/lang/Class.h (Class::accflags):  Must be unsigned short (not
4046         int), for compatibility with jc1.
4048 1998-11-14  Tom Tromey  <tromey@cygnus.com>
4050         * include/config.h.in: Rebuilt.
4051         * acconfig.h (LINUX_THREADS): New define.
4052         * configure: Rebuilt.
4053         * configure.in: Define LINUX_THREADS if using POSIX threads on
4054         Linux.  Look for pthread_mutexattr_setkind_np function.
4055         * posix-threads.cc (throw_cleanup): New function.
4056         (really_start): Push cleanup function.
4057         (_Jv_ThreadCancel): New function.
4058         (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4059         (_Jv_ThreadInitData): Set `exception' field in new structure.
4060         (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4061         thread.
4062         (_Jv_ThreadWait): New function.
4063         (_Jv_InitThreads): Initialize daemon globals.
4064         (FLAG_DAEMON): New macro.
4065         (really_start): Notify daemon_cond when non-daemon thread exits.
4066         Include <java/lang/System.h>.
4067         (struct starter): `object' field now a thread.
4068         (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4069         * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4070         (_Jv_ThreadWait): Removed definition.
4071         (_Jv_Thread_t): Added `exception' field.
4072         (_Jv_ThreadCancel): Removed definition.
4074 1998-11-13  Tom Tromey  <tromey@cygnus.com>
4076         * Makefile.in: Rebuilt.
4077         * Makefile.am (libjava.zip): Compute javac before changing
4078         directory.
4080         * Makefile.in: Rebuilt.
4081         * Makefile.am (libjava.zip): Include directory entries.
4083         * Makefile.in: Rebuilt.
4084         * Makefile.am (expanded): New macro.
4085         (GCJ): Use it.
4087 1998-11-12  Tom Tromey  <tromey@cygnus.com>
4089         * prims.cc (clone): New function.
4090         * include/java-array.h (__JArray::clone): Removed definition.
4092         * java/lang/natObject.cc (clone): Don't assert that class is not
4093         an array; array's `clone' method just calls this one.
4095         * Makefile.in: Rebuilt.
4096         * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4097         Now creates zip file.  Changed all users.
4098         (ZIP): New macro.
4099         (data_DATA): New macro.
4101 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4103         * configure: Rebuilt.
4104         * configure.in: Recognize --enable-java-gc, not --enable-gc.
4106 Wed Nov 11 18:13:46 1998  Warren Levy  <warrenl@cygnus.com>
4108         * java/io/InputStream.java (reset): Add msg to thrown exception.
4110 Wed Nov 11 17:57:02 1998  Warren Levy  <warrenl@cygnus.com>
4112         * java/io/LineNumberInputStream.java: Rewritten.
4114         * java/io/StringBufferInputStream.java: Removed extraneous import.
4116 Wed Nov 11 15:19:33 1998  Warren Levy  <warrenl@cygnus.com>
4118         * java/io/StringBufferInputStream.java: Rewritten.
4120         * java/util/Date.java (parseMonth): Optimize.
4121         (parseDayOfWeek): Created.
4122         (parse): Optimize to use parseDayOfWeek.
4124 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4126         * java/lang/StringBuffer.java (append): Handle case where STR is
4127         `null'.
4129         * include/javaprims.h: Regenerated class declarations.
4131         * configure: Rebuilt.
4132         * configure.in: Added --enable-gcj-classes,
4133         --enable-single-compilation, --enable-source-compilation flags.
4134         * Makefile.in: Rebuilt.
4135         * Makefile.am (java_io_files): New macro.
4136         (java_lang_files): Likewise.
4137         (java_text_files): Likewise.
4138         (java_util_files): Likewise.
4139         (java_files): Use new macros.
4140         (java-io.o): New target.
4141         (java-lang.o): Likewise.
4142         (java-text.o): Likewise.
4143         (java-util.o): Likewise.
4144         (src_io_files): New macro.
4145         (src_lang_files): Likewise.
4146         (src_text_files): Likewise.
4147         (src_util_files): Likewise.
4148         (class_io_files): New macro.
4149         (class_lang_files): Likewise.
4150         (class_text_files): Likewise.
4151         (class_util_files): Likewise.
4152         (class_files): Use new macros.
4153         (javao_files): Define conditionally.
4154         (.java.o): New target.
4155         ($(javao_files)): New target.
4156         (GCJ): new macro.
4157         (GCJH): Added $(EXEEXT).
4158         (CLASSPATH_ENV): Removed.
4159         (GCJCOMPILE): New macro.
4161 Wed Nov 11 12:03:15 1998  Warren Levy  <warrenl@cygnus.com>
4163         * java/util/Date.java (parse): Written from scratch.
4165 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4167         * java/lang/Throwable.java (toString): Correct sense of test for
4168         determining when to include detail message in result.
4170         * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4171         constructor.
4173 Fri Nov  6 16:30:20 1998  Tom Tromey  <tromey@ferrule.cygnus.com>
4175         * java/lang/Class.h: Use _Jv_RegisterClasses, not
4176         _Jv_RegisterClass.
4177         * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4178         (_Jv_RegisterClass): Use it.
4179         * include/jvm.h (_Jv_RegisterClasses): Declare.
4180         * java/lang/natObject.cc (init): Removed.
4181         (sync_init): Never call _Jv_InitializeSyncMutex.
4182         (_Jv_InitializeSyncMutex): Don't set `init'.
4183         * prims.cc (JvRunMain): Don't run init functions.
4185 Thu Nov  5 17:14:37 1998  Tom Tromey  <tromey@sanguine.cygnus.com>
4187         * java/lang/natClass.cc (initializeClass): Set state before
4188         resolving constants.
4190         * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4191         (STATE_RESOLVED): New macro.
4192         (initializeClass): Call resolveConstants.
4193         (hackRunInitializers): Don't call resolveConstants.
4194         (_Jv_FindArrayClass): Move short-circuit return for primitive
4195         element types earlier in function.
4197 1998-11-03  Tom Tromey  <tromey@hoser.cygnus.com>
4199         * prims.cc (no_memory): New global.
4200         (_Jv_makeUtf8Const): Throw no_memory.
4201         (_Jv_AllocObject): Likewise.
4202         (_Jv_NewObjectArray): Likewise.
4203         (_Jv_NewPrimArray): Likewise.
4204         (JvRunMain): Initialize no_memory.
4206 Tue Nov  3 17:15:45 1998  Warren Levy  <warrenl@cygnus.com>
4208         * java/io/FileInputStream.java: Corrected date comment.
4209         * java/io/SequenceInputStream.java: Rewritten.
4211 Mon Nov  2 17:20:31 1998  Tom Tromey  (tromey@cygnus.com)
4213         * java/lang/FirstThread.java (die): New method.
4214         * java/lang/natFirstThread.cc (die): Removed.
4215         (DIE): New macro.
4216         (run): Use `DIE', not `die'.
4218 Mon Nov  2 16:23:41 1998  Warren Levy  <warrenl@cygnus.com>
4220         * java/io/CharArrayReader.java (read): Move check into synchronized
4221         block to prevent a close while in progress.
4222         (reset): Ditto.
4223         (skip): Ditto.
4224         * java/io/PushbackReader.java (read): Ditto.
4225         (ready): Ditto.
4226         (unread): Ditto.
4227         * java/io/StringReader.java (mark): Ditto.
4228         (read): Ditto.
4229         (reset): Ditto.
4230         (skip): Ditto.
4232 Mon Nov  2 15:56:20 1998  Warren Levy  <warrenl@cygnus.com>
4234         * java/io/PipedInputStream.java: Updated status.
4235         (connect): Added code to prevent infinite recursion and to
4236         differentiate exception causes.
4237         (read): Added code to differentiate exception causes.
4238         (receive): Made exception pass string with the cause.
4240         * java/io/PipedOutputStream.java: Updated status.
4241         (connect): Added code to call connect at the other end of the pipe.
4243 Mon Nov  2 00:22:12 1998  Warren Levy  <warrenl@cygnus.com>
4244         
4245         * java/io/PipedInputStream.java (connect): Throw exception if
4246         already connected to the same output stream.
4247         (read): Do bounds checking first.
4249 Sun Nov  1 22:48:55 1998  Warren Levy  <warrenl@cygnus.com>
4251         * java/io/PipedInputStream.java: Added private boolean outClosed.
4252         (available): Removed check if output stream is open.
4253         (close): Mark the buffer as empty so available returns 0.
4254         (read): Check if the output stream was closed and then return EOF
4255         when the buffer is empty.
4256         (receive): Mark the output stream as closed when passed a -1.
4258         * java/io/PipedOutputStream.java (close): Notify the input stream
4259         that there's no more data coming.
4260         (connect): Added a FIXME comment to note more coordination needed
4261         with PipedInputStream.
4262         (flush): Added a FIXME comment to mark what this method might do
4263         instead of nothing.
4265 Fri Oct 30 14:27:21 1998  Warren Levy  <warrenl@cygnus.com>
4267         * java/io/PipedInputStream.java: Rewritten.
4269 1998-10-30  Tom Tromey  <tromey@cygnus.com>
4271         * java/lang/Throwable.java: Rewrote from scratch.
4273         * java/lang/Class.h (Class): Don't mention newMultiArray.
4274         * prims.cc (newMultiArray): Removed.
4275         (_Jv_NewMultiArray): Removed.
4276         (newArray): Removed.
4277         (new_multi_array): New function.
4278         (_Jv_NewMultiArray): Rewrote from scratch.
4280         * include/javaprims.h: Regenerated class declarations.
4281         * classes.pl (scan): Don't declare PrimClass.
4282         * include/cni.h (JvPrimClass): Use new names for classes.
4283         * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4284         added _Jv_PrimClass.
4285         * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4286         (_Jv_initPrimClass): Removed.
4287         (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4288         (_Jv_AllocObject): Added comment.
4289         (_Jv_NewObjectArray): Likewise.
4290         (_Jv_NewPrimArray): Likewise.
4292 1998-10-29  Tom Tromey  <tromey@cygnus.com>
4294         * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4295         (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4296         new dtable.
4297         * java/lang/Class.h (Class): Added `dtable_method_count' field.
4299         * java/lang/natObject.cc (init): New global.
4300         (sync_init): Call _Jv_InitializeSyncMutex if required.
4302         * Makefile.in: Rebuilt.
4303         * Makefile.am (nat_headers): Added ClassLoader.h.
4304         * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4305         * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4306         internalAddClass, lookupArray no longer friends.
4307         _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4308         _Jv_FindArrayClass now friends.
4309         * java/lang/natClass.cc (HASH_LEN): New macro.
4310         (HASH_UTF): Likewise.
4311         (loaded_classes): New global.
4312         (_Jv_FindClass): New function.
4313         (ClassClass): New define.
4314         (_Jv_FindClassInCache): New function.
4315         (_Jv_RegisterClass): Likewise.
4316         (_Jv_NewClass): Likewise.
4317         Include <string.h>
4318         (ObjectClass): New define.
4319         (CloneableClass): New define.
4320         * prims.cc (_Jv_FindClass): Removed.
4321         (simpleLookupClass): Removed.
4322         (insertClass): Removed.
4323         (CLASSHASHSZ): Removed.
4324         (classPool): Removed.
4325         (_Jv_RegisterClass): Removed.
4326         (internalAddClass): Removed.
4327         (ClassClass): Removed.
4328         (RuntimeClass): Removed.
4329         (lookupArray): Removed.
4330         (CloneableClass): Removed.
4331         (CLASSMAXSIG): Removed.
4332         Rearranged file to group related functions together.
4333         (_Jv_IsInstanceOf): Moved to natClass.cc.
4334         (abort_final): Removed.
4335         Removed some unused includes.
4336         (classFromSig): Removed.
4337         (_Jv_FindClassFromSignature): New function.
4338         (_Jv_initPrimClass): Renamed.
4339         (getClass): Removed.
4341 Thu Oct 29 23:17:17 1998  Warren Levy  <warrenl@cygnus.com>
4343         * java/io/FileDescriptor.java (finalize): Throws IOException
4344         instead of Throwable.
4346         * java/io/FileInputStream.java: Rewritten.
4348         * java/io/StreamTokenizer.java (nextToken): Unread newline character
4349         at the end of a comment.
4351 1998-10-29  Tom Tromey  <tromey@cygnus.com>
4353         * include/javaprims.h: Regenerated class declarations.
4354         * classes.pl (scan): Don't special-case ClassLoader.
4356         * prims.cc (processClass): Removed.
4357         (_Jv_InitClass): Removed.
4358         Removed all CSTATE_ macros.
4359         (resolveConstants): Removed.
4360         (MAXDIMS): Removed.
4361         (_Jv_NewMultiArray): Cleaned up.
4362         * Makefile.in: Rebuilt.
4363         * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4364         * java/lang/Class.h (Class): Declare new methods.  processClass no
4365         longer a friend.
4366         * java/lang/Class.java (hackTrampoline): New method.
4367         (initializeClass): Declare.
4368         (hackRunInitializers): Declare.
4369         * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4370         (initializeClass): New method.
4371         (hackRunInitializers): New method.
4372         (init_name, void_signature): Moved from prims.cc.
4373         (_Jv_InitClass): New function.
4374         (isAssignableFrom): Don't call processClass.
4375         (STATE_NOTHING): New macro.
4376         (resolveConstants): New function.
4377         Include Thread.h.
4378         (ErrorClass): New define.
4380         * java/lang/Class.java (getClassLoader): Declare.
4381         * java/lang/ClassLoader.java: Rewrote from scratch.
4383         * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4384         AbstractMethodError.h, IllegalAccessError.h,
4385         NoClassDefFoundError.h.
4386         * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4387         * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4388         longer static.  Changed return type.
4389         * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4390         * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4391         * prims.cc (findMethodLocal): Removed.
4392         (processClass): Use _Jv_GetMethodLocal.
4394 1998-10-28  Tom Tromey  <tromey@cygnus.com>
4396         * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4397         * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4398         friend.
4399         * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4400         (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4402         * include/jni.h: Added copyright header.
4403         * include/javaprims.h: Added copyright header.
4404         * include/java-field.h: Added copyright header.
4405         * include/java-array.h: Added copyright header.
4406         * include/cni.h: Added copyright header.
4408         * include/javaprims.h: Regenerated class declarations using
4409         classes.pl; now they are complete.
4410         * classes.pl: New file.
4412         * java/lang/natMath.cc: Include <config.h>.
4413         * java/lang/reflect/natField.cc: Include <config.h>.
4414         * java/util/NativeUtil.java: Removed.
4415         * Makefile.in: Rebuilt.
4416         * Makefile.am (nat_headers): Added Math.h.
4417         * java/lang/Math.h: Removed.
4418         * java/util/natGregorianCalendar.cc: Added copyright header.
4419         Include <config.h>.
4420         * java/lang/natFloat.cc: Added copyright header.
4421         * java/lang/Byte.java: Added copyright header.
4422         * java/lang/Void.java: Added copyright header.
4423         * java/lang/Short.java: Added copyright header.
4425 Wed Oct 28 12:55:47 1998  Warren Levy  <warrenl@cygnus.com>
4427         * include/javaprims.h (java::io): Added bunch of missing classes.
4428         
4429         * java/io/DataInputStream.java (readLine): Added a special case
4430         for handling BufferedInputStream data to reduce the likelihood
4431         of a pushback error.
4432         (skipBytes): Added code to handle negative number of skip bytes.
4433         
4434         * java/io/StreamTokenizer.java: Rewritten.
4436 1998-10-28  Tom Tromey  <tromey@cygnus.com>
4438         * java/util/natGregorianCalendar.cc (computeFields): Call
4439         getRawOffset as a method.
4441         * include/javaprims.h (java::io): Added FilterOutputStream.
4442         * Makefile.in: Rebuilt.
4443         * Makefile.am (nat_headers): Added PrintStream.h,
4444         FilterOutputStream.h.
4445         * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4446         PrintStream.h.
4447         (die): New function.
4448         (run): Die if `main' not found, is not public, or is not static.
4450         * boehm.cc (_Jv_MarkObj): Use new field names.
4451         * include/java-field.h (JvGetFirstInstanceField): Use new field
4452         names.
4453         (JvNumInstanceFields): Likewise.
4454         * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4455         (getInterfaces): Likewise.
4456         * prims.cc (CLASS_CONSTANTS): Removed.
4457         (CLASS_CONST_SIZE): Likewise.
4458         (CLASS_CONST_TAG): Likewise.
4459         (CLASS_CONST_DATA): Likewise.
4460         (CLASS_CONST_UTF8): Likewise.
4461         (WORD2UTF): Likewise.
4462         (CLASS_CLASS): Likewise.
4463         (CLASS_PRIM_SIG): Likewise.
4464         (CLASS_ARRAY_CACHE): Likewise.
4465         (HASH_CHARS): Likewise.
4466         (hashClassName): Likewise.
4467         Many changes to use new field names.
4468         * java/lang/Class.h (Class): Renamed fields to track compiler.
4470 1998-10-27  Tom Tromey  <tromey@cygnus.com>
4472         * java/lang/natClass.cc: Use #pragma implementation.
4473         (getComponentType): Moved into header.
4474         (getModifiers): Likewise.
4475         (getName): Likewise.
4476         (getSuperclass): Likewise.
4477         (isArray): Likewise.
4478         (isPrimitive): Likewise.
4479         * include/jvm.h (_Jv_FindClass): Declare.
4480         * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4481         * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4482         * include/javaprims.h: Use _Jv_Method, not JvMethod.
4483         * java/lang/Class.h: Rewrote from scratch.
4484         * prims.cc: Many changes to work with new Class.h.
4485         * include/java-field.h (CLASS_FIELDS): Removed.
4486         (CLASS_SFIELDS): Likewise.
4487         (CLASS_IFIELDS): Likewise.
4488         (CLASS_NFIELDS): Likewise.
4489         (CLASS_NIFIELDS): Likewise.
4490         (CLASS_NSFIELDS): Likewise.
4491         (CLASS_FSIZE): Likewise.
4492         (JvGetFirstInstanceField): Rewrote.
4493         (JvNumInstanceFields): Likewise.
4495         * java/lang/Object.h: Added copyright comment.
4497 Wed Oct 28 00:32:23 1998  Per Bothner  <bothner@cygnus.com>
4499         * java/text:  New package directory.
4500         * java/text/FieldPosition.java:  New class.
4501         * java/text/ParsePosition.java:  New class. 
4502         * java/text/ParseException.java:  New Exception class.
4503         * java/text/Format.java:  New class.
4504         * java/text/NumberFormat.java:  New (empty placeholder) class.
4505         * java/text/DateFormatSymbols.java:  New class (no Locales support).
4506         * java/text/DateFormat.java:  New Format class (incomplete).
4507         * java/text/SimpleDateFormat.java:  New DateFormat class.
4508         
4509         * include/javaprims.h (java::test):  Added new package and classes.
4510         * java/util/Calendar.java (clone):  New method.
4511         * java/util/Date.java (toString):  Added non-native implementation.
4512         (parse):  Made public instead of synchronized.
4513         * java/util/natDate.cc (toString):  Removed.
4514         * java/util/natGregorianCalendar.cc (computeFields):
4515         Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4517 1998-10-27  Tom Tromey  <tromey@cygnus.com>
4519         * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4521         * prims.cc (lookupArray): Added explanatory comment.
4522         * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4523         class.  Mark the class of each object.
4524         (_Jv_MarkArray): Mark the object's class.
4526         * configure: Rebuilt.
4527         * configure.in: Create java-gc.h.
4528         * include/boehm-gc.h: New file.
4529         * include/no-gc.h: New file.
4530         * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4531         defined.
4532         * java/lang/Object.h: Include java-gc.h.
4533         (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4534         friends, if defined.
4535         * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4536         signature.
4537         (_Jv_MarkArray): Renamed from mark_array; changed signature.
4539 1998-10-26  Tom Tromey  <tromey@cygnus.com>
4541         * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4542         paragraph separators, not numbers.
4544         * java/io/Writer.java (write): Removed write(char) to avoid
4545         ambiguity.
4546         * java/util/Properties.java: Rewrote from scratch.
4547         * include/javaprims.h (java::io): Added PrintWriter,
4548         BufferedWriter, PushbackReader.
4550 Mon Oct 26 13:13:28 1998  Anthony Green  <green@cygnus.com>
4552         * java/lang/System.java: exit() is a static method.
4554 1998-10-26  Tom Tromey  <tromey@cygnus.com>
4556         * java/lang/natString.cc (_Jv_NewStringUTF): Use
4557         _Jv_strLengthUtf8.
4558         (_Jv_NewStringUtf8Const): Likewise.
4559         * include/jvm.h (_Jv_strLengthUtf8): Declare.
4560         * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4562         * java/lang/Object.h (Object): Add mark_array as friend function.
4563         * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4564         _Jv_AllocBytes, to ensure that header is marked.
4565         * boehm.cc (mark_obj): Push sync_info field for all objects, not
4566         just Objects.
4567         (mark_array): Push sync_info field for array.
4569 1998-10-24  Tom Tromey  <tromey@cygnus.com>
4571         * java/lang/String.java (String): Updated for StringBuffer
4572         change.
4573         * java/util/BitSet.java: Renamed field (data->bits) to conform to
4574         serialization spec.
4575         * java/lang/StringBuffer.java: Renamed fields to conform to
4576         serialization spec: buffer->value, next->count, copy->shared.
4578 Wed Oct 21 18:24:57 1998  Per Bothner  <bothner@cygnus.com>
4580         * java/util/TimeZone.java:  New class.
4581         * java/util/SimpleTimeZone.java:  New class.
4582         * java/util/Locale.java:  New file.
4583         * java/util/Calendar.java:  Make almost complete.
4584         * java/util/GregorianCalendar.java
4585         * java/util/natGregorianCalendar.cc:  New file.
4586         * java/util/Date.java:  Re-written from scratch.
4587         * java/util/natDate.cc (setTime):  Removed - no longer native.
4588         * include/javaprims.h (java::util):  Add new classes.
4589         * Makefile.am (nat_files):  Add java/util/natGregorianCalendar.o.
4590         (nat_headers);  Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4592 Sat Oct 24 22:58:25 1998  Warren Levy  <warrenl@cygnus.com>
4594         * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4595         returning it as a jint.
4597 1998-10-23  Tom Tromey  <tromey@cygnus.com>
4599         * prims.cc (arg_vec, main_group, main_thread): New globals.
4600         (JvRunMain): Use them.
4602 Fri Oct 23 17:10:12 1998  Warren Levy  <warrenl@cygnus.com>
4604         * java/io/DataInputStream.java: Rewritten.
4606         * java/io/DataOutputStream.java (writeUTF): OR secondary and
4607         tertiary bytes with 0x80 per spec.
4609 1998-10-23  Tom Tromey  <tromey@cygnus.com>
4611         * java/lang/String.java (init): Changed name of `copy' argument.
4612         * java/lang/natString.cc (init): Inverted sense of `copy'
4613         argument.
4615         * java/lang/Object.h (Object): Declare mark_obj as a friend.
4616         * java/lang/Class.h (Class): Declare mark_obj as a friend.
4617         * boehm.cc (ObjectClass): New define.
4618         (ClassClass): Likewise.
4619         (mark_obj): Special-case Object and Class.
4621         * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4623         * java/util/BitSet.java: Rewrote from scratch.
4625         * prims.cc (lookupArray): Removed useless cast.
4627         * java/lang/natObject.cc: Use `#pragma implementation'.
4629         * java/lang/String.java (init): Added `copy' argument.
4630         (String): Look in StringBuffer to find char array.
4631         * java/lang/natString.cc (init): Added `copy' argument.
4632         * java/lang/StringBuffer.java: Rewrote from scratch.
4634         * java/lang/Compiler.java: Rewrote from scratch.
4635         * java/lang/Throwable.java: Don't use NativeLang.
4636         * include/javaprims.h (java::lang): Don't mention NativeLang.
4637         * java/lang/Process.java: Rewrote from scratch.
4638         * java/lang/SecurityManager.java (classLoaderDepth): Commented
4639         out.
4640         (currentClassLoader): Likewise.
4641         (currentLoadedClass): Likewise.
4642         * java/lang/natClass.cc (getClassLoader): Commented out.
4643         * java/lang/Class.java (getClassLoader): Commented out.
4644         * java/lang/Compiler.java: Removed.
4645         * java/lang/NativeLang.java: Removed.
4647         * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4648         * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4649         * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4650         (_Jv_hashUtf8String): Now static.
4651         * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4652         name of return type.
4654         * java/lang/Class.h (Class): Declare checkMemberAccess.
4655         * Makefile.in: Rebuilt.
4656         * Makefile.am (nat_headers): Added Member.h.
4657         * java/lang/natClass.cc: Include Member.h.
4658         (getDeclaredClasses): Call checkMemberAccess.
4659         * java/lang/Class.java (checkMemberAccess): Call
4660         SecurityManager.checkMemberAccess.
4662 Fri Oct 23 08:01:54 1998  Anthony Green  <green@cygnus.com>
4664         * java/lang/SecurityManager.java: Rewritten.
4666 Thu Oct 22 17:16:10 1998  Anthony Green  <green@cygnus.com>
4668         * java/applet/Applet.java, java/applet/AppletContext.java,
4669         java/applet/AppletStub.java, java/applet/AudioClip.java,
4670         java/awt/AWTError.java, java/awt/AWTException.java,
4671         java/awt/BorderLayout.java, java/awt/Button.java,
4672         java/awt/Canvas.java, java/awt/CardLayout.java,
4673         java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4674         java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4675         java/awt/Color.java, java/awt/Component.java,
4676         java/awt/Container.java, java/awt/Dialog.java,
4677         java/awt/Dimension.java, java/awt/Event.java,
4678         java/awt/FileDialog.java, java/awt/FlowLayout.java,
4679         java/awt/Font.java, java/awt/FontMetrics.java,
4680         java/awt/Frame.java, java/awt/Graphics.java,
4681         java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4682         java/awt/GridLayout.java, java/awt/Image.java,
4683         java/awt/Insets.java, java/awt/Label.java,
4684         java/awt/LayoutManager.java, java/awt/List.java,
4685         java/awt/MediaTracker.java, java/awt/Menu.java,
4686         java/awt/MenuBar.java, java/awt/MenuComponent.java,
4687         java/awt/MenuContainer.java, java/awt/MenuItem.java,
4688         java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4689         java/awt/Rectangle.java, java/awt/Scrollbar.java,
4690         java/awt/TextArea.java, java/awt/TextComponent.java,
4691         java/awt/TextField.java, java/awt/Toolkit.java,
4692         java/awt/Window.java, java/awt/image/ColorModel.java,
4693         java/awt/image/CropImageFilter.java,
4694         java/awt/image/DirectColorModel.java,
4695         java/awt/image/FilteredImageSource.java,
4696         java/awt/image/ImageConsumer.java,
4697         java/awt/image/ImageFilter.java,
4698         java/awt/image/ImageObserver.java,
4699         java/awt/image/ImageProducer.java,
4700         java/awt/image/IndexColorModel.java,
4701         java/awt/image/MemoryImageSource.java,
4702         java/awt/image/PixelGrabber.java,
4703         java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4704         java/awt/peer/CanvasPeer.java,
4705         java/awt/peer/CheckboxMenuItemPeer.java,
4706         java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4707         java/awt/peer/ComponentPeer.java,
4708         java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4709         java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4710         java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4711         java/awt/peer/MenuBarPeer.java,
4712         java/awt/peer/MenuComponentPeer.java,
4713         java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4714         java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4715         java/awt/peer/TextAreaPeer.java,
4716         java/awt/peer/TextComponentPeer.java,
4717         java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4718         java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4719         java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4720         java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4721         java/net/MalformedURLException.java, java/net/NativeNet.java,
4722         java/net/ProtocolException.java, java/net/ServerSocket.java,
4723         java/net/Socket.java, java/net/SocketException.java,
4724         java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4725         java/net/URL.java, java/net/URLConnection.java,
4726         java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4727         java/net/URLStreamHandlerFactory.java,
4728         java/net/UnknownHostException.java,
4729         java/net/UnknownServiceException.java: Removed.
4731 1998-10-22  Tom Tromey  <tromey@cygnus.com>
4733         * prims.cc (_Jv_AllocObject): Register finalizer if class'
4734         finalizer is not Object.finalize.
4735         (internalAddClass): Don't set `final' member of class.
4736         * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4737         other places that know about finalize() location.
4738         * java/lang/Class.h (Class): Removed `final' field.
4740         * aclocal.m4, configure: Rebuilt.
4741         * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4742         AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4743         set.
4744         * configure.in (AC_OUTPUT): Pass CXX to config.status.
4745         * Makefile.in: Rebuilt.
4746         * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4748 1998-10-21  Tom Tromey  <tromey@cygnus.com>
4750         * java/lang/Object.java (finalize): Move to be first method in
4751         class.
4753         * configure: Rebuilt.
4754         * configure.in (GCINCS): Include contents of boehm-cflags file.
4756 Tue Oct 20 13:11:04 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4758         * java/lang/ArrayIndexOutOfBoundsException.java
4759         (ArrayIndexOutOfBoundsException): Fixed string literal.
4760         * java/lang/StringIndexOutOfBoundsException.java
4761         (StringIndexOutOfBoundsException): Fixed string literal.
4763 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4765         * natFileDescriptorEcos.cc added.
4766         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
4768 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4770         * acconfig.h: test for __int32_t and __uint32_t added.
4771         * include/config.h.in: test for __int32_t and __uint32_t added.
4772         * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4773         * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4774         * configure.in: test for __int32_t and __uint32_t added.
4775         * configure: test for __int32_t and __uint32_t added.
4776         
4777         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
4779         * configure.in: Test for --enable ecos and link
4780         natFileDescriptor.cc to natFileDescriptorEcos.cc or
4781         natFileDescriptorPosix.cc
4782         
4783         * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4784         
4785 Mon Oct 19 18:13:58 1998  Warren Levy  <warrenl@cygnus.com>
4787         * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4788         in isn't negative.
4790         * java/io/CharArrayReader.java (close): Synchronize on lock
4791         object per Reader contract.
4792         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
4793         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
4794         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
4795         Ensure that arg passed in isn't negative.
4797         * java/io/FilterReader.java (FilterReader): Use the lock obj when
4798         constructing the superclass.
4800         * java/io/PushbackReader.java (close): Synchronize on lock
4801         object per Reader contract.
4802         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
4803         (ready): Synchronize on lock obj.  Throw IOException if reader
4804         wasn't closed.
4805         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
4806         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
4807         Ensure that arg passed in isn't negative.
4808         (unread): Synchronize on lock obj.  Verify that reader wasn't closed.
4810         * java/io/StringReader.java: Created.
4811         
4812 Sun Oct 18 02:19:11 1998  Warren Levy  <warrenl@cygnus.com>
4814         * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4815         to match JCL.
4816         (read): Removed synchronized modifier to match JCL.
4817         (reset): Removed synchronized modifier to match JCL.
4818         (skip): Removed synchronized modifier to match JCL.
4820 Sun Oct 18 02:01:54 1998  Warren Levy  <warrenl@cygnus.com>
4822         * java/io/PushbackReader.java (PushbackReader): Made
4823         constructors public.
4825 1998-10-17  Tom Tromey  <tromey@cygnus.com>
4827         * java/io/PushbackInputStream.java (PushbackInputStream): Made
4828         constructors public.
4830 1998-10-16  Anthony Green  <green@cygnus.com>
4832         * aclocal.m4, configure: Rebuilt.
4833         * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4834         configure.host.
4835         * configure.host: Rewrote.
4836         * Makefile.in: Rebuilt.
4837         * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4838         (AM_CFLAGS): New macro.
4839         ($(c_files)): Use COMPILE macro.
4840         (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4841         automake problem(s).
4843 Fri Oct 16 16:36:28 1998  Warren Levy  <warrenl@cygnus.com>
4845         * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4847         * java/io/CharArrayReader.java: Created.
4849 Fri Oct 16 15:17:01 1998  Warren Levy  <warrenl@cygnus.com>
4851         * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4852         size check to allow 0 per JCL.
4854         * java/io/PushbackReader.java: Created.
4856 1998-10-16  Tom Tromey  <tromey@cygnus.com>
4858         * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4859         <sys/time.h> includes. 
4860         * java/io/natFile.cc: Conditionalize <unistd.h> include.
4861         * include/no-threads.h: Conditionalize <unistd.h> include on
4862         HAVE_UNISTD_H.
4864 Fri Oct 16 14:39:51 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
4866         * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4867         is defined.
4869 Thu Oct 15 19:27:54 1998  Warren Levy  <warrenl@cygnus.com>
4871         * java/io/FilterReader.java: Created.
4873 Thu Oct 15 17:49:43 1998  Warren Levy  <warrenl@cygnus.com>
4875         * java/io/PushbackInputStream.java: Rewritten.
4877         * java/io/BufferedInputStream.java (BufferedInputStream): Check
4878         that size passed to constructor is legal.
4879         (read): Check that args passed in are legal.
4880         (skip): Rewritten to get rid of the temporary buffer.
4881         (refill): Added marklimit check to grow the buffer.
4883         * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4884         check.
4885         (bytesAvail): Removed.
4886         (read): Changed bytesAvail to Math.min.
4887         (skip): Changed bytesAvail to Math.min.
4889         * java/io/InputStream.java (read): Got rid of extraneous exceptions
4890         from the throws clause.
4891         (skip): Rewritten to use a temporary buffer.
4893 Thu Oct 15 19:42:55 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
4895         * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4896         some target OSes
4898         * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4900         * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4901         to write the double one word at a time.
4903 Tue Oct 13 14:41:47 1998  Warren Levy  <warrenl@cygnus.com>
4905         * java/io/BufferedInputStream.java:  Rewritten.
4907 1998-10-12  Tom Tromey  <tromey@cygnus.com>
4909         * jni.cc: Include config.h and stddef.h.
4911         * java/lang/Class.h (_dispatchTable): Removed again.
4912         Removed all ACC_* defines again.
4914 Fri Oct  9 17:08:34 1998  Per Bothner  <bothner@cygnus.com>
4916         * Makefile.am (nat_files):  Add netField.o.
4917         (libjava_a_SOURCES):  Add jni.cc.
4918         (java/lang/reflect/Field.h):  New rule.
4919         * Makefile.in:  Re-generated.
4920         * include/javaprims.h:  Add some extra class and typedefs.
4921         * include/jni.h:  New file.
4922         * jni.cc:  New file.
4924         * include/java-field.h:  New file.
4925         * include/jvm.h:  #include <java-field.h>.
4926         * boehm.cc:  #include <java-field.h>.
4927         * java/lang/Class.h (JvField, inline numbers):  Moved to java-field.h.
4928         * java/lang/reflect/Member.java:  New class.
4929         * java/lang/reflect/Field.java:  New class.  (Very incomplete.)
4930         * java/lang/reflect/natField.cc:  New file.  (Very incomplete.)
4932 Sun Oct 11 00:34:44 1998  Anthony Green  <green@cygnus.com>
4934         * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4935         testsuite/Makefile.in: Rebuilt.
4936         * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4937         * configure.host: Created.
4939 1998-10-10  Tom Tromey  <tromey@cygnus.com>
4941         * java/lang/natObject.cc (sync_init): Always allocate a new
4942         sync_info.
4944 1998-10-09  Tom Tromey  <tromey@cygnus.com>
4946         * java/io/ByteArrayInputStream.java (mark): Renamed from
4947         `mark_FIXME'.
4949         * java/io/FileOutputStream.java (finalize): Removed.
4950         * java/io/FileDescriptor.java (finalize): New method.
4952 Thu Oct  8 17:59:43 1998  Warren Levy  <warrenl@cygnus.com>
4954         * ByteArrayInputStream.java: Corrected status comment.
4956 Thu Oct  8 17:22:49 1998  Warren Levy  <warrenl@cygnus.com>
4958         * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4960 1998-10-08  Tom Tromey  <tromey@cygnus.com>
4962         * prims.cc (lookupArray): Use static array to initialize list of
4963         interfaces.
4965 Thu Oct  8 12:45:03 1998  Anthony Green  <green@cygnus.com>
4967         * prims.cc (lookupArray): Initialize the msize for new
4968         array classes.
4970 Wed Oct  7 12:13:59 1998  Anthony Green  <green@cygnus.com>
4972         * configure: Rebuilt.
4973         * configure.in: Check for fsync and sleep.
4974         * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
4976         * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
4977         HAVE_SLEEP. Include config.h.
4979         * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
4980         * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
4981         with HAVE_FSYNC.
4983 1998-10-08  Tom Tromey  <tromey@cygnus.com>
4985         * java/io/natFile.cc: Don't include SecurityManager.h.
4986         (performList): Renamed.
4987         (performMkdir): Likewise.
4988         (performRenameTo): Likewise.
4989         (performDelete): Likewise.
4990         Include <stdlib.h>.
4991         * java/io/File.java (performDelete): Renamed from natDelete.
4992         (list): Now written in Java.
4993         (performList): New method.
4994         (performMkdir): New method.
4995         (mkdir): Now written in Java.
4996         (performRenameTo): New method.
4997         (renameTo): Now written in Java.
4999 1998-10-06  Tom Tromey  <tromey@cygnus.com>
5001         * Makefile.in: Rebuilt.
5002         * Makefile.am (ETAGS_ARGS): New macro.
5003         (TAGS_DEPENDENCIES): Likewise.
5005 Tue Oct  6 22:04:44 PDT 1998 Anthony Green  <green@cygnus.com>
5007         * Makefile.in: Rebuilt.
5008         * Makefile.am: Use -classpath option with javac.
5009         
5010 Tue Oct  6 18:51:31 1998  Tom Tromey  <tromey@cygnus.com>
5012         * java/io/FileOutputStream.java (finalize): Call
5013         super.finalize().
5015 Tue Oct  6 16:02:45 1998  Anthony Green  <green@cygnus.com>
5017         * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5018         with newlib's libm.
5019         * java/lang/mprec.c: Ditto.
5021         * java/lang/mprec.h: Include math.h for HUGE_VAL when
5022         cross-compiling.
5024 Tue Oct  6 14:27:00 1998  Warren Levy  <warrenl@cygnus.com>
5026         * java/io/InputStream.java (skip): Make local var i a long.
5028 Mon Oct  5 09:44:24 1998  Tom Tromey  <tromey@cygnus.com>
5030         * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5031         * prims.cc (lookupArray): Use memcpy, not memmove.
5032         * include/config.h.in: Rebuilt.
5033         * acconfig.h (HAVE_MEMCPY): Added.
5034         * configure: Rebuilt.
5035         * configure.in: Check for memcpy again.
5037         * java/io/RandomAccessFile.java (RandomAccessFile): Use
5038         String.compareTo, not ==.
5040         * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5041         (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5042         * java/lang/natObject.cc (struct _dispatchTable): Removed.
5043         * include/jvm.h (struct _Jv_DispatchTable): New structure.
5044         * prims.cc (lookupArray): Removed dead code.  Copy Object's dtable
5045         into new array's dtable.
5046         (_Jv_AllocObject): Use _Jv_DispatchTable.
5047         (_Jv_NewPrimArray): Likewise.
5048         (_Jv_NewObjectArray): Likewise.
5050 Fri Oct  2 18:57:14 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5052         * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5053         offending index value.
5054         (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5055         appropriate.
5056         * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5057         * java/lang/Throwable.java: (Throwable): fixed argument to this().
5059 Fri Oct  2 15:58:23 1998  Warren Levy  <warrenl@cygnus.com>
5061         * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5062         
5063         * java/io/OutputStream.java (write): Use off and len parameters to
5064         output partial byte array.
5065         
5066         * java/io/BufferedReader.java, java/io/FileReader.java,
5067         java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5068         java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5069         java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5070         java/io/Writer.java: Added COPYRIGHT-TBD comment.
5072         * include/javaprims.h (java::lang): Added
5073         ExceptionInInitializerError, IllegalStateException,
5074         NoSuchFieldException, and UnsupportedOperationException.
5076 Fri Oct  2 01:05:38 1998  Tom Tromey  <tromey@cygnus.com>
5078         * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5079         Class*.
5081         * include/java-array.h (__JArray): Added clone method.
5082         * prims.cc (CloneableClass): New define.
5083         (lookupArray): Initialize array class to indicate that it
5084         implements Cloneable.
5086         * java/lang/Class.h: Removed all ACC_* defines.
5087         * prims.cc: Include Modifier.h.
5088         (_Jv_LookupInterfaceMethod): Use methods in
5089         java.lang.reflect.Modifier, not ACC_ defines.
5091         * java/lang/Class.h (Class): Declare getClasses,
5092         getDeclaredClasses, getDeclaringClass, getModifiers, 
5093         * java/lang/Class.java: Rewrote from scratch.
5095         * include/javaprims.h (java::lang): Added reflect and
5096         reflect::Modifier.
5097         * Makefile.in: Rebuilt.
5098         * Makefile.am (nat_headers): Added Modifier.h.
5100         * prims.cc (_Jv_IsInstanceOf): Return false if class is
5101         primitive.
5103 Fri Oct 2 06:49:00 1998  Anthony Green  <green@cygnus.com>
5105         * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5106         instead of test and abort.
5108         * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5109         remove compiler warning.
5111 Fri Oct  2 12:33:44 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5113         * java/lang/natDouble.cc: zero terminate string.
5114         * strtod.c: Set errno if no digits are found in fraction.
5116 Thu Oct  1 11:48:28 1998  Tom Tromey  <tromey@cygnus.com>
5118         * java/lang/reflect/Modifier.java: New file.
5120         * java/lang/VirtualMachineError.java: Rewrote from scratch.
5121         * java/lang/VerifyError.java: Rewrote from scratch.
5122         * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5123         * java/lang/UnknownError.java: Rewrote from scratch.
5124         * java/lang/StackOverflowError.java: Rewrote from scratch.
5125         * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5126         * java/lang/InternalError.java: Rewrote from scratch.
5127         * java/lang/IllegalAccessError.java: Rewrote from scratch.
5128         * java/lang/ExceptionInInitializerError.java: New file.
5129         * java/lang/Error.java: Rewrote from scratch.
5130         * java/lang/ClassFormatError.java: Rewrote from scratch.
5131         * java/lang/ClassCircularityError.java: Rewrote from scratch.
5132         * java/lang/AbstractMethodError.java: Rewrote from scratch.
5133         * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5134         * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5135         * java/lang/LinkageError.java: Rewrote from scratch.
5136         * java/lang/IncompatibleClassChangeError.java: Rewrote from
5137         scratch.
5138         * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5140         * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5141         * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5142         friend.
5143         * include/cni.h (JvAllocObject): Moved from prims.cc.
5144         Include Class.h.
5145         * prims.cc (JvAllocObject): Moved to cni.h.
5146         (_Jv_AllocObject): Use _Jv_FinalizeObject.
5147         (finalize_name): Removed.
5149 Wed Sep 30 12:09:34 1998  Tom Tromey  <tromey@cygnus.com>
5151         * java/lang/Class.h (Class): Added size() method.
5152         * prims.cc (_Jv_MonitorEnter): Removed.
5153         (_Jv_MonitorExit): Removed.
5154         * java/lang/Object.h (JvSyncInfo): Removed.
5155         * Makefile.in: Rebuilt.
5156         * Makefile.am (nat_headers): Added Cloneable.h,
5157         CloneNotSupportedException.h.
5158         * java/lang/Object.h: Rewrote.
5159         * java/lang/natObject.cc: Rewrote from scratch.
5160         * java/lang/Object.java: Rewrote from scratch.
5162         * java/io/natFile.cc: Conditionally include <dirent.h>.
5163         (list): If no <dirent.h>, always return NULL.
5164         * configure: Rebuilt.
5165         * configure.in: Check for dirent.h.
5167         * prims.cc (lookupArray): Don't use sprintf.
5169         * java/util/Hashtable.java (containsKey): Use `abs' to compute
5170         initial index.
5171         (get): Likewise.
5172         (put): Likewise.
5173         (rehash): Likewise.
5174         (remove): Likewise.
5176         * java/util/Hashtable.java (hsize): Renamed from size to avoid
5177         name conflict with method.
5179         * include/javaprims.h (java::util): Added HashtableEntry.
5181 Tue Sep 29 16:48:01 1998  Warren Levy  <warrenl@cygnus.com>
5183         * java/util/Hashtable.java: Rewritten.
5185 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5187         * java/io/natFileDescriptor.cc (write): Correctly test `write'
5188         return value.
5189         (write): Likewise.
5191         * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5192         not `curr_nt'.
5194         * posix-threads.cc (_Jv_CondWait): Now returns int.
5195         * include/javaprims.h (java::lang): Added
5196         IllegalMonitorStateException.
5197         * Makefile.in: Rebuilt.
5198         * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5199         * include/no-threads.h (_Jv_CondDestroy): Removed.
5200         (_Jv_MutexDestroy): Removed.
5201         (_Jv_CondWait): Now returns int.
5202         (_Jv_CondNotify): Likewise.  Added mutex argument.
5203         (_Jv_CondNotifyAll): Likewise.
5204         (_Jv_MutexLock): Always succeed.
5205         (_Jv_MutexUnlock): Likewise.
5206         * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5207         (_Jv_HaveMutexDestroy): Define.
5208         (_Jv_CondNotify): Now returns int.  Added mutex argument.
5209         (_Jv_CondNotifyAll): Likewise.
5210         * include/quick-threads.h (_Jv_CondDestroy): Removed.
5211         (_Jv_MutexDestroy): Removed.
5212         (_Jv_CondWait): Now returns int.
5213         (_Jv_CondNotify): Likewise.  Added mutex argument.
5214         (_Jv_CondNotifyAll): Likewise.
5215         * java/lang/natObject.cc (finalize_sync_info): New function.
5216         (init_mutex): Initialize `init' and register finalizer if
5217         required.
5218         (CHECK): New macro.
5219         (init_mutex): Use it.
5220         (notify): Use it.
5221         (notifyAll): Use it.
5222         (wait): Use it.
5223         (notify): Throw IllegalMonitorStateException on failure.
5224         (notifyAll): Likewise.
5225         (wait): Likewise.  Also, throw InterruptedException if
5226         appropriate.
5227         Include cni.h, Thread.h, IllegalMonitorStateException.h,
5228         InterruptedException.h, IllegalArgumentException.h.
5229         * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5231         * java/lang/natString.cc: Renamed all `JvPriv' functions.
5232         * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5233         * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5234         * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5235         * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5236         * quick-threads.cc: Renamed all `JvPriv' functions.
5237         * prims.cc: Renamed all `JvPriv' functions.
5238         * posix-threads.cc: Renamed all `JvPriv' functions.
5239         * nogc.cc: Renamed all `JvPriv' functions.
5240         * no-threads.cc: Renamed all `JvPriv' functions.
5241         * boehm.cc: Renamed all `JvPriv' functions.
5242         * include/quick-threads.h: Renamed all `JvPriv' functions.
5243         * include/posix-threads.h: Renamed all `JvPriv' functions.
5244         * include/no-threads.h: Renamed all `JvPriv' functions.
5245         * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5247         * include/no-threads.h (JvPrivCondWait): Wrote minimal
5248         implementation.
5249         (JvPrivCondNotify): Do nothing.
5250         (JvPrivCondNotifyAll): Do nothing.
5252         * prims.cc (processClass): Handle case where state is
5253         DOING_CONSTINIT.
5255         * java/lang/natFirstThread.cc: Include <stdlib.h>
5257         * configure: Rebuilt.
5258         * configure.in: Fixed sense of --enable-libjava-debug.
5260         * java/lang/natThread.cc (join): Declare `t' outside the loop so
5261         it can be used afterward by the assertion.
5263         * configure: Rebuilt.
5264         * configure.in: When cross-compiling, assume alloca.
5266         * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5267         __builtin_alloca (autoconf docs are wrong here).
5269         * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5270         closing.
5271         (available): Use `FD_ZERO' (typo fix).
5273 Tue Sep 29 17:43:30 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
5275         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5276         java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5277         struct _Jv_Bigint.
5278         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5279         java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5280         struct _Jv_reent.
5282         * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5283         
5284 Tue Sep 29 07:57:13 1998  Anthony Green  <green@cygnus.com>
5286         * java/lang/natDouble.cc: Declare alloca safely.
5288         * configure, include/config.h.in: Rebuilt.
5289         * configure.in: Add alloca check.
5291 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5293         * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5294         condition while calling notify.
5295         (join): Remove `curr_nt' from `nt's join list, not vice versa.
5296         (interrupt): Hold mutex for interrupt condition while calling
5297         notify.
5299         * java/lang/natString.cc (init): Allocate and try to read `count'
5300         characters, not `count - offset' characters.
5302         * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5303         Correctly compute `count'.
5305         * java/lang/Boolean.java (getBoolean): Return false if property
5306         not found.
5308         * java/lang/System.java (setProperties): Set prop_init.
5310 Mon Sep 28 12:39:25 1998  Tom Tromey  <tromey@cygnus.com>
5312         * java/io/PrintStream.java (println): Use line.separator, not
5313         file.separator.
5314         * java/lang/System.java (out, err): Make both autoflush streams.
5315         * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5317         * include/config.h.in: Rebuilt.
5318         * acconfig.h (HAVE_MEMCPY): Removed.
5319         * configure: Rebuilt.
5320         * configure.in: Never define HAVE_MEMCPY.
5322         * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5323         Class.h.
5324         (_Jv_AllocString): Use JvAllocObject again.
5325         * java/lang/Class.h (thread): New field.
5326         (_Jv_AllocString): No longer a friend.
5327         * prims.cc (processClass): Removed dead code.  Changed to more
5328         closely follow the Java Language Specification.
5329         (processClass): Return early if already at the right state.
5331         * prims.cc (JvNewStringUTF): Removed.
5332         * include/cni.h (JvNewStringUTF): New function.
5333         (_Jv_NewStringUTF): Declare as `extern "C"'.
5334         * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5336         * java/lang/natDouble.cc: Added copyright info and header
5337         comment.  Include <stdlib.h>.
5338         (doubleValueOf): Use alloca, not malloc.  Allocate 3 times as many
5339         bytes as are chars in string.
5341 Sat Sep 26 00:19:27 1998  Tom Tromey  <tromey@cygnus.com>
5343         * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5344         clash with method.
5345         (hsize): Likewise.
5347         * java/lang/System.java (init_properties): Now native.
5348         * java/lang/natSystem.cc (init_properties): New method.
5349         Include java/util/Properties.h.
5351         * Makefile.in: Rebuilt.
5352         * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5353         OutputStreamWriter.h, ByteArrayInputStream.h,
5354         InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5355         Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5356         SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5357         Properties.h, Hashtable.h, Dictionary.h.
5358         (CFLAGS): Removed.
5360         * include/javaprims.h (java::io): Added Reader, Writer,
5361         InputStreamReader, OutputStreamWriter,
5362         UnsupportedEncodingException, ByteArrayInputStream,
5363         ByteArrayOutputStream, EOFException, SyncFailedException,
5364         PushbackInputStream.
5365         (java::lang): Added Cloneable.
5366         (java::util): Added NoSuchElementException, VectorEnumeration,
5367         Dictionary, HashtableEnumeration, PropertiesEnumeration.
5369         * java/io/PipedReader.java: New file.
5371 Fri Sep 25 00:11:25 1998  Tom Tromey  <tromey@cygnus.com>
5373         * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5374         up A-Z.
5376         * java/io/io-defs.h: Removed.
5378         * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5379         (FileInputStream): Use new constructor.  Can throw IOException.
5381         * java/lang/System.java (getProperty): Don't throw
5382         NullPointerException.
5384         * java/io/RandomAccessFile.java: Rewrote from scratch.
5386         * java/io/natFileDescriptor.cc: Include EOFException.h.
5387         (seek): New method.
5388         (length): New method.
5389         (getFilePointer): New method.
5390         (read): New method.
5391         (available): New method.
5392         * java/io/FileDescriptor.java (SET, CUR): New constants.
5393         (seek, length, getFilePointer, read, available): New decls.
5395         * java/io/PipedWriter.java: New file.
5396         * java/io/StringWriter.java: New file.
5397         * java/io/CharArrayWriter.java: New file.
5398         * java/io/CharConversionException.java: New file.
5399         * java/io/BufferedWriter.java: New file.
5400         * java/io/FilterWriter.java: New file.
5401         * java/io/FileWriter.java: New file.
5403         * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5404         OutputStreamWriter.h, NullPointerException.h,
5405         ByteArrayInputStream.h, InputStreamReader.h.
5406         (getBytes): New method.
5407         (init): Throw NullPointerException.
5408         (init): New function.
5409         * java/lang/String.java (getBytes): Added missing decl.
5410         (getBytes): New method.
5411         (String): Added byte[]-based constructors.
5412         (copyValueOf): Wrote.
5413         (init): Declare variant which takes byte array and encoding.
5414         Import java.io.UnsupportedEncodingException.
5416         * java/io/File.java: Rewrote from scratch.
5417         * java/io/natFileDescriptor.cc: Rewrote from scratch.
5418         * java/io/FileDescriptor.java: Rewrote from scratch.
5419         * java/io/FilenameFilter.java: Rewrote from scratch.
5421 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
5423         * java/io/SyncFailedException.java: New file.
5424         * java/io/UTFDataFormatException.java: Rewrote from scratch.
5425         * java/io/InterruptedIOException.java: Rewrote from scratch.
5426         * java/io/FileNotFoundException.java: Rewrote from scratch.
5427         * java/io/EOFException.java: Rewrote from scratch.
5428         * java/io/IOException.java: Rewrote from scratch.
5429         * java/io/PrintStream.java: Rewrote from scratch.
5430         * java/io/DataOutputStream.java: Rewrote from scratch.
5431         * java/io/BufferedOutputStream.java: Rewrote from scratch.
5432         * java/io/FilterOutputStream.java: Rewrote from scratch.
5433         * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5434         * java/io/PipedOutputStream.java: Rewrote from scratch.
5435         * java/io/FileOutputStream.java: Rewrote from scratch.
5436         * java/io/OutputStream.java: Rewrote from scratch.
5437         * java/io/DataOutput.java: Rewrote from scratch.
5439 Mon Sep 28 22:59:54 1998  Per Bothner  <bothner@cygnus.com>
5441         * prims.cc (_Jv_CheckCast):  Add missing ! operator.
5443 Mon Sep 28 15:50:06 1998  Anthony Green  <green@cygnus.com>
5445         * configure.in: Add --enable-libjava-debug
5447         * Makefile.am (nat_headers): Add java/lang/Float.h and 
5448         java/lang/Double.h
5450         * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5452         * Makefile.in, configure, include/config.h.in: Rebuilt.
5454 Mon Sep 28 17:05:58 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5456         * java/lang/Float.java: Rewritten
5457         * java/lang/Double.java: Rewritten
5458         * java/lang/natFloat.cc: toString() added.
5459         * java/lang/natDouble.cc: toString() added.
5460         * java/lang/natDouble.cc: doubleValueOf() added.
5461         * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h, 
5462         java/lang/strtod.c: added.
5463         * ieeefp.h: __sparc added.
5464         * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5465         
5466 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
5468         * include/javaprims.h (java::lang): Added
5469         CloneNotSupportedException.
5471         * java/lang/Object.java (clone): No longer native.  Implemented.
5472         * java/lang/natObject.cc (clone): Removed.
5474 Wed Sep 23 12:03:38 1998  Tom Tromey  <tromey@cygnus.com>
5476         * prims.cc: Don't make definitions `extern "C"'.
5477         (_Jv_RegisterClass): Renamed from registerClass.
5478         * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5479         (_Jv_NewArray): Likewise.
5480         (_Jv_NewMultiArray): Likewise.
5481         (_Jv_CheckCast): Likewise.
5482         (_Jv_LookupInterfaceMethod): Likewise.
5483         (_Jv_CheckArrayStore): Likewise.
5484         (_Jv_RegisterClass): Likewise.
5486         * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5487         * configure: Rebuilt.
5488         * configure.in: Don't check for fmod; it is provided by the fdlibm
5489         code.
5490         * prims.cc (fmod): Removed.
5492         * java/lang/natString.cc (charAt): Use _Jv_uint.
5493         * java/lang/Class.h (class JvField): Use _Jv_ushort.
5494         * prims.cc (HASH_CHARS): Use _Jv_ushort.
5495         (equalUtf8Consts): Likewise.
5496         (internalAddClass): Use _Jv_uint.
5497         (processClass): Likewise.
5498         * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5499         (_Jv_uint): Renamed from uint32.
5500         (struct _Jv_Utf8Const): Changed members to use new type names.
5502         * configure: Rebuilt.
5503         * configure.in: Don't check for memcpy.  Require memmove and a way
5504         to get the time.
5505         * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5506         #error.
5507         (currentTimeMillis): Don't use #error.
5509 Tue Sep 22 18:00:16 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5511         * java/lang/Math.java: static member random renamed to random_ to
5512         avoid conflict with member function of the same name.
5513         * include/javaprims.h: java.util.Random added.
5515 Tue Sep 22 13:53:14 1998  Tom Tromey  <tromey@cygnus.com>
5517         * include/java-chartables.h: Regenerated.
5518         * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5519         printed.
5521 Tue Sep 22 17:17:52 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
5523         * java/lang/Math.java: Rewritten.
5524         * java/lang/natMath.cc: New file.
5525         * Files added from fdlibm:
5526           java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5527           java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5528           java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5529           java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5530           java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5531           java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5532           java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5533           java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5534           java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5535           java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5536           java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5537           java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5538           java/lang/k_cos.c, java/lang/sf_ceil.c,
5539           java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5540           java/lang/ieeefp.h, java/lang/fdlibm.h
5541         * Makefile.am: rules added for compiling C files from fdlibm.
5542         
5543 Mon Sep 21 15:40:58 1998  Tom Tromey  <tromey@cygnus.com>
5545         * chartables.pl: Minor documentation fixes.
5547         * configure: Rebuilt.
5548         * configure.in: Fixed --help output for --enable-fast-character.
5550 Thu Sep 17 11:03:27 1998  Tom Tromey  <tromey@cygnus.com>
5552         * configure: Rebuilt.
5553         * configure.in: Recognize --enable-fast-character.
5554         * acconfig.h (COMPACT_CHARACTER): New define.
5555         * include/config.h.in: Rebuilt.
5556         * include/java-chartables.h: New file.
5557         * Makefile.in: Rebuilt.
5558         * Makefile.am (nat_files): Added natCharacter.o.
5559         * java/lang/natCharacter.cc: New file.
5560         * chartables.pl (set_attribute): New function.
5561         (@attributes, @second_attributes): New globals.
5562         ($ROMAN_START, $ROMAN_END): Likewise.
5563         (process_char): Call set_attribute when required.
5564         (print_char): Just print hex value.
5565         (print_block): Generate C++ syntax.
5566         (print_numerics): Likewise.
5567         (print_single_map): Likewise.
5568         (print_all_block): Likewise.
5569         (print_case_table): Likewise.
5570         (print_fast_tables): New function.
5571         Generate C++ code suitable for a header file.
5572         * java/lang/Character.java (table_search): Removed.
5573         (digit_value): Now native.
5574         (getNumericValue): Likewise.
5575         (getType): Likewise.
5576         Removed all automatically-generated tables.
5577         (Tamil_Digit_One): Removed.
5578         (isSpaceChar): Now native.
5579         (isTitleCase): Likewise.
5580         (isLowerCase): Likewise.
5581         (isUpperCase): Likewise.
5582         (toLowerCase): Likewise.
5583         (toTitleCase): Likewise.
5584         (toUpperCase): Likewise.
5585         (isDefined): Fixed sense of test.
5587 Wed Sep 16 12:00:19 1998  Tom Tromey  <tromey@cygnus.com>
5589         * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5590         FIXME comment.
5591         (regionMatches): Likewise.
5593 Tue Sep 15 14:35:12 1998  Tom Tromey  <tromey@cygnus.com>
5595         * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5597         * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5598         a friend.
5599         * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5600         _Jv_AllocObject.
5602         * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5603         not a char.
5605         * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5607 Fri Sep 11 14:01:08 1998  Tom Tromey  <tromey@cygnus.com>
5609         * prims.cc (instanceof_class): Removed.
5610         (instanceof_array): Likewise.
5611         (instanceof): Likewise.
5612         (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5613         (_Jv_CheckCast): Likewise.
5614         * java/lang/natClass.cc (isAssignableFrom): New method.
5615         * java/lang/Class.java (isAssignableFrom): Now native.
5617         * include/cni.h (JvThrow): Use `extern inline'.
5618         (JvAllocObject): Likewise.
5619         (JvInitClass): Likewise.
5621         * java/lang/natSystem.cc (arraycopy): Only check class of source
5622         object if not null.
5624         * prims.cc (_Jv_CheckArrayStore): Wrote.
5625         (_Jv_MonitorEnter): Prefer `JvThrow'.
5626         Include ArrayStoreException.h.
5627         (_Jv_CheckCast): Indentation cleanup.
5629 Thu Sep 10 18:59:29 1998  Tom Tromey  <tromey@cygnus.com>
5631         * chartables.pl: New file.
5632         * java/lang/Character.java: Rewrote from scratch.
5634 Fri Sep 18 18:15:58 1998  Warren Levy  <warrenl@cygnus.com>
5636         * java/lang/ArithmeticException.java,
5637         java/lang/ArrayIndexOutOfBoundsException.java,
5638         java/lang/ArrayStoreException.java,
5639         java/lang/ClassCastException.java,
5640         java/lang/ClassNotFoundException.java,
5641         java/lang/CloneNotSupportedException.java,
5642         java/lang/Exception.java, java/lang/IllegalAccessException.java,
5643         java/lang/IllegalArgumentException.java,
5644         java/lang/IllegalMonitorStateException.java,
5645         java/lang/IllegalThreadStateException.java,
5646         java/lang/IndexOutOfBoundsException.java,
5647         java/lang/InstantiationException.java,
5648         java/lang/InterruptedException.java,
5649         java/lang/NegativeArraySizeException.java,
5650         java/lang/NoSuchMethodException.java,
5651         java/lang/NullPointerException.java,
5652         java/lang/NumberFormatException.java,
5653         java/lang/RuntimeException.java, java/lang/SecurityException.java,
5654         java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5656         * java/lang/IllegalStateException.java,
5657         java/lang/NoSuchFieldException.java,
5658         java/lang/UnsupportedOperationException.java: Created.
5660 Fri Sep 18 15:01:42 1998  Warren Levy  <warrenl@cygnus.com>
5662         * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5663         * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5665 Fri Sep 11 16:49:19 1998  Per Bothner  <bothner@cygnus.com>
5667         * prims.cc (JvRunMain):  No longer need to call _Jv_InitClass.
5669 Thu Sep 10 12:23:55 1998  Warren Levy  <warrenl@cygnus.com>
5671         * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5673         * Makefile.in: Rebuilt.
5675         * include/javaprims.h (java::lang): Added
5676         StringIndexOutOfBoundsException.
5678         * java/lang/String.java: Added header comment and FIXME comment for 
5679         missing constructors/methods.
5680         (endsWith): Adjusted offset into string to look at just the last chars.
5681         Commented out undocumented method.
5683         * java/lang/natString.cc: Added includes for
5684         ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5685         (String::init): Throw StringIndexOutOfBoundsException.
5686         (String::charAt): Throw StringIndexOutOfBoundsException.
5687         (String::substring): Throw StringIndexOutOfBoundsException.
5688         (String::getChars): Throw ArrayIndexOutOfBoundsException.
5689         (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5690         (String::compareTo): Return difference/offset between chars/strings.
5692 Tue Sep  8 13:22:33 1998  Warren Levy  <warrenl@cygnus.com>
5694         * java/lang/Boolean.java (TYPE): Added comment.
5695         
5696         * java/lang/Byte.java (decode): Added - commented out until dependent
5697         code for Integer is written.
5698         (compareTo): JDK 1.2 methods written.
5699         (hashCode): Added comment to note that values have been verified.
5700         
5701         * java/lang/Short.java (decode): Added - commented out until dependent
5702         code for Integer is written.
5703         (compareTo): JDK 1.2 methods written.
5704         (hashCode): Added comment to note that values have been verified.
5706         * java/lang/Comparable.java: Created - JDK 1.2 interface.
5708 Fri Sep  4 10:36:35 1998  Tom Tromey  <tromey@cygnus.com>
5710         * include/javaprims.h (java::lang): Added VirtualMachineError,
5711         OutOfMemoryError.
5712         * Makefile.in: Rebuilt.
5713         * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5714         VirtualMachineError.h.
5715         * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5716         (lookupArray): Likewise.
5717         (makeUtf8Const): Likewise.
5718         (_Jv_AllocObject): Likewise.
5719         (_Jv_NewObjectArray): Likewise.
5720         Include OutOfMemoryError.h.
5722         * java/io/natFileDescriptor.cc (newstr): Removed.  Changed callers
5723         to use JvNewStringLatin1.
5725         * java/io/io-defs.h: Include java/lang/IOException.h.
5726         * Makefile.in: Rebuilt.
5727         * Makefile.am (nat_headers): Added
5728         ArrayIndexOutOfBoundsException.h,
5729         ClassFormatError.h,ClassNotFoundException.h,
5730         ClassCircularityError.h, ClassCastException.h,
5731         IncompatibleClassChangeError.h, AbstractMethodError.h,
5732         IllegalAccessError.h, LinkageError.h, Error.h,
5733         NegativeArraySizeException.h, IOException.h.
5734         * include/cni.h (SignalError): Removed declaration.
5735         * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5736         * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5737         * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5738         (newInstance): Likewise.
5739         (forName): Likewise.
5740         * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5741         sorry.
5742         (read): Use JvThrow, not SignalError.
5743         (read): Likewise.
5744         (write): Likewise.
5745         (skip): Likewise.
5746         (close): Likewise.
5747         (open_read): Likewise.
5748         (open_write): Likewise.
5749         (ftell): Likewise.
5750         (fseek): Likewise.
5751         (newstr): New function.
5752         * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5753         sorry.
5754         (lastModifiedUnchecked): Likewise.
5755         (lengthUnchecked): Likewise.
5756         * include/javaprims.h (sorry): Removed declaration.
5757         (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5758         ClassFormatError, ClassNotFoundException, ClassCircularityError,
5759         ClassCastException, IncompatibleClassChangeError,
5760         AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5761         * prims.cc (instanceof_array): Use JvFail, not sorry.
5762         (sorry): Removed.
5763         Include ArrayIndexOutOfBoundsException.h,
5764         ClassFormatError.h,ClassNotFoundException.h,
5765         ClassCircularityError.h, ClassCastException.h,
5766         IncompatibleClassChangeError.h, AbstractMethodError.h,
5767         IllegalAccessError.h, NegativeArraySizeException.h.
5768         (_Jv_ThrowBadArrayIndex): Implemented.
5769         (JvNewStringUTF): Use JvFail, not sorry.
5770         (_Jv_FindClass): Likewise.
5771         (_Jv_NewArray): Likewise.
5772         (throwException): Removed.
5773         (getClass): Use JvThrow.
5774         (processClass): Likewise.
5775         (_Jv_NewObjectArray): Likewise.
5776         (_Jv_NewMultiArray): Likewise.
5777         (_Jv_CheckCast): Likewise.
5778         (_Jv_LookupInterfaceMethod): Likewise.
5779         (SignalError): Removed.
5780         (getClass): Use _Jv_NewStringUtf8Const to create String.
5782         * java/lang/natSystem.cc (arraycopy): Throw
5783         ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5785         * Makefile.in: Rebuilt.
5786         * Makefile.am (GCJH): Renamed.  Now use `gcjh'.  Changed all
5787         users.
5788         * include/java-array.h: Mention gcjh, not gjavah.
5790         * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5791         (canReadUnchecked): Likewise.
5792         (canWriteUnchecked): Likewise.
5793         (isFileUnchecked): Likewise.
5794         * java/io/natFileDescriptor.cc: Don't include cni.h.
5796         * java/lang/Thread.java (run__): Declare.
5797         * java/lang/natThread.cc (run__): New method, to avoid compiler
5798         warning.
5799         (start): Use run__, not run_.
5801         * java/io/io-defs.h: Include cni.h and jvm.h.
5803 Thu Sep  3 18:20:08 1998  Per Bothner  <bothner@cygnus.com>
5805         Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5806         * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1):  Moved
5807         to natString.cc (with suitable renaming, inlines etc).
5808         (javaString2CString):  Removed.  Subsumed by _Jv_GetStringUTFRegion.
5809         * java/lang/Class.h:  Renamed Utf8Const to _Jv_Utf8Const.
5810         * java/lang/String.h:  Removed - now generated using gjavah.
5811         * java/lang/String.java:  Re-written from scratch. Many native methods.
5812         * java/lang/natDouble.cc, java/util/natDate.cc:  #include <cni.h>.
5813         * java/lang/natString.cc:  Many functions re-written for "compact
5814         strings" representation, or native java.lang.String methods added.
5815         (Utf8Const2JavaString):  Renamed to _Jv_NewStringUtf8Const.
5816         (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion):  New methods.
5817         * java/lang/natClass.cc (getName):  Use new _Jv_NewStringUtf8Const.
5818         * java/io/natFileDescriptor.cc:  Use new JvGetStringUTFRegion.
5819         * include/cni.h:  Add inline method.
5820         * include/java-array.h (jobjectArrayjchar):  gjavah bug work-around.
5821         * include/javaprims.h:  Moved some stuff frm String.h.
5822         * include/jvm.h (UTF8_GET, Utf8Const, StringClass):  Moved here.
5823         * Makefile.am (nat_header):  Added Character.h and String.h.
5824         (String.h):  Add new rule.
5826 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
5828         * no-threads.cc: Include config.h, cni.h, jvm.h.  Don't include
5829         java-assert.h.
5830         * posix-threads.cc: Include cni.h, jvm.h.
5831         * quick-threads.cc: Include cni.h, jvm.h.
5832         * nogc.cc: Include cni.h, not javaprims.h.
5833         * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5834         * java/lang/natThread.cc: Rearranged #include ordering.  Don't
5835         include java-assert.h.
5836         * java/lang/natSystem.cc: Include cni.h.  Don't include
5837         java-assert.h.
5838         * java/lang/natRuntime.cc: Include cni.h.  Don't include
5839         java-assert.h.
5840         * prims.cc: Rearranged #include ordering.  Don't include
5841         java-array.h or java-assert.h.
5842         * boehm.cc: Include config.h, cni.h.
5843         * exception.cc: Include config.h, cni.h.
5844         * include/jvm.h: Include java-assert.h.
5845         * include/cni.h: Include java/lang/Object.h.  Don't include
5846         java-threads.h or java-array.h.
5848 Thu Sep  3 16:03:08 1998  Warren Levy  <warrenl@cygnus.com>
5850         * java/lang/Boolean.java: Rewritten.
5852 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
5854         * java/lang/natFirstThread.cc (main_func): New typedef.
5855         (run): Use main_func, not JvPrivThreadStartFunc.
5856         * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5857         argument type.
5858         * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5859         argument type.
5860         * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5861         argument type.
5863         Can't throw Java exceptions with C++ `throw':
5864         * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5865         * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5866         (setPriority): Likewise.
5867         (sleep): Likewise.
5868         (start): Likewise.
5869         (stop): Likewise.
5870         * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5871         * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5873         Can't catch Java exceptions from C++:
5874         * java/lang/natThread.cc (finish_): New method.
5875         (run_): Removed.
5876         * java/lang/Thread.java (run_): Rewrote in Java.
5877         (finish_): New native method.
5879 Wed Sep  2 17:30:39 1998  Warren Levy  <warrenl@cygnus.com>
5881         * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5883         * include/javaprims.h (java::io): Added Serializable.
5885 Wed Sep  2 15:22:00 1998  Warren Levy  <warrenl@cygnus.com>
5887         * java/util/EmptyStackException.java,
5888         java/util/NoSuchElementException.java: Rewritten.
5889         
5890         * java/util/ConcurrentModificationException.java,
5891         java/util/MissingResourceException.java,
5892         java/util/TooManyListenersException.java: Created.
5894 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
5896         * include/cni.h (JvThrow): New function.
5897         * include/javaprims.h (_Jv_Throw): Declare.
5899 Wed Sep  2 14:07:48 1998  Warren Levy  <warrenl@cygnus.com>
5901         * java/util/Observable.java: Rewritten.
5903 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
5905         * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5906         (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5907         Include NullPointerException.h.
5909 Tue Sep  1 12:07:35 1998  Tom Tromey  <tromey@cygnus.com>
5911         * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5912         assignability checks.  Don't bother using memcpy.
5914         * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5915         (started): Removed.
5916         * include/quick-threads.h (JvPrivThreadWait): New function.
5917         * include/no-threads.h (JvPrivThreadWait): New function.
5918         * include/posix-threads.h (JvPrivThreadWait): New function.
5919         * prims.cc (JvRunMain): Call JvPrivThreadWait.
5921         * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5923         * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5924         offsets by size of type that is being copied.
5926         * java/lang/natThread.cc (start): Don't pass `object' argument to
5927         JvPrivThreadStart.
5928         * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5929         * posix-threads.cc (JvPrivThreadStart): Removed `object'
5930         argument.
5931         * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5932         always pass thread as object.
5933         * include/quick-threads.h, include/posix-threads.h,
5934         include/no-threads.h (JvPrivThreadStart): Removed `object'
5935         argument.
5937 Mon Aug 31 19:11:53 1998  Warren Levy  <warrenl@cygnus.com>
5939         * java/util/Dictionary.java: Rewritten.
5941 Mon Aug 31 14:35:55 1998  Tom Tromey  <tromey@cygnus.com>
5943         * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5944         (JvPrivThreadDestroy): Likewise.
5945         
5946 Mon Aug 31 12:56:01 1998  Warren Levy  <warrenl@cygnus.com>
5948         * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5950 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
5952         * java/lang/natSystem.cc: Rewrote from scratch.
5953         * java/lang/System.java: Rewrote from scratch.
5954         * java/lang/Class.h (Class): Declare isAssignableFrom.
5955         * include/javaprims.h (java::lang): Added ArrayStoreException,
5956         IndexOutOfBoundsException.
5957         * Makefile.in: Rebuilt.
5958         * Makefile.am (nat_headers): Added ArrayStoreException.h,
5959         IndexOutOfBoundsException.h.
5960         * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5961         * include/jvm.h (_Jv_HashCode): New function.
5963         * java/lang/natThread.cc (suspend): Call checkAccess.
5964         (resume): Likewise.
5965         * java/lang/Thread.java (setDaemon): Call checkAccess.
5967 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
5969         * java/lang/Runtime.java: Rewrote from scratch.
5970         * java/lang/natRuntime.cc: Rewrote from scratch.
5972         * nogc.cc (JvPrivGCTotalMemory): New function.
5973         (JvPrivGCFreeMemory): Likewise.
5974         (total): New global.
5975         (JvPrivAllocObj): Increment total.
5976         (JvPrivAllocArray): Likewise.
5977         (JvPrivAllocBytes): Likewise.
5978         * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
5979         * boehm.cc (JvPrivGCTotalMemory): New function.
5980         (sum_blocks): Likewise.
5981         (JvPrivGCFreeMemory): Likewise.
5983 Wed Aug 26 12:30:32 1998  Tom Tromey  <tromey@cygnus.com>
5985         * include/javaprims.h (java::lang): Added FirstThread.
5986         * java/lang/natFirstThread.cc: New file.
5987         * java/lang/FirstThread.java: New file.
5988         * prims.cc (main_signature): Removed.
5989         (main_name): Removed.
5990         #include FirstThread.h.
5991         * Makefile.in: Rebuilt.
5992         * Makefile.am (TFRIEND): Removed.
5993         (java/lang/Thread.h): Likewise.
5994         (FTFRIEND): New macro.
5995         (java/lang/FirstThread.h): New target.
5996         (nat_files): Added natFirstThread.o.
5997         (nat_headers): Added FirstThread.h.
5998         * include/jvm.h (_Jv_StartFirstThread): Don't declare.
5999         * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6001         * java/lang/Thread.java (setName): Throw IllegalArgumentException
6002         if name is null.
6003         (Thread): Likewise.
6005         * java/lang/natThread.cc (start): Synchronize the thread.
6006         (stop): Synchronize the thread.
6008         * java/lang/ThreadDeath.java: Rewrote from scratch.
6010         * Makefile.in: Rebuilt.
6011         * Makefile.am (TGFRIEND): New macro.
6012         (java/lang/ThreadGroup.h): New target.
6013         ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6014         native headers.
6015         ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6017         * nogc.cc: Include config.h.
6019         * java/lang/ThreadGroup.java: Rewrote from scratch.
6021 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6023         * java/lang/Thread.java (checkAccess): Only call in to security
6024         manager if it exists.
6025         (Thread): Don't check access when creating the first thread.  Add
6026         this thread to the appropriate ThreadGroup.
6028         * java/lang/natThread.cc (run_): Call uncaughtException method on
6029         the ThreadGroup.
6031         * java/lang/Runnable.java: Rewrote from scratch.
6032         * java/lang/Thread.java: Updated copyright comment to correct
6033         form.
6035 Wed Aug 26 15:16:18 1998  Warren Levy  <warrenl@cygnus.com>
6037         * java/util/Random.java: Rewritten.
6039 Wed Aug 26 14:25:39 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6041         * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6042         trailing 0 in array[].
6044 Wed Aug 26 12:21:06 1998  Anthony Green  <green@cygnus.com>
6046         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
6047         and RUNTESTFLAGS from AM_MAKEFLAGS.
6048         (SUBDIRS): Conditionally include testsuite.
6049         * Makefile.in: Rebuilt.
6051 Tue Aug 25 18:14:53 1998  Anthony Green  <green@cygnus.com>
6053         * java/lang/Object.h: Include java-assert.h.
6055 Tue Aug 25 17:33:57 1998  Anthony Green  <green@cygnus.com>
6057         * Makefile.am: Add testsuite directory.
6058         * configure.in: Build testsuite/Makefile.
6059         * Makefile.in, configure: Rebuilt.
6060         
6061 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6063         * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6064         * include/jvm.h (_Jv_StartFirstThread): Declare.
6066         * include/javaprims.h (java::lang): Added Exception,
6067         RuntimeException.
6069         * Makefile.in: Rebuilt.
6070         * Makefile.am (nat_headers): Added NullPointerException.h,
6071         InterruptedException.h, IllegalArgumentException.h, Exception.h,
6072         Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6073         (java/lang/Thread.h): New target.
6074         (TFRIEND): New macro
6076         * include/java-assert.h (JvFail): Use 0 and not NULL.
6078         * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6079         instead of assuming we are a friend of Thread.
6080         * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6081         instead of assuming we are a friend of Thread.
6083 Mon Aug 24 15:58:36 1998  Tom Tromey  <tromey@cygnus.com>
6085         * java/lang/natThread.cc: Rewrote from scratch.
6086         * java/lang/Thread.java: Rewrote from scratch.
6087         * prims.cc (JvRunMain): Use new Thread constructor.
6088         * include/javaprims.h (java::lang): Added InterruptedException.
6089         * Makefile.in: Rebuilt.
6090         * Makefile.am (nat_headers): Added java/lang/Thread.h.
6091         * java/lang/Thread.h: Removed.
6092         * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6093         * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6094         argument.
6095         * posix-threads.cc (JvPrivThreadJoin): Removed.
6096         (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6097         (really_start): Don't notify join_cond.
6098         (JvPrivThreadStart): Added `data' argument.
6099         * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6100         (JvPrivThreadJoin): Likewise.
6101         Use JvFail instead of sorry.
6102         (JvPrivThreadSuspend): Removed.
6103         (JvPrivThreadResume): Removed.
6104         * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6105         (JvPrivThreadJoin): Likewise.
6106         (JvPrivThreadSuspend): Use JvFail.
6107         (JvPrivThreadResume): Likewise.
6108         (JvPrivThreadSuspend): Removed.
6109         (JvPrivThreadResume): Likewise.
6110         * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6111         (JvPrivThread_t): Removed join_mutex, join_cond.
6112         Use JvFail instead of sorry.
6113         (JvPrivThreadSuspend): Removed.
6114         (JvPrivThreadResume): Likewise.
6116 Tue Aug 25 12:50:13 1998  Warren Levy  <warrenl@cygnus.com>
6118         * java/util/Observer.java: Rewritten
6119         * java/util/Enumeration.java: Rewritten
6121 Tue Aug 25 11:33:54 1998  Warren Levy  <warrenl@cygnus.com>
6123         * java/util/StringTokenizer.java: Rewritten
6124         * java/util/Stack.java: Added COPYRIGHT-TBD comment
6125         * java/util/Vector.java: Added COPYRIGHT-TBD comment
6126         * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6127         
6128 Fri Aug 21 10:14:22 1998  Tom Tromey  <tromey@cygnus.com>
6130         * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6131         not defined.
6133         * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6134         Include java-assert.h.
6135         * include/java-assert.h: New file.
6136         * prims.cc (_Jv_Abort): New function.
6137         Include java-assert.h, not assert.h.
6138         (_Jv_MonitorExit): Use JvAssert.
6139         (resolveConstants): Likewise.
6140         (processClass): Likewise.
6141         (JvRunMain): Assert that method is found.
6143         * configure: Rebuilt.
6144         * configure.in: Check for test subdir.
6145         * Makefile.in: Rebuilt.
6146         * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6148         * prims.cc (JvRunMain): Use NORM_PRIORITY.
6149         * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6151         * prims.cc (resolveConstants): Removed unused variables.
6152         (processClass): Likewise.
6154         * include/quick-threads.h (JvPrivThreadCurrent): Use
6155         coop_getspecific.
6156         * quick-threads.cc (destroy_data): New function.
6157         (JvPrivInitThreads): Create key.
6158         (JvPrivThreadKey): New global.
6159         (JvPrivThreadStart): Use coop_setspecific.
6161         * include/quick-threads.h, include/posix-threads.h,
6162         include/no-threads.h, no-threads.cc, quick-threads.cc,
6163         posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6165 Thu Aug 20 10:57:30 1998  Tom Tromey  <tromey@cygnus.com>
6167         * include/no-threads.h (JvPrivThreadInitData): Don't set
6168         JvPrivOnlyThread.
6170         * include/quick-threads.h (JvPrivCondWait): coop function now
6171         takes microseconds.
6172         (JvPrivThreadJoin): Likewise.
6174         * java/lang/Thread.h (Thread): Updated declaration of
6175         JvPrivThreadStart.
6176         * include/quick-threads.h, include/posix-threads.h: Updated
6177         declaration of JvPrivThreadStart.
6178         * include/no-threads.h (JvPrivThreadStart): Changed definition
6179         into declaration.
6180         * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6181         * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6182         * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6184 Wed Aug 19 14:53:59 1998  Tom Tromey  <tromey@cygnus.com>
6186         * quick-threads.cc (qthrow): New function.
6187         (JvPrivInitThreads): New function.
6188         (started): New global.
6189         (JvPrivThreadStart): Call coop_start if required.
6190         * include/quick-threads.h (JvPrivThreadCancel): Implement.
6191         (JvPrivThreadDestroy): Likewise.
6192         (JvPrivInitThreads): Removed.
6193         * include/posix-threads.h (JvPrivThreadCancel): Added error
6194         argument.
6195         * java/lang/natThread.cc (stop_): Pass exception to
6196         JvPrivThreadCancel.
6198 Tue Aug 18 12:58:22 1998  Tom Tromey  <tromey@cygnus.com>
6200         * include/javaprims.h (java::lang): Added
6201         IllegalArgumentException, IllegalThreadStateException, Math,
6202         NullPointerException, ThreadDeath.
6203         (java::util): Added Enumeration.
6205         * Makefile.in: Rebuilt.
6206         * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6208         * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6209         now public.
6210         (threadsv): Renamed from threads to avoid clash in C++ header.
6211         (groupsv): Likewise.
6212         * include/no-threads.h (JvPrivThreadStart): Removed.
6213         * no-threads.cc (JvPrivThreadStart): New function.
6214         * java/lang/Thread.java (Thread): New constructor for internal use.
6215         * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6216         (Thread): Declare constructor.
6217         * prims.cc (JvRunMain): Create the initial Thread and
6218         ThreadGroup.
6219         Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6220         * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6221         Removed `daemon' argument.
6223         * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6224         * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6225         a friend.
6226         * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6228         * Makefile.in: Rebuilt.
6229         * Makefile.am (INCLUDES): Include THREADINCS.
6231         * configure: Rebuilt.
6232         * configure.in: Recognize `qt' as a threads package.
6234 Thu Aug 20 12:42:32 1998  Warren Levy  <warrenl@cygnus.com>
6236         * java/util/Stack.java (pop): Null out topmost node for robustness.
6238 Thu Aug 20 12:30:30 1998  Warren Levy  <warrenl@cygnus.com>
6240         * java/util/Stack.java: Rewritten.
6241         * java/util/Vector.java (isEmpty): Simplified expression.
6243 Wed Aug 19 18:02:19 1998  Warren Levy  <warrenl@cygnus.com>
6245         * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6246         (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6248         * include/java-array.h (JvNewObjectArray): Created inline to
6249         _Jv_NewObjectArray.
6251         * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6252         JvNewObjectArray.
6253         
6254 Wed Aug 19 14:12:02 1998  Warren Levy  <warrenl@cygnus.com>
6256         * java/util/Vector.java: Rewritten.
6257         * java/io/Serializable.java: Created.
6259 Fri Aug 14 10:31:54 1998  Tom Tromey  <tromey@cygnus.com>
6261         * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6262         Infinity is 1/0, not 1/1.
6264         * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6266         * configure: Rebuilt.
6267         * configure.in: Removed duplicate AC_ARG_WITH.
6269 Thu Aug 13 14:51:47 1998  Warren Levy  <warrenl@cygnus.com>
6271         * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6272         soft_badarrayindex.
6273         (_Jv_InitClass): Renamed from soft_initialise_class.
6274         (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6275         (_Jv_CheckCast): Renamed from soft_checkcast.
6276         (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6277         (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6278         (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6279         * include/cni.h (JvInitClass): New function.
6280         (_Jv_InitClass): Renamed from soft_initialise_class.
6282 Wed Aug 12 10:07:04 1998  Tom Tromey  <tromey@cygnus.com>
6284         * configure: Rebuilt.
6285         * configure.in (CXX): Don't set.
6286         * Makefile.in: Rebuilt.
6287         * Makefile.am (AM_CXXFLAGS): New macro.
6289         * Makefile.in: Rebuilt.
6290         * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6291         nogc.o): New target.
6293         * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6294         GC.
6295         (mark_array): Likewise.
6297 Tue Aug 11 11:44:53 1998  Per Bothner  <bothner@cygnus.com>
6299         * java/lang/Class.h (JvMethod):  Removed some unused fields.
6300         (JvField.info):  Removed unused idx union variant.
6302 Mon Aug 10 15:00:14 1998  Tom Tromey  <tromey@cygnus.com>
6304         * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6305         match compiler.
6307 Mon Aug  3 16:13:54 1998  Per Bothner  <bothner@cygnus.com>
6309         * configure.in, configure (CXX):  Add -fvtable-thunks.
6311 Thu Jul 30 14:34:47 1998  Per Bothner  <bothner@cygnus.com>
6313         * java/lang/Object.java (finalize):  Move first.
6314         * java/lang/Object.h (_JvObjectPrefix):  New dummy base class.
6315         (Object):  Re-arrange order to match Object.java.
6317 Tue Jul 28 21:42:16 1998  Per Bothner  <bothner@cygnus.com>
6319         * prims.cc (hashUtf8String):  Fix - use new JavaSoft specification.
6320         * java/lang/natString.cc (hashChars):  Likewise.
6322         * prims.cc (RuntimeClass):  New macro.
6323         (JvRunMain):  Do soft_initialise_class of RuntimeClass before exit.
6325 Mon Jul 27 22:20:10 1998  Tom Tromey  <tromey@cygnus.com>
6327         * Makefile.in: Rebuilt.
6328         * Makefile.am (AM_MAKEFLAGS): New macro.
6330 Fri Jul 24 11:21:24 1998  Tom Tromey  <tromey@cygnus.com>
6332         * nogc.cc: Include <javaprims.h>.
6334         * Makefile.in: Rebuilt.
6335         * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6337 Thu Jul 23 11:38:40 1998  Tom Tromey  <tromey@cygnus.com>
6339         * exception.cc (terminate): Removed.
6340         (unexpected): Removed.
6342         * configure: Rebuilt.
6343         * configure.in: Handle case where target subdir is ".".
6345         * configure: Rebuilt.
6346         * configure.in: Compute COMPPATH based on --with-target-subdir
6347         option.  Added --with-target-subdir and --with-cross-host.  Use
6348         --with-cross-host to determine when a cross compiler is in use.
6350         * Makefile.in: Rebuilt.
6351         * Makefile.am (GJAVAH): Include COMPPATH.
6352         * configure: Rebuilt.
6353         * configure.in: Subst COMPPATH.
6355 Mon Jul 20 16:13:43 1998  Tom Tromey  <tromey@cygnus.com>
6357         * prims.cc (lockMutex): Removed.
6358         (unlockMutex): Likewise.
6359         (processClass): Lock the class using a JvSynchronize object.
6361 Fri Jul 17 11:27:48 1998  Tom Tromey  <tromey@cygnus.com>
6363         * java/lang/natString.cc (gc_calloc_fixed): Removed.
6364         (gc_free_fixed): Removed.
6365         (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6366         freeing old value of strhash.
6368         * exception.cc (_Jv_type_matcher): Cast first argument to
6369         _Jv_IsInstanceOf.
6371 Thu Jul 16 14:51:44 1998  Tom Tromey  <tromey@cygnus.com>
6373         * include/java-array.h (jstringArray): New type.
6374         * java/lang/natSystem.cc (setProperty): Removed.
6375         (initProperties): Directly call JvNewStringLatin1 for arguments.
6376         * java/util/natDate.cc: Include java/util/Date.h, not
6377         java-util.h.
6378         (setTime): Removed.
6379         * java/io/FileDescriptor.java (available): No longer static.
6380         * java/lang/natDouble.cc (Double): Removed class definition.
6381         * include/javaprims.h (java::lang::Number): Declare.
6382         (java::lang::NumberFormatException): Likewise.
6383         (java::io::FilenameFilter): Likewise.
6384         (java::lang::Character): Likewise.
6385         (java::lang::Error): Likewise.
6386         (java::lang::SecurityManager): Likewise.
6387         (java::util::Vector): Likewise.
6388         (java::io::FileNotFoundException): Likewise.
6389         (java::io::IOException): Likewise.
6390         (java::lang::NativeLang): Likewise.
6391         (java::lang::UnsatisfiedLinkError): Likewise.
6392         (java::util::StringTokenizer): Likewise.
6393         (java::io::InputStream, java::io::OutputStream): Likewise.
6394         (java::io::PrintStream, java::lang::SecurityException): Likewise.
6395         (java::util::Hashtable): Likewise.
6396         * Makefile.in: Rebuilt.
6397         * Makefile.am (nat_headers): Added java/lang/Double.h,
6398         java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6399         (MOSTLYCLEANFILES): Added nat_headers.
6400         * include/jvm.h: Moved many defines, declarations, and functions
6401         to java/lang/Class.h.
6402         (struct JvSyncInfo): Moved to java/lang/Object.h.
6403         (UTF8_GET): Moved to java/lang/String.h.
6405 Wed Jul 15 09:02:31 1998  Tom Tromey  <tromey@cygnus.com>
6407         * java/io/io-defs.h: Don't include java-io.h.
6408         * include/java-io.h: Removed.
6409         * include/javaprims.h: Include java::io.
6411 Tue Jul 14 17:04:26 1998  Tom Tromey  <tromey@cygnus.com>
6413         * include/java-io.h (File): Removed
6414         (FileDescriptor): Likewise.
6416         * java/io/io-defs.h: Include java/io/File.h and
6417         java/io/FileDescriptor.h.
6419         * Makefile.in: Rebuilt.
6420         * Makefile.am (GJAVAH): New macro.
6421         (.class.h): New rule.
6422         (SUFFIXES): Added .h.
6423         (nat_headers): New macro.
6424         ($(nat_headers)): New target.
6425         (BUILT_SOURCES): Added nat_headers.
6427         * include/java-util.h: Removed.
6429 Fri Jul  3 10:17:14 1998  Tom Tromey  <tromey@cygnus.com>
6431         * include/java-io.h: Changed to avoid java-lang.h.
6432         * java/lang/natThread.cc: Include java/lang/Thread.h, not
6433         java-lang.h.
6434         * java/lang/natSystem.cc: Include java/lang/System.h, not
6435         java-lang.h.
6436         * java/lang/natString.cc: Include java/lang/String.h, not
6437         java-lang.h.
6438         * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6439         java-lang.h.
6440         * java/lang/natClass.cc: Include java/lang/Class.h, not
6441         java-lang.h.
6442         * java/lang/natDouble.cc: Include java/lang/Object.h, not
6443         java-lang.h.
6444         * java/lang/natObject.cc: Include java/lang/Object.h, not
6445         java-lang.h.
6446         * exception.cc: Don't include java-lang.h.
6447         * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6448         * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6449         * nogc.cc: Don't include java-lang.h.
6450         * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6451         * prims.cc (processClass): Don't use `init_type'; just cast to
6452         type directly.
6453         Include java/lang/Class.h and jvm.h, not java-lang.h.
6454         (JvAllocObject): Wrote single-argument version.
6455         (PrimClass): Inherit from Class.
6456         (initPrimClass): Removed.
6457         * include/java-lang.h: Removed.
6458         * include/jvm.h: Declare struct _dispatchTable.
6459         * include/cni.h: Don't declare _Jv_MonitorEnter,
6460         _Jv_MonitorExit, struct _dispatchTable.
6461         * include/javaprims.h: Moved all typedefs here, from cni.h.
6462         * java/lang/Class.h: New file.
6463         * include/java-array.h: New file.
6464         * java/lang/Object.h: New file.
6466         * prims.cc (classFromSig): Now static.
6468 Wed Jul  1 12:28:48 1998  Tom Tromey  <tromey@cygnus.com>
6470         * include/cni.h: Don't mention soft_new.
6471         * include/java-lang.h (Object): Don't mention soft_new.  Mention
6472         _Jv_NewPrimArray, not newPrimArray.
6473         * prims.cc (soft_new): Removed.
6474         (_Jv_NewArray): Renamed from soft_newarray.
6475         (soft_anewarray): Use JvNewObjectArray.
6476         (newArray): Likewise.
6477         (newRefArray): Removed.
6478         (_Jv_NewPrimArray): Renamed from newPrimArray.
6479         (equalUtf8Consts): Now static.
6480         (soft_instanceof): Removed.
6481         * java/lang/natDouble.cc (doubleToString): Now static.
6483         * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6484         java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6485         Removed.
6487 Tue Jun 30 10:54:57 1998  Tom Tromey  <tromey@cygnus.com>
6489         * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6490         _Jv_MonitorExit.
6491         * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6492         _Jv_MonitorExit.
6493         * include/no-threads.h (JvPrivMutexLock): Always return -1.
6494         (JvPrivMutexUnlock): Likewise.
6495         * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6496         Return value now jint.
6497         (_Jv_MonitorExit): Renamed from soft_monitorexit.  Return value
6498         now jint.
6500         * Makefile.in: Rebuilt.
6501         * Makefile.am: Don't allow `jV' names.
6502         (maintainer-check): Depend on libjava.a.
6503         * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6505         * Makefile.in: Rebuilt.
6506         * Makefile.am (NM): New macro.
6507         (maintainer-check): New target.
6509         * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6511         * configure: Rebuilt.
6512         * configure.in: Use --enable-threads, not --enable-gc.  Fix
6513         documentation for --enable-threads.  Changed option to work like
6514         identical option in gcc/configure.
6516 Mon Jun 29 10:44:29 1998  Tom Tromey  <tromey@cygnus.com>
6518         * boehm.cc (mark_array): Use JvGetArrayLength.
6520 Thu Jun 25 11:56:21 1998  Per Bothner  <bothner@cygnus.com>
6522         * exception.cc:  New file (mostly written by Andrew MacLeod),
6523         exception handling support.
6524         * Makefile.am (libjava_a_SOURCES), Makefile.in:  Add exception.cc.
6525         Remove -fexceptions - it is now the default.
6527         * prims.cc (JvIsInstanceOf):  Renamed to _Jv_IsInstanceOf.
6528         (JvAllocObject):  Renamed to _Jv_AllocObject.
6529         (soft_athrow):  Removed.  Replaced by _Jv_Throw in exception.cc.
6530         (loadClass):  Renamed to _Jv_FindClass.
6531         * include/cni.h (JvIsInstanceOf, JvAllocObject).  Make into
6532         inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6533         * include/java-lang.h (JvGetArrayLength):  New CNI function.
6534         * include/jvm.h (_Jv_FindClass):  Added declaration.
6536         * java/lang/natString.cc:  More implementation if COMPACT_STRINGS.
6538 Wed Jun 24 16:41:30 1998  Per Bothner  <bothner@cygnus.com>
6540         * java/lang/natClass.cc (getName):  Add implementation.
6541         * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6543 Tue Jun 23 15:56:24 1998  Tom Tromey  <tromey@cygnus.com>
6545         * Makefile.in: Rebuilt.
6546         * Makefile.am (.class.o): Added -fexceptions.
6548 Mon Jun 15 14:54:06 1998  Tom Tromey  <tromey@cygnus.com>
6550         * configure: Rebuilt.
6551         * configure.in: Don't check for __nanosleep.
6552         * posix-threads.cc (nanosleep): Never define.
6554 Sun Jun 14 22:37:23 1998  Tom Tromey  <tromey@cygnus.com>
6556         * posix-threads.cc (JvPrivCondWait): Fixed computation of
6557         timespec.
6559 Thu Jun 11 10:51:44 1998  Tom Tromey  <tromey@cygnus.com>
6561         * java/lang/natThread.cc (enumerate): Uncommented.
6562         * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6563         (interrupt): Call it.
6565 Wed Jun 10 15:57:16 1998  Tom Tromey  <tromey@cygnus.com>
6567         * configure: Rebuilt.
6568         * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6570 Mon Jun  8 12:04:11 1998  Tom Tromey  <tromey@cygnus.com>
6572         * include/no-threads.h (JvPrivThreadInterrupt): New method.
6573         * include/java-lang.h (Thread): Added `interrupted_' method.
6574         * java/lang/Thread.java (interrupted_): New method.
6575         * java/lang/natThread.cc (join): Possibly throw interrupted
6576         exception after join finishes.
6577         (interrupted_): New method.
6578         * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6579         join_cond.
6580         (JvPrivThreadJoin): New function.
6581         (really_start): Notify all threads waiting for this thread.
6582         (struct starter): Added `data' member.
6583         (JvPrivThreadStart): Set it.
6584         * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6585         join_cond.
6586         (JvPrivThreadJoin): No longer inline.
6587         (JvPrivThreadInterrupt): New function.
6589         * include/no-threads.h (JvPrivThreadSleep): Removed.
6590         * posix-threads.cc (JvPrivThreadSleep): Removed.
6592 Fri Jun  5 13:51:25 1998  Tom Tromey  <tromey@cygnus.com>
6594         * configure: Rebuilt.
6595         * configure.in (THREADOBJS): Initialize to no-threads.o in
6596         no-threads case.
6597         * posix-threads.cc (key): New global.
6598         (JvPrivInitThreads): New function.
6599         (really_start): Set thread-specific data to point to object.
6600         (JvPrivThreadStart): Added `daemon' argument.
6601         (JvPrivThreadSleep): Added `data' argument.
6602         * include/posix-threads.h (JvPrivInitThreads): Removed
6603         implementation.
6604         (JvPrivThreadCurrent): New function.
6605         * include/no-threads.h (JvPrivThreadInitData): Initialize
6606         JvPrivOnlyThread.  Added `thread' argument.
6607         (JvPrivThreadCurrent): New function.
6608         (JvPrivThreadStart): Added `daemon' argument.
6609         * no-threads.cc: New file.
6610         * java/lang/natThread.cc (init_data): New function.
6611         (isAlive): Removed.
6612         (start): Set `alive' member.
6613         (stop_): Clear `alive' member.
6614         (destroy): Likewise.
6615         (currentThread): Implemented.
6616         (start): Pass `daemon' argument to JvPrivThreadStart.
6617         (sleep): Rewrote.
6618         * include/java-lang.h (Thread): Added `alive', `tsync' members.
6619         (Thread): Added `init_data' method.
6620         * java/lang/Thread.java (alive, data): New instance variables.
6621         (init_data): New private method.
6622         (isAlive): No longer native.
6624 Thu Jun  4 14:09:32 1998  Tom Tromey  <tromey@cygnus.com>
6626         * include/java-lang.h (JvRunMain): Declare.
6627         * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6628         * prims.cc (JvRunMain): New function.
6629         (main_signature, main_name): New globals.
6631         * boehm.cc (mark_array): Use `elements' function and not
6632         operator[] on jarray.
6634         * posix-threads.cc: Include <config.h>.  Define nanosleep if
6635         required.
6637         * configure: Rebuilt.
6638         * configure.in: Check for _nanosleep.
6640         * configure: Rebuilt.
6641         * configure.in: Check for pthread_mutexattr_settype.
6643         * include/cni.h (class JvSynchronize): New class.
6644         * java/lang/Thread.java (sleep): Throws InterruptedException.
6645         (join): Throws InterruptedException.
6646         (resume): Not native.
6647         (resume_): New method.
6648         (start): Now synchronized.
6649         (stop_): New method.
6650         (Thread): Synchronize when accessing threadNumber.
6651         (misc): Removed.
6652         * java/lang/natThread.cc (throwException): New macro.
6653         (sleep): Throw InterruptedException.
6654         (resume_): Renamed.
6655         (stop_): Renamed.
6656         * include/java-lang.h (Runtime): Added interrupted().
6658         * boehm.cc (call_finalizer): Correctly initialize jobj.
6659         * include/java-lang.h (Runtime): Added getRuntime() and exit().
6661         * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6662         `#elseif'.
6664         * configure: Rebuilt.
6665         * configure.in: Added support for --disable-threads.
6666         * include/no-threads.h: New file.
6668         * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6670         * Makefile.in: Rebuilt.
6671         * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6672         (libjava_a_DEPENDENCIES): Added THREADOBJS.
6673         (libjava_a_LIBADD): Added THREADOBJS.
6674         * configure: Rebuilt.
6675         * configure.in: Added --with-threads option.
6676         * posix-threads.cc: New file.
6677         * include/posix-threads.h: New file.
6678         * include/java-lang.h (Object): Added static member sync_mutex,
6679         member sync_info, method init_mutex.
6680         (struct JvSyncInfo): New struct.
6681         Include "java-threads.h".
6682         * prims.cc (soft_monitorenter): Wrote.
6683         (soft_monitorexit): Likewise.
6684         * java/lang/natObject.cc (init_mutex): New method.
6685         (notify): Wrote.
6686         (notifyAll): Wrote.
6687         (wait): Wrote.
6688         (sync_mutex): Define.
6689         Include "java-threads.h".
6691 Tue Jun  2 15:24:33 1998  Per Bothner  <bothner@cygnus.com>
6693         * include/java-lang.h (JvPrivInitGC):  Make extern "C".
6694         * include/jvm.h (JvConvertArgv, JvNewObjectArray):  Likewise.
6696 Mon Jun  1 11:21:34 1998  Per Bothner  <bothner@cygnus.com>
6698         * include/cni.h (jbyte etc):  Re-define using __java_byte etc.
6699         Added extern "Java" in places to tell G++ Object is a "Java" type.
6700         Other minor renaming and fixes.
6701         * include/java-io.h (FileDescriptor):  Add friend class declarations.
6702         G++ no longer allows non-Java types in method parameters and results
6703         of Java classes.  Converted most offending methods to friends.
6704         * java/lang/natDouble.cc (Double::toString):  Rename to doubleToString.
6705         * java/lang/natSystem.cc (setProperty):  Make friend.
6706         * java/lang/natString.cc, include/java-lang.h (String):  Rename
6707         methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6708         * include/java-lang.h (JArray):  Remove getData and eoprator[].
6709         Add elements friend function instead.
6710         * java/lang/natSystem.cc (arraycopy):  Use elements function.
6711         * java/io/natFileDescriptor.cc (read, write):  Likewise.
6712         * include/java-lang.h (Object):  Remove unused make method.
6713         (System::setProperty(char*,char*)): Turn into friend function.
6714         (Class):  Rename newObject by JvAllocObject.
6715         * prims.cc:  Update to use JvAllocObject, and elements.
6717         * java/lang/natDouble.cc:  Fix double -> jdouble.
6719 Wed May 20 16:50:06 1998  Per Bothner  <bothner@cygnus.com>
6721         * Makefile.am (INCLUDES):  Add -Iinclude (to get config.h).
6723 Mon May 18 13:46:02 1998  Tom Tromey  <tromey@cygnus.com>
6725         * java/lang/natRuntime.cc (finalize_on_exit): Define.
6726         * include/java-lang.h (Runtime): finalize_on_exit and
6727         runFinalizersOnExit now static.
6728         * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6729         match JDK 1.2b3.
6730         (finalize_on_exit): Now static.
6732         * boehm.cc (mark_obj): Get class using getClass() method on
6733         object.
6734         (_dispatchTable): Removed.
6736 Mon May 11 15:26:52 1998  Tom Tromey  <tromey@cygnus.com>
6738         * java/io/natFileDescriptor.cc (open_read): Only call open if
6739         HAVE_OPEN defined.
6740         (open_write): Likewise.
6742         * Makefile.in: Rebuilt.
6743         * Makefile.am ($(nat_files)): Depend on config.h.
6745 Thu May  7 16:22:00 1998  Tom Tromey  <tromey@cygnus.com>
6747         * prims.cc (ObjectClass): Now a macro; updated for new class name
6748         mangling scheme.
6749         (StringClass): Likewise.
6750         (ClassClass): Likewise.
6752 Wed May  6 00:26:44 1998  Tom Tromey  <tromey@cygnus.com>
6754         * java/io/natFileDescriptor.cc (available): Do nothing unless
6755         HAVE_SELECT defined.
6756         * java/util/natDate.cc (setTime): Conditional on
6757         HAVE_GETTIMEOFDAY.
6758         (toString): Conditional on HAVE_TIME.
6759         * aclocal.m4, configure: Rebuilt.
6760         * acinclude.m4: New file.
6761         * configure.in: Don't actually call AM_EXEEXT.  Call
6762         AC_CANONICAL_HOST.  Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX.  Added
6763         --with-target-subdir option.  Check for select and open
6764         functions.
6766 Tue May  5 00:10:45 1998  Tom Tromey  <tromey@cygnus.com>
6768         * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6769         (call_finalizer): Likewise.
6770         * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6771         * prims.cc (newObject): Pass actual method pointer to
6772         JvPrivRegisterFinalizer.
6773         * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6774         (JvPrivRegisterFinalizer): Changed interface.
6776         * Makefile.in: Rebuilt.
6777         * Makefile.am (MOSTLYCLEANFILES): New macro.
6778         (CLEANFILES): Removed javao_files.
6780 Fri May  1 22:52:24 1998  Tom Tromey  <tromey@cygnus.com>
6782         * nogc.cc: New file.
6783         * Makefile.in: Rebuilt.
6784         * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6785         (EXTRA_libjava_a_SOURCES): New macro.
6786         (libjava_a_SOURCES): Removed boehm.cc.
6787         (libjava_a_DEPENDENCIES): Added GCOBJS.
6788         (libjava_a_LIBADD): Likewise.
6789         * configure: Rebuilt.
6790         * configure.in: Added code for --enable-gc=TYPE.
6792 Thu Apr 30 14:54:00 1998  Tom Tromey  <tromey@cygnus.com>
6794         * boehm.cc (mark_array): Don't further dereference pointer from
6795         array.
6797         * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6798         * Makefile.in: Rebuilt.
6799         * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6800         one for boehm-gc build directory.
6802 Wed Apr 29 09:45:19 1998  Tom Tromey  <tromey@cygnus.com>
6804         * include/java-lang.h (finalize_on_exit): New instance variable in
6805         java::lang::Runtime.
6806         (runFinalizersOnExit): New method.
6807         * java/lang/Runtime.java (finalize_on_exit): New instance
6808         variable.
6809         (runAllFinalizers_): New private method.
6810         (runFinalizersOnExit): New method.
6811         * boehm.cc (JvPrivRunFinalizers): New function.
6812         (JvPrivRunAllFinalizers): Likewise.
6813         (JvPrivRunGC): Likewise.
6814         * java/lang/natRuntime.cc: Include "jvm.h".
6815         (gc): Call JvPrivRunGC.
6816         (runFinalization): Call JvPrivRunFinalizers.
6817         (runFinalizersOnExit): New method.
6818         (exit_): Call JvPrivRunAllFinalizers if required.
6819         * include/jvm.h: Declare JvPrivRunFinalizers,
6820         JvPrivRunAllFinalizers, JvPrivRunGC.
6822 Tue Apr 28 15:06:50 1998  Tom Tromey  <tromey@cygnus.com>
6824         * boehm.cc (JvPrivRegisterFinalizer): New function.
6825         (call_finalizer): Likewise.
6826         * include/jvm.h: Declare JvPrivRegisterFinalizer.
6827         * prims.cc (finalize_name): New global.
6828         (newObject): Just call other newObject.
6829         (newObject): Register finalizer if it exists.
6831 Mon Apr 27 12:47:03 1998  Tom Tromey  <tromey@cygnus.com>
6833         * prims.cc (gc_malloc): Removed.
6834         (makeUtf8Const): Use JvPrivAllocBytes.
6835         (lookupArray): Likewise.
6836         (newPrimArray): Likewise.
6837         (JvNewObjectArray): Use JvPrivAllocArray.
6838         (newObject): Use JvPrivAllocObj.
6839         (newObject): Likewise.
6840         Changed Method -> JvMethod everywhere.
6841         Changed Field -> JvField everywhere.
6842         * include/java-lang.h (Object): Changed type of `fields' to
6843         JvField*.
6844         (jmethodID, jfieldID): New typedefs.
6845         (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6846         friends.
6847         * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6848         from java-lang.h.
6849         (METHOD_NATIVECODE): Moved from java-lang.h.
6850         (class JvField): New class.
6851         (JvGetFirstInstanceField): New function.
6852         (JvFieldIsRef): Likewise.
6853         (JvGetObjectField): Likewise.
6854         (JvNumInstanceFields): Likewise.
6856 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
6858         * boehm.cc: New file.
6859         * Makefile.in: Rebuilt.
6860         * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6861         (INCLUDES): Added -I options to find boehm-gc files.
6863 Wed Apr 29 15:11:37 1998  Tom Tromey  <tromey@cygnus.com>
6865         * configure: Rebuilt.
6866         * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6868         * Makefile.in: Rebuilt.
6869         * Makefile.am (nat_files): New macro.
6870         (libjava_a_DEPENDENCIES): Use it.
6871         (libjava_a_LIBADD): Likewise.
6872         ($(nat_files)): New static pattern rule.
6873         (class_files): Run separate find to find .class files.
6874         (javao_files): Compute based on class_files.
6875         (BUILT_SOURCES): New macro.
6877 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
6879         * Makefile.am (java_files): New macro.
6880         (class_files): Likewise.
6881         (javao_files): Likewise.
6882         (libjava_a_DEPENDENCIES): Include $(javao_files).
6883         (libjava_a_LIBADD): Likewise.
6884         (classes.stamp): Depend on $(java_files); only recompile changed
6885         files.
6886         (here): New macro.
6887         (CLEANFILES): Don't run find; use macros.  Don't mention
6888         libjava.a.
6889         (.class.o): New target.
6890         (compiled.stamp): Removed.
6892 Thu Apr 23 14:17:43 1998  Per Bothner  <bothner@cygnus.com>
6894         * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6895         LineNumberReader}>java:  Newly-implemented standard classes.
6897 Thu Apr 23 14:02:04 1998  Tom Tromey  <tromey@cygnus.com>
6899         * Makefile.in: Rebuilt.
6900         * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6902         * Makefile.in: Rebuilt.
6903         * Makefile.am (hack): New macro.
6904         (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6906 Wed Apr 22 16:49:57 1998  Tom Tromey  <tromey@cygnus.com>
6908         * include/config.h.in: New file.
6909         * include/config.h: Removed.
6910         * acconfig.h: New file.
6911         * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6912         (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6913         libjava_a_LIBADD): New macros.
6914         (INCLUDES): New macro.
6915         (prims.o): Removed.
6916         (.cc.o): Removed.
6917         (SUFFIXES): Removed.
6918         (all): Removed.
6919         (libjava.a): Removed.
6921         * configure: Rebuilt.
6922         * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6923         Look for headers and functions we require.  Create
6924         include/config.h.
6926 Mon Apr 20 22:25:00 1998  Per Bothner  <bothner@cygnus.com>
6928         * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6929         soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6930         soft_lookupinterfacemethod):  New functions.
6931         (PrimClass):  Actually initialize the primitive classes.
6932         (Utf8Const2JavaString):  Moved to java/lang/natString.cc.
6934         * include/java-util.h:  Removed java::util definition.
6935         * include/cni.h:  Moved java::util here and added Properties.
6936         Added more function prototypes.
6937         * include/java-lang.h:  Added mroe methods and friend declarations.
6938         * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME):  Added.
6939         * include/jvm.h (strLengthUtf8):  Add declaration.
6940         
6941         * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6942         New static field.
6943         * java/lang/{Byte,Short,Void}.java:  New classes.
6944         * java/lang/Character.java (isJavaIdentifierStart,
6945         JavaIdentifierPart):  New static methods.
6946         * java/lang/Number.java (byteValue, shortValue):  New methods.
6948         * java/lang/String.java (intern, hashCode):  Make native.
6949         * java/lang/natString.cc:  New file.  Handle the string pool.
6950         * Makefile.am:  Build natString.o.  Use CXXFLAGS.
6952         * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6953         isInstance, isAssignableFrom), java/lang/natClass.cc:  New methods.
6954         * java/lang/Throwable.java (<init>):  Don't fillInStackTrace yet.
6955         * java/lang/System.java (setProperty):  New private method.
6956         (initProperties):  Take argument, and make native.
6957         * java/lang/natSystem.cc:  Implement (preliminary) initProperties.
6958         (currentTimeMillis):  Make more robust.
6960         * java/io/{Writer,PrintWriter,OutputStreamWriter}.java:  New classes.
6961         * java/io/UnsupportedEncodingException.java:  New exception class.
6963         * java/io/DataInputStream.java:  Don't use a PushbackInputStream.
6964         * java/io/FilterOutputStream.java:  Add missing 'extends OutputStream'.
6965         
6966 Fri Apr 10 11:52:10 1998  Per Bothner  <bothner@cygnus.com>
6968         * Makefile.am (CXXFLAGS, JC1FLAGS):  New macro.
6969         * prims.cc:  Added bunch of stuff.
6970         * include/cni.h:  Added various definitions.
6971         * include/java-lang.h:  Added Method, various friends, some macros.
6973         * include/config.h:  Added HAVA_MEMMOVE and HAVE_MEMCPY.
6974         * java/lang/System.java (arraycopy):  Make native.
6976 Sun Apr  5 23:58:51 1998  Per Bothner  <bothner@cygnus.com>
6978         * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
6979         natSystem.cc,natThread.cc}:  Native (C++) methods for various classes.
6980         * java/lang/ClassLoader.java (defineClass):  Now takes extra argument.
6981         * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
6982         Make native.
6983         * java/lang/Runtime.java:  Declare methods as native instead of
6984         using NativeLang.
6985         * java/lang/SecurityManager.java (getClassContext):  Just throw Error.
6986         * java/lang/System.java:  Comment out some stuff, for now.
6987         * java/lang/Thread.java:  Re-write.  Use native methods.
6988         * java/lang/NativeLang.java:  Remove most of it.
6989         
6990         * java/util/natDate.cc:  Native (C++) methods for Date.
6991         * java/util/{Calendar.java,GregorianCalendar.java}:  New classes.
6992         * java/util/Date.java:  Complete re-write.
6994         * java/io/io-defs.h:  New header file.
6995         * java/io/FileDescriptor.java:  Add a bunch of private methods,
6996         mostly moved from NativeIO.java and natNativeIO.cc.
6997         * java/io/{natFile.cc,java/io/natFileDescriptor.cc}:  New native code.
6998         * java/io/File.java:  Use new code.
6999         * java/io/{FileInputStream.java.FileOutputStream.java,
7000         RandomAccessFile.java}:  Use new private FileDescriptor methods.
7001         * java/io/NativeIO.java:  Removed, no longer used.
7003         * java/io/StreamTokenizer.java (numericChars):  Make char array.
7005         * include/*.h:  Various header files used by the C++ native code.
7007         * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7008         New autoconf+automake-based setup.
7009         * prims.cc:  New file for Java "primitives".