* pt.c (tsubst_decl): Copy TREE_ASM_WRITTEN for VAR_DECLs.
[official-gcc.git] / libjava / ChangeLog
bloba2830124ef7e449fd855fbb06b4c0f3651cc18b2
1 1999-11-24  Tom Tromey  <tromey@cygnus.com>
3         * prims.cc (_Jv_NewObjectArray): Use
4         _Jv_GetArrayElementFromElementType.
5         (_Jv_NewPrimArray): Likewise.
6         * java/lang/natObject.cc (clone): Use
7         _Jv_GetArrayElementFromElementType instead of sizeof.
8         * java/lang/natSystem.cc (arraycopy): Use
9         _Jv_GetArrayElementFromElementType.
10         * include/jvm.h (_Jv_GetArrayElementFromElementType): New
11         function.
13 1999-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
15         * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
16         Exception messages. PR java.net/57.
17         (bind): set SO_REUSEADDR before bind.
18         * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
19         overruns. PR java.net/57.
21 1999-11-19  Tom Tromey  <tromey@cygnus.com>
23         * Makefile.am (DIVIDESPEC): Removed.
24         (EXCEPTIONSPEC): Removed.
26 1999-11-19  Andrew Haley  <aph@cygnus.com>
28         * Makefile.am (JCFLAGS): Add -L$(here)
29         (JC1FLAGS): Ditto.
30         * Makefile.in: Rebuild.
32 1999-11-18  Tom Tromey  <tromey@cygnus.com>
34         * java/lang/natDouble.cc: Include <config.h>.
36         * include/config.h.in: Rebuilt.
37         * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
38         * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
39         targets.
40         * configure: Rebuilt.
41         * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
42         requested by configure.host.  Don't put `-D' option into
43         libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
45         * configure: Rebuilt.
46         * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
47         sjlj-exceptions.
49 1999-11-18  Andrew Haley  <aph@cygnus.com>
51         * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
52         (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
53         (JC1FLAGS): Ditto.
54         * Makefile.in: Rebuild
55         * acconfig.h: remove SJLJ_EXCEPTIONS
56         * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
57         Do not AC_DEFINE SJLJ_EXCEPTIONS.
58         * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
59         * gcj/Makefile.in, include/Makefile.in: rebuild.
60         * include/config.h.in: remove SJLJ_EXCEPTIONS.
61                 
62 1999-11-18  Andrew Haley  <aph@cygnus.com>
64         * gij.cc (main): Rename label to prevent conflict.
66         * exception.cc (_Jv_type_matcher): Don't check the table if we're
67         using setjmp/longjmp exceptions: there isn't one.
69 1999-11-17  Andrew Haley  <aph@cygnus.com>
71         * exception.cc (_Jv_type_matcher): Ignore null exception tables.
72         (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
73         (__sjthrow): Add declaration.
74         * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
75         (JC1FLAGS): Ditto
76         (AM_CFLAGS): Ditto
77         (AM_CXXFLAGS): Ditto
78         * Makefile.in: Rebuild
79         * acconfig.h: Add SJLJ_EXCEPTIONS
80         * configure.in: Add SJLJ_EXCEPTIONS
81         * configure: Rebuild.
82         * gcj/Makefile.in: Rebuild.
83         * gcj/cni.h: Add support for sjlj-exceptions.
84         * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
85         * include/Makefile.in: Rebuild.
86         * include/default-signal.h: Add support for sjlj-exceptions.
88 1999-11-18  Tom Tromey  <tromey@cygnus.com>
90         * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
92         * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
93         minus 1.
94         (method_cache): Made larger.
96 1999-11-11  Tom Tromey  <tromey@cygnus.com>
98         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
99         initializing mutex.  Initialize `count' when required.
101 1999-11-07  Anthony Green  <green@trip.cygnus.com>
103         * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
104         data correctly.
106 1999-11-05  Tom Tromey  <tromey@cygnus.com>
108         * java/lang/natThread.cc (destroy): Removed incorrect comment.
110 1999-11-05  Jeff Sturm  <jsturm@sigma6.com>
112         * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
113         * prims.cc (parse_heap_size): Use end, not spec.  Use 1024
114         multipler for `k'.
116 1999-11-05  Tom Tromey  <tromey@cygnus.com>
118         * java/lang/natThread.cc (stop): Removed argument name.
120         * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
121         `private'; now has default access.
122         * Makefile.in: Rebuilt.
123         * Makefile.am (java/lang/ThreadGroup.h): Removed.
125 1999-11-04  Tom Tromey  <tromey@cygnus.com>
127         * java/lang/natClass.cc (method_cache_count): Removed.
128         (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
129         (_Jv_AddMethodToCache): Don't loop.
131         * configure.in: Removed `qt' threads case.
132         * include/quick-threads.h: Removed.
133         * quick-threads.cc: Removed.
135         * include/quick-threads.h (_Jv_ThreadCancel): Removed.
136         (_Jv_ThreadDestroy): Likewise.
137         * include/no-threads.h (_Jv_ThreadCancel): Removed.
138         (_Jv_ThreadDestroy): Likewise.
139         * include/posix-threads.h (struct _Jv_Thread_t): Removed
140         `exception' field.
141         (_Jv_ThreadCancel): Removed decl.
142         (_Jv_ThreadDestroy): Removed.
143         * posix-threads.cc (_Jv_ThreadCancel): Removed.
144         (throw_cleanup): Removed.
145         (really_start): Don't push or pop cleanup.
146         (_Jv_ThreadInitData): Don't initialize `exception' field.
147         * java/lang/Thread.java (stop): Officially unimplemented.
148         * java/lang/natThread.cc (stop): Officially unimplemented.
150 1999-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
152         * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h 
153         instead.
155 1999-11-02  Tom Tromey  <tromey@cygnus.com>
157         * boehm.cc: Don't include boehm-config.h.
159 1999-11-01  Tom Tromey  <tromey@cygnus.com>
161         * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
162         (sum_blocks): Removed.
163         (_Jv_GCFreeMemory): Use GC_get_free_bytes.
165 1999-11-01  Bryce McKinlay  <bryce@albatross.co.nz>
167         * java/io/PrintStream (PrintStream): Fix illegal usage of "this" 
168           before "super".
169         * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
170         * java/io/InputStreamReader (InputStreamReader): ditto.
172 1999-10-22  Tom Tromey  <tromey@cygnus.com>
174         * Makefile.in: Rebuilt.
175         * Makefile.am (java/lang/ClassLoader.h): New target.
176         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
177         to `redirect'.
179         * include/java-props.h (_Jv_Compiler_Properties): Changed
180         declaration.
181         * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
182         * include/jvm.h (_Jv_GCSetInitialHeapSize,
183         _Jv_GCSetMaximumHeapSize): Declare.
184         (JvRunMain, _Jv_RunMain): Declare.
185         (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
186         * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
187         (_Jv_GCSetMaximumHeapSize): Likewise.
188         * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
189         (_Jv_GCSetMaximumHeapSize): Likewise.
190         * prims.cc (parse_heap_size): New function.
191         (_Jv_SetInitialHeapSize): Likewise.
192         (_Jv_SetMaximumHeapSize): Likewise.
193         (_Jv_Compiler_Properties): New global.
194         * gij.cc (help): New function.
195         (version): Likewise.
196         (heap_size): Likewise.
197         (heap_max_size): Likewise.
198         (main): Parse arguments.  Set _Jv_Compiler_Properties.
199         Include <config.h>, <java-props.h>.
200         (_Jv_Compiler_Properties): Removed.
202 1999-10-18  Tom Tromey  <tromey@cygnus.com>
204         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
205         method.
206         (redirect): New static field.
207         * java/lang/ClassLoader.java (getSystemClassLoader): Now
208         native
209         (getVMClassLoader0): Removed.
210         * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
211         (redirect): Removed.
212         (getSystemClassLoader): Implemented.
214 1999-10-16  Anthony Green  <green@cygnus.com>
216         * java/lang/ClassLoader.java (getSystemResource): Use
217         getSystemClassLoader instead of ClassLoader.system.
218         (getSystemResourceAsStream): Ditto.
220         * java/lang/natClassLoader.cc (redirect): Make static and
221         remove #ifdef INTERPRETER so it is always defined.
222         (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
223         returns a VMClassLoader.
225         * java/util/ResourceBundle.java (trySomeGetBundle): Create a
226         PropertyResourceBundle if a properties file is found before a
227         ResourceBundle class.
229 1999-10-15  Tom Tromey  <tromey@cygnus.com>
231         * gij.cc (main): Formatting fixes.
232         (_Jv_Compiler_Properties): Define.
233         * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
234         declare.
235         (init_properties): Set properites from _Jv_Compiler_Properties.
236         * include/java-props.h (_Jv_Compiler_Properties,
237         _Jv_Environment_Properties): Declare.
239         * include/java-props.h: Added copyright.
241 1999-10-13  Anthony Green  <green@cygnus.com>
243         * libtool-version: Catch up by incrementing current.
245         * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
246         * configure, include/config.h.in: Rebuilt.
247         * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
248         * configure.in: Added --disable-getenv-properties and new define
249         `DISABLE_GETENV_PROPERTIES'.
251         * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
252         (next_property_key): New function.
253         (next_property_value): New function.
254         (process_gcj_properties): New function.
255         (JvRunMain): Call process_gcj_properties.
256         (_JvRunMain): Ditto.
258         * java/lang/natSystem.cc (init_properties): Set properties defined
259         in GCJ_PROPERTIES.
261         * include/java-props.h: New file.
263         * java/lang/natSystem.cc (init_properties): Add new properties to
264         conform with Java Product Versioning Specification.
266 1999-10-12  Tom Tromey  <tromey@cygnus.com>
268         * configure: Rebuilt.
269         * configure.in: Fixed test for --disable-java-net.
271 1999-10-06  Tom Tromey  <tromey@cygnus.com>
273         * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
274         when building Canadian cross.
275         (NATIVE): Don't define when cross-compiling.
277 1999-10-04  Tom Tromey  <tromey@cygnus.com>
279         * java/net/natPlainSocketImpl.cc: Don't include headers if
280         java.net is disabled.
282         * Makefile.in: Rebuilt.
283         * Makefile.am (ZINCS): Removed.  This is defined in configure.in
284         when needed, and must be left empty when not needed.
286 1999-10-01  Anthony Green  <green@cygnus.com>
288         * THANKS: Refreshed from htdocs version.
290 1999-10-01  Steve Chamberlain  <sac@pobox.com>
292         * Makefile.in: Rebuilt.
293         * Makefile.am (ZINCS): Define
295         * configure: Rebuilt.
296         * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
298         * java/lang/ieeefp.h: Add definitions for picoJava.
300 1999-10-01  Tom Tromey  <tromey@cygnus.com>
302         * configure: Rebuilt.
303         * configure.in: Set classpath when invoking gcj.  Use changequote
304         around sed invocation.
306         * java/net/natPlainSocketImpl.cc: Stub native functions if
307         DISABLE_JAVA_NET is defined.
308         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
309         typo in exception string.
310         (getTimeToLive): Likewise.
311         Stub native functions if DISABLE_JAVA_NET is defined.
312         * java/net/natInetAddress.cc: Stub native functions if
313         DISABLE_JAVA_NET is defined.
314         * configure.host: Disable java.net for mips-tx39.
315         * configure, include/config.h.in: Rebuilt.
316         * acconfig.h (DISABLE_JAVA_NET): Undefine.
317         * configure.in: Added --disable-java-net and new define
318         `DISABLE_JAVA_NET'.
320 1999-09-30  Tom Tromey  <tromey@cygnus.com>
322         * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
324 1999-09-29  Bryce McKinlay  <bryce@albatross.co.nz>
326         * README: New file.
328 1999-09-28  Tom Tromey  <tromey@cygnus.com>
330         * configure: Rebuilt.
331         * configure.in (PROCESS): In POSIX case, only set if not already
332         set.
333         * configure.host (PROCESS): Set in mips-tx39 case.
335         * aclocal.m4, configure: Rebuilt.
336         * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
337         appropriate AC_PROG_ symbol.
339 1999-09-24  Tom Tromey  <tromey@cygnus.com>
341         * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
342         `void *'.
343         (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
345         Fix for PR java.util/47:
346         * configure, include/config.h: Rebuilt.
347         * configure.in: Don't look for ctime or ctime_r.
348         * Makefile.in: Rebuilt.
349         * Makefile.am (nat_source_files): Don't mention natDate.cc.
350         * java/util/natDate.cc: Removed.
351         * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
352         static fields.
353         (getAvailableIDs): Rewrote.
354         (getTimeZone): Rewrote.
355         * java/util/Date.java (toGMTString): New method.
356         (toLocaleString): New method.
357         (toString): Rewrote.
359 1999-09-23  Tom Tromey  <tromey@cygnus.com>
361         * configure: Rebuilt.
362         * configure.in: Print message when checking to see if gcj can
363         handle -fuse-divide-subroutine.
365         * java/lang/natFirstThread.cc (run): Renamed from `run0'.  Removed
366         dead code.
367         * java/lang/FirstThread.java (run0): Renamed to `run'.
368         (run): Removed.
370         * prims.cc (main_init): New function.
371         (JvRunMain): Call it.
372         (_Jv_RunMain): Likewise.
373         Include <signal.h>.
374         (main_init): Ignore SIGPIPE.  Fixes PR 51.
376 1999-09-22  Tom Tromey  <tromey@cygnus.com>
378         * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
380 1999-09-16  Bryce McKinlay  <bryce@albatross.co.nz>
382         * java/text/MessageFormat.java (MessageFormat(String)): Set the
383         default locale.
384         * java/text/NumberFormat.java: Check that object is a Number. If
385         not, throw IllegialArgumentException.
387 1999-09-21  Tom Tromey  <tromey@cygnus.com>
389         * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
390         both `inlength' and `bytes_todo' are 0.  Simplified 2-byte case.
392         * include/posix-threads.h (_Jv_MutexDestroy): Use
393         _Jv_PthreadGetMutex.
394         (_Jv_MutexLock): Likewise.
395         (_Jv_MutexUnlock): Likewise.
397         * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
398         previous patch; it too was incorrect.
399         * java/io/PrintStream.java (PrintStream): Likewise.
401         * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
402         refer to `this' before calling superclass constructor.
403         * java/io/PrintStream.java (PrintStream): Don't refer to `this'
404         before calling superclass constructor.
406 1999-09-20  Tom Tromey  <tromey@cygnus.com>
408         * configure: Rebuilt.
409         * configure.in: Send output of `-fuse-divide-subroutine' test
410         compilation to /dev/null.
412 1999-09-14  Tom Tromey  <tromey@cygnus.com>
414         * include/java-insns.h: Turned constants into an enum.  Added
415         multiple-inclusion protection.
417 1999-09-10  Tom Tromey  <tromey@cygnus.com>
419         * configure: Rebuilt.
420         * configure.in: Build include/Makefile.
421         * Makefile.in: Rebuilt.
422         * Makefile.am (SUBDIRS): Added gcj and include.
423         (install-data-local): New target.
424         (extra_headers): New macro.
425         * include/Makefile.in: New file.
426         * include/Makefile.am: New file.
428         * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
429         * java/lang/reflect/natField.cc: Don't include gcj/field.h or
430         gcj/cni.h.
431         * boehm.cc: Don't include java-threads.h or gcj/field.h.
432         * resolve.cc: Include config.h.
433         * defineclass.cc: Include config.h.
434         * include/java-interp.h: Don't include config.h.
435         * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
436         cni.h.
438         * gcj/javaprims.h: Regenerated namespace decls.
439         * classes.pl (scan): Don't put `;' after closing brace.
441         * Makefile.in: Rebuilt.
442         * Makefile.am (INCLUDES): Added -I for top_srcdir.
443         * configure.in: Create gcj/Makefile.
444         * gcj/Makefile.in: New file.
445         * gcj/Makefile.am: New file.
446         * java/lang/Object.h: Don't include any other headers.
447         * gcj/array.h: Renamed from include/java-array.h.
448         * gcj/field.h: Renamed from include/java-field.h.
449         * gcj/method.h: Renamed from include/java-method.h.
450         * gcj/cni.h, gcj/javaprims.h: Moved from include/.
451         Updated all files to reflect new include structure.
453 1999-09-09  Tom Tromey  <tromey@cygnus.com>
455         * configure: Rebuilt.
456         * configure.in: Fixed typo; variable is THREADSPEC and not
457         THREADSPECS.
459 1999-09-08  Tom Tromey  <tromey@cygnus.com>
461         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
462         previous change and implemented a correct test in the __m_count
463         case.
465         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
466         in __m_count case.
468 1999-09-07  Tom Tromey  <tromey@cygnus.com>
470         * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
471         code and don't set errno.
473         * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
474         not `r'.  Changed `done_sleeping' to a `bool'.
476 1999-09-07  Matt Welsh <mdw@cs.berkeley.edu>
478         * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
479         Added FLAG_INTERRUPTED to indicate that a thread was interrupted
480         by another thread, rather than by the GC.
481         (_Jv_CondWait): Prevent premature thread wakeup by GC.
482         (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
483         * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New 
484         function.
486 1999-09-03  Tom Tromey  <tromey@cygnus.com>
488         * configure: Rebuilt.
489         * configure.in: Check for fstat function.
490         * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
491         FIONREAD fails.
493 1999-09-02  Tom Tromey  <tromey@cygnus.com>
495         * include/java-array.h (jobjectArrayjchar): Removed unused
496         declaration.
498         * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
499         _Jv_PrepareCompiledClass while holding class mutex.
501 1999-09-01  Tom Tromey  <tromey@cygnus.com>
503         * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
504         (_Jv_PthreadGetMutex): Use it.
505         (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
506         (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
507         (_Jv_MutexLock): Likewise.
508         (_Jv_MutexUnlock): Likewise.
509         * include/config.h.in: Rebuilt.
510         * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
511         PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
512         * configure: Rebuilt.
513         * libgcj.spec.in: Don't mention INTERPSPEC.
514         * configure.in (INTERPSPEC): Removed.
515         Only run pthreads-related checks when using POSIX threads.  Check
516         for m_count and __m_count in mutex structure.
518 1999-09-01  Matt Welsh <mdw@cs.berkeley.edu>
520         * java/lang/natClass.cc: Fixed notification of threads
521         when class initialization is complete.
523 1999-09-01  Tom Tromey  <tromey@cygnus.com>
525         * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
526         * resolve.cc: Removed constants defined by
527         java.lang.reflect.Modifier.
528         Include <java/lang/reflect/Modifier.h>.
529         (_Jv_ResolvePoolEntry): Use values from Modifier.
530         (_Jv_DetermineVTableIndex): Likewise.
531         (_Jv_PrepareClass): Likewise.
532         (ncode): Likewise.
533         * defineclass.cc (_Jv_ClassReader): Removed constants defined by
534         java.lang.reflect.Modifier.
535         Include <java/lang/reflect/Modifier.h>.
536         (checkExtends): Use values from Modifier.
537         (checkImplements): Likewise.
538         (handleField): Likewise.
539         (handleConstantValueAttribute): Likewise.
540         (handleFieldsEnd): Likewise.
541         (handleMethod ): Likewise.
542         (handleMethodsEnd): Likewise.
543         (handleClassBegin): Likewise.
544         * interpret.cc: Removed constants defined by
545         java.lang.reflect.Modifier.
546         (continue1): Use values from Modifier.
547         * java/lang/natClassLoader.cc: Removed constants defined by
548         java.lang.reflect.Modifier.
550         * java/lang/natClassLoader.cc (_Jv_NewClass): Use
551         JV_STATE_NOTHING, not `0'.
552         * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
554         * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
555         * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
556         except on Linux.
557         (_Jv_PthreadGetMutex): New function.
558         (_Jv_PthreadCheckMonitor): Use it.
559         (_Jv_MutexInit): Likewise.  ALso, initialize `count'.
560         (_Jv_MutexLock): Update `count'.
561         (_Jv_MutexUnlock): Likewise.
562         (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
563         appropriate.
565 1999-09-01  Kresten Krab Thorup  <krab@gnu.org>
567         * Makefile.am (.java.lo): Add rule.
569         * Makefile.in: Rebuilt.
571 1999-09-01  Tom Tromey  <tromey@cygnus.com>
573         * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
574         * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
575         function.
576         (_Jv_CondNotify): Use it.
577         (_Jv_CondNotifyAll): Likewise.
579         * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
581 1999-08-31  Tom Tromey  <tromey@cygnus.com>
583         * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
584         declaration.
586 1999-08-24  Bryce McKinlay  <bryce@albatross.co.nz>
588         * posix-threads.cc: Include <errno.h>.
590 1999-08-23  Tom Tromey  <tromey@cygnus.com>
592         * boehm.cc: Undefine TRUE and FALSE.
594         * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
596 1999-08-21  Tom Tromey  <tromey@cygnus.com>
598         * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
599         result.  PR 40.
601 1999-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
603         * configure.in: Check for in_addr_t in netinet/in.h too.  Check
604         for ip_mreq too.
605         * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
606         (HAVE_STRUCT_IP_MREQ): Added.
607         * configure, include/config.h.in: Rebuilt.
608         * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
609         if needed.
610         * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
611         Disable if ip_mreq is not available.
612         
613         * configure.in: Check types ssize_t and in_addr_t.
614         * acconfig.h: Undefine them.
615         * configure, include/config.h.in: Rebuilt.
617         * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
618         function that detects the signature of getpwuid_r.
619         (init_properties): Use it.
620         * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
621         (toString): Use it.
623 1999-08-20  Kresten Krab Thorup  <krab@samam.daimi.au.dk>
625         * interpret.cc (continue1): Implement explicit dispatch table.
626         insn_target: Explicit interpreter switch table.  
627         SAVE_PC: New macro, moves pc saving code into instructions that
628         require so.
629         NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
630         PC_REGISTER_ASM: New macro.
631         INLINE_SWITCH: New macro.  Constrols dispatching strategy.
632         opcode: Remove local variable.
633         {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
634         (POKEI): Use _Jv_word.
635         (iinc): Use _Jv_word.
636         (dupx): Change reference argument (sp) to pointer.  
637         (jvdump): Remove
638         
639         * interpret.cc: Remove instruction timing instrumentation.  
641         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
642         comment.  Don't use _Jv_ClassNameSamePackage. 
644         * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
645         URLPathEntry, CacheEntry}: Removed.
646         
647         * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
648         package.
649         (.java.lo): Rule removed.
651         * Makefile.in: Rebuilt.
653 1999-08-19  Tom Tromey  <tromey@cygnus.com>
655         * java/lang/natThread.cc (class locker): New class.
656         (join): Use a locker around _Jv_CondWait.
657         (sleep): Likewise.
659 1999-08-18  Tom Tromey  <tromey@cygnus.com>
661         * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
662         * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
664 1999-08-18  Tom Tromey  <tromey@cygnus.com>
666         * include/javaprims.h ("Java"): Regenerated namespace decls.
668 1999-08-18  Kresten Krab Thorup  <krab@gnu.org>
670         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
671         from _Jv_InternClassStrings.   
673         * prims.cc (_Jv_RunMain): New function.
674         (JvRunMain): Remove gij-support.
676         * gij.cc (main): Use _Jv_RunMain.
678         * java/util/zip/ZipFile.java: Call readDirectory in constructor.
680         * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
681         argument in temp variable.
682         (continue1): For all op_x2y insns, use temp variable for
683         intermediate value.  Also remove some comments.
685         * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
686         (forName): Don't call _Jv_InitClass.
688         * java/lang/Class.java (getResource,getResourceAsStream): Implement.
690         * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
692         * java/util/jar/JarInputStream.java: New file.
694         * java/util/jar/JarEntry.java: New file.
696         * java/util/jar/JarFile.java: New file.
698         * java/net/URLClassLoader.java: New file.
700         * java/net/JarURLConnection.java: New file.
702         * gnu/gcj/protocol/jar/Handler.java: New file.
704         * gnu/gcj/protocol/jar/Connection.java: New file.
706         * java/security/SecureClassLoader.java: New file.
708         * java/lang/ClassLoader.java (parent): New variable.
709         (ClassLoader (ClassLoader)): new constructor.  
710         (findClass): New method.
711         (loadClass): Add default 1.2 implementation.
712         (getSystemResourceAsBytes, getResourceAsBytes): Removed.
713         (readfully): Removed.
715         * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. 
716         (findSystemClass): New method.
717         (VMClassLoader): Constructor rewritten.
718         (init): New method.
719         All other methods removed.
720         
721         * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
722         to gnu::gcj::runtime::VMClassLoader. 
723         (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
724         class entries.   
725         (VMClassLoader::findSystemClass): renamed from findBootClass.
727         * Makefile.am: Add new files.
728         (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
730         * Makefile.in: Rebuilt.
732 1999-08-17  Tom Tromey  <tromey@cygnus.com>
734         * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
735         nano.
736         * include/quick-threads.h (_Jv_CondWait): Don't round to 0
737         inappropriately.
739 1999-08-16  Tom Tromey  <tromey@cygnus.com>
741         * configure: Rebuilt.
742         * configure.in: Set DIVIDESPEC to empty string if compiler does
743         not support -fuse-divide-subroutine.
745 1999-08-14  Per Bothner  <per@bothner.com>
747         * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
748         * java/lang/natClass.cc (initializeClass): Likewise.
749         * java/lang/ClassLoader.java (resolveClass0): New static method.
750         (resolveClass): Call resolveClass0.
751         (findSystemClass): No longer static.
753 1999-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
755         * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
757 1999-08-11  Bryce McKinlay  <bryce@albatross.co.nz>
759         * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
760         as long.
762 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
764         * Makefile: Rebuilt.
765         * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
766         builds.
768         * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
769         present.
771         * configure: Rebuilt.
772         * configure.in: Properly align --help output, fix capitalization
773         and punctuation.
774         * acinclude.m4: Likewise.
776 1999-08-09  Kresten Krab Thorup  <krab@gnu.org>
778         * include/javaprims.h (_Jv_word, _Jv_word2): New types.
780         * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
781         (_Jv_callInterpretedMethod): Unused. Remove.
782         (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
783         Use ffi_raw.
784         * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
785         (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
786         * boehm.cc (_Jv_MarkObj): Use _Jv_word.
787         * interpret.cc: use _Jv_word.
788         * defineclass.cc: use_Jv_word.
789         * resolve.cc: Use _Jv_word.
790         (_Jv_ResolvePoolEntry): Return _Jv_word.
791         * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
792         * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
794         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): 
795         Change comment.
797 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
799         * configure: Rebuilt.
800         * configure.in (sched_yield): Try librt first, then libposix4.
801         Add -lrt, -lposix4 to THREADSPEC.
803 1999-08-08  Anthony Green  <green@cygnus.com>
805         * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
807 1999-08-08  Anthony Green  <green@cygnus.com>
809         * defineclass.cc (_Jv_VerifyClassName): Verify array names
810         correctly.
812 1999-08-08  Anthony Green  <green@cygnus.com>
814         * gij.cc: New file.
816         * include/config.h.in: Rebuilt.
817         * acconfig.h: Add INTERPRETER.
819         * Makefile.in: Rebuilt.
820         * Makefile.am (libffi_files): Identify the libffi object files for
821         inclusion in libgcj.
822         (LIBFFIINCS): Define.
824         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
825         Dummy definition for configurations without an interpreter.
826         
827         * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
828         java::lang::Boolean constructor.
830         * include/java-interp.h: Always include java-cpool.h.
832         * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
833         when INTERPRETER not defined.
835         * java/lang/Class.h (finalize): Define.
837         * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
838         IOException from File.getCanonicalPath.
839         (getStream): Likewise.
841         * NEWS: More news.
842         * THANKS: More thanks.
844 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
846         * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
847         jchar type.
848         (_Jv_PrepareClass): Allow non-abstract classes to
849         have abstract subclasses.
850         (_Jv_ResolvePoolEntry): Revert subclass check for protected
851         fields and methods.
852         * interpret.cc (continue1/perform_invoke): Don't sign extend
853         uint16 return val. 
854         (continue1/lshl,lshr): Push long, not int.
855         (continue1/ulshr): Use UINT64, not long long.
856         * defineclass.cc (handleFieldsEnd): Handle case when all fields
857         are static.
858         * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
859         * java/lang/FirstThread.java (run): Add top-level exception
860         handler. 
861         (run0): Renamed from run.
863 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
865         * configure.in (--with-interpreter): Added.
866         * include/config.h.in (INTERPRETER): Added.
868         * java/lang/ClassLoader.java: File replaced.
869         * java/lang/VMClassLoader.java: New file.
870         * java/lang/natClassLoader.cc: New file.
871         * gnu/gcj/runtime/MethodInvocation.java: New file.
872         * gnu/gcj/util/path/SearchPath.java: New file.
873         * gnu/gcj/util/path/PathEntry.java: New file.
874         * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
875         * gnu/gcj/util/path/ZipPathEntry.java: New file.
876         * gnu/gcj/util/path/URLPathEntry.java: New file.
877         * gnu/gcj/util/path/CacheEntry.java: New file. 
878         * include/java-interp.h: New file.
879         * include/java-cpool.h: New file.
880         * include/java-insns.h: New file.
881         * defineclass.cc: New file.
882         * interpret.cc: New file.
883         * resolve.cc: New file.
885         * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
886         _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
887         _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
888         (finalize): New.
889         (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
890         STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
891         prefix. 
892         (initializeClass): Use new JV_ prefixed names.  Also, call
893         ClassLoader::resolveClass instead of _Jv_ResolveClass.
894                 
895         * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
896         JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
897         JV_STATE_LINKED): New.
898         (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
899         _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
900         (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
901         _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
902         _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
903         _Jv_InterpMethodInvocation): New friends for interpreter.
904         (finalize): New.
905         (CONSTANT_Class, CONSTANT_String, etc.): Moved to
906         include/java-cpool.h and renamed with JV_ prefix.
907         
908         * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
909         decls.
910         (_Jv_UnregisterClass): New decl.
912         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
913         class loader argument. 
914         (_Jv_FindClass): Use class loader.
915         
916         * prims.cc (_Jv_makeUtf8Const): New function.
917         (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
918         (_Jv_NewPrimArray): Ditto.
919         (_Jv_FindClassFromSignature): Ditto.
920         * java/lang/reflect/natArray.cc (newInstance): Ditto.
921         * java/lang/reflect/natMethod.cc (getType): Ditto.
923         * include/java-field.h (_Jv_Field::isRef): Make robust for
924         non-resolved contexts. 
926         * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields. 
927         Also, don't mark class->next field.
929         * java/lang/VirtualMachineError.java: Added FIXME note.
931         * configure.in (INTERPSPEC): New spec.
932         * libgcj.spec.in: Added INTERPSPEC.
933         * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
934         gnu/gcj/runtime/MethodInvocation.
935         (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
936         (ordinary_java_source_files): Added above mentioned java classes.
938         * configure: Rebuilt.
939         * Makefile.in: Rebuilt.
941 1999-08-06  Tom Tromey  <tromey@cygnus.com>
943         * configure: Rebuilt.
944         * configure.in: Look for sched_yield in -lrt.
946 1999-08-06  Mojo Jojo <mojojojo@pacbell.net>
948         * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
949         ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
950         SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
951         locales.
952         (toString): Print correctly when `country' is empty.
954 1999-08-04  Per Bothner <per@bothner.com>
956         * configure.in:  Also do AC_SUBST for DIVIDESPEC.
958 1999-08-02  Tom Tromey  <tromey@cygnus.com>
960         * aclocal.m4, configure: Rebuilt for new libtool.
962 1999-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
964         * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
965         * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
966         * java/net/ServerSocket.java: Define ANY_IF.
967         (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
968         all network interfaces.
969         * java/net/DatagramSocket.java (DatagramSocket): ditto.
970         * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
971         null.
972         * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
973         instead of null.
974         * java/io/natFile.cc (performMkdir): Remove FIXME.
975         * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
977 1999-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
979         * configure.in: Check for bstring.h.
980         * configure, include/config.h.in: Rebuilt.
981         * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
982         * java/net/natPlainSocketImpl.cc: Likewise.
984 1999-07-31  Tom Tromey  <tromey@cygnus.com>
986         * NEWS: Likewise.
987         * THANKS: New file.
989 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
991         * configure.in: Check for struct hostent_data and need for
992         -D_REENTRANT for gethostbyname_r declaration.
993         * java/net/natInetAddress.cc: Define _REENTRANT if needed.
994         (lookup): Use hostent_data for fixed_buffer.
995         * configure, include/config.h.in: Rebuilt.
997 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
999         * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1000         available.  Don't cast memmove args to (void*).
1001         * configure.in: Do not abort if memmove is not available.
1003 1999-07-22  Bryce McKinlay  <bryce@albatross.co.nz>
1005         * java/lang/natString.cc (substring): optimize where substring is
1006         entire String.
1007         * java/io/File.java (getName): don't return separator with file name.
1008         * java/io/natFile.cc (attr): fix overflow.
1010 Sun Jul 25 01:43:34 1999  Anthony Green  <green@cygnus.com>
1012         * mauve-libgcj: Disable Object Serialization tests.
1014 1999-07-20  Warren Levy  <warrenl@cygnus.com>
1016         * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1017         Default to using PlainDatagramSocketImpl.
1018         * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1020 1999-07-19  Tom Tromey  <tromey@cygnus.com>
1022         * include/stamp-h.in: New file.
1024 1999-07-12  Tom Tromey  <tromey@cygnus.com>
1026         * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1027         _UINT32_T.
1029 1999-07-07  Andrew Haley  <aph@cygnus.com>
1031         * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1032         bytes to make it point after the instruction where the trap
1033         occurred.
1034         (HANDLE_DIVIDE_OVERFLOW): Ditto.
1036 1999-07-07  Tom Tromey  <tromey@cygnus.com>
1038         * mauve-libgcj: Explicitly enable formerly disabled java.text
1039         tests.
1041         * mauve-libgcj: Turn off ClassTest test.  Enable java.text tests
1042         again.
1044 Mon Jul  5 12:01:35 1999  Anthony Green  <green@cygnus.com>
1046         * java/net/URL.java (equals): Compare strings using String.equals.
1047         * java/net/URL.java (sameFile): Ditto.
1049 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1051         * configure: Rebuilt.
1052         * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1053         * include/config.h.in: Rebuilt.
1054         * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1055         (mcastGrp): Updated FIXME comments.
1056         (setOption): Fixed typo.
1057         (getOption):Implemented IP_MULTICAST_IF.
1059 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1061         * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1062         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1063         (getTimeToLive): Implemented.
1064         (setOption): Implemented IP_MULTICAST_IF.
1066 1999-07-01  Bryce McKinlay  <bryce@albatross.co.nz>
1068         * java/lang/String.java (toString): Check for this == null and throw
1069         NullPointerException.
1071 1999-07-01  Warren Levy  <warrenl@cygnus.com>
1073         * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1074         to count and revised comments to match.
1075         * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1076         * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1077         * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1078         * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1079         * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1080         * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1082 1999-07-01  John-Marc Chandonia  <jmc@cmpharm.ucsf.edu>
1084         * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1085         properly as count rather than outlength.
1086         * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1087         output on overflow rather than buffer fill.
1088         * java/io/BufferedReader.java (fill): Don't clear out the buffer
1089         if markPos is 0 and there is still room in the buffer.
1091 1999-07-01  Andrew Haley  <aph@cygnus.com>
1093         * include/i386-signal.h: Replace sigaction () with __sigaction ().
1094         This is a workaround for a bug in glibc's pthreads package which
1095         doesn't deliver any sigcontext information to a signal handler.
1097 1999-06-24  Tom Tromey  <tromey@cygnus.com>
1099         * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1100         * java/lang/fdlibm.h (HUGE): Conditionally define.
1102 Fri May 28 22:20:03 1999  Anthony Green  <green@cygnus.com>
1104         * java/lang/fdlibm.h: Don't use __uint32_t.  Include mprec.h.
1105         * java/lang/e_log.c: Don't use __uint32_t.
1107 1999-05-27  Eric Christopher <echristo@cygnus.com>
1109         * configure: Rebuilt
1110         * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1111         * acconfig.h: Rebuilt
1112         * include/config.h.in: Rebuilt
1114         * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1115         java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1116         e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1117         java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1118         k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1119         java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1120         s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1121         and namespace collision with __uint32_t
1123 1999-06-23  Tom Tromey  <tromey@cygnus.com>
1125         * java/util/zip/InflaterInputStream.java (read): Throw
1126         ZipException if inflater throws a DataFormatException.
1128 1999-06-23  Warren Levy  <warrenl@cygnus.com>
1130         * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1131         * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1132         * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1133         is not final per JDK.
1134         * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1135         public per JDK.
1136         * java/util/zip/DataFormatException.java: Class extends Exception.
1137         * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1138         * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1139         * java/util/zip/ZipInputStream.java: ditto.
1140         (closeEntry): Changed method name to match JDK spec.
1142 1999-06-21  Tom Tromey  <tromey@cygnus.com>
1144         * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1145         From Jeff Sturm.
1147         * Makefile.in: Rebuilt.
1148         * Makefile.am (toolexeclibdir): Define as libdir when
1149         appropriate.
1150         * configure: Rebuilt.
1151         * configure.in (USE_LIBDIR): New conditional.
1153 1999-06-18  Bryce McKinlay  <bryce@albatross.co.nz>
1155         * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1156         hostname in returned InetAddress objects.
1157         (getLocalHostname): Fix typo.
1158         * java/net/InetAddress.java (getByName): Set hostname on return
1159         object.
1160         (getLocalHost): Call lookup directly to ensure that a fully-qualified
1161         name is returned.
1163 1999-06-17  Bryce McKinlay  <bryce@albatross.co.nz>
1165         * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1166         interfaces if host==NULL. 
1167         (accept): Throw message with InterruptedIOException.
1168         (getOption): Cache localAddress.
1169         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1170         'address' for DatagramSocket.
1171         (setTimeToLive): Fix compiler warnings.
1172         (getOption): Cache localAddress.
1173         * java/net/Socket.java (getLocalAddress): Don't need local
1174         InetAddress object. Add FIXME comment about calling checkConnect().
1175         * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1176         connection queue to 50 as per JDK 1.2 docs.
1177         (ServerSocket(int,int)): Listen on all network interfaces by
1178         default, per JDK 1.2 docs.
1179         * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1180         Add localAddress caching. 
1182 1999-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
1184         * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1185         to JDK 1.2 docs.
1186         (write(byte[],int,int)): ditto.
1188 1999-06-14  Bryce McKinlay  <bryce@albatross.co.nz>
1190         * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1192 1999-06-11  Warren Levy  <warrenl@cygnus.com>
1194         * mauve-libgcj: Activated java.net Mauve tests.
1196 1999-06-10  Bryce McKinlay  <bryce@albatross.co.nz>
1198         * java/net/natInetAddress.cc (aton): Fix typos.
1199         (lookup): Use a bigger buffer size for gethostbyname_r on all
1200         versions of glibc. Updated FIXME comment explaining this.
1201         Modified while loops to not set herr = ERANGE to work around glibc 
1202         problems. Use user specified hostname in InetAddress result when
1203         available (consistent with JDK).
1205 1999-06-10  Warren Levy  <warrenl@cygnus.com>
1207         * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1208         Throw FileNotFoundException instead of IOException.
1209         (open): ditto.
1210         * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1211         IOException.
1212         * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1213         in static field name.
1214         * java/text/DecimalFormat.java: Throw IllegalArgumentException
1215         throughout rather than ParseException.
1217 1999-06-09  Bryce McKinlay  <bryce@albatross.co.nz>
1219         * java/lang/Runtime.java (exec): Convert prog name and arguments
1220         to string array.
1221         * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1222         environment array conversion. Preserve current environment if envp
1223         not passed. Preserve PATH unless explicitly specified.
1224         * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1225         followed by EOF. Set a flag when a line is terminated by '\r' and
1226         ignore following '\n' if set.
1228 1999-06-02  Warren Levy  <warrenl@cygnus.com>
1230         * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1231         Ignore context if spec is an absolute URL.  Fix braindead
1232         string comparison.
1233         (hashCode): Use JDK 1.2 style algorithm.
1234         * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1235         context URL properly.
1237 1999-05-30  Anthony Green  <green@cygnus.com>
1239         * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1240         correctly.  Clean up "/../" an\e[Bd "/./" path fragments.
1242 1999-05-28  Warren Levy  <warrenl@cygnus.com>
1244         * java/net/DatagramSocket.java (laddr): Removed.
1245         (DatagramSocket): Removed attempts to get or set laddr if null.
1246         (getLocalAddress): Reimplemented per spec.
1247         * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1248         when ttl is 0.
1249         (joinGroup): Throw NullPointerException if any argument is null.
1250         (leaveGroup): ditto.
1251         * java/net/PlainDatagramSocketImpl.java: Updated comments.
1252         * java/net/PlainSocketImpl.java (timeout): Added.
1253         (getInputStream): Added FIXME comment on how to support timeouts
1254         for TCP.
1255         * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1256         * java/net/Socket.java: Added FIXME comments to identify
1257         conflicting specs between the JCL and JDK 1.2 documents.
1258         * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1259         if host is null.  Get localport value resolved by kernel if bind
1260         lport is 0.
1261         (receive): Implemented support for timeouts in UDP.
1262         (setOption): Implemented based on natPlainSocketImpl version.
1263         (getOption): ditto.
1264         * java/net/natPlainSocketImpl.cc (bind): Get localport value
1265         resolved by kernel if bind lport is 0.
1266         (connect): Get localport value resolved by kernel if bind wasn't
1267         done to set localport.
1268         (accept): Implemented support for timeouts for ServerSocket.
1269         (setOption): Save value for SO_TIMEOUT.
1270         (getOption): Return timeout for SO_TIMEOUT.
1272 1999-05-26  Bryce McKinlay <bryce@albatross.co.nz>
1274         * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1275         * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1276         (setOption): Made abstract.
1277         * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1278         to avoid cpp conflicts in native code.
1279         * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1280         cpp conflicts in native code.
1281         * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1282         * java/net/Socket.java (getLocalAddress): Implemented.
1283         (setTcpNoDelay): Implemented.
1284         (getTcpNoDelay): Implemented.
1285         (setSoLinger): Implemented.
1286         (getSoLinger): Implemented.
1287         (getSoTimeout): Verify class type.
1288         (setSendBufferSize): Implemented.
1289         (getSendBufferSize): Implemented.
1290         (setReceiveBufferSize): Implemented.
1291         (getReceiveBufferSize): Implemented.
1292         (toString): Prepended "Socket".
1293         * java/net/SocketImpl.java (toString): Rewritten.
1294         (getOption): Made abstract.
1295         (setOption): Made abstract.
1296         * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1297         (setOption): Implemented.
1298         (getOption): Implemented.
1300 1999-05-26  Warren Levy  <warrenl@cygnus.com>
1302         * java/net/DatagramSocket.java (DatagramSocket): Get local host
1303         address when null.  Set SO_REUSEADDR for multicasts.
1304         (getSoTimeout): Implemented.
1305         (setSoTimeout): Implemented.
1306         * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1307         * java/net/MulticastSocket.java (getInterface): Implemented.
1308         (setInterface): Implemented.
1309         (setTimeToLive): Check for invalid ttl.
1310         (joinGroup): Verify multicast address and security.
1311         (leaveGroup): Verify multicast address and security.
1312         (send): Implemented.
1313         * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1314         (iface): Added.
1315         (ttl): Added.
1316         (setOption): Added.
1317         (getOption): Added.
1318         (mcastGrp): Added.
1319         (getTTL): Implemented as non-native.
1320         (setTTL): ditto.
1321         (join): ditto.
1322         (leave): ditto.
1323         * java/net/ServerSocket.java (setSoTimeout): Implemented.
1324         (getSoTimeout): Implemented.
1325         (setSocketFactory): Made synchronized.
1326         * java/net/Socket.java (setSoTimeout): Implemented.
1327         (getSoTimeout): Implemented.
1328         (close): Made synchronized.
1329         (setSocketImplFactory): Made synchronized.
1330         * java/net/SocketImpl.java: Implement SocketOptions interface.
1331         * java/net/natInetAddress.cc: Corrected module name at top of file.
1332         * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1333         (bind): Added FIXME.
1334         (peek): Implemented.
1335         (setTTL): Removed.
1336         (getTTL): Removed.
1337         (join): Removed.
1338         (leave): Removed.
1339         (mcastGrp): Added.
1340         (setOption): Implemented for SO_REUSEADDR.
1341         (getOption): Implemented for SO_REUSEADDR.
1343 1999-05-24  Tom Tromey  <tromey@cygnus.com>
1345         * java/util/ResourceBundle.java (getBundle): Throw
1346         NullPointerException if baseName is null.
1348 1999-05-22  Tom Tromey  <tromey@cygnus.com>
1350         * java/util/zip/ZipInputStream.java (fill): New method.
1351         (compressed_len): New instance variable.
1352         (getNextStream): Set it.
1353         (read): Reset inflater on EOF.  Only read via `super' if entry is
1354         deflated.
1355         (skip): Only skip via `super' if entry is deflated.
1356         * java/util/zip/Deflater.java (last_input_count): Removed.
1357         * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1358         is length 0.
1359         (needsInput): Don't use last_input_count.
1360         (setInput): Don't set last_input_count.
1361         * java/util/zip/natInflater.cc (getRemaining): Return correct
1362         result.
1363         (inflate): Return 0 if input array is length 0.
1364         (setInput): Don't set last_input_count.
1365         * java/util/zip/Inflater.java (last_input_count): Removed.
1367 1999-05-21  Tom Tromey  <tromey@cygnus.com>
1369         * Makefile.in: Rebuilt.
1370         * Makefile.am (INCLUDES): Added $(ZINCS).
1371         * configure: Rebuilt.
1372         * configure.in (ZINCS): New subst.
1374 1999-05-21  Andrew Haley  <aph@cygnus.com>
1376         * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1377         to signal options to allow the same exceptions to be rethrown
1378         later.
1380 1999-05-20  Andrew Haley  <aph@cygnus.com>
1382         * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1383         added.
1384         * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1385         (INIT_FPE): Exception string made more informative.
1386         * include/sparc-signal.h (INIT_FPE): Exception string made more
1387         informative.
1388         * testsuite/libjava.lang/Divide_1.java: New file.
1389         * testsuite/libjava.lang/Divide_1.out: New file.
1391 1999-05-19  Tom Tromey  <tromey@cygnus.com>
1393         * aclocal.m4, configure: Rebuilt.
1394         * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1396         * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1397         method.
1399         * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1400         Include <stdlib.h>.
1401         * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1402         Include <stdlib.h>.
1403         (update): Fail in default case.  Always initialize `strat'.
1405         * mauve-libgcj: Enable java.util.zip.
1407 1999-05-18  Warren Levy  <warrenl@cygnus.com>
1409         * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1410         DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1411         PlainDatagramSocketImpl.java, and SocketOptions.java.
1412         (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1413         * Makefile.in: Rebuilt.
1415         * java/net/DatagramPacket.java: New file.
1416         * java/net/DatagramSocket.java: New file.
1417         * java/net/DatagramSocketImpl.java: New file.
1418         * java/net/MulticastSocket.java: New file.
1419         * java/net/PlainDatagramSocketImpl.java: New file.
1420         * java/net/SocketOptions.java: New file.
1421         * java/net/natPlainDatagramSocketImpl.cc: New file.
1423 1999-05-18  Tom Tromey  <tromey@cygnus.com>
1425         * java/util/zip/ZipOutputStream.java (level): Initial value is
1426         Deflater.DEFAULT_COMPRESSION.
1427         (close): New method.
1428         (closeEntry): Likewise.
1429         (finish): Likewise.
1430         (put_version): Likewise.
1431         (write_entry): Likewise.
1432         (put2, put4): Now return `int'.
1433         (comment): Default to empty string.
1434         (bytes_written): New instance variable.
1435         (chain): Likewise.
1436         * java/util/zip/ZipEntry.java (setComment): Limit length of
1437         comment string.
1438         (setCrc): Check CRC validity.
1439         (setExtra): Check argument validity.
1440         (setMethod): Likewise.
1441         (setSize): Likewise.
1442         (ZipEntry): Likewise.
1443         * include/javaprims.h: Updated namespace declarations.
1444         * Makefile.in: Rebuilt.
1445         * Makefile.am (ordinary_java_source_files): Mention new files.
1446         (nat_source_files): Likewise.
1447         * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1448         EOFException.
1449         (read4): Likewise.
1450         (getInputStream): Handle compressed entries.
1451         * java/util/zip/GZIPOutputStream.java: New file.
1452         * java/util/zip/GZIPInputStream.java: New file.
1453         * java/util/zip/DataFormatException.java: New file.
1454         * java/util/zip/CheckedInputStream.java: New file.
1455         * java/util/zip/CheckedOutputStream.java: New file.
1456         * java/util/zip/InflaterInputStream.java: Implemented.
1457         * java/util/zip/natInflater.cc: New file.
1458         * java/util/zip/Deflater.java: Implemented.
1459         * java/util/zip/natDeflater.cc: New file.
1460         * java/util/zip/DeflaterOutputStream.java: Implemented.
1462         * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1463         ZipException, not IOException.
1464         * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1465         not IOException.
1467 1999-05-17  Tom Tromey  <tromey@cygnus.com>
1469         * java/lang/natSystem.cc (init_properties): URL now points to
1470         sourceware.
1472 1999-05-12  Per Bothner  <bothner@cygnus.com>
1474         * java/util/Calendar.java (set):  First call computeFields if needed.
1475         * java/util/natGregorianCalendar.cc (computeTime):  Cast 1000 to jlong.
1476         
1477 1999-05-12  Tom Tromey  <tromey@cygnus.com>
1479         * configure: Rebuilt.
1480         * configure.in: Look for -ldl when using the Boehm collector.
1481         Look for sched_yield in -lposix4.
1483 1999-05-12  Per Bothner  <bothner@cygnus.com>
1485         * java/io/File.java (mkdirs):  Handle a null parent directory.
1487 1999-05-12  Tom Tromey  <tromey@cygnus.com>
1489         * include/javaprims.h: Updated namespace declarations.
1490         * classes.pl (scan): Uniquify class list.
1491         * Makefile.in, configure: Rebuilt.
1492         * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1493         (built_java_source_files): New macro.
1494         (nat_headers): Added built_java_source_files.
1495         (javao_files): Likewise.
1496         (EXTRA_libgcj_la_SOURCES): Likewise.
1497         (libgcj.zip): Create built class files.
1498         ($(built_java_source_files:.java=.class)): New target.
1499         (jv_convert_LDADD): Added -L$(here)/.libs.
1500         * configure.in: Create links for ConcreteProcess.java and
1501         natConcreteProcess.cc.
1502         * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1503         * java/lang/natEcosProcess.cc: New file.
1504         * java/lang/EcosProcess.java: New file.
1505         * java/lang/PosixProcess.java: New file.
1506         * java/lang/natPosixProcess.cc: New file.
1508 1999-05-12  Warren Levy  <warrenl@cygnus.com>
1510         * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1511         * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1512         * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1513         (connect): Throw ConnectException.
1515 1999-05-11  Tom Tromey  <tromey@cygnus.com>
1517         * Makefile.in: Rebuilt.
1518         * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1519         * libgcj.spec.in: Don't use `+'.  Instead, put old lib spec after
1520         our libraries.
1522         * Makefile.in: Rebuilt.
1523         * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1524         and it causes problems with libtool.
1526         * Makefile.in, configure: Rebuilt.
1527         * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1528         (jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
1529         (jv_convert_DEPENDENCIES): Added ZDEPS.
1530         * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1531         directory.
1532         (THREADSPEC): Added `-L' to point to qthreads build directory.
1533         (ZLIBS): New subst.
1534         (ZDEPS): New subst.
1536         * configure, Makefile.in: Rebuilt.
1537         * Makefile.am (toolexeclib_DATA): New macro.
1538         * configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
1539         Recognize --with-system-zlib.
1540         (GCSPEC): New subst.
1541         (THREADSPEC): New subst.
1542         (SYSTEMSPEC): New subst.
1543         (ZLIBSPEC): New subst.
1544         * libgcj.spec.in: New file.
1546 1999-05-10  Tom Tromey  <tromey@cygnus.com>
1548         * java/io/InputStreamReader.java (read): If length is 0, return
1549         0.  Reset `wpos' and `wcount' when buffer has been filled and
1550         emptied.
1552         * java/util/Properties.java (save): Removed `FIXME' comment.
1553         (load): Invalid characters in \u now treated as terminators.
1554         Make sure to append character resulting from `\' handling.
1555         Cast to `char' when appending to key or value.
1556         (skip_ws): Inverted test for whitespace.
1558         * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1559         `FIXME' comment.
1560         (readLine): Likewise.
1561         (readFully): Implemented.
1563         * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1565         * java/awt/natToolkit.cc: Added copyright header.
1566         * java/util/zip/InflaterInputStream.java: Added copyright header.
1568         * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1569         comment.
1570         * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1571         `FIXME' comment.
1572         (getNextStream): Likewise.
1574         * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1575         locale.toString().
1576         (getBundle): Don't explicitly throw null pointer exception.
1578         * gnu/gcj/RawData.java: Added copyright header.
1580         * include/jni.h (_Jv_va_list): Always define as va_list.
1582 1999-05-9  Anthony Green  <green@cygnus.com>
1584         * java/text/DateFormat.java (computeInstance): Separate time
1585         and date styles.
1586         (getDateTimeInstance): Ditto.
1587         (getDateTimeInstance(int,int)): New method.
1589         * Makefile.in: Rebuilt.
1590         * Makefile.am (ordinary_java_source_files): Add new classes.
1592         * java/util/PropertyResourceBundle.java: New file.
1593         * gnu/gcj/util/EnumerationChain.java: New file.
1595 1999-05-07  Tom Tromey  <tromey@cygnus.com>
1597         * acconfig.h (GCJVERSION): New undef.
1598         * java/lang/natSystem.cc (init_properties): Define java.version,
1599         java.class.version, os.name, os.arch, os.version.
1600         Include <sys/utsname.h> if required.
1601         * configure: Rebuilt.
1602         * configure.in: Compute and define GCJVERSION.
1604         * java/lang/natSystem.cc (default_file_encoding): Now static.
1606         * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1608         * libtool-version: New file.
1609         * Makefile.in: Rebuilt.
1610         * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1611         -release.
1613         * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1614         Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1615         again (oops).
1617         * mauve-libgcj: Test more from java.text.  Don't mention 1.1 tests
1618         (we pick those up already).
1620 1999-05-05  Per Bothner  <bothner@cygnus.com>
1622         * java/awt/*:  Check a bunch of classes, a few complete, but mostly
1623         stub classes.  (This is enough to get Kawa to compile against libgcj.)
1625         * gnu/gcj/RawData.java:  New class.
1626         * doc/cni.sgml:  Document RawData.
1628         * java/util/zip/InflaterInputStream.java:  New stub class.
1629         * java/util/zip/ZipInputStream.java:  New class.  Partly works.
1630         * java/util/zip/ZipConstants.java:  Add two (internal) constants.
1631         * java/util/zip/ZipEntry.java (timeFromDOS):  New static method.
1632         * java/util/zip/ZipFile.java:  Now mostly works (unless compressed).
1633         * java/util/zip/ZipOutputStream.java:  Start implementation.
1634         
1635         * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
1636         (default_file_encoding):  New global, initial value is above macro.
1637         (init_properties):  Default file.encoding to default_file_encoding.
1638         
1639         * Makefile.am:  Add new classes.
1641 1999-05-05  Tom Tromey  <tromey@cygnus.com>
1643         * Makefile.in: Rebuilt.
1644         * Makefile.am (CLEANFILES): Don't mention $(class_files).
1645         (clean-local): New target
1647         * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1648         (load, loadLibrary): Now native.
1649         (init): New method.
1650         * java/lang/Runtime.java (load, loadLibrary): Now native.
1651         (init): New native method.
1652         (Runtime): Use init.
1653         * prims.cc: Include <ltdl.h> if required.
1654         (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1656 1999-05-05  Gilles Zunino  <Gilles.Zunino@hei.fr>
1658         * configure.in: Switch from irix threads to posix threads
1659         * configure: Regenerate.
1661 1999-04-30  Tom Tromey  <tromey@cygnus.com>
1663         * Makefile.in: Rebuilt.
1664         * Makefile.am (jv_convert_LDADD): Added -lgcc.
1666 1999-04-29  Tom Tromey  <tromey@cygnus.com>
1668         * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1669         vector when shared.
1671         * java/util/Locale.java (Locale(String,String)): Implement in
1672         terms of 3-argument version; variant now defaults to empty
1673         string.
1674         (toString): Assume variant is not null.
1675         (equals): Assume all strings are not null.
1676         (Locale): Throw NullPointerException if any argument is null.
1678         * java/util/ResourceBundle.java (getBundle): Don't try the base
1679         name; now implicit in partialGetBundle call.
1680         (trySomeGetBundle): Search for parent bundles and call setParent
1681         as required.
1682         (partialGetBundle): Added `langStop' argument.  Use
1683         `Locale.toString' to compute bundleName.
1684         (resource_cache): New static field.
1685         (partialGetBundle): Cache the returned resource bundle.  Now
1686         synchronized.
1688         * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1689         missing `<'.
1691         * mauve-libgcj: Enable Collator and RuleBasedCollator.
1692         * java/text/natCollator.cc (decomposeCharacter): `base' now
1693         `const'.
1694         * Makefile.in: Rebuilt.
1695         * Makefile.am (ordinary_java_source_files): Added
1696         CollationElementIterator, CollationKey, Collator,
1697         RuleBasedCollator.
1698         (nat_source_files): Added natCollator.cc.
1699         * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1700         (compare): Pass `this' to CollationElementIterator constructor.
1701         (getCollationElementIterator): Likewise.
1702         (ceiNext): Fix off-by-one error when finding initial substring.
1703         (next): Correctly mask off bits when computing return value.
1704         Fixed return values when one string is shorter than the other.
1705         * java/text/CollationElementIterator.java (collator): New field.
1706         (CollationElementIterator): Added collator argument.
1707         (next): Call ceiNext on collator object.
1709 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1711         * natCollator.cc: New file.
1713         * java/util/GregorianCalendar.java (setDefaultTime): New method.
1714         (GregorianCalendar): Use it in all constructors.
1715         * java/util/Calendar.java (Calendar): Changed argument name to
1716         `zone' to match code.
1718         * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1719         * java/text/CollationKey.java: New file.
1720         * java/text/CollationElementIterator.java: New file.
1721         * java/text/Collator.java: New file.
1722         * java/text/RuleBasedCollator.java: New file.
1724         * Makefile.in: Rebuilt.
1725         * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1726         (jv_convert_LDADD): Explicltly add -lm -lc.
1728 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1730         * configure, Makefile.in: Rebuilt.
1731         * configure.in: Added AM_PROG_LIBTOOL.
1732         (GCOBJS): Use `.lo' form of files.
1733         (THREADOBJS): Likewise.
1734         (GCDEPS): Use `.la' form of library.
1735         (GCLIBS): Set to be the same as GCDEPS.
1736         (THREADDEPS): Use `.la' form of library.
1737         (THREADLIBS): Set to be the same as THREADDEPS.
1738         * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1739         toolexeclib_LIBRARIES.
1740         (libgcj_la_SOURCES): Renamed for libtoolization.
1741         (EXTRA_libgcj_la_SOURCES): Likewise.
1742         (libgcj_la_DEPENDENCIES): Likewise.
1743         (libgcj_la_LIBADD): Likewise.
1744         ($(nat_files)): Use LTCXXCOMPILE.
1745         ($(c_files)): Use LTCOMPILE.
1746         (GCJCOMPILE): New macro.
1747         (.class.o): Use it.
1748         (.java.o): Likewise.
1749         ($(javao_files)): Likewise.
1750         (jv_convert_LINK): Use LIBTOOL.
1751         (nat_files): Use `.lo' files.
1752         (c_files): Likewise.
1753         (javao_files): Likewise.
1754         (.class.lo): Renamed.
1755         (.java.lo): Likewise.
1756         ($(nat_files)): Depend on %.lo.
1757         ($(c_files)): Likewise.
1758         ($(javao_files)): Likewise.
1759         (jv_convert_LDADD): Link against .lo files.
1760         (jv_convert_DEPENDENCIES): Depend on .lo files.
1761         (maintainer-check): Depend on libgcj.la, but examine .a file.
1762         (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1763         (libgcj_la_LDFLAGS): New macro.
1765 1999-04-23  Warren Levy  <warrenl@cygnus.com>
1767         * Makefile.am: Added URLDecoder and URLEncoder.
1768         * Makefile.in: Rebuilt.
1770         * java/net/ServerSocket.java (setSocketFactory): Renamed from
1771         setSocketImplFactory to match spec.
1772         * java/net/Socket.java (getSoLinger): Changed return type to
1773         match spec.
1775         * java/net/URLDecoder.java: New file.
1776         * java/net/URLEncoder.java: New file.
1778 1999-04-21  Tom Tromey  <tromey@cygnus.com>
1780         * java/lang/natString.cc (getBytes): Reverted earlier change and
1781         applied correct fix from Per Bothner.
1783         * java/lang/String.java: Don't throw
1784         UnsupportedEncodingException.
1786         * java/lang/natString.cc (getBytes): Correctly size result
1787         buffer.  From Bryce McKinlay <bryce@albatross.co.nz>.
1789 1999-04-20  Andrew Haley  <aph@cygnus.com>
1791         * include/sparc-signal.h: new file.
1792         * configure.in: include/sparc-signal.h added.
1793         * configure: regenerated.
1794         * prims.cc (JvRunMain): signal handling code rewritten to be more
1795         portable.
1796         (catch_segv): ditto.
1797         (catch_fpe): ditto.
1798         * include/i386-signal.h: reorganized.
1799         * include/default-signal.h: reorganized.
1801 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1803         * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1804         once.  From Anthony Green.
1806 1999-04-19  Andrew Haley  <aph@cygnus.com>
1808         * Makefile.in: Processed with new automake.
1810 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1812         * include/javaprims.h: Removed security namespace.
1814 1999-04-20  Anthony Green  <green@cygnus.com>
1816         * java/io/PrintStream.java (println): Remove extra println.
1818 1999-04-19  Anthony Green  <green@cygnus.com>
1820         * Makefile.in: Rebuilt.
1821         * Makefile.am (ordinary_java_source_files): Add new security files.
1823         * java/security/NoSuchAlgorithmException.java,
1824         java/security/MessageDigest.java: New files.
1826         * include/javaprims.h: Add security namespace.
1828 1999-04-16  Per Bothner  <bothner@cygnus.com>
1830         * gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
1831         * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1832         * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1833         * gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
1834         * gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
1835         * gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
1836         * gnu/gcj/convert/natInput_SJIS.cc:  New file.
1837         * gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
1838         * gnu/gcj/convert/natOutput_SJIS.cc:  New file.
1839         * gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
1840         * gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
1841         * gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.
1842         * Makefile.am:  Various changes for new files and conversions.
1844         * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1845         New overloading, allows greater efficiency.
1846         * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1847         New overloading (for efficiency - avoids copying).
1849         * gnu/gcj/convert/Output_UTF8.java:  Fix typo: 0xC0 -> 0c3F.
1850         * gnu/gcj/convert/Input_UTF8.java:  Fix typos in bit masks.
1852         * java/io/InputStreamReader.java (<init>):  Set super.in correctly.
1853         * java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
1854         (writeChars):  Don't be quite so eager to flush.
1855         * java/io/PrintStream.java:  Rewrite.  Now more similar to
1856         OutputStreamWriter, using explicit UnicodeToBytes converter.
1857         Also, autoflush does not need to flush so often.
1858         * java/lang/natString.cc (getBytes):  More efficient algorithm.
1859         (init(jbyteArray,jint,jint,jstring)):  More efficient.
1860         
1861 1999-04-15  Warren Levy  <warrenl@cygnus.com>
1863         * Makefile.am (ordinary_java_source_files): Added new Connection 
1864         and Handler classes in gnu.gcj.protocol.file package.
1865         * Makefile.in: Rebuilt.
1867         * gnu/gcj/protocol/file/Connection.java: New file.
1868         * gnu/gcj/protocol/file/Handler.java: New file.
1869         * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1870         if doInput allows input.
1871         (getOutputStream): Check if doOutput allows output.
1872         * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1874 1999-04-14  Tom Tromey  <tromey@cygnus.com>
1876         * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1877         buffer larger to work around bug.
1878         From Bryce McKinlay <bryce@albatross.co.nz>.
1880 1999-04-14  Andrew Haley  <aph@cygnus.com>
1882         * java/lang/natDouble.java (doubleToLongBits): ensure that all
1883         NaNs are always converted to the same long value.  
1884         * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1885         converted to int.
1887 1999-04-13  Tom Tromey  <tromey@cygnus.com>
1889         * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1890         instead switch on actual element type.
1892         * Makefile.in: Rebuilt.
1893         * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1895 1999-04-13  Andrew Haley  <aph@cygnus.com>
1897         * include/i386-signal.h, include/default-signal.h: New files.   
1898         * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1899         handler.
1900         (catch_fpe): New function.      
1901         * configure.in: Make link to appropriate include/java-signal.h.
1902         * configure: Rebuilt.
1903         * Makefile.am: include/java-signal.h added to dependency list.
1904         * Makefile.in: Rebuilt.
1906 1999-04-12  Urban Widmark <urban@svenskatest.se>
1908         * java/io/DataInputStream.java (readLine): Corrected handling of
1909         empty lines, from null to "".
1911 1999-04-12  Tom Tromey  <tromey@cygnus.com>
1913         * Makefile.in: Rebuilt.
1914         * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1916         * java/lang/natSystem.cc (SystemClass): New define.
1917         (init_properties): Synchronize.
1919 1999-04-08  Geoff Berry  <gcb@gnu.org>
1921         * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1922         * natPlainSocketImpl.cc (accept): Add missing else if check
1923         for AF_INET6.
1925 1999-04-08  Tom Tromey  <tromey@cygnus.com>
1927         * java/lang/Long.java (parseLong): Corrected overflow detection
1928         code.
1929         * java/lang/Integer.java (parseInt): Corrected overflow detection
1930         code.
1932         * java/io/PrintStream.java (print): Handle null string argument.
1933         (println): Likewise.
1935 1999-04-07  Warren Levy  <warrenl@cygnus.com>
1937         * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
1938         Set count to 0 when InputStreamReader returns -1 for EOF.
1940 1999-04-07  Tom Tromey  <tromey@cygnus.com>
1942         * mauve-libgcj: Omit java.text.Collator,
1943         java.text.RuleBasedCollator.
1945 1999-04-06  Tom Tromey  <tromey@cygnus.com>
1947         * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
1948         IOException from getHttpHeaders().
1949         (getHeaderFieldKey): Likewise.
1951         * include/javaprims.h: Regenerated declarations.
1953         * Makefile.in: Rebuilt.
1954         * Makefile.am (ordinary_java_source_files): Updated for removed
1955         files.
1957 1999-04-06  Per Bothner  <bothner@cygnus.com>
1959         * java/util/zip/Adler32.java:  New class.
1960         * java/util/zip/CRC32.java:  Add working method bodies.
1961         * Makefile.am (ordinary_java_source_files):  Add new Adler32 class.
1962         * Makefile.in:  Re-generate.
1964 Tue Apr  6 18:28:42 1999  Warren Levy  <warrenl@cygnus.com>
1966         * gnu/gcj/protocol/http/Connection.java: New file.  Rewritten
1967         from version in removed www hierarchy.
1968         * gnu/gcj/protocol/http/Handler.java: New file.  Copied from
1969         version in removed www hierarchy.
1971         * gnu/gcj/www/protocol/http/Connection.java: Removed.
1972         * gnu/gcj/www/protocol/http/Handler.java: Removed.
1973         * gnu/gcj/www/protocol/http: Removed dir.
1974         * gnu/gcj/www/protocol: Removed dir.
1975         * gnu/gcj/www: Removed dir.
1977         * java/net/HttpURLConnection.java: Revised comments to indicate
1978         missing JDK 1.2 methods.
1980         * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
1981         hierarchy rather than the gnu/gcj/www/protocol one.
1982         * java/net/URLConnection.java: Updated status comments.
1983         (setContentHandler): Look in gnu/gcj/content hierarchy rather than
1984         the gnu/gcj/www/content one.
1986 1999-04-06  Per Bothner  <bothner@cygnus.com>
1988         * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
1989         The gen-from-JIS program is in $(CONVERT_DIR).
1991 1999-04-06  Tom Tromey  <tromey@cygnus.com>
1993         * mauve-libgcj: Renamed from mauve-libjava.
1995 Tue Apr  6 03:18:38 1999  Warren Levy  <warrenl@cygnus.com>
1997         * java/net/HttpURLConnection.java (getResponseCode): Implemented.
1998         (getResponseMessage): Implemented.
1999         (getResponseVals): New private method.
2001         * java/net/URLConnection.java (getContent): Implemented.
2002         (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2004 1999-04-05  Tom Tromey  <tromey@cygnus.com>
2006         * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2007         (jv_convert_SOURCES): Renamed.
2008         (EXTRA_jv_convert_SOURCES): Likewise.
2009         (jv_convert_LDFLAGS): Likewise.
2010         (jv_convert_LINK): Likewise.
2011         (jv_convert_LDADD): Likewise.
2012         (jv_convert_DEPENDENCIES): Likewise.
2014         * Makefile.in: Rebuilt.
2015         * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2016         tooldir.
2018 Mon Apr  5 02:14:35 1999  Warren Levy  <warrenl@cygnus.com>
2020         * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2021         method for comparison.
2023         * java/net/URLConnection.java (getContentLength): Implemented.
2024         (getContentType): Implemented.
2025         (getContentEncoding): Implemented.
2026         (getExpiration): Implemented.
2027         (getDate): Implemented.
2028         (getLastModified): Implemented.
2029         (getHeaderFieldInt): Implemented.
2030         (getHeaderFieldDate): Implemented.
2032 Fri Apr  2 18:04:52 1999  Warren Levy  <warrenl@cygnus.com>
2034         * java/net/URLConnection.java (toString): Implemented.
2035         (setContentHandlerFactory): Implemented.
2036         (setContentHandler): Wrote new private helper method.
2038 1999-04-01  Tom Tromey  <tromey@cygnus.com>
2040         * Makefile.in: Rebuilt.
2041         * Makefile.am ($(java_source_files:.java=.class): Reverted change
2042         of 1999-03-31; we always want to build all the .class files.
2043         Depend on java_source_files, not libgcj.zip.
2044         (nat_headers): Define in terms of ordinary_java_source_files.
2046 1999-03-31  Tom Tromey  <tromey@cygnus.com>
2048         * Makefile.in: Rebuilt.
2049         * Makefile.am (special_java_source_files): New macro.
2050         (java_source_files): Use it.
2051         (ordinary_java_source_files): New macro.
2052         (java_source_files): Use it.
2053         ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2054         creating headers for those files with hand-maintained headers.
2056         * include/javaprims.h: Regenerated namespace declarations.
2057         * classes.pl (scan): Include [0-9] in regexp for matching class
2058         names; for java.util.zip.CRC32.
2060         * Makefile.in: Rebuilt.
2061         * Makefile.am (nat_headers): Redefined to generate all possible
2062         header files.
2064         * java/util/zip/ZipException.java: In package java.util.zip, not
2065         java.net.
2067 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2069         * configure: Rebuilt.
2070         * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2071         eh-common.h when not building in tree with gcc.
2073         * Makefile.in: Rebuilt.
2074         * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2075         $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2076         nat_headers.
2077         ($(java_source_files:.java=.class)): New target.
2079         * Makefile.in: Rebuilt.
2080         * Makefile.am (java_source_files): Added
2081         java/net/HttpURLConnection.java and
2082         gnu/gcj/www/protocol/http/Connection.java.
2084 Tue Mar 30 15:20:45 1999  Warren Levy  <warrenl@cygnus.com>
2086         * gnu/gcj/www/protocol/http/Connection.java: New file.
2087         * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2088         * java/net/HttpURLConnection.java: New file.
2089         * java/net/URLConnection.java (getHeaderField): Implemented default.
2090         (getHeaderFieldKey): Implemented default method.
2092 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2094         * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2096         * java/util/zip/Deflater.java: Added copyright header.
2097         * java/util/zip/CRC32.java: Added copyright header.
2099         * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2100         that it is automatically generated.
2101         ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2103         * gnu/gcj/convert/BytesToUnicode.java,
2104         gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2105         gnu/gcj/convert/Input_EUCJIS.java,
2106         gnu/gcj/convert/Input_UTF8.java,
2107         gnu/gcj/convert/JIS0208_to_Unicode.cc,
2108         gnu/gcj/convert/JIS0212_to_Unicode.cc,
2109         gnu/gcj/convert/Output_8859_1.java,
2110         gnu/gcj/convert/Output_JavaSrc.java,
2111         gnu/gcj/convert/Output_UTF8.java,
2112         gnu/gcj/convert/UnicodeToBytes.java,
2113         gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2115         * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2117         * Makefile.in, configure: Rebuilt.
2118         * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2119         not if test subdir exists.
2120         (--enable-gcj-classes): Removed; gcj always used to generate
2121         .class files.
2122         (JAVA, JAVAC): Removed.
2123         (--enable-single-compilation, --enable-source-compilation):
2124         Removed.
2125         (here): New subst.
2126         (NATIVE): New conditional.
2127         * Makefile.am (toolexecdir): Renamed from tooldir to allow
2128         `install-exec' to work.
2129         (toolexeclibdir): Likewise.
2130         (toollib_LIBRARIES): Likewise.
2131         (AM_MAKEFLAGS): Don't pass tooldir.
2132         (JAVAC): New macro.
2133         (javao_files): Redefined.
2134         (java_source_files): New macro.
2135         (c_source_files): New macro.
2136         (c_files): Redefined in terms of c_source_files.
2137         (java_io_files, java_lang_files, java_net_files, java_text_files,
2138         java_util_files, gnu_files, java_files): Removed.
2139         (class_io_files, class_lang_files, class_net_files,
2140         class_text_files, class_util_files, class_gnu_files, class_files):
2141         Removed.
2142         (nat_source_files): New macro.
2143         (nat_files): Redefined in terms of nat_source_files.
2144         (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2145         java_source_files.  Removed no-such-file.c.
2146         (here): Removed.
2147         (ETAGS_ARGS): Removed.
2148         (TAGS_DEPENDENCIES): Likewise.
2149         (libgcj.zip): Depend on java_source_files.  Use $(here) and not
2150         pwd in rule.
2151         (src_io_files, src_lang_files, src_text_files, src_util_files,
2152         src_gnu_files): Removed.
2153         Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2154         (BUILT_SOURCES): Removed.
2155         (header-check): New target.
2156         (javadir): Removed.
2157         (noinst_PROGRAMS): New macro.
2158         ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2159         on MAINTAINER_MODE.
2160         ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2161         (gen-from-JIS): Build in top directory.
2162         (convert_source_files): New macro.
2163         (convert_SOURCES): New macro.
2164         (convert_LDFLAGS): Likewise.
2165         (convert_LINK): Likewise.
2166         (convert_LDADD): Likewise.
2167         (convert_DEPENDENCIES): Likewise.
2168         (convert): Removed.
2169         (gen-from-JIS): Removed.
2170         (gen_from_JIS_SOURCES): New macro.
2171         (gen_from_JIS_LDADD): Likewise.
2172         (gen_from_JIS_DEPENDENCIES): Likewise.
2174         * configure: Rebuilt.
2175         * configure.in (CANADIAN): Set to `yes', not `canadian'.
2176         (NULL_TARGET): Initialize to `no'.  Correctly examine $NULL_TARGET
2177         when defining conditional.
2179 Tue Mar 30 10:36:27 1999  Per Bothner  <bothner@cygnus.com>
2181         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  Remove these files.
2182         The Unicode Consortium does not permit their re-distribution.
2183         * Makefile.am, Makefile.in:  Add comments with URLs for removed files.
2184         (JIS0208.h, JIS0212.h):  Do not depend on removed files.
2186 Mon Mar 29 18:58:13 1999  Per Bothner  <bothner@cygnus.com>
2188         * natSystem.c (init_properties):  Use malloc, realloc, free after all.
2190 Mon Mar 29 13:41:02 1999  Per Bothner  <bothner@cygnus.com>
2192         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  New mapping tables
2193         from Unicode Consortium.
2194         * gnu/gcj/convert/{JIS0208.h,JIS0212.h}:  New generated headers.
2195         * gnu/gcj/convert/gen-from-JIS.c:  New utility for maintainers only.
2196         * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2197         New tables, generated using gen-from-JIS.
2198         * gnu/gcj/convert/Output_JavaSrc.java:  New UnicodeToBytes class.
2199         * gnu/gcj/convert/Output_UTF8.java:  Fix bug.
2200         * gnu/gcj/convert/Input_EUCJIS.java:  New BytesToUnicode class.
2201         * gnu/gcj/convert/natInput_EUCJIS.cc:  Native methods for new class.
2203         * gnu/gcj/convert/Convert.java:  New application.
2204         * Makefile.am, Makefile.in (convert):  New program, using Convert.
2205         Build the various JIS conversion tables (in maintainer mode).
2207 Fri Mar 26 16:51:30 1999  Warren Levy  <warrenl@cygnus.com>
2209         * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2211         * java/net/URL.java (URL): Deal with null property value.  Use "."
2212         as separator in building class name.
2213         * java/net/URLConnection.java: Implemented majority of stubbed methods.
2214         * java/net/URLStreamHandler.java (parseURL): Use "" in string
2215         manipulations instead of 'null'.  Comment cleanup.  Use 0 for the
2216         beginning of the substring rather than 'start'.
2218 1999-03-26  Tom Tromey  <tromey@cygnus.com>
2220         * include/java-chartables.h: Rebuilt.
2221         * include/java-chardecomp.h: New file.
2222         * chartables.pl: Generate output files directly.  Added support
2223         for generating decomposition header.
2224         (canonical_decomposition, full_decomposition): New globals.
2225         (DECOMPOSITION): New constant.
2226         (process_char): Call add_decomposition.
2227         (add_decomposition): New sub.
2228         (write_decompositions): New sub.
2230 1999-03-25  Tom Tromey  <tromey@cygnus.com>
2232         * java/text/CollationElementIterator.java: New file.
2234         * mauve-libjava: Omit StringTest.
2236 Wed Mar 24 15:17:49 1999  Warren Levy  <warrenl@cygnus.com>
2238         * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2239         without a '/' when parsing protocol.  Handle ref outside of parseURL.
2240         (hashCode): Implemented.
2241         (set): Don't expand -1 to default port.
2242         (getDefaultPort): Removed.
2244         * java/net/URLStreamHandler.java (parseURL): Implemented.
2245         (toExternalForm): Implemented.
2247 1999-03-23  Tom Tromey  <tromey@cygnus.com>
2249         * java/text/BreakIterator.java (getSentenceInstance):
2250         Implemented.
2251         * gnu/gcj/text/SentenceBreakIterator.java: New file.
2253         * Makefile.in: Rebuilt.
2254         * Makefile.am (nat_headers): Added IllegalAccessException.
2255         * java/lang/natClass.cc (newInstance): Throw
2256         IllegalAccessException, not IllegalAccessError.
2257         Include IllegalAccessException.h.
2259 1999-03-22  Tom Tromey  <tromey@cygnus.com>
2261         * gnu/gcj/text/LineBreakIterator.java: New file.
2262         * java/text/BreakIterator.java (getLineInstance): Implemented.
2264         * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2265         copy constructor private.
2266         (previous, next): Removed erroneous comment about line
2267         separators.
2268         (previous): Correctly recognize break between non-letter on the
2269         left and letter on the right.  Handle apostrophes correctly.
2271         * java/text/BreakIterator.java (getWordInstance): Implemented.
2272         * gnu/gcj/text/WordBreakIterator.java: New file.
2273         * gnu/gcj/text/CharacterBreakIterator.java: Extend
2274         BaseBreakIterator.
2275         * gnu/gcj/text/BaseBreakIterator.java: New file.
2277 1999-03-19  Tom Tromey  <tromey@cygnus.com>
2279         * java/text/BreakIterator.java: New file (partially stubbed out).
2280         * gnu/gcj/text/CharacterBreakIterator.java: New file.
2282         * include/config.h.in: Rebuilt.
2283         * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2284         (HAVE_TIMEZONE): Likewise.
2285         * configure: Rebuilt.
2286         * configure.in: Added timezone checks.
2287         * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2288         timezone.
2290 Fri Mar 19 15:26:35 1999  Per Bothner  <bothner@cygnus.com>
2292         * gnu/gcj/convert/BytesToUnicode.java:  New abstract class.
2293         * gnu/gcj/convert/UnicodeToBytes.java:  New abstract class.
2294         * gnu/gcj/convert/Input_8859_1.java:  New BytesToUnicode sub-class.
2295         * gnu/gcj/convert/Input_UTF8.java:  New BytesToUnicode sub-class.
2296         * gnu/gcj/convert/Output_8859_1.java:  New UnicodeToBytes sub-class.
2297         * gnu/gcj/convert/Output_UTF8.java:  New UnicodeToBytes sub-class.
2298         * java/io/InputStreamReader.java:  Rewrite to use BytesToUnicode.
2299         * java/io/OutputStreamWriter.java:  Rewrite to use UnicodeToBytes.
2301         * java/io/natFileDescriptorPosix.cc (open):  Use O_BINARY flag.
2302         (BSD_COMP):  Kludge needed for Solaris2.
2304 Fri Mar 19 01:49:46 1999  Warren Levy  <warrenl@cygnus.com>
2306         * java/net/URL.java (URL(java.net.URL, string): Moved code to
2307         URL(java.net.URL, string, URLStreamHandler) and call it with a
2308         null handler.  In latter constructor, added SecurityManager check.
2309         (set): Expect null handler on bad protocol rather than an exception.
2310         (setURLStreamHandler): Simplified exception handling; return null
2311         on invalid protocol.
2313 1999-03-18  Tom Tromey  <tromey@cygnus.com>
2315         * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2317         * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2318         methods.
2319         Include PrintStream.h, InputStream.h.
2320         * java/lang/System.java (ForwardingInputStream,
2321         ForwardingOutputStream): Removed.
2322         (setErr, setIn, setOut): Now native.
2324         Reverted patch from 1999-02-12 to work around problem in
2325         libgcc2.c.
2326         * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2327         (_Jv_eh_free): Use free.
2329         * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2330         for path name.  Minor formatting fixes.
2332         * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2334         * prims.cc (fail_on_finalization): New function.
2335         (_Jv_GCWatch): Likewise.
2337         * prims.cc (JvRunMain): Initialize `nullp'.
2338         (nullp): New global.
2339         (catch_segv): Throw nullp.
2341         * Makefile.in: Rebuilt.
2342         * Makefile.am (ZIP): In "null target" case, zip is found in the
2343         build tree.
2345         * prims.cc (_Jv_PrimClass): Initialize all elements of class
2346         object.
2347         Include Modifier.h.
2349         * java/lang/StringBuffer.java (StringBuffer): Don't use
2350         ensureCapacity to set initial capacity.
2351         (capacity): Subtract `length' from return result.
2353 Thu Mar 18 01:53:35 1999  Warren Levy  <warrenl@cygnus.com>
2355         * java/io/natFileDescriptorPosix.cc (open): Throw
2356         FileNotFoundException, but with filename and errno in msg.
2358 Wed Mar 17 11:09:30 1999  Warren Levy  <warrenl@cygnus.com>
2360         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2361         functionality folded into java/net/URL.java per spec.
2362         
2363         * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2364         than EEXIST for throwing FileNotFoundException.
2365         
2366         * java/net/URL.java: Folded in default URLStreamHandlerFactory 
2367         algorithm per JDK 1.2 doc.  Added SecurityManager checks.
2368         
2369         * java/net/URLStreamHandler.java (parseURL): Added stub.
2371 1999-03-15  Andrew Haley  <aph@cygnus.com>
2373         * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2374         by one errors.
2376 1999-03-15  Andrew Haley  <aph@cygnus.com>
2378         * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2379         support.
2381 1999-03-12  Tom Tromey  <tromey@cygnus.com>
2383         * prims.cc (catch_segv): New function.
2384         Include <signal.h> if HANDLE_SEGV defined.  Include
2385         NullPointerException.h.
2386         (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2387         handler.
2389         * java/text/SimpleDateFormat.java (equals): Ensure that object is
2390         a SimpleDateFormat, not just a DateFormat.
2391         (defaultCenturyStart, formatData, pattern): Now private.
2392         (append): Now `final'.  Use `NumberFormat.format'.
2393         (parse): Wrote.
2394         (SimpleDateFormat): Turn off groupin in NumberFormat object.
2396         * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2397         result.
2399         * java/text/MessageFormat.java (format): Use default MessageFormat
2400         constructor.
2401         (parse, parseObject): Wrote.
2403         * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2404         constructor.
2406 1999-03-12  Andrew Haley  <aph@cygnus.com>
2408         * java/lang/String.java (indexOf): Replace with native method for
2409         better performance.
2410         * java/lang/natString.cc (IndexOf): As above.
2412         * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2413         Argument check corrected.
2414         (init(jbyteArray,jint,jint,jstring)): Likewise.
2415         
2416         * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2417         1.2 compliant method.
2419         * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2420         added.
2421         * java/lang/Float.java (byteValue, shortValue): Likewise.
2423 1999-03-11  Tom Tromey  <tromey@cygnus.com>
2425         * java/text/DecimalFormat.java (parse): Wrote.
2427         * java/text/ChoiceFormat.java (parse): Set error index on
2428         ParsePosition object.
2430         * java/lang/Integer.java (parseInt): Throw exception on overflow
2431         when intermediate result is most negative number.  Changed
2432         overflow detection as well.
2433         * java/lang/Long.java (parseLong): Likewise.
2435         * configure, Makefile.in: Rebuilt.
2436         * configure.in (NULL_TARGET, CANADIAN): New conditionals.  Set
2437         CANADIAN when building in source tree that doesn't include gcc.
2438         * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2439         define.
2441         * java/text/ChoiceFormat.java (nextDouble): Correct some
2442         off-by-one errors when masking or adding.
2444         * java/text/DecimalFormat.java (format): Fill in FieldPosition
2445         parameter, if given.  Use `%', not IEEEremainder.
2446         (scanFix): Throw error if multiplier already set.
2447         (computePattern): Wrote.
2449 1999-03-11  Andrew Haley  <aph@cygnus.com>
2451         * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2452         52.
2453         (nextDouble): Corrected masking logic.  Handle interaction between
2454         `next' and negative numbers.
2456 Wed Mar 10 18:58:37 1999  Warren Levy  <warrenl@cygnus.com>
2458         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2459         * java/net/URL.java: Added general comments.
2461 1999-03-10  Tom Tromey  <tromey@cygnus.com>
2463         * java/text/ChoiceFormat.java (parse): Wrote.
2465         * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2467         * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2468         Create ChoiceFormat objects.
2469         (format): Special-case ChoiceFormat.
2470         (scanFormatElement): Include { and } in generated style string.
2472 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2474         * java/text/ChoiceFormat.java: New file.
2476 Tue Mar  9 17:09:18 1999  Warren Levy  <warrenl@cygnus.com>
2478         * java/net/BindException.java: Created.
2479         * java/net/ConnectException.java: Created.
2480         * java/net/ContentHandler.java: Created.
2481         * java/net/ContentHandlerFactory.java: Created.
2482         * java/net/FileNameMap.java: Created.
2483         * java/net/MalformedURLException.java: Created.
2484         * java/net/NoRouteToHostException.java: Created.
2485         * java/net/ProtocolException.java: Created.
2486         * java/net/ServerSocket.java (@author): Fixed typo.
2487         * java/net/Socket.java (@author): Fixed typo.
2488         * java/net/SocketImpl.java (@author): Fixed typo.
2489         * java/net/SocketImplFactory.java (@author): Fixed typo.
2490         * java/net/URL.java: Created - nearly complete.
2491         * java/net/URLConnection.java: Created - near-empty stub.
2492         * java/net/URLStreamHandler.java: Created - incomplete stub.
2493         * java/net/URLStreamHandlerFactory.java: Created.
2494         * java/net/UnknownServiceException.java: Created.
2496 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2498         * java/lang/System.java (ForwardingInputStream): New class.
2499         (ForwardingOutputStream): Likewise.
2500         (in, out, err): Now `final' forwarding streams.
2501         (setIn, setOut, setErr): Use appropriate method on forwarding
2502         streams.
2504         * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2505         class.
2507 Tue Mar  9 12:16:53 1999  Per Bothner  <bothner@cygnus.com>
2509         * java/util/zip/CRC32.java:  New class (just an incomplete stub).
2510         * java/util/zip/Checksum.java:  New interface (complete).
2511         * java/util/zip/Deflater.java:  New class (near-empty stub).
2512         * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2513         * java/util/zip/ZipConstants.java:  New interface (near-empty stub).
2514         * java/util/zip/ZipEntry.java:  New class (complete).
2515         * java/util/zip/ZipException.java:  New class (complete).
2516         * java/util/zip/ZipFile.java:  New class (incomplete stub).
2517         * java/util/zip/ZipOutputStream.java:  New class (incomplete stub).
2519 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2521         * java/text/MessageFormat.java (MessageFormatElement): Removed
2522         `public' specifiers.
2524         * java/text/DecimalFormat.java (scanFormat): Increment index
2525         before processing exponential format.  Fixed a couple typos in
2526         exception messages.
2527         (format): Correct normalization of exponent.
2529 1999-03-08  Tom Tromey  <tromey@cygnus.com>
2531         * java/text/SimpleDateFormat.java (parse): Throw
2532         IllegalArgumentException, not ParseException.
2534 1999-03-05  Tom Tromey  <tromey@cygnus.com>
2536         * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2537         when constructing DateFormatSymbols.  Initialize numberFormat
2538         field of superclass.
2540         * java/text/DateFormat.java (equals): Rewrote.
2541         (getAvailableLocales): New method.
2542         (getDateInstance): New methods.
2543         (getDateTimeInstance): Likewise.
2544         (getTimeInstance): Likewise.
2545         (getInstance): New method.
2546         (computeInstance): New method.
2548         * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2549         for US.
2550         (safeGetResource): New method.
2551         (DateFormatSymbols): Use Locale paramater.
2552         (equals): Now protected.
2553         Made instance variables private.
2555 1999-03-04  Tom Tromey  <tromey@cygnus.com>
2557         * java/text/DecimalFormat.java: New file.
2559         * java/text/NumberFormat.java (groupingUsed,
2560         maximumFractionDigits, maximumIntegerDigits,
2561         minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2562         New fields.
2563         (setDecimalSeparatorAlwaysShown, setMultiplier,
2564         setPositivePrefix): Removed.
2565         (setMinimumFractionDigits, setMaximumFractionDigits):
2566         Implemented.
2567         (format): Now final.
2568         Added many new methods.
2570         * Makefile.in: Rebuilt.
2571         * Makefile.am (gnu_files): New macro.
2572         (java_files): Added gnu_files.
2573         (class_gnu_files): New macro.
2574         (class_files): Use it.
2575         (src_gnu_files): New macro.
2576         (gnu.o): New target.
2577         (javao_files): Added gnu.o.
2579         * gnu/gcj/text/LocaleData_en_US.java: New file.
2580         * gnu/gcj/text/LocaleData_en.java: New file.
2581         * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2582         (DecimalFormatSymbols): Use ResourceBundle to find resources.
2583         (safeGetString): New method.
2584         (safeGetChar): Likewise.
2586 1999-03-03  Tom Tromey  <tromey@cygnus.com>
2588         * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2589         constants.
2591         * java/text/FieldPosition.java (equals): Don't check for null
2592         object; instanceof does this.
2594         * java/util/Locale.java (clone): New method.
2595         (equals): Likewise.
2597 Wed Mar  3 17:20:15 1999  Anthony Green  <green@cygnus.com>
2599         * doc/cni.sgml: New file.
2601 1999-03-03  Tom Tromey  <tromey@cygnus.com>
2603         * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2605         * java/text/DecimalFormatSymbols.java: New file.
2607 1999-03-02  Tom Tromey  <tromey@cygnus.com>
2609         * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2610         exists.
2611         * configure: Rebuilt.
2612         * configure.in: Check for sys/filio.h.
2614         * java/lang/Runtime.java (checkLink): Throw NullPointerException
2615         if required.
2616         (load): Always throw UnsatisfiedLinkError.
2617         (loadLibrary): Likewise.
2619 1999-03-02  Anthony Green  <green@cygnus.com>
2621         * LIBGCJ_LICENSE: New file.
2622         * LIBJAVA_LICENSE: Removed.
2623         * Many files: libjava now libgcj.
2624         
2625 1999-03-02  Tom Tromey  <tromey@cygnus.com>
2627         * include/java-chartables.h: Rebuilt.
2628         * chartables.pl (print_block): Make table `const'.
2629         (print_numerics): Likewise.
2630         (print_single_map): Likewise.
2631         (print_all_block): Likewise.
2632         (print_case_table): Likewise.
2633         (print_fast_tables): Likewise.
2634         * java/lang/natCharacter.cc (table_search): `table' argument now
2635         const.
2637 1999-03-01  Tom Tromey  <tromey@cygnus.com>
2639         * java/util/Date.java (before, after): Inverted logic.
2641         * java/util/Date.java (parse): Handle case where first character
2642         in string is open parenthesis.
2643         (skipParens): Rewrote.
2645         * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2646         * java/lang/reflect/natField.cc: Include <stdlib.h>.
2648         * java/util/Date.java (parse): Correctly compute beginning of
2649         punctuation.
2651         * java/util/Hashtable.java (get): Throw NullPointerException if
2652         key is null.
2653         (containsKey): Likewise.
2655         * java/util/Properties.java (list): Truncate value to 37
2656         characters and add `...'.
2658         * java/lang/Byte.java (parseByte): Pass `radix' to
2659         Integer.parseInt.
2661         * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2662         fprintf.
2663         Include System.h, PrintStream.h.
2665         * java/lang/natSystem.cc (init_properties): Don't use malloc,
2666         realloc, or free.
2668         * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2669         exists.
2670         * configure: Rebuilt.
2671         * configure.in: Check for getpwuid_r.  Look for `pwd.h', not
2672         `pwd.d'.
2674         * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2676         * java/lang/SecurityManager.java: Import java.net.*.
2677         (checkMulticast): New methods.
2679 Fri Feb 26 14:54:52 1999  Per Bothner  <bothner@cygnus.com>
2681         * Makefile.am, Makefile.in (java/lang/reflect/Method.h):  New rule.
2682         (nat_files):  Add java/lang/reflect/natArray.o.
2683         (nat_headers):  Add Field.h and NoSuchFieldException.h.
2684         
2685         * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2686         _Jv_GetStaticShortField, _Jv_GetStaticByteField):  New inline methods.
2687         (_Jv_FromReflectedField):  Fix buglet.
2688         * include/jvm.h (_Jv_NewMultiArray):  New declaration.
2689         * include/java-assert.h (JvFail):  Pass message string to _Jv_Abort.
2690         * prims.cc (_Jv_Abort):  Include message in print-out.
2692         * prims.cc (_Jv_equal):  New method (compare Utf8Const and jstring).
2693         (new_multi_array):  Rename to _Jv_NewMultiArray.  Make non-static.
2694         * include/jvm.h (_Jv_NewMultiArray, _Jv_equal):  New declarations.
2696         * configure.in (AC_CHECK_HEADERS), configure:  Add pwd.h.
2697         * include/config.h.in (HAVE_PWD_H):  New feature macro.
2698         * java/lang/natSystem.cc (init_properties):  Set file.encoding,
2699         user.name, user.home, user.dir.
2701         * java/lang/reflect/Array.java:  New class.
2702         * java/lang/reflect/natArray.cc:  New native methods.
2703         * include/javaprims.h:  Declare java::lang::reflect::Array.
2705         * java/lang/Class.h (getField):  New private method.  Add friends.
2706         * java/lang/Class.java (getField):  Add private overload.
2707         * java/lang/natClass.cc (getField, getField, getDeclaredField,
2708         getDeclaredMethods):  Add working implementations.
2709         * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2710         Finish implementation, except for access control.
2712         * java/lang/reflect/Modifier.java (toString):  New overload.
2713         * include/java-method.h:  New file.
2714         * java/lang/reflect/Method.java (index):  Replaced by offset field.
2715         Remove various private fields - get them from _Jv_Field instead.
2716         * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2717         New method implementations.
2719         * java/text/NumberFormat.java:  Add a bunch of methods.
2721 Mon Feb 22 17:52:34 1999  Per Bothner  <bothner@cygnus.com>
2723         * java/lang/StringBuffer.java (getChars):  Fix bounds checks.
2725 1999-02-26  Tom Tromey  <tromey@cygnus.com>
2727         * include/config.h.in: Rebuilt.
2728         * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2729         GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2730         HAVE_GETHOSTBYADDR_R): New defines.
2731         * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2732         gethostbyaddr_r if available.
2733         Include <errno.h>.
2734         * configure: Rebuilt.
2735         * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2737         * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2738         Don't use JvFree.
2739         (lookup): Likewise.
2740         Include <jvm.h>.
2741         * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2742         * prims.cc (_Jv_AllocBytesChecked): New function.
2744         * Makefile.in: Rebuilt.
2745         * Makefile.am (SUBDIRS): Removed `test'.
2746         * configure: Rebuilt.
2747         * configure.in: Don't build test/Makefile.
2748         * test/*: Removed all files.
2750 Thu Feb 25 17:27:37 1999  Warren Levy  <warrenl@cygnus.com>
2752         * java/lang/reflect/Constructor.java: Make class final to match spec.
2753         * java/lang/reflect/Method.java: Ditto.
2755 1999-02-25  Tom Tromey  <tromey@cygnus.com>
2757         * java/net/natInetAddress.cc: Include <sys/types.h> before
2758         <sys/socket.h>.
2759         * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2760         <sys/socket.h>.
2762         * java/net/natInetAddress.cc: Declare gethostname if required.
2763         * include/config.h.in: Rebuilt.
2764         * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2765         * configure: Rebuilt.
2766         * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2767         declared in unistd.h.
2769 1999-02-24  Tom Tromey  <tromey@cygnus.com>
2771         * Makefile.in: Rebuilt.
2772         * Makefile.am (java/io/FileDescriptor.h): Removed target.
2773         * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2774         from private to "none".
2776         * include/javaprims.h: Regenerated class declarations with new
2777         classes.pl.
2778         * classes.pl (scan): Only generate decls for java.lang, java.io,
2779         and java.util.
2781 1999-02-24  Tom Tromey  <tromey@cygnus.com>
2783         * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2784         (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2786 1999-02-23  Tom Tromey  <tromey@cygnus.com>
2788         * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2789         not already defined.
2790         * java/io/natFile.cc (_REENTRANT): Only define if not already
2791         defined.
2792         * include/config.h.in: Rebuilt.
2793         * acconfig.h (HAVE_BOEHM_GC): New define.
2794         * configure: Rebuilt.
2795         * configure.in: Define HAVE_BOEHM_GC if using it.
2796         * posix-threads.cc: Include boehm-config.h and gc.h if
2797         HAVE_BOEHM_GC.
2798         * include/posix-threads.h: Added explanatory note about Boehm GC.
2800         * java/io/BufferedReader.java (readLine): Only return null when
2801         EOF seen before any characters read.  (In particular, an empty
2802         line should not return null.)
2804         * java/io/BufferedInputStream.java (read): Only refill once per
2805         invocation.
2807         * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2808         java.lang.Character.classify12, java.lang.String.hash,
2809         java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2810         java.text.SimpleDateFormat.getAndSet2DigitYearStart
2812         * java/text/StringCharacterIterator.java (setIndex): No error if
2813         index == end.
2814         (next): Check for `pos == end', not `end - 1'.
2815         (StringCharacterIterator): Allow `pos == end'.  Explicitly check
2816         for null text in each constructor.
2817         (clone): Fixed order of arguments to constructor.
2819 1999-02-22  Tom Tromey  <tromey@cygnus.com>
2821         * include/config.h.in: Rebuilt.
2822         * acconfig.h (HAVE_INET6): New define.
2823         (HAVE_SOCKLEN_T): Likewise.
2824         * java/net/PlainSocketImpl.java: Added copyright header.
2825         * java/net/natPlainSocketImpl.cc: Added copyright header.
2826         (union SockAddr): Use HAVE_INET6, not AF_INET6.
2827         (bind): Likewise.
2828         (connect): Likewise.
2829         (accept): Likewise.
2830         (socklen_t): New typedef.
2831         (accept): Use socklen_t.
2832         * java/net/natInetAddress.cc: Added copyright header.
2833         (HAVE_GETHOSTNAME): Don't define.
2834         (HAVE_INET_ADDR): Likewise.
2835         (lookup): Fixed typo.
2836         (aton): Don't use `address' as name of local variable.
2837         (lookup): Use HAVE_INET6, not AF_INET6.
2839         * configure: Rebuilt.
2840         * configure.in: Look for functions inet_aton, inet_addr,
2841         gethostname, inet_pton, uname.  Check for sockaddr_in6 structure.
2842         Check for socklen_t typedef.
2844         * exception.cc (__throw): Declare as __noreturn__.
2846 Mon Feb 22 15:27:35 1999  Per Bothner  <bothner@cygnus.com>
2848         * Makefile.am, Makefile.in:  Also build java/net.
2849         (java/io/FileDescriptor.h):  Add friend java::net::PlainSocketImpl.
2851         * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2852         * java/util/natGregorianCalendar.cc:  #define _REENTRANT.
2854         * prims.cc (_Jv_malloc, _Jv_Free):  New functions.
2855         * include/cni.h (JvMalloc, JvFree):  New inline functions.
2856         (JvThrow):  Add __noreturn__ attribute.
2857         * include/javaprims.h (_Jv_Malloc, _Jv_Free):  New declarations.
2858         (_Jv_Throw):  Add __noreturn__ attribute.
2860         * java/net/PlainSocketImpl.java:  Init fnum to -1.
2861         * java/net/ServerSocket.java:  Add missing throws clauses.
2862         * java/lang/Socket.java:  For the constructor taking a SocketImpl,
2863         don't call create on the latter.  Instead, other constructors
2864         have to explicitly call SocketImpl.create.
2865         * java/net/natPlainSocketImpl.cc (accept):  Change variable addrlen
2866         from size_t to int, to match ::accept prototype.
2867         * java/net/natInetAddress.cc:  Use JvFree rather than free.
2870 1999-02-22  Tom Tromey  <tromey@cygnus.com>
2872         * include/javaprims.h: Added new classes.
2873         * java/text/StringCharacterIterator.java: New file.
2874         * java/text/CharacterIterator.java: New file.
2876         * java/text/ParseException.java (errorOffset): Now private.
2878 Mon Feb 22 12:54:53 1999  Per Bothner  <bothner@cygnus.com>
2880         * java/net:  New package.
2881         * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2882         Socket.java,SocketException.java,SocketImpl.java,
2883         SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2884         natPlainSocketImpl.cc}:  New classes.
2886         * configure.in (AC_CHECK_HEADERS):  Also check for <sys/socket.h>,
2887         <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2888         * include/config.h.in:  Add place-holders for HAVE_ARPA_INET_H,
2889         HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2891         * classes.pl:  Translate package into "namespace", not "class".
2892         * include/javaprims.h:  Update class list, using "namespace".
2894 1999-02-21  Tom Tromey  <tromey@cygnus.com>
2896         * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2897         Define when appropriate.
2899 1999-02-20  Tom Tromey  <tromey@cygnus.com>
2901         * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2902         as a single byte and \u07ff as two bytes.
2903         (_Jv_GetStringUTFLength): Likewise.
2904         * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2905         with 0x0f, not 0x1f.
2907 1999-02-19  Tom Tromey  <tromey@cygnus.com>
2909         * java/io/DataOutputStream.java (writeUTF): When encoding
2910         character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2911         * java/io/DataInputStream.java (readUTF): Mask second byte of
2912         3-byte character with 0x3f, not 0x1f.
2914         * java/io/DataInputStream.java (readLong): Cast result of
2915         readUnsignedByte to long before using.
2917         * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2918         it is not null.
2920         * mauve-libjava: Re-enabled java.io.DataInputOutput.
2921         * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2922         argument to avoid warning.
2923         * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2924         argument to avoid warning.
2926 1999-02-18  Tom Tromey  <tromey@cygnus.com>
2928         * mauve-libjava: Omit java.io.DataInputOutput and
2929         java.io.Utf8Encoding.
2931 1999-02-17  Tom Tromey  <tromey@cygnus.com>
2933         * Makefile.in: Rebuilt.
2934         * Makefile.am (nat_headers): Added InterruptedIOException.h.
2935         * java/io/natFileDescriptorPosix.cc: Include
2936         InterruptedIOException.h, Thread.h.
2937         (write): Throw InterruptedIOException when required.
2938         (read): Likewise.
2939         * posix-threads.cc: Include <signal.h>.
2940         (_Jv_ThreadInterrupt): New function.
2941         (INTR): New define.
2942         (handle_intr): New function.
2943         (_Jv_InitThreads): Register handle_intr via sigaction.
2944         * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
2945         * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
2946         * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
2947         * include/no-threads.h (_Jv_ThreadInterrupt): New function.
2949 1999-02-19  Andrew Haley  <aph@cygnus.com>
2951         * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
2952         of subgroups.
2953         (ThreadGroup (int)): Set the maximum priority of the initial
2954         ThreadGroup.
2956 1999-02-18  Andrew Haley  <aph@cygnus.com>
2958         * java/lang/natClass.cc (forName): Check for the case where a
2959         classname is the name of an array and call FindClassFromSignature
2960         to find the Class.
2962 1999-02-18  Andrew Haley  <aph@cygnus.com>
2964         * java/lang/StringBuffer (insert (int, String)): Move up any
2965         characters above the insert position and increase the length of
2966         the string buffer by the length of the argument.
2967         (insert (int, char[])): Likewise.
2968         (insert (int, char)): Likewise.
2969         (StringBuffer (String)): The initial capacity of the string buffer
2970         is 16 plus the length of the argument.
2971         (getChars): Add a JDK 1.2 FIXME.
2973 1999-02-18  Andrew Haley  <aph@cygnus.com>
2975         * java/lang/Short.java (parseShort(String, int)): Pass radix to
2976         Integer.parseInt.
2978 1999-02-18  Andrew Haley  <aph@cygnus.com>
2980         * java/lang/Double.java (equals): Use a bit-by-bit comparision
2981         instead of floating-point equality.  This is necessary for
2982         correct floating-point Hashtables.
2983         * java/lang/Float.java (equals): Ditto.
2985 1999-02-16  Tom Tromey  <tromey@cygnus.com>
2987         * java/util/Properties.java (list): Truncate value to 37
2988         characters and add "...".
2990 1999-02-16  Tom Tromey  <tromey@cygnus.com>
2992         * java/util/Vector.java (Vector): Throw IllegalArgumentException
2993         if initCap is negative.
2994         (contains): Implement JDK1.2-style handling of null argument.
2995         (removeElement): Likewise.
2996         (indexOf): Likewise.  Also, correctly handle case where idx is
2997         negative.
2998         (lastIndexOf): Likewise.
3000 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3002         * java/lang/natString.cc (init): Increment source pointer in
3003         loop.
3005 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3007         * exception.cc: Include NullPointerException.h.
3008         (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3010 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3012         * Makefile.in: Rebuilt.
3013         * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3015 Sat Feb 13 20:25:09 1999  Bonzo Armstrong  <bonzo@cygnus.com>
3017         * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3018         we're compiling canadian.
3019         * configure: Regenerated.
3021 1999-02-12  Andrew Haley  <aph@cygnus.com>
3023         * java/lang/sf_rint.c: Resurrected.  This file shouldn't have been
3024         deleted from libgcj.
3026 1999-02-12  Tom Tromey  <tromey@cygnus.com>
3028         * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3029         (_Jv_eh_free): Don't call free.
3030         Don't declare malloc or free.
3032 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3034         * configure.host: Use `libgcj', not `libjava'.  Removed `echo'.
3036 1999-02-11  Andrew Haley  <aph@cygnus.com>
3038         * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3039         wf_fmod.c: Deleted.  These are all files from fdlibm which aren't
3040         needed by java.lang.*.
3041         * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3042         wf_fmod.o: Removed from libjava.a.
3044 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3046         * include/javaprims.h: Reverted previous change; with it
3047         exception.cc can't compile.
3049         * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3051         * include/config.h.in: Rebuilt.
3052         * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3053         HAVE_SCHED_YIELD.
3054         * configure: Rebuilt.
3055         * configure.in: Check for sched_yield.  Look in thread library for
3056         all thread functions.
3058         * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3059         no recursive mutexes.
3060         (_Jv_MutexDestroy): Define when required.
3061         (_Jv_MutexLock): Likewise.
3062         (_Jv_MutexUnlock): Likewise.
3063         (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3064         * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3065         (_Jv_Mutex_t): New structure.
3066         (_Jv_MutexDestroy): Only define if recursive mutexes available.
3067         (_Jv_MutexLock): Likewise.
3068         (_Jv_MutexUnlock): Likewise.
3070 1999-02-10  Tom Tromey  <tromey@cygnus.com>
3072         * aclocal.m4, configure, Makefile.in: Rebuilt.
3073         * acinclude.m4: Renamed libjava to libgcj.  Updated to use
3074         automake 1.4.
3075         * configure.in: Changed to track library changes.
3076         * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3077         (AM_CXXFLAGS): Likewise.
3078         (data_DATA): Likewise.
3079         (AM_CFLAGS): Likewise.
3080         (JC1FLAGS): Likewise.
3081         (libgcj_a_SOURCES): Likewise.
3082         (EXTRA_libgcj_a_SOURCES): Likewise.
3083         (libgcj_a_DEPENDENCIES): Likewise.
3084         (libgcj_a_LIBADD): Likewise.
3085         (libgcj.zip): Likewise.
3086         (CLEANFILES): Likewise.
3087         ($(nat_headers)): Likewise.
3088         (java/lang/FirstThread.h): Likewise.
3089         (java/lang/ThreadGroup.h): Likewise.
3090         (java/lang/String.h): Likewise.
3091         (java/lang/reflect/Field.h): Likewise.
3092         (BUILT_SOURCES): Likewise.
3093         (maintainer-check): Likewise.
3094         (CONFIG_STATUS_DEPENDENCIES): Likewise.
3095 Tue Feb  9 11:06:38 1999  Anthony Green  <green@cygnus.com>
3097         * java/util/natGregorianCalendar.cc (computeFields): Only use
3098         gmtime_r and localtime_r when configured for posix threads.
3100         * java/io/natFile.cc (get_entry): Only use readdir_r when
3101         configured for posix threads.
3103         * java/util/natGregorianCalendar.cc: Update copyright notice.
3104         * java/util/TimeZone.java: Ditto.
3105         * java/util/SimpleTimeZone.java: Ditto.
3107 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3109         * java/io/PrintStream.java (line_separator): New constant.
3110         (print): Use line_separator, not `file.separator' property.
3111         (println): Use line_separator.
3113         * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3114         when trying to instantiate Class.
3116         * java/lang/ThreadGroup.java (ThreadGroup): Throw
3117         NullPointerException if argument is null.
3119         * java/lang/Thread.java (setName): Throw NullPointerException, not
3120         IllegalArgumentException.
3121         (Thread): Likewise.
3123 1999-02-08  Andrew Haley  <aph@cygnus.com>
3125         * java/lang/natClass.cc (newInstance): Don't allow anyone to
3126         create new Classes with Class.newInstance().
3128         * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3129         semiciolon to end of an array Class's signature if the elements of
3130         the array aren't themselves arrays.
3132         * java/lang/natSystem.cc (arraycopy): The size of an element of an
3133         array of objects is always sizeof(jobject), not the size of the
3134         object to which the reference points.
3136 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3138         * java/util/BitSet.java (and): Throw NullPointerException when
3139         required.
3140         (or): Likewise.
3141         (xor): Likewise.
3143         * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3144         if argument is negative.
3145         (clear): Correctly compute `offset'.  Throw
3146         IndexOutOfBoundsException when required.
3147         (set): Likewise.
3148         (get): Likewise.  Also, return correct value.
3149         (ensure): Changed meaning of argument.
3150         (toString): Wrap contents in `{}'; put spaces after commas.
3151         (hashCode): Don't try to examine elements off the end of array.
3152         (or): Correctly include bits past the end of this bit set.
3153         (xor): Likewise.
3155 Thu Feb  4 12:48:03 1999  Warren Levy  <warrenl@cygnus.com>
3157         * configure.host (mips-tx39-*): Use jmr3904dram.ld link script 
3158         instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3160 1999-02-04  Andrew Haley  <aph@cygnus.com>
3162         * java/lang/natClass.cc (Class::forName): Remove code which mapped
3163         '/' in signatures to '.'
3164         (Class::getName): Likewise,
3165         (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3166         signature.
3167         * java/lang/natFirstThread.cc (run): Change '/' in main's
3168         signature to '.'.
3170 1999-02-03  Andrew Haley  <aph@cygnus.com>
3172         * configure.host: -ffloat-store added when compiling libjava on
3173         x86.  fdlibm apparently relies on this.
3175         * java/lang/ThreadGroup.java (add): throw an exception if the
3176         ThreadGroup has been destroyed.
3178         * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3179         behaviour.
3181 1999-01-27  Tom Tromey  <tromey@cygnus.com>
3183         * java/lang/StringBuffer.java (StringBuffer): Handle null
3184         argument.
3186 1999-01-21  Tom Tromey  <tromey@cygnus.com>
3188         * java/lang/natFirstThread.cc (run): Don't require main to be
3189         public.
3191 Wed Jan 20 15:44:56 1999  Anthony Green  <green@cygnus.com>
3193         * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3195 1999-01-20  Tom Tromey  <tromey@cygnus.com>
3197         * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3198         StringClass.
3199         (rehash): Likewise.
3200         (intern): Likewise.
3201         (unintern): Likewise.
3202         (_Jv_NewStringUtf8Const): Likewise.
3204         * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3205         Character.isLetter, to see if character is self-quoting.  Also,
3206         correctly handle quoted characters.
3207         (parse): Fixed typo.  Also now throws ParseException.
3209 1999-01-15  Tom Tromey  <tromey@cygnus.com>
3211         * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3213         * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3214         _Jv_SyncInfo has `init' member.
3216         * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3217         coop_mutex_unlock.
3219         * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3220         IllegalMonitorStateException if unlock fails.
3222         * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3223         zero.
3224         (_Jv_NewObjectArray): Likewise.
3226 1999-01-14  Tom Tromey  <tromey@cygnus.com>
3228         * java/lang/Character.java (isJavaIdentifierPart): Allow
3229         LETTER_NUMBER characters.
3231         * chartables.pl (process_char): Fixed error messages.
3233         * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3234         * chartables.pl: Updated comments.  Changed detection of non-digit
3235         numeric values (no longer miss \u00b2 and friends).
3237         * java/lang/Character.java (isJavaIdentifierPart): Recognize
3238         currency symbols and connector punctuation.
3239         (isIdentifierIgnorable): Make 7f-9f ignorable.
3241         * prims.cc (_Jv_NewObjectArray): Check for overflow.
3242         (_Jv_NewPrimArray): Likewise.
3243         (SIZE_T_MAX): New define.
3245         * java/lang/ClassLoader.java (system): Now private and final.
3247         * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3248         null.
3250         * configure: Rebuilt.
3251         * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3252         well.
3253         * exception.cc: Include gansidecl.h.
3255 1999-01-14  Andrew Haley  <aph@cygnus.com>
3257         * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3258         corrected: they didn't treat -0.0 and NaNs correctly.
3260 Wed Jan 13 13:32:22 1999  Anthony Green  <green@cygnus.com>
3262         * nogc.cc: Use calloc to zero out memory.
3264 1999-01-11  Tom Tromey  <tromey@cygnus.com>
3266         * java/lang/natClass.cc (isInstance): Return false if this class
3267         is primitive, not if class of `obj' is primitive.
3268         (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3270         * java/io/SequenceInputStream.java (close): Handle case where `in'
3271         is already null.
3273         * java/text/DateFormat.java (format): New method.
3275         * mauve-libjava: Omit java.text.DateFormat.
3277 1999-01-08  Tom Tromey  <tromey@cygnus.com>
3279         * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3280         argument.
3281         * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3282         argument.
3283         (_Jv_CondNotifyAll): Likewise.
3285         * configure: Rebuilt.
3286         * configure.in: Change --enable-source-compilation logic to work
3287         correctly.
3289 1999-01-07  Andrew Haley  <aph@cygnus.co.uk>
3291         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
3292         and RUNTESTFLAGS from AM_MAKEFLAGS.
3293         * configure.in: AM_RUNTESTFLAGS added.
3294         * configure.host: AM_RUNTESTFLAGS added.
3295         * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3296         * configure: rebuilt.
3297         * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3299         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3300         argv[] made conditional because embedded targets may not have
3301         argv[].
3302         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3303         explanatory comments added in call to super.
3305         * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3306         exception thrown in the test harness itself added.
3307         * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3309 Wed Jan  6 17:27:39 1999  Per Bothner  <bothner@cygnus.com>
3311         * java/text/DateFormatSymbols.java (zoneStringsDefault):  Make static.
3313 1999-01-06  Tom Tromey  <tromey@cygnus.com>
3315         * java/io/natFile.cc (get_entry): New function.
3316         (performList): Use get_entry.
3317         * include/config.h.in: Rebuilt.
3318         * acconfig.h (HAVE_READDIR_R): New define.
3319         * configure: Rebuilt.
3320         * configure.in: Look for readdir_r.
3322         * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3324         * java/util/natDate.cc: Added copyright header.
3326 1999-01-05  Tom Tromey  <tromey@cygnus.com>
3328         * include/config.h.in: Rebuilt.
3329         * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3330         HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3331         * configure: Rebuilt.
3332         * configure.in: Check for access, stat, mkdir, rename, rmdir,
3333         unlink, and realpath.
3334         * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3335         (stat): Conditionalize on HAVE_STAT.
3336         (attr): Likewise.
3337         (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3338         (performMkdir): Conditionalize on HAVE_MKDIR.
3339         (performRenameTo): Conditionalize on HAVE_RENAME.
3340         (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3342         * include/config.h.in: Rebuilt.
3343         * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3344         * configure: Rebuilt.
3345         * configure.in: Check for gmtime_r and localtime_r.  For cross
3346         builds, assume they exist.
3348         * mauve-libjava: Include java.text.DateFormatSymbols again.
3349         * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3350         from setAmPmStrings.
3352         * mauve-libjava: Omit java.text.DateFormatSymbols.
3354 1999-01-04  Tom Tromey  <tromey@cygnus.com>
3356         * java/io/PushbackReader.java: `off' already includes `numBytes'.
3358         * java/io/LineNumberReader.java (read): Decrement `count' in
3359         loop.
3361         * java/io/BufferedWriter.java (write): Correctly determine when
3362         incoming data would overrun buffer.  Flush buffer if write causes
3363         it to become full.
3365         * java/io/BufferedOutputStream.java (write): Increment `count'
3366         after copying data into buffer.
3368         * java/io/FilterOutputStream.java (close): Call flush first.
3370         * java/io/PipedReader.java (read): If read causes `out' to catch
3371         up with `in', then set `in' to -1.
3373         * java/io/LineNumberInputStream.java (read): If no bytes read,
3374         return -1.  If no bytes requested, return 0.
3376         * java/lang/StringBuffer.java (insert): If `str' is null, use
3377         string "null".
3379 1998-12-30  Anthony Green  <green@cygnus.com>
3381         * README: Removed.
3382         * LIBJAVA_LICENSE, COPYING.LIB: Created.
3384 1998-12-23  Tom Tromey  <tromey@cygnus.com>
3386         * java/io/PushbackInputStream.java (read): `off' already includes
3387         `numBytes'.
3389 1998-12-17  Tom Tromey  <tromey@cygnus.com>
3391         * Makefile.in: Rebuilt.
3392         * Makefile.am (GCJ_canadian): Include target_alias.
3394         * java/lang/natFirstThread.cc (run): Require main's class to be
3395         public.
3397 1998-12-16  Tom Tromey  <tromey@cygnus.com>
3399         * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3401         * java/util/ResourceBundle.java (getBundle): Throw
3402         NullPointerException if locale argument is null.
3404         * java/lang/natClass.cc (forName): Throw NullPointerException if
3405         argument is null.
3406         Include NullPointerException.h.
3408 1998-12-14  Tom Tromey  <tromey@cygnus.com>
3410         * java/lang/Character.java (Character): Implement Comparable.
3411         (compareTo): New methods.
3413         * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'.  Use
3414         correct country and language codes.
3415         (UK, US): New constants.
3416         (setDefault): Language codes are lower-case.
3418         * java/lang/natClass.cc (getDeclaredConstructor): New method.
3419         (getDeclaredConstructors): Likewise.
3420         (getDeclaredField): Likewise.
3421         (getDeclaredFields): Likewise.
3422         (getDeclaredMethod): Likewise.
3423         (getDeclaredMethods): Likewise.
3424         (getField): Likewise.
3425         (getFields): Likewise.
3426         (getMethod): Likewise.
3427         (getMethods): Likewise.
3428         * java/lang/Class.java: Declare new methods.
3429         * java/lang/Class.h: Declare new methods.
3431         * java/lang/natString.cc: Removed `#pragma implementation'.
3432         * include/cni.h (_Jv_GetStringChars): New function.
3433         * Makefile.in: Rebuilt.
3434         * Makefile.am (java/lang/String.h): Don't generate definition for
3435         _Jv_GetStringChars.
3437         * java/lang/natString.cc: Added `#pragma implementation'.
3439         * Makefile.in: Rebuilt.
3440         * Makefile.am (libjava.zip): Put build directory first in class
3441         path to avoid bug in compiler.
3443 1998-12-14  Anthony Green  <green@cygnus.com>
3445         * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3447         * include/javaprims.h: Add EventObject, ListResourceBundle and
3448         ResourceBundle.
3450 1998-12-13  Anthony Green  <green@cygnus.com>
3452         * mauve-libjava: Run the ResourceBundle tests.
3454         * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3455         NULL.
3457 Sun Dec 13 18:11:21 1998  Per Bothner  <bothner@cygnus.com>
3459         * configure.in, configure:  Make --enable-gcj-classes and
3460         --enable-source-compilation the default.  (Nervously...)  Yeah!
3461         Based on a patch from Tom Tromey.
3463 1998-12-13  Tom Tromey  <tromey@cygnus.com>
3465         * java/util/EventObject.java: New file.
3466         * java/util/EventListener.java: New file.
3468         * include/javaprims.h: Updated class declarations.
3469         * Makefile.in: Rebuilt.
3470         * Makefile.am (nat_headers): Added Constructor.h.
3471         (java/lang/String.h): Don't inline String::length().
3472         * java/lang/Class.h (getConstructor, getConstructors): Declare.
3473         * java/lang/Class.java (initializeClass, hackRunInitializers,
3474         hackTrampoline): No need to mark `final'.
3475         (getConstructor, getConstructors): Declare.
3476         * java/lang/reflect/Field.java (equals): New method.
3477         * java/lang/natClass.cc (getConstructor): New method.
3478         (getConstructors): Likewise.
3479         Include Method.h, Field.h, Constructor.h.
3480         * java/lang/reflect/Constructor.java: New file.
3481         * java/lang/reflect/Method.java (toString): No space before open
3482         paren.
3483         (equals): Simplified.
3485 1998-12-13  Anthony Green  <green@cygnus.com>
3487         * java/util/ResourceBundle.java: New file.
3488         * java/util/ListResourceBundle.java: New file.
3490 1998-12-12  Tom Tromey  <tromey@cygnus.com>
3492         * java/lang/System.java (in, out, err): Now buffered streams by
3493         default.
3495         * include/javaprims.h: Updated class declarations.
3496         * Makefile.in: Rebuilt.
3497         * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3498         InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3499         Long.h, Boolean.h.
3500         (nat_files): Added natMethod.o.
3501         * java/lang/reflect/natMethod.cc: New file.
3502         * java/lang/reflect/Field.java (Field): Now extends
3503         AccessibleObject.
3504         * java/lang/reflect/AccessibleObject.java: New file.
3505         * java/lang/reflect/InvocationTargetException.java: New file.
3507 1998-12-11  Tom Tromey  <tromey@cygnus.com>
3509         * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3510         java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3511         Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3513         * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3515 1998-12-09  Tom Tromey  <tromey@cygnus.com>
3517         * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3518         HAVE_CTIME_R.
3520         * java/lang/natCharacter.cc (toTitleCase): Handle case where
3521         character is already titlecase.
3523         * java/lang/Character.java (isJavaLetter): Follow spec.
3524         (isJavaLetterOrDigit): Likewise.
3526         * java/util/GregorianCalendar.java (gregorianCutover): Append
3527         `L'.
3529         * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3531 1998-12-08  Tom Tromey  <tromey@cygnus.com>
3533         * java/lang/reflect/Modifier.java (toString): Replace second
3534         `static' with `synchronized'.
3536         * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3537         * java/lang/Object.h (Object::hack12_6): Declare.
3538         * java/lang/Object.java (hack12_6): New function.
3540 1998-12-07  Tom Tromey  <tromey@cygnus.com>
3542         * include/java-array.h (__JArray::clone): Removed decl.
3543         * prims.cc (__JArray::clone): Removed.
3544         * java/lang/natObject.cc (clone): Incorporate code to clone an
3545         array.
3547         * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3548         (_Jv_FindArrayClass): Set dtable_method_count on new class.
3549         Correctly use dtable_method_count.
3551 1998-12-07  Andrew Haley  <aph@cygnus.co.uk>
3553         * java/lang/Double.java (isInfinite, isNaN): Handle correct
3554         IEEE754 values.
3556 1998-12-06  Anthony Green  <green@cygnus.com>
3558         * mauve-libjava: Don't test ResourceBundle.
3560 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3562         More JDK 1.2 spec fixes:
3563         * java/util/Date.java (millis): Now private.
3564         * java/text/DateFormat.java (DateFormat): Constructor now
3565         protected.
3566         * java/lang/Void.java (Void): New private constructor.
3567         * java/lang/System.java (System): New private constructor.
3568         * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3569         body.
3570         (currentClassLoader): New method.
3571         (currentLoadedClass): New method.
3572         * java/lang/Math.java (Math): New private constructor.
3573         * java/lang/Compiler.java (Compiler): New private constructor.
3574         * java/lang/Class.java (Class): New private constructor.
3575         * java/lang/Double.java (toString): Removed access specifier from
3576         two-argument `toString' method.
3578 1998-12-04  Andrew Haley  <aph@cygnus.co.uk>
3580         * java/lang/s_rint.c (rint): Make the variable w volatile; this
3581         causes it to be flushed from an fp register (where it may be
3582         longer than double precision) to a double in memory.  This is
3583         essential to ensure correct rounding behaviour.
3585 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3587         * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3588         function.
3590         * java/lang/Character.java (isIdentifierIgnorable): Added comment
3591         explaining apparent divergence from JDK 1.2.
3593 1998-12-04  Per Bothner  <bothner@cygnus.com>
3595         * include/no-threads.h:  Remove unused parameter names.
3596         This silences a bunch of warnings.
3598 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3600         * include/config.h.in: Rebuilt.
3601         * acconfig.h (HAVE_CTIME_R): New symbol.
3603 1998-12-03  Tom Tromey  <tromey@cygnus.com>
3605         * mauve-libjava: Added many more categories to reject.
3607         Changes to follow JDK1.2 spec:
3608         * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3609         setErr, setIn, setOut): No need to be `final'.
3610         * java/lang/natObject.cc (wait): `nanos' argument is an int.
3611         * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3612         * java/lang/Object.java (wait): `nanos' argument is an int.
3613         * java/lang/VirtualMachineError.java: Class is abstract.
3614         * java/lang/ThreadDeath.java: Made constructors public.
3615         * java/io/FileDescriptor.java (FileDescriptor): Added missing
3616         constructor.
3618 Thu Dec  3 20:29:38 1998  Warren Levy  <warrenl@cygnus.com>
3620         * java/text/DateFormatSymbols.java (getAmPmStrings,
3621         getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3623 Thu Dec  3 19:21:53 1998  Warren Levy  <warrenl@cygnus.com>
3625         * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3626         writeDouble, writeByte, writeBytes, writeChar, writeChars,
3627         writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3628         and 1.2.
3630         * java/lang/IllegalThreadStateException.java
3631         (IllegalThreadStateException): Changed extending class to match spec.
3633         * java/lang/NumberFormatException.java
3634         (java/lang/NumberFormatException): Changed extending class to match
3635         spec.
3637         * java/util/Observer.java (Observer): Changed sig to match JCL.
3639 Thu Dec  3 19:05:26 1998  Warren Levy  <warrenl@cygnus.com>
3641         * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3642         writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3643         signature to match JDK 1.1 and 1.2.
3645 Thu Dec  3 16:47:42 1998  Warren Levy  <warrenl@cygnus.com>
3647         * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3648         * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3649         * Makefile.in, configure: Rebuilt.
3651         * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3652         name.
3654 1998-12-02  Tom Tromey  <tromey@cygnus.com>
3656         * mauve-libjava: New file.
3658         The remaining `-W -Wall' fixes:
3659         * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3660         avoid warning.
3661         * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3662         `else'.
3663         * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3664         warning.
3665         * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3666         avoid warning.
3667         * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3668         ambiguous `else'.
3669         * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3670         warning.
3671         * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3672         suggestion.
3673         * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3674         suggestion.
3675         * java/lang/mprec.c (Balloc): Removed unused variable.
3676         (mult): Added parentheses per gcc suggestion.
3677         (pow5mult): Likewise.
3678         (lshift): Likewise.
3679         (ulp): Likewise.
3680         (b2d): Likewise.
3681         (d2b): Likewise.
3682         * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3683         suggestion.  Added cast to `int' to avoid signed/unsigned
3684         comparison.
3685         * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3686         parameter.
3687         (IsAssignableFrom): Likewise.
3688         (_Jv_JNI_GetObjectField): Likewise.
3689         (_Jv_JNI_GetByteField): Likewise.
3690         (_Jv_JNI_GetShortField): Likewise.
3691         (_Jv_JNI_GetIntField): Likewise.
3692         (_Jv_JNI_GetLongField): Likewise.
3693         (_Jv_JNI_GetStringLength): Likewise.
3694         (_Jv_JNI_ToReflectedField): Likewise.
3695         (_Jv_JNI_FromReflectedField): Likewise.
3696         (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3698         * Makefile.in: Rebuilt.
3699         * Makefile.am (AM_CFLAGS): Define conditionally.
3700         (WARNINGS): New macro.
3701         (AM_CXXFLAGS): Include WARNINGS.
3702         * configure: Rebuilt.
3703         * configure.in (USING_GCC): New conditional.
3705         * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3707         * java/lang/Character.java: Changed classification constants to
3708         type `byte' to match JDK 1.2 docs.
3710 1998-12-01  Tom Tromey  <tromey@cygnus.com>
3712         Some fixes to be `-W -Wall' clean:
3713         * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3714         (_Jv_MarkArray): Likewise.
3715         * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3716         (to_upper_title): Likewise.
3717         (isTitleCase): Likewise.
3718         (toTitleCase): Likewise.
3719         (getNumericValue): Likewise.
3720         (isLowerCase): Likewise.
3721         * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3722         (avoids compiler warning).
3723         * java/lang/natClass.cc (getDeclaredClasses): Always return a
3724         value.
3725         (getDeclaringClass): Likewise.
3726         (_Jv_LookupInterfaceMethod): Likewise.
3727         (_Jv_NewClass): Removed name of unused parameter.
3728         * exception.cc (_Jv_type_matcher): Removed unused variable.
3729         (_Jv_setup_eh_info): Removed name of unused parameter.
3730         * prims.cc (_Jv_NewArray): Always return a value.
3731         (_Jv_FindClassFromSignature): Likewise.
3732         * include/java-field.h (getNameUtf8Const): Removed name of unused
3733         parameter.
3734         * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3735         unused parameter.
3736         (_Jv_ThreadSetPriority): Likewise.
3738         * java/lang/natString.cc (hashChars): Now static.
3740         * java/lang/FirstThread.java (FirstThread): Now final.
3742         * java/io/File.java (performMkdir, performRenameTo): Now private.
3744         * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3745         if no time function defined.
3747         * configure: Rebuilt.
3748         * configure.in: Look for ctime_r, ctime.
3749         * java/util/Date.java (toString): Now native.
3750         * java/util/natDate.cc (toString): Rewrote.
3752 1998-11-27  Andrew Haley  <aph@viagra.cygnus.co.uk>
3754         * Add LDFLAGS line to allow TX39 test cases to link when cross
3755         compiling.
3757 1998-11-23  Anthony Green  <green@cygnus.com>
3759         * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3760         no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3761         quick-threads.cc, include/boehm-gc.h, include/cni.h,
3762         include/java-array.h, include/java-assert.h, include/java-field.h,
3763         include/javaprims.h, include/jni.h, include/jvm.h,
3764         include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3765         include/quick-threads.h, java/io/BufferedInputStream.java,
3766         java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3767         java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3768         java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3769         java/io/CharArrayWriter.java,
3770         java/io/CharConversionException.java, java/io/DataInput.java,
3771         java/io/DataInputStream.java, java/io/DataOutput.java,
3772         java/io/DataOutputStream.java, java/io/EOFException.java,
3773         java/io/File.java, java/io/FileDescriptor.java,
3774         java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3775         java/io/FileOutputStream.java, java/io/FileReader.java,
3776         java/io/FileWriter.java, java/io/FilenameFilter.java,
3777         java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3778         java/io/FilterReader.java, java/io/FilterWriter.java,
3779         java/io/IOException.java, java/io/InputStream.java,
3780         java/io/InputStreamReader.java,
3781         java/io/InterruptedIOException.java,
3782         java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3783         java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3784         java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3785         java/io/PipedReader.java, java/io/PipedWriter.java,
3786         java/io/PrintStream.java, java/io/PrintWriter.java,
3787         java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3788         java/io/RandomAccessFile.java, java/io/Reader.java,
3789         java/io/SequenceInputStream.java, java/io/Serializable.java,
3790         java/io/StreamTokenizer.java,
3791         java/io/StringBufferInputStream.java, java/io/StringReader.java,
3792         java/io/StringWriter.java, java/io/SyncFailedException.java,
3793         java/io/UTFDataFormatException.java,
3794         java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3795         java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3796         java/io/natFileDescriptorPosix.cc,
3797         java/lang/AbstractMethodError.java,
3798         java/lang/ArithmeticException.java,
3799         java/lang/ArrayIndexOutOfBoundsException.java,
3800         java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3801         java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3802         java/lang/Class.java, java/lang/ClassCastException.java,
3803         java/lang/ClassCircularityError.java,
3804         java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3805         java/lang/ClassNotFoundException.java,
3806         java/lang/CloneNotSupportedException.java,
3807         java/lang/Cloneable.java, java/lang/Comparable.java,
3808         java/lang/Compiler.java, java/lang/Double.java,
3809         java/lang/Error.java, java/lang/Exception.java,
3810         java/lang/ExceptionInInitializerError.java,
3811         java/lang/FirstThread.java, java/lang/Float.java,
3812         java/lang/IllegalAccessError.java,
3813         java/lang/IllegalAccessException.java,
3814         java/lang/IllegalArgumentException.java,
3815         java/lang/IllegalMonitorStateException.java,
3816         java/lang/IllegalStateException.java,
3817         java/lang/IllegalThreadStateException.java,
3818         java/lang/IncompatibleClassChangeError.java,
3819         java/lang/IndexOutOfBoundsException.java,
3820         java/lang/InstantiationError.java,
3821         java/lang/InstantiationException.java, java/lang/Integer.java,
3822         java/lang/InternalError.java, java/lang/InterruptedException.java,
3823         java/lang/LinkageError.java, java/lang/Long.java,
3824         java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3825         java/lang/NoClassDefFoundError.java,
3826         java/lang/NoSuchFieldError.java,
3827         java/lang/NoSuchFieldException.java,
3828         java/lang/NoSuchMethodError.java,
3829         java/lang/NoSuchMethodException.java,
3830         java/lang/NullPointerException.java, java/lang/Number.java,
3831         java/lang/NumberFormatException.java, java/lang/Object.h,
3832         java/lang/Object.java, java/lang/OutOfMemoryError.java,
3833         java/lang/Process.java, java/lang/Runnable.java,
3834         java/lang/Runtime.java, java/lang/RuntimeException.java,
3835         java/lang/SecurityException.java, java/lang/SecurityManager.java,
3836         java/lang/Short.java, java/lang/StackOverflowError.java,
3837         java/lang/String.java, java/lang/StringBuffer.java,
3838         java/lang/StringIndexOutOfBoundsException.java,
3839         java/lang/System.java, java/lang/Thread.java,
3840         java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3841         java/lang/Throwable.java, java/lang/UnknownError.java,
3842         java/lang/UnsatisfiedLinkError.java,
3843         java/lang/UnsupportedOperationException.java,
3844         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3845         java/lang/Void.java, java/lang/natCharacter.cc,
3846         java/lang/natClass.cc, java/lang/natDouble.cc,
3847         java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3848         java/lang/natMath.cc, java/lang/natObject.cc,
3849         java/lang/natRuntime.cc, java/lang/natString.cc,
3850         java/lang/natSystem.cc, java/lang/natThread.cc,
3851         java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3852         java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3853         java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3854         java/text/FieldPosition.java, java/text/Format.java,
3855         java/text/NumberFormat.java, java/text/ParseException.java,
3856         java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3857         java/util/BitSet.java, java/util/Calendar.java,
3858         java/util/ConcurrentModificationException.java,
3859         java/util/Date.java, java/util/Dictionary.java,
3860         java/util/EmptyStackException.java, java/util/Enumeration.java,
3861         java/util/GregorianCalendar.java, java/util/Hashtable.java,
3862         java/util/Locale.java, java/util/MissingResourceException.java,
3863         java/util/NoSuchElementException.java, java/util/Observable.java,
3864         java/util/Observer.java, java/util/Properties.java,
3865         java/util/Random.java, java/util/SimpleTimeZone.java,
3866         java/util/Stack.java, java/util/StringTokenizer.java,
3867         java/util/TimeZone.java, java/util/TooManyListenersException.java,
3868         java/util/Vector.java, java/util/natGregorianCalendar.cc:  Updated
3869         copyright notices.
3871         * exception.cc: Include eh-common.h instead of duplicating 
3872         code.
3874 1998-11-23  Tom Tromey  <tromey@cygnus.com>
3876         * configure.host: Don't add `-O2' to libjava_flags.  Only add
3877         `-Os' to libjava_flags once.
3879 1998-11-17  Andrew Haley  <aph@viagra.cygnus.co.uk>
3881         * Makefile.am: add LIBJAVA_JAVAFLAGS.
3882         * Makefile.in: likewise
3883         * acconfig.h: add ECOS conditional for configure.h
3884         * config.h.in: likewise
3885         * configure: add test for --with-ecos
3886         * configure.in: likewise
3887         * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3888         rename call to avoid name clash.
3889         * java/lang/natSystem.cc: add eCos clock support.
3890         * java/util/natGregorianCalendar.cc: add eCos support.
3891         
3892 1998-11-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
3894         * Makefile.am, Makefile.in, configure.host: tx39 build option 
3895         "-G 0" added.
3897 Wed Nov 18 18:55:25 1998  Warren Levy  <warrenl@cygnus.com>
3899         * java/io/BufferedReader.java: Added more comments for clarity.
3900         (mark): Used more mnemonic name for local var extraBuffSpace.
3902         * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3903         confusion with private method of same name in superclass.
3904         (skipRedundantLF): Set fields in special case to avoid infinite
3905         recursion.  Check if markPos has been invalidated in special case.
3906         (readLine): Rewritten to use readLine method of superclass.
3907         (skip): Incorporated code from lineEnd.
3909 Wed Nov 18 02:46:03 1998  Warren Levy  <warrenl@cygnus.com>
3911         * java/io/BufferedReader.java (readLine): New method.
3912         (lineEnd): new private method.
3913         (mark): Track special case for readLine of getting '\r' at the
3914         end of the buffer.
3915         (reset): Ditto.
3916         (read): Ditto.
3917         (fill): Ditto.
3918         (skip): Ditto.
3920         * java/io/InputStreamReader.java (read): Return number chars skipped
3921         rather than requested.
3923         * java/lang/StringBuffer.java (append): Update count and differentiate
3924         between field and local variable.
3926         * java/util/Date.java (parseTz): Evaluate in minutes rather than
3927         seconds.  Deal with military style time.
3928         (parse): Consistently treat all timezones in minutes until final
3929         calculation.  Flag as non-local timezone.  Return value in milliseconds.
3930         (setTime): Adjust for year offset from 1900.
3931         (UTC): Adjust for year offset from 1900.
3933 1998-11-17  Tom Tromey  <tromey@cygnus.com>
3935         * configure: Rebuilt.
3936         * configure.in: Switch on host, not target.
3938         * Makefile.in: Rebuilt.
3939         * Makefile.am (GCJ_no): New macro.
3940         (GCJ): Use @CANADIAN@.
3941         (GCJH_no): New macro
3942         (GCJH_canadian): New macro.
3943         (GCJH): Use @CANADIAN@.
3944         (ZIP_no): New macro.
3945         (ZIP_canadian): New macro.
3946         (ZIP): Use @CANADIAN@.
3947         * aclocal.m4, configure: Rebuilt.
3948         * configure.in (CANADIAN): Compute and subst.
3950 Tue Nov 17 12:44:37 1998  Anthony Green  <green@cygnus.com>
3952         * java/io/FileDescriptor.java (finalize): Only close file
3953         descriptor if valid.
3955 1998-11-17  Tom Tromey  <tromey@cygnus.com>
3957         * prims.cc (_Jv_InitRuntime): Removed.
3959 1998-11-16  Tom Tromey  <tromey@cygnus.com>
3961         * java/io/FileOutputStream.java (close): Only close file
3962         descriptor if valid.
3963         (finalize): New method.
3965         * prims.cc (_Jv_NewObjectArray): Set vtbl last.
3966         (_Jv_NewPrimArray): Likewise.
3967         * boehm.cc (_Jv_RegisterFinalizer): Use
3968         GC_REGISTER_FINALIZER_NO_ORDER.
3969         (GC_GENERIC_MALLOC): New define.
3970         (_Jv_AllocObj): Use it.
3971         (_Jv_AllocArray): Likewise.
3972         (_Jv_AllocBytes): Likewise.
3973         (_Jv_MarkObj): Just return if vtbl not set.
3974         (_Jv_MarkArray): Likewise.
3975         (MAYBE_MARK): New macro; use everywhere.
3976         (_Jv_MarkObj): Mark fields belonging to superclasses as well.
3978 Mon Nov 16 14:57:53 1998  Warren Levy  <warrenl@cygnus.com>
3980         * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
3981         to a jlong before calculation to prevent overflow.
3983 1998-11-16  Tom Tromey  <tromey@cygnus.com>
3985         * Makefile.in: Rebuilt.
3986         * Makefile.am (nat_headers): Fixed typo.
3988 1998-11-15  Tom Tromey  <tromey@cygnus.com>
3990         * java/lang/Class.h (Class::getName): Removed definition.
3991         * Makefile.in: Rebuilt.
3992         * Makefile.am (nat_headers): Added InstantiationException.h,
3993         NoSuchMethodException.h.
3994         * java/lang/natClass.cc (clinit_name): Renamed from init_name.
3995         (init_name): New global.
3996         (hackRunInitializers): Use clinit_name.
3997         Include InstantiationException.h, NoSuchMethodException.h.
3998         (newInstance): Do some error checking (but not all).  Call
3999         constructor.
4000         (forName): Throw exception if class not found.
4001         (getName): New method.
4002         (forName): Transform class name from external format to internal
4003         format before lookup.
4005 1998-11-15  Anthony Green  <green@cygnus.com>
4007         * java/lang/Class.h (Class::forName): Method is static.
4009         * java/lang/natClass.cc (newInstance): Add simple implementation.
4010         (forName): Ditto.
4012 Sat Nov 14 18:25:13 1998  Per Bothner  <bothner@cygnus.com>
4014         * java/lang/Class.h (Class::accflags):  Must be unsigned short (not
4015         int), for compatibility with jc1.
4017 1998-11-14  Tom Tromey  <tromey@cygnus.com>
4019         * include/config.h.in: Rebuilt.
4020         * acconfig.h (LINUX_THREADS): New define.
4021         * configure: Rebuilt.
4022         * configure.in: Define LINUX_THREADS if using POSIX threads on
4023         Linux.  Look for pthread_mutexattr_setkind_np function.
4024         * posix-threads.cc (throw_cleanup): New function.
4025         (really_start): Push cleanup function.
4026         (_Jv_ThreadCancel): New function.
4027         (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4028         (_Jv_ThreadInitData): Set `exception' field in new structure.
4029         (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4030         thread.
4031         (_Jv_ThreadWait): New function.
4032         (_Jv_InitThreads): Initialize daemon globals.
4033         (FLAG_DAEMON): New macro.
4034         (really_start): Notify daemon_cond when non-daemon thread exits.
4035         Include <java/lang/System.h>.
4036         (struct starter): `object' field now a thread.
4037         (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4038         * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4039         (_Jv_ThreadWait): Removed definition.
4040         (_Jv_Thread_t): Added `exception' field.
4041         (_Jv_ThreadCancel): Removed definition.
4043 1998-11-13  Tom Tromey  <tromey@cygnus.com>
4045         * Makefile.in: Rebuilt.
4046         * Makefile.am (libjava.zip): Compute javac before changing
4047         directory.
4049         * Makefile.in: Rebuilt.
4050         * Makefile.am (libjava.zip): Include directory entries.
4052         * Makefile.in: Rebuilt.
4053         * Makefile.am (expanded): New macro.
4054         (GCJ): Use it.
4056 1998-11-12  Tom Tromey  <tromey@cygnus.com>
4058         * prims.cc (clone): New function.
4059         * include/java-array.h (__JArray::clone): Removed definition.
4061         * java/lang/natObject.cc (clone): Don't assert that class is not
4062         an array; array's `clone' method just calls this one.
4064         * Makefile.in: Rebuilt.
4065         * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4066         Now creates zip file.  Changed all users.
4067         (ZIP): New macro.
4068         (data_DATA): New macro.
4070 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4072         * configure: Rebuilt.
4073         * configure.in: Recognize --enable-java-gc, not --enable-gc.
4075 Wed Nov 11 18:13:46 1998  Warren Levy  <warrenl@cygnus.com>
4077         * java/io/InputStream.java (reset): Add msg to thrown exception.
4079 Wed Nov 11 17:57:02 1998  Warren Levy  <warrenl@cygnus.com>
4081         * java/io/LineNumberInputStream.java: Rewritten.
4083         * java/io/StringBufferInputStream.java: Removed extraneous import.
4085 Wed Nov 11 15:19:33 1998  Warren Levy  <warrenl@cygnus.com>
4087         * java/io/StringBufferInputStream.java: Rewritten.
4089         * java/util/Date.java (parseMonth): Optimize.
4090         (parseDayOfWeek): Created.
4091         (parse): Optimize to use parseDayOfWeek.
4093 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4095         * java/lang/StringBuffer.java (append): Handle case where STR is
4096         `null'.
4098         * include/javaprims.h: Regenerated class declarations.
4100         * configure: Rebuilt.
4101         * configure.in: Added --enable-gcj-classes,
4102         --enable-single-compilation, --enable-source-compilation flags.
4103         * Makefile.in: Rebuilt.
4104         * Makefile.am (java_io_files): New macro.
4105         (java_lang_files): Likewise.
4106         (java_text_files): Likewise.
4107         (java_util_files): Likewise.
4108         (java_files): Use new macros.
4109         (java-io.o): New target.
4110         (java-lang.o): Likewise.
4111         (java-text.o): Likewise.
4112         (java-util.o): Likewise.
4113         (src_io_files): New macro.
4114         (src_lang_files): Likewise.
4115         (src_text_files): Likewise.
4116         (src_util_files): Likewise.
4117         (class_io_files): New macro.
4118         (class_lang_files): Likewise.
4119         (class_text_files): Likewise.
4120         (class_util_files): Likewise.
4121         (class_files): Use new macros.
4122         (javao_files): Define conditionally.
4123         (.java.o): New target.
4124         ($(javao_files)): New target.
4125         (GCJ): new macro.
4126         (GCJH): Added $(EXEEXT).
4127         (CLASSPATH_ENV): Removed.
4128         (GCJCOMPILE): New macro.
4130 Wed Nov 11 12:03:15 1998  Warren Levy  <warrenl@cygnus.com>
4132         * java/util/Date.java (parse): Written from scratch.
4134 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4136         * java/lang/Throwable.java (toString): Correct sense of test for
4137         determining when to include detail message in result.
4139         * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4140         constructor.
4142 Fri Nov  6 16:30:20 1998  Tom Tromey  <tromey@ferrule.cygnus.com>
4144         * java/lang/Class.h: Use _Jv_RegisterClasses, not
4145         _Jv_RegisterClass.
4146         * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4147         (_Jv_RegisterClass): Use it.
4148         * include/jvm.h (_Jv_RegisterClasses): Declare.
4149         * java/lang/natObject.cc (init): Removed.
4150         (sync_init): Never call _Jv_InitializeSyncMutex.
4151         (_Jv_InitializeSyncMutex): Don't set `init'.
4152         * prims.cc (JvRunMain): Don't run init functions.
4154 Thu Nov  5 17:14:37 1998  Tom Tromey  <tromey@sanguine.cygnus.com>
4156         * java/lang/natClass.cc (initializeClass): Set state before
4157         resolving constants.
4159         * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4160         (STATE_RESOLVED): New macro.
4161         (initializeClass): Call resolveConstants.
4162         (hackRunInitializers): Don't call resolveConstants.
4163         (_Jv_FindArrayClass): Move short-circuit return for primitive
4164         element types earlier in function.
4166 1998-11-03  Tom Tromey  <tromey@hoser.cygnus.com>
4168         * prims.cc (no_memory): New global.
4169         (_Jv_makeUtf8Const): Throw no_memory.
4170         (_Jv_AllocObject): Likewise.
4171         (_Jv_NewObjectArray): Likewise.
4172         (_Jv_NewPrimArray): Likewise.
4173         (JvRunMain): Initialize no_memory.
4175 Tue Nov  3 17:15:45 1998  Warren Levy  <warrenl@cygnus.com>
4177         * java/io/FileInputStream.java: Corrected date comment.
4178         * java/io/SequenceInputStream.java: Rewritten.
4180 Mon Nov  2 17:20:31 1998  Tom Tromey  (tromey@cygnus.com)
4182         * java/lang/FirstThread.java (die): New method.
4183         * java/lang/natFirstThread.cc (die): Removed.
4184         (DIE): New macro.
4185         (run): Use `DIE', not `die'.
4187 Mon Nov  2 16:23:41 1998  Warren Levy  <warrenl@cygnus.com>
4189         * java/io/CharArrayReader.java (read): Move check into synchronized
4190         block to prevent a close while in progress.
4191         (reset): Ditto.
4192         (skip): Ditto.
4193         * java/io/PushbackReader.java (read): Ditto.
4194         (ready): Ditto.
4195         (unread): Ditto.
4196         * java/io/StringReader.java (mark): Ditto.
4197         (read): Ditto.
4198         (reset): Ditto.
4199         (skip): Ditto.
4201 Mon Nov  2 15:56:20 1998  Warren Levy  <warrenl@cygnus.com>
4203         * java/io/PipedInputStream.java: Updated status.
4204         (connect): Added code to prevent infinite recursion and to
4205         differentiate exception causes.
4206         (read): Added code to differentiate exception causes.
4207         (receive): Made exception pass string with the cause.
4209         * java/io/PipedOutputStream.java: Updated status.
4210         (connect): Added code to call connect at the other end of the pipe.
4212 Mon Nov  2 00:22:12 1998  Warren Levy  <warrenl@cygnus.com>
4213         
4214         * java/io/PipedInputStream.java (connect): Throw exception if
4215         already connected to the same output stream.
4216         (read): Do bounds checking first.
4218 Sun Nov  1 22:48:55 1998  Warren Levy  <warrenl@cygnus.com>
4220         * java/io/PipedInputStream.java: Added private boolean outClosed.
4221         (available): Removed check if output stream is open.
4222         (close): Mark the buffer as empty so available returns 0.
4223         (read): Check if the output stream was closed and then return EOF
4224         when the buffer is empty.
4225         (receive): Mark the output stream as closed when passed a -1.
4227         * java/io/PipedOutputStream.java (close): Notify the input stream
4228         that there's no more data coming.
4229         (connect): Added a FIXME comment to note more coordination needed
4230         with PipedInputStream.
4231         (flush): Added a FIXME comment to mark what this method might do
4232         instead of nothing.
4234 Fri Oct 30 14:27:21 1998  Warren Levy  <warrenl@cygnus.com>
4236         * java/io/PipedInputStream.java: Rewritten.
4238 1998-10-30  Tom Tromey  <tromey@cygnus.com>
4240         * java/lang/Throwable.java: Rewrote from scratch.
4242         * java/lang/Class.h (Class): Don't mention newMultiArray.
4243         * prims.cc (newMultiArray): Removed.
4244         (_Jv_NewMultiArray): Removed.
4245         (newArray): Removed.
4246         (new_multi_array): New function.
4247         (_Jv_NewMultiArray): Rewrote from scratch.
4249         * include/javaprims.h: Regenerated class declarations.
4250         * classes.pl (scan): Don't declare PrimClass.
4251         * include/cni.h (JvPrimClass): Use new names for classes.
4252         * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4253         added _Jv_PrimClass.
4254         * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4255         (_Jv_initPrimClass): Removed.
4256         (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4257         (_Jv_AllocObject): Added comment.
4258         (_Jv_NewObjectArray): Likewise.
4259         (_Jv_NewPrimArray): Likewise.
4261 1998-10-29  Tom Tromey  <tromey@cygnus.com>
4263         * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4264         (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4265         new dtable.
4266         * java/lang/Class.h (Class): Added `dtable_method_count' field.
4268         * java/lang/natObject.cc (init): New global.
4269         (sync_init): Call _Jv_InitializeSyncMutex if required.
4271         * Makefile.in: Rebuilt.
4272         * Makefile.am (nat_headers): Added ClassLoader.h.
4273         * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4274         * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4275         internalAddClass, lookupArray no longer friends.
4276         _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4277         _Jv_FindArrayClass now friends.
4278         * java/lang/natClass.cc (HASH_LEN): New macro.
4279         (HASH_UTF): Likewise.
4280         (loaded_classes): New global.
4281         (_Jv_FindClass): New function.
4282         (ClassClass): New define.
4283         (_Jv_FindClassInCache): New function.
4284         (_Jv_RegisterClass): Likewise.
4285         (_Jv_NewClass): Likewise.
4286         Include <string.h>
4287         (ObjectClass): New define.
4288         (CloneableClass): New define.
4289         * prims.cc (_Jv_FindClass): Removed.
4290         (simpleLookupClass): Removed.
4291         (insertClass): Removed.
4292         (CLASSHASHSZ): Removed.
4293         (classPool): Removed.
4294         (_Jv_RegisterClass): Removed.
4295         (internalAddClass): Removed.
4296         (ClassClass): Removed.
4297         (RuntimeClass): Removed.
4298         (lookupArray): Removed.
4299         (CloneableClass): Removed.
4300         (CLASSMAXSIG): Removed.
4301         Rearranged file to group related functions together.
4302         (_Jv_IsInstanceOf): Moved to natClass.cc.
4303         (abort_final): Removed.
4304         Removed some unused includes.
4305         (classFromSig): Removed.
4306         (_Jv_FindClassFromSignature): New function.
4307         (_Jv_initPrimClass): Renamed.
4308         (getClass): Removed.
4310 Thu Oct 29 23:17:17 1998  Warren Levy  <warrenl@cygnus.com>
4312         * java/io/FileDescriptor.java (finalize): Throws IOException
4313         instead of Throwable.
4315         * java/io/FileInputStream.java: Rewritten.
4317         * java/io/StreamTokenizer.java (nextToken): Unread newline character
4318         at the end of a comment.
4320 1998-10-29  Tom Tromey  <tromey@cygnus.com>
4322         * include/javaprims.h: Regenerated class declarations.
4323         * classes.pl (scan): Don't special-case ClassLoader.
4325         * prims.cc (processClass): Removed.
4326         (_Jv_InitClass): Removed.
4327         Removed all CSTATE_ macros.
4328         (resolveConstants): Removed.
4329         (MAXDIMS): Removed.
4330         (_Jv_NewMultiArray): Cleaned up.
4331         * Makefile.in: Rebuilt.
4332         * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4333         * java/lang/Class.h (Class): Declare new methods.  processClass no
4334         longer a friend.
4335         * java/lang/Class.java (hackTrampoline): New method.
4336         (initializeClass): Declare.
4337         (hackRunInitializers): Declare.
4338         * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4339         (initializeClass): New method.
4340         (hackRunInitializers): New method.
4341         (init_name, void_signature): Moved from prims.cc.
4342         (_Jv_InitClass): New function.
4343         (isAssignableFrom): Don't call processClass.
4344         (STATE_NOTHING): New macro.
4345         (resolveConstants): New function.
4346         Include Thread.h.
4347         (ErrorClass): New define.
4349         * java/lang/Class.java (getClassLoader): Declare.
4350         * java/lang/ClassLoader.java: Rewrote from scratch.
4352         * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4353         AbstractMethodError.h, IllegalAccessError.h,
4354         NoClassDefFoundError.h.
4355         * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4356         * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4357         longer static.  Changed return type.
4358         * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4359         * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4360         * prims.cc (findMethodLocal): Removed.
4361         (processClass): Use _Jv_GetMethodLocal.
4363 1998-10-28  Tom Tromey  <tromey@cygnus.com>
4365         * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4366         * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4367         friend.
4368         * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4369         (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4371         * include/jni.h: Added copyright header.
4372         * include/javaprims.h: Added copyright header.
4373         * include/java-field.h: Added copyright header.
4374         * include/java-array.h: Added copyright header.
4375         * include/cni.h: Added copyright header.
4377         * include/javaprims.h: Regenerated class declarations using
4378         classes.pl; now they are complete.
4379         * classes.pl: New file.
4381         * java/lang/natMath.cc: Include <config.h>.
4382         * java/lang/reflect/natField.cc: Include <config.h>.
4383         * java/util/NativeUtil.java: Removed.
4384         * Makefile.in: Rebuilt.
4385         * Makefile.am (nat_headers): Added Math.h.
4386         * java/lang/Math.h: Removed.
4387         * java/util/natGregorianCalendar.cc: Added copyright header.
4388         Include <config.h>.
4389         * java/lang/natFloat.cc: Added copyright header.
4390         * java/lang/Byte.java: Added copyright header.
4391         * java/lang/Void.java: Added copyright header.
4392         * java/lang/Short.java: Added copyright header.
4394 Wed Oct 28 12:55:47 1998  Warren Levy  <warrenl@cygnus.com>
4396         * include/javaprims.h (java::io): Added bunch of missing classes.
4397         
4398         * java/io/DataInputStream.java (readLine): Added a special case
4399         for handling BufferedInputStream data to reduce the likelihood
4400         of a pushback error.
4401         (skipBytes): Added code to handle negative number of skip bytes.
4402         
4403         * java/io/StreamTokenizer.java: Rewritten.
4405 1998-10-28  Tom Tromey  <tromey@cygnus.com>
4407         * java/util/natGregorianCalendar.cc (computeFields): Call
4408         getRawOffset as a method.
4410         * include/javaprims.h (java::io): Added FilterOutputStream.
4411         * Makefile.in: Rebuilt.
4412         * Makefile.am (nat_headers): Added PrintStream.h,
4413         FilterOutputStream.h.
4414         * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4415         PrintStream.h.
4416         (die): New function.
4417         (run): Die if `main' not found, is not public, or is not static.
4419         * boehm.cc (_Jv_MarkObj): Use new field names.
4420         * include/java-field.h (JvGetFirstInstanceField): Use new field
4421         names.
4422         (JvNumInstanceFields): Likewise.
4423         * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4424         (getInterfaces): Likewise.
4425         * prims.cc (CLASS_CONSTANTS): Removed.
4426         (CLASS_CONST_SIZE): Likewise.
4427         (CLASS_CONST_TAG): Likewise.
4428         (CLASS_CONST_DATA): Likewise.
4429         (CLASS_CONST_UTF8): Likewise.
4430         (WORD2UTF): Likewise.
4431         (CLASS_CLASS): Likewise.
4432         (CLASS_PRIM_SIG): Likewise.
4433         (CLASS_ARRAY_CACHE): Likewise.
4434         (HASH_CHARS): Likewise.
4435         (hashClassName): Likewise.
4436         Many changes to use new field names.
4437         * java/lang/Class.h (Class): Renamed fields to track compiler.
4439 1998-10-27  Tom Tromey  <tromey@cygnus.com>
4441         * java/lang/natClass.cc: Use #pragma implementation.
4442         (getComponentType): Moved into header.
4443         (getModifiers): Likewise.
4444         (getName): Likewise.
4445         (getSuperclass): Likewise.
4446         (isArray): Likewise.
4447         (isPrimitive): Likewise.
4448         * include/jvm.h (_Jv_FindClass): Declare.
4449         * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4450         * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4451         * include/javaprims.h: Use _Jv_Method, not JvMethod.
4452         * java/lang/Class.h: Rewrote from scratch.
4453         * prims.cc: Many changes to work with new Class.h.
4454         * include/java-field.h (CLASS_FIELDS): Removed.
4455         (CLASS_SFIELDS): Likewise.
4456         (CLASS_IFIELDS): Likewise.
4457         (CLASS_NFIELDS): Likewise.
4458         (CLASS_NIFIELDS): Likewise.
4459         (CLASS_NSFIELDS): Likewise.
4460         (CLASS_FSIZE): Likewise.
4461         (JvGetFirstInstanceField): Rewrote.
4462         (JvNumInstanceFields): Likewise.
4464         * java/lang/Object.h: Added copyright comment.
4466 Wed Oct 28 00:32:23 1998  Per Bothner  <bothner@cygnus.com>
4468         * java/text:  New package directory.
4469         * java/text/FieldPosition.java:  New class.
4470         * java/text/ParsePosition.java:  New class. 
4471         * java/text/ParseException.java:  New Exception class.
4472         * java/text/Format.java:  New class.
4473         * java/text/NumberFormat.java:  New (empty placeholder) class.
4474         * java/text/DateFormatSymbols.java:  New class (no Locales support).
4475         * java/text/DateFormat.java:  New Format class (incomplete).
4476         * java/text/SimpleDateFormat.java:  New DateFormat class.
4477         
4478         * include/javaprims.h (java::test):  Added new package and classes.
4479         * java/util/Calendar.java (clone):  New method.
4480         * java/util/Date.java (toString):  Added non-native implementation.
4481         (parse):  Made public instead of synchronized.
4482         * java/util/natDate.cc (toString):  Removed.
4483         * java/util/natGregorianCalendar.cc (computeFields):
4484         Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4486 1998-10-27  Tom Tromey  <tromey@cygnus.com>
4488         * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4490         * prims.cc (lookupArray): Added explanatory comment.
4491         * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4492         class.  Mark the class of each object.
4493         (_Jv_MarkArray): Mark the object's class.
4495         * configure: Rebuilt.
4496         * configure.in: Create java-gc.h.
4497         * include/boehm-gc.h: New file.
4498         * include/no-gc.h: New file.
4499         * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4500         defined.
4501         * java/lang/Object.h: Include java-gc.h.
4502         (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4503         friends, if defined.
4504         * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4505         signature.
4506         (_Jv_MarkArray): Renamed from mark_array; changed signature.
4508 1998-10-26  Tom Tromey  <tromey@cygnus.com>
4510         * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4511         paragraph separators, not numbers.
4513         * java/io/Writer.java (write): Removed write(char) to avoid
4514         ambiguity.
4515         * java/util/Properties.java: Rewrote from scratch.
4516         * include/javaprims.h (java::io): Added PrintWriter,
4517         BufferedWriter, PushbackReader.
4519 Mon Oct 26 13:13:28 1998  Anthony Green  <green@cygnus.com>
4521         * java/lang/System.java: exit() is a static method.
4523 1998-10-26  Tom Tromey  <tromey@cygnus.com>
4525         * java/lang/natString.cc (_Jv_NewStringUTF): Use
4526         _Jv_strLengthUtf8.
4527         (_Jv_NewStringUtf8Const): Likewise.
4528         * include/jvm.h (_Jv_strLengthUtf8): Declare.
4529         * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4531         * java/lang/Object.h (Object): Add mark_array as friend function.
4532         * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4533         _Jv_AllocBytes, to ensure that header is marked.
4534         * boehm.cc (mark_obj): Push sync_info field for all objects, not
4535         just Objects.
4536         (mark_array): Push sync_info field for array.
4538 1998-10-24  Tom Tromey  <tromey@cygnus.com>
4540         * java/lang/String.java (String): Updated for StringBuffer
4541         change.
4542         * java/util/BitSet.java: Renamed field (data->bits) to conform to
4543         serialization spec.
4544         * java/lang/StringBuffer.java: Renamed fields to conform to
4545         serialization spec: buffer->value, next->count, copy->shared.
4547 Wed Oct 21 18:24:57 1998  Per Bothner  <bothner@cygnus.com>
4549         * java/util/TimeZone.java:  New class.
4550         * java/util/SimpleTimeZone.java:  New class.
4551         * java/util/Locale.java:  New file.
4552         * java/util/Calendar.java:  Make almost complete.
4553         * java/util/GregorianCalendar.java
4554         * java/util/natGregorianCalendar.cc:  New file.
4555         * java/util/Date.java:  Re-written from scratch.
4556         * java/util/natDate.cc (setTime):  Removed - no longer native.
4557         * include/javaprims.h (java::util):  Add new classes.
4558         * Makefile.am (nat_files):  Add java/util/natGregorianCalendar.o.
4559         (nat_headers);  Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4561 Sat Oct 24 22:58:25 1998  Warren Levy  <warrenl@cygnus.com>
4563         * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4564         returning it as a jint.
4566 1998-10-23  Tom Tromey  <tromey@cygnus.com>
4568         * prims.cc (arg_vec, main_group, main_thread): New globals.
4569         (JvRunMain): Use them.
4571 Fri Oct 23 17:10:12 1998  Warren Levy  <warrenl@cygnus.com>
4573         * java/io/DataInputStream.java: Rewritten.
4575         * java/io/DataOutputStream.java (writeUTF): OR secondary and
4576         tertiary bytes with 0x80 per spec.
4578 1998-10-23  Tom Tromey  <tromey@cygnus.com>
4580         * java/lang/String.java (init): Changed name of `copy' argument.
4581         * java/lang/natString.cc (init): Inverted sense of `copy'
4582         argument.
4584         * java/lang/Object.h (Object): Declare mark_obj as a friend.
4585         * java/lang/Class.h (Class): Declare mark_obj as a friend.
4586         * boehm.cc (ObjectClass): New define.
4587         (ClassClass): Likewise.
4588         (mark_obj): Special-case Object and Class.
4590         * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4592         * java/util/BitSet.java: Rewrote from scratch.
4594         * prims.cc (lookupArray): Removed useless cast.
4596         * java/lang/natObject.cc: Use `#pragma implementation'.
4598         * java/lang/String.java (init): Added `copy' argument.
4599         (String): Look in StringBuffer to find char array.
4600         * java/lang/natString.cc (init): Added `copy' argument.
4601         * java/lang/StringBuffer.java: Rewrote from scratch.
4603         * java/lang/Compiler.java: Rewrote from scratch.
4604         * java/lang/Throwable.java: Don't use NativeLang.
4605         * include/javaprims.h (java::lang): Don't mention NativeLang.
4606         * java/lang/Process.java: Rewrote from scratch.
4607         * java/lang/SecurityManager.java (classLoaderDepth): Commented
4608         out.
4609         (currentClassLoader): Likewise.
4610         (currentLoadedClass): Likewise.
4611         * java/lang/natClass.cc (getClassLoader): Commented out.
4612         * java/lang/Class.java (getClassLoader): Commented out.
4613         * java/lang/Compiler.java: Removed.
4614         * java/lang/NativeLang.java: Removed.
4616         * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4617         * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4618         * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4619         (_Jv_hashUtf8String): Now static.
4620         * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4621         name of return type.
4623         * java/lang/Class.h (Class): Declare checkMemberAccess.
4624         * Makefile.in: Rebuilt.
4625         * Makefile.am (nat_headers): Added Member.h.
4626         * java/lang/natClass.cc: Include Member.h.
4627         (getDeclaredClasses): Call checkMemberAccess.
4628         * java/lang/Class.java (checkMemberAccess): Call
4629         SecurityManager.checkMemberAccess.
4631 Fri Oct 23 08:01:54 1998  Anthony Green  <green@cygnus.com>
4633         * java/lang/SecurityManager.java: Rewritten.
4635 Thu Oct 22 17:16:10 1998  Anthony Green  <green@cygnus.com>
4637         * java/applet/Applet.java, java/applet/AppletContext.java,
4638         java/applet/AppletStub.java, java/applet/AudioClip.java,
4639         java/awt/AWTError.java, java/awt/AWTException.java,
4640         java/awt/BorderLayout.java, java/awt/Button.java,
4641         java/awt/Canvas.java, java/awt/CardLayout.java,
4642         java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4643         java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4644         java/awt/Color.java, java/awt/Component.java,
4645         java/awt/Container.java, java/awt/Dialog.java,
4646         java/awt/Dimension.java, java/awt/Event.java,
4647         java/awt/FileDialog.java, java/awt/FlowLayout.java,
4648         java/awt/Font.java, java/awt/FontMetrics.java,
4649         java/awt/Frame.java, java/awt/Graphics.java,
4650         java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4651         java/awt/GridLayout.java, java/awt/Image.java,
4652         java/awt/Insets.java, java/awt/Label.java,
4653         java/awt/LayoutManager.java, java/awt/List.java,
4654         java/awt/MediaTracker.java, java/awt/Menu.java,
4655         java/awt/MenuBar.java, java/awt/MenuComponent.java,
4656         java/awt/MenuContainer.java, java/awt/MenuItem.java,
4657         java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4658         java/awt/Rectangle.java, java/awt/Scrollbar.java,
4659         java/awt/TextArea.java, java/awt/TextComponent.java,
4660         java/awt/TextField.java, java/awt/Toolkit.java,
4661         java/awt/Window.java, java/awt/image/ColorModel.java,
4662         java/awt/image/CropImageFilter.java,
4663         java/awt/image/DirectColorModel.java,
4664         java/awt/image/FilteredImageSource.java,
4665         java/awt/image/ImageConsumer.java,
4666         java/awt/image/ImageFilter.java,
4667         java/awt/image/ImageObserver.java,
4668         java/awt/image/ImageProducer.java,
4669         java/awt/image/IndexColorModel.java,
4670         java/awt/image/MemoryImageSource.java,
4671         java/awt/image/PixelGrabber.java,
4672         java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4673         java/awt/peer/CanvasPeer.java,
4674         java/awt/peer/CheckboxMenuItemPeer.java,
4675         java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4676         java/awt/peer/ComponentPeer.java,
4677         java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4678         java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4679         java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4680         java/awt/peer/MenuBarPeer.java,
4681         java/awt/peer/MenuComponentPeer.java,
4682         java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4683         java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4684         java/awt/peer/TextAreaPeer.java,
4685         java/awt/peer/TextComponentPeer.java,
4686         java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4687         java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4688         java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4689         java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4690         java/net/MalformedURLException.java, java/net/NativeNet.java,
4691         java/net/ProtocolException.java, java/net/ServerSocket.java,
4692         java/net/Socket.java, java/net/SocketException.java,
4693         java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4694         java/net/URL.java, java/net/URLConnection.java,
4695         java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4696         java/net/URLStreamHandlerFactory.java,
4697         java/net/UnknownHostException.java,
4698         java/net/UnknownServiceException.java: Removed.
4700 1998-10-22  Tom Tromey  <tromey@cygnus.com>
4702         * prims.cc (_Jv_AllocObject): Register finalizer if class'
4703         finalizer is not Object.finalize.
4704         (internalAddClass): Don't set `final' member of class.
4705         * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4706         other places that know about finalize() location.
4707         * java/lang/Class.h (Class): Removed `final' field.
4709         * aclocal.m4, configure: Rebuilt.
4710         * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4711         AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4712         set.
4713         * configure.in (AC_OUTPUT): Pass CXX to config.status.
4714         * Makefile.in: Rebuilt.
4715         * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4717 1998-10-21  Tom Tromey  <tromey@cygnus.com>
4719         * java/lang/Object.java (finalize): Move to be first method in
4720         class.
4722         * configure: Rebuilt.
4723         * configure.in (GCINCS): Include contents of boehm-cflags file.
4725 Tue Oct 20 13:11:04 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4727         * java/lang/ArrayIndexOutOfBoundsException.java
4728         (ArrayIndexOutOfBoundsException): Fixed string literal.
4729         * java/lang/StringIndexOutOfBoundsException.java
4730         (StringIndexOutOfBoundsException): Fixed string literal.
4732 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4734         * natFileDescriptorEcos.cc added.
4735         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
4737 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4739         * acconfig.h: test for __int32_t and __uint32_t added.
4740         * include/config.h.in: test for __int32_t and __uint32_t added.
4741         * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4742         * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4743         * configure.in: test for __int32_t and __uint32_t added.
4744         * configure: test for __int32_t and __uint32_t added.
4745         
4746         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
4748         * configure.in: Test for --enable ecos and link
4749         natFileDescriptor.cc to natFileDescriptorEcos.cc or
4750         natFileDescriptorPosix.cc
4751         
4752         * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4753         
4754 Mon Oct 19 18:13:58 1998  Warren Levy  <warrenl@cygnus.com>
4756         * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4757         in isn't negative.
4759         * java/io/CharArrayReader.java (close): Synchronize on lock
4760         object per Reader contract.
4761         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
4762         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
4763         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
4764         Ensure that arg passed in isn't negative.
4766         * java/io/FilterReader.java (FilterReader): Use the lock obj when
4767         constructing the superclass.
4769         * java/io/PushbackReader.java (close): Synchronize on lock
4770         object per Reader contract.
4771         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
4772         (ready): Synchronize on lock obj.  Throw IOException if reader
4773         wasn't closed.
4774         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
4775         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
4776         Ensure that arg passed in isn't negative.
4777         (unread): Synchronize on lock obj.  Verify that reader wasn't closed.
4779         * java/io/StringReader.java: Created.
4780         
4781 Sun Oct 18 02:19:11 1998  Warren Levy  <warrenl@cygnus.com>
4783         * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4784         to match JCL.
4785         (read): Removed synchronized modifier to match JCL.
4786         (reset): Removed synchronized modifier to match JCL.
4787         (skip): Removed synchronized modifier to match JCL.
4789 Sun Oct 18 02:01:54 1998  Warren Levy  <warrenl@cygnus.com>
4791         * java/io/PushbackReader.java (PushbackReader): Made
4792         constructors public.
4794 1998-10-17  Tom Tromey  <tromey@cygnus.com>
4796         * java/io/PushbackInputStream.java (PushbackInputStream): Made
4797         constructors public.
4799 1998-10-16  Anthony Green  <green@cygnus.com>
4801         * aclocal.m4, configure: Rebuilt.
4802         * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4803         configure.host.
4804         * configure.host: Rewrote.
4805         * Makefile.in: Rebuilt.
4806         * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4807         (AM_CFLAGS): New macro.
4808         ($(c_files)): Use COMPILE macro.
4809         (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4810         automake problem(s).
4812 Fri Oct 16 16:36:28 1998  Warren Levy  <warrenl@cygnus.com>
4814         * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4816         * java/io/CharArrayReader.java: Created.
4818 Fri Oct 16 15:17:01 1998  Warren Levy  <warrenl@cygnus.com>
4820         * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4821         size check to allow 0 per JCL.
4823         * java/io/PushbackReader.java: Created.
4825 1998-10-16  Tom Tromey  <tromey@cygnus.com>
4827         * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4828         <sys/time.h> includes. 
4829         * java/io/natFile.cc: Conditionalize <unistd.h> include.
4830         * include/no-threads.h: Conditionalize <unistd.h> include on
4831         HAVE_UNISTD_H.
4833 Fri Oct 16 14:39:51 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
4835         * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4836         is defined.
4838 Thu Oct 15 19:27:54 1998  Warren Levy  <warrenl@cygnus.com>
4840         * java/io/FilterReader.java: Created.
4842 Thu Oct 15 17:49:43 1998  Warren Levy  <warrenl@cygnus.com>
4844         * java/io/PushbackInputStream.java: Rewritten.
4846         * java/io/BufferedInputStream.java (BufferedInputStream): Check
4847         that size passed to constructor is legal.
4848         (read): Check that args passed in are legal.
4849         (skip): Rewritten to get rid of the temporary buffer.
4850         (refill): Added marklimit check to grow the buffer.
4852         * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4853         check.
4854         (bytesAvail): Removed.
4855         (read): Changed bytesAvail to Math.min.
4856         (skip): Changed bytesAvail to Math.min.
4858         * java/io/InputStream.java (read): Got rid of extraneous exceptions
4859         from the throws clause.
4860         (skip): Rewritten to use a temporary buffer.
4862 Thu Oct 15 19:42:55 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
4864         * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4865         some target OSes
4867         * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4869         * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4870         to write the double one word at a time.
4872 Tue Oct 13 14:41:47 1998  Warren Levy  <warrenl@cygnus.com>
4874         * java/io/BufferedInputStream.java:  Rewritten.
4876 1998-10-12  Tom Tromey  <tromey@cygnus.com>
4878         * jni.cc: Include config.h and stddef.h.
4880         * java/lang/Class.h (_dispatchTable): Removed again.
4881         Removed all ACC_* defines again.
4883 Fri Oct  9 17:08:34 1998  Per Bothner  <bothner@cygnus.com>
4885         * Makefile.am (nat_files):  Add netField.o.
4886         (libjava_a_SOURCES):  Add jni.cc.
4887         (java/lang/reflect/Field.h):  New rule.
4888         * Makefile.in:  Re-generated.
4889         * include/javaprims.h:  Add some extra class and typedefs.
4890         * include/jni.h:  New file.
4891         * jni.cc:  New file.
4893         * include/java-field.h:  New file.
4894         * include/jvm.h:  #include <java-field.h>.
4895         * boehm.cc:  #include <java-field.h>.
4896         * java/lang/Class.h (JvField, inline numbers):  Moved to java-field.h.
4897         * java/lang/reflect/Member.java:  New class.
4898         * java/lang/reflect/Field.java:  New class.  (Very incomplete.)
4899         * java/lang/reflect/natField.cc:  New file.  (Very incomplete.)
4901 Sun Oct 11 00:34:44 1998  Anthony Green  <green@cygnus.com>
4903         * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4904         testsuite/Makefile.in: Rebuilt.
4905         * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4906         * configure.host: Created.
4908 1998-10-10  Tom Tromey  <tromey@cygnus.com>
4910         * java/lang/natObject.cc (sync_init): Always allocate a new
4911         sync_info.
4913 1998-10-09  Tom Tromey  <tromey@cygnus.com>
4915         * java/io/ByteArrayInputStream.java (mark): Renamed from
4916         `mark_FIXME'.
4918         * java/io/FileOutputStream.java (finalize): Removed.
4919         * java/io/FileDescriptor.java (finalize): New method.
4921 Thu Oct  8 17:59:43 1998  Warren Levy  <warrenl@cygnus.com>
4923         * ByteArrayInputStream.java: Corrected status comment.
4925 Thu Oct  8 17:22:49 1998  Warren Levy  <warrenl@cygnus.com>
4927         * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4929 1998-10-08  Tom Tromey  <tromey@cygnus.com>
4931         * prims.cc (lookupArray): Use static array to initialize list of
4932         interfaces.
4934 Thu Oct  8 12:45:03 1998  Anthony Green  <green@cygnus.com>
4936         * prims.cc (lookupArray): Initialize the msize for new
4937         array classes.
4939 Wed Oct  7 12:13:59 1998  Anthony Green  <green@cygnus.com>
4941         * configure: Rebuilt.
4942         * configure.in: Check for fsync and sleep.
4943         * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
4945         * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
4946         HAVE_SLEEP. Include config.h.
4948         * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
4949         * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
4950         with HAVE_FSYNC.
4952 1998-10-08  Tom Tromey  <tromey@cygnus.com>
4954         * java/io/natFile.cc: Don't include SecurityManager.h.
4955         (performList): Renamed.
4956         (performMkdir): Likewise.
4957         (performRenameTo): Likewise.
4958         (performDelete): Likewise.
4959         Include <stdlib.h>.
4960         * java/io/File.java (performDelete): Renamed from natDelete.
4961         (list): Now written in Java.
4962         (performList): New method.
4963         (performMkdir): New method.
4964         (mkdir): Now written in Java.
4965         (performRenameTo): New method.
4966         (renameTo): Now written in Java.
4968 1998-10-06  Tom Tromey  <tromey@cygnus.com>
4970         * Makefile.in: Rebuilt.
4971         * Makefile.am (ETAGS_ARGS): New macro.
4972         (TAGS_DEPENDENCIES): Likewise.
4974 Tue Oct  6 22:04:44 PDT 1998 Anthony Green  <green@cygnus.com>
4976         * Makefile.in: Rebuilt.
4977         * Makefile.am: Use -classpath option with javac.
4978         
4979 Tue Oct  6 18:51:31 1998  Tom Tromey  <tromey@cygnus.com>
4981         * java/io/FileOutputStream.java (finalize): Call
4982         super.finalize().
4984 Tue Oct  6 16:02:45 1998  Anthony Green  <green@cygnus.com>
4986         * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
4987         with newlib's libm.
4988         * java/lang/mprec.c: Ditto.
4990         * java/lang/mprec.h: Include math.h for HUGE_VAL when
4991         cross-compiling.
4993 Tue Oct  6 14:27:00 1998  Warren Levy  <warrenl@cygnus.com>
4995         * java/io/InputStream.java (skip): Make local var i a long.
4997 Mon Oct  5 09:44:24 1998  Tom Tromey  <tromey@cygnus.com>
4999         * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5000         * prims.cc (lookupArray): Use memcpy, not memmove.
5001         * include/config.h.in: Rebuilt.
5002         * acconfig.h (HAVE_MEMCPY): Added.
5003         * configure: Rebuilt.
5004         * configure.in: Check for memcpy again.
5006         * java/io/RandomAccessFile.java (RandomAccessFile): Use
5007         String.compareTo, not ==.
5009         * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5010         (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5011         * java/lang/natObject.cc (struct _dispatchTable): Removed.
5012         * include/jvm.h (struct _Jv_DispatchTable): New structure.
5013         * prims.cc (lookupArray): Removed dead code.  Copy Object's dtable
5014         into new array's dtable.
5015         (_Jv_AllocObject): Use _Jv_DispatchTable.
5016         (_Jv_NewPrimArray): Likewise.
5017         (_Jv_NewObjectArray): Likewise.
5019 Fri Oct  2 18:57:14 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5021         * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5022         offending index value.
5023         (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5024         appropriate.
5025         * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5026         * java/lang/Throwable.java: (Throwable): fixed argument to this().
5028 Fri Oct  2 15:58:23 1998  Warren Levy  <warrenl@cygnus.com>
5030         * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5031         
5032         * java/io/OutputStream.java (write): Use off and len parameters to
5033         output partial byte array.
5034         
5035         * java/io/BufferedReader.java, java/io/FileReader.java,
5036         java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5037         java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5038         java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5039         java/io/Writer.java: Added COPYRIGHT-TBD comment.
5041         * include/javaprims.h (java::lang): Added
5042         ExceptionInInitializerError, IllegalStateException,
5043         NoSuchFieldException, and UnsupportedOperationException.
5045 Fri Oct  2 01:05:38 1998  Tom Tromey  <tromey@cygnus.com>
5047         * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5048         Class*.
5050         * include/java-array.h (__JArray): Added clone method.
5051         * prims.cc (CloneableClass): New define.
5052         (lookupArray): Initialize array class to indicate that it
5053         implements Cloneable.
5055         * java/lang/Class.h: Removed all ACC_* defines.
5056         * prims.cc: Include Modifier.h.
5057         (_Jv_LookupInterfaceMethod): Use methods in
5058         java.lang.reflect.Modifier, not ACC_ defines.
5060         * java/lang/Class.h (Class): Declare getClasses,
5061         getDeclaredClasses, getDeclaringClass, getModifiers, 
5062         * java/lang/Class.java: Rewrote from scratch.
5064         * include/javaprims.h (java::lang): Added reflect and
5065         reflect::Modifier.
5066         * Makefile.in: Rebuilt.
5067         * Makefile.am (nat_headers): Added Modifier.h.
5069         * prims.cc (_Jv_IsInstanceOf): Return false if class is
5070         primitive.
5072 Fri Oct 2 06:49:00 1998  Anthony Green  <green@cygnus.com>
5074         * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5075         instead of test and abort.
5077         * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5078         remove compiler warning.
5080 Fri Oct  2 12:33:44 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5082         * java/lang/natDouble.cc: zero terminate string.
5083         * strtod.c: Set errno if no digits are found in fraction.
5085 Thu Oct  1 11:48:28 1998  Tom Tromey  <tromey@cygnus.com>
5087         * java/lang/reflect/Modifier.java: New file.
5089         * java/lang/VirtualMachineError.java: Rewrote from scratch.
5090         * java/lang/VerifyError.java: Rewrote from scratch.
5091         * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5092         * java/lang/UnknownError.java: Rewrote from scratch.
5093         * java/lang/StackOverflowError.java: Rewrote from scratch.
5094         * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5095         * java/lang/InternalError.java: Rewrote from scratch.
5096         * java/lang/IllegalAccessError.java: Rewrote from scratch.
5097         * java/lang/ExceptionInInitializerError.java: New file.
5098         * java/lang/Error.java: Rewrote from scratch.
5099         * java/lang/ClassFormatError.java: Rewrote from scratch.
5100         * java/lang/ClassCircularityError.java: Rewrote from scratch.
5101         * java/lang/AbstractMethodError.java: Rewrote from scratch.
5102         * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5103         * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5104         * java/lang/LinkageError.java: Rewrote from scratch.
5105         * java/lang/IncompatibleClassChangeError.java: Rewrote from
5106         scratch.
5107         * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5109         * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5110         * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5111         friend.
5112         * include/cni.h (JvAllocObject): Moved from prims.cc.
5113         Include Class.h.
5114         * prims.cc (JvAllocObject): Moved to cni.h.
5115         (_Jv_AllocObject): Use _Jv_FinalizeObject.
5116         (finalize_name): Removed.
5118 Wed Sep 30 12:09:34 1998  Tom Tromey  <tromey@cygnus.com>
5120         * java/lang/Class.h (Class): Added size() method.
5121         * prims.cc (_Jv_MonitorEnter): Removed.
5122         (_Jv_MonitorExit): Removed.
5123         * java/lang/Object.h (JvSyncInfo): Removed.
5124         * Makefile.in: Rebuilt.
5125         * Makefile.am (nat_headers): Added Cloneable.h,
5126         CloneNotSupportedException.h.
5127         * java/lang/Object.h: Rewrote.
5128         * java/lang/natObject.cc: Rewrote from scratch.
5129         * java/lang/Object.java: Rewrote from scratch.
5131         * java/io/natFile.cc: Conditionally include <dirent.h>.
5132         (list): If no <dirent.h>, always return NULL.
5133         * configure: Rebuilt.
5134         * configure.in: Check for dirent.h.
5136         * prims.cc (lookupArray): Don't use sprintf.
5138         * java/util/Hashtable.java (containsKey): Use `abs' to compute
5139         initial index.
5140         (get): Likewise.
5141         (put): Likewise.
5142         (rehash): Likewise.
5143         (remove): Likewise.
5145         * java/util/Hashtable.java (hsize): Renamed from size to avoid
5146         name conflict with method.
5148         * include/javaprims.h (java::util): Added HashtableEntry.
5150 Tue Sep 29 16:48:01 1998  Warren Levy  <warrenl@cygnus.com>
5152         * java/util/Hashtable.java: Rewritten.
5154 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5156         * java/io/natFileDescriptor.cc (write): Correctly test `write'
5157         return value.
5158         (write): Likewise.
5160         * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5161         not `curr_nt'.
5163         * posix-threads.cc (_Jv_CondWait): Now returns int.
5164         * include/javaprims.h (java::lang): Added
5165         IllegalMonitorStateException.
5166         * Makefile.in: Rebuilt.
5167         * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5168         * include/no-threads.h (_Jv_CondDestroy): Removed.
5169         (_Jv_MutexDestroy): Removed.
5170         (_Jv_CondWait): Now returns int.
5171         (_Jv_CondNotify): Likewise.  Added mutex argument.
5172         (_Jv_CondNotifyAll): Likewise.
5173         (_Jv_MutexLock): Always succeed.
5174         (_Jv_MutexUnlock): Likewise.
5175         * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5176         (_Jv_HaveMutexDestroy): Define.
5177         (_Jv_CondNotify): Now returns int.  Added mutex argument.
5178         (_Jv_CondNotifyAll): Likewise.
5179         * include/quick-threads.h (_Jv_CondDestroy): Removed.
5180         (_Jv_MutexDestroy): Removed.
5181         (_Jv_CondWait): Now returns int.
5182         (_Jv_CondNotify): Likewise.  Added mutex argument.
5183         (_Jv_CondNotifyAll): Likewise.
5184         * java/lang/natObject.cc (finalize_sync_info): New function.
5185         (init_mutex): Initialize `init' and register finalizer if
5186         required.
5187         (CHECK): New macro.
5188         (init_mutex): Use it.
5189         (notify): Use it.
5190         (notifyAll): Use it.
5191         (wait): Use it.
5192         (notify): Throw IllegalMonitorStateException on failure.
5193         (notifyAll): Likewise.
5194         (wait): Likewise.  Also, throw InterruptedException if
5195         appropriate.
5196         Include cni.h, Thread.h, IllegalMonitorStateException.h,
5197         InterruptedException.h, IllegalArgumentException.h.
5198         * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5200         * java/lang/natString.cc: Renamed all `JvPriv' functions.
5201         * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5202         * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5203         * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5204         * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5205         * quick-threads.cc: Renamed all `JvPriv' functions.
5206         * prims.cc: Renamed all `JvPriv' functions.
5207         * posix-threads.cc: Renamed all `JvPriv' functions.
5208         * nogc.cc: Renamed all `JvPriv' functions.
5209         * no-threads.cc: Renamed all `JvPriv' functions.
5210         * boehm.cc: Renamed all `JvPriv' functions.
5211         * include/quick-threads.h: Renamed all `JvPriv' functions.
5212         * include/posix-threads.h: Renamed all `JvPriv' functions.
5213         * include/no-threads.h: Renamed all `JvPriv' functions.
5214         * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5216         * include/no-threads.h (JvPrivCondWait): Wrote minimal
5217         implementation.
5218         (JvPrivCondNotify): Do nothing.
5219         (JvPrivCondNotifyAll): Do nothing.
5221         * prims.cc (processClass): Handle case where state is
5222         DOING_CONSTINIT.
5224         * java/lang/natFirstThread.cc: Include <stdlib.h>
5226         * configure: Rebuilt.
5227         * configure.in: Fixed sense of --enable-libjava-debug.
5229         * java/lang/natThread.cc (join): Declare `t' outside the loop so
5230         it can be used afterward by the assertion.
5232         * configure: Rebuilt.
5233         * configure.in: When cross-compiling, assume alloca.
5235         * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5236         __builtin_alloca (autoconf docs are wrong here).
5238         * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5239         closing.
5240         (available): Use `FD_ZERO' (typo fix).
5242 Tue Sep 29 17:43:30 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
5244         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5245         java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5246         struct _Jv_Bigint.
5247         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5248         java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5249         struct _Jv_reent.
5251         * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5252         
5253 Tue Sep 29 07:57:13 1998  Anthony Green  <green@cygnus.com>
5255         * java/lang/natDouble.cc: Declare alloca safely.
5257         * configure, include/config.h.in: Rebuilt.
5258         * configure.in: Add alloca check.
5260 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5262         * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5263         condition while calling notify.
5264         (join): Remove `curr_nt' from `nt's join list, not vice versa.
5265         (interrupt): Hold mutex for interrupt condition while calling
5266         notify.
5268         * java/lang/natString.cc (init): Allocate and try to read `count'
5269         characters, not `count - offset' characters.
5271         * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5272         Correctly compute `count'.
5274         * java/lang/Boolean.java (getBoolean): Return false if property
5275         not found.
5277         * java/lang/System.java (setProperties): Set prop_init.
5279 Mon Sep 28 12:39:25 1998  Tom Tromey  <tromey@cygnus.com>
5281         * java/io/PrintStream.java (println): Use line.separator, not
5282         file.separator.
5283         * java/lang/System.java (out, err): Make both autoflush streams.
5284         * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5286         * include/config.h.in: Rebuilt.
5287         * acconfig.h (HAVE_MEMCPY): Removed.
5288         * configure: Rebuilt.
5289         * configure.in: Never define HAVE_MEMCPY.
5291         * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5292         Class.h.
5293         (_Jv_AllocString): Use JvAllocObject again.
5294         * java/lang/Class.h (thread): New field.
5295         (_Jv_AllocString): No longer a friend.
5296         * prims.cc (processClass): Removed dead code.  Changed to more
5297         closely follow the Java Language Specification.
5298         (processClass): Return early if already at the right state.
5300         * prims.cc (JvNewStringUTF): Removed.
5301         * include/cni.h (JvNewStringUTF): New function.
5302         (_Jv_NewStringUTF): Declare as `extern "C"'.
5303         * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5305         * java/lang/natDouble.cc: Added copyright info and header
5306         comment.  Include <stdlib.h>.
5307         (doubleValueOf): Use alloca, not malloc.  Allocate 3 times as many
5308         bytes as are chars in string.
5310 Sat Sep 26 00:19:27 1998  Tom Tromey  <tromey@cygnus.com>
5312         * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5313         clash with method.
5314         (hsize): Likewise.
5316         * java/lang/System.java (init_properties): Now native.
5317         * java/lang/natSystem.cc (init_properties): New method.
5318         Include java/util/Properties.h.
5320         * Makefile.in: Rebuilt.
5321         * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5322         OutputStreamWriter.h, ByteArrayInputStream.h,
5323         InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5324         Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5325         SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5326         Properties.h, Hashtable.h, Dictionary.h.
5327         (CFLAGS): Removed.
5329         * include/javaprims.h (java::io): Added Reader, Writer,
5330         InputStreamReader, OutputStreamWriter,
5331         UnsupportedEncodingException, ByteArrayInputStream,
5332         ByteArrayOutputStream, EOFException, SyncFailedException,
5333         PushbackInputStream.
5334         (java::lang): Added Cloneable.
5335         (java::util): Added NoSuchElementException, VectorEnumeration,
5336         Dictionary, HashtableEnumeration, PropertiesEnumeration.
5338         * java/io/PipedReader.java: New file.
5340 Fri Sep 25 00:11:25 1998  Tom Tromey  <tromey@cygnus.com>
5342         * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5343         up A-Z.
5345         * java/io/io-defs.h: Removed.
5347         * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5348         (FileInputStream): Use new constructor.  Can throw IOException.
5350         * java/lang/System.java (getProperty): Don't throw
5351         NullPointerException.
5353         * java/io/RandomAccessFile.java: Rewrote from scratch.
5355         * java/io/natFileDescriptor.cc: Include EOFException.h.
5356         (seek): New method.
5357         (length): New method.
5358         (getFilePointer): New method.
5359         (read): New method.
5360         (available): New method.
5361         * java/io/FileDescriptor.java (SET, CUR): New constants.
5362         (seek, length, getFilePointer, read, available): New decls.
5364         * java/io/PipedWriter.java: New file.
5365         * java/io/StringWriter.java: New file.
5366         * java/io/CharArrayWriter.java: New file.
5367         * java/io/CharConversionException.java: New file.
5368         * java/io/BufferedWriter.java: New file.
5369         * java/io/FilterWriter.java: New file.
5370         * java/io/FileWriter.java: New file.
5372         * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5373         OutputStreamWriter.h, NullPointerException.h,
5374         ByteArrayInputStream.h, InputStreamReader.h.
5375         (getBytes): New method.
5376         (init): Throw NullPointerException.
5377         (init): New function.
5378         * java/lang/String.java (getBytes): Added missing decl.
5379         (getBytes): New method.
5380         (String): Added byte[]-based constructors.
5381         (copyValueOf): Wrote.
5382         (init): Declare variant which takes byte array and encoding.
5383         Import java.io.UnsupportedEncodingException.
5385         * java/io/File.java: Rewrote from scratch.
5386         * java/io/natFileDescriptor.cc: Rewrote from scratch.
5387         * java/io/FileDescriptor.java: Rewrote from scratch.
5388         * java/io/FilenameFilter.java: Rewrote from scratch.
5390 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
5392         * java/io/SyncFailedException.java: New file.
5393         * java/io/UTFDataFormatException.java: Rewrote from scratch.
5394         * java/io/InterruptedIOException.java: Rewrote from scratch.
5395         * java/io/FileNotFoundException.java: Rewrote from scratch.
5396         * java/io/EOFException.java: Rewrote from scratch.
5397         * java/io/IOException.java: Rewrote from scratch.
5398         * java/io/PrintStream.java: Rewrote from scratch.
5399         * java/io/DataOutputStream.java: Rewrote from scratch.
5400         * java/io/BufferedOutputStream.java: Rewrote from scratch.
5401         * java/io/FilterOutputStream.java: Rewrote from scratch.
5402         * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5403         * java/io/PipedOutputStream.java: Rewrote from scratch.
5404         * java/io/FileOutputStream.java: Rewrote from scratch.
5405         * java/io/OutputStream.java: Rewrote from scratch.
5406         * java/io/DataOutput.java: Rewrote from scratch.
5408 Mon Sep 28 22:59:54 1998  Per Bothner  <bothner@cygnus.com>
5410         * prims.cc (_Jv_CheckCast):  Add missing ! operator.
5412 Mon Sep 28 15:50:06 1998  Anthony Green  <green@cygnus.com>
5414         * configure.in: Add --enable-libjava-debug
5416         * Makefile.am (nat_headers): Add java/lang/Float.h and 
5417         java/lang/Double.h
5419         * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5421         * Makefile.in, configure, include/config.h.in: Rebuilt.
5423 Mon Sep 28 17:05:58 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5425         * java/lang/Float.java: Rewritten
5426         * java/lang/Double.java: Rewritten
5427         * java/lang/natFloat.cc: toString() added.
5428         * java/lang/natDouble.cc: toString() added.
5429         * java/lang/natDouble.cc: doubleValueOf() added.
5430         * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h, 
5431         java/lang/strtod.c: added.
5432         * ieeefp.h: __sparc added.
5433         * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5434         
5435 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
5437         * include/javaprims.h (java::lang): Added
5438         CloneNotSupportedException.
5440         * java/lang/Object.java (clone): No longer native.  Implemented.
5441         * java/lang/natObject.cc (clone): Removed.
5443 Wed Sep 23 12:03:38 1998  Tom Tromey  <tromey@cygnus.com>
5445         * prims.cc: Don't make definitions `extern "C"'.
5446         (_Jv_RegisterClass): Renamed from registerClass.
5447         * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5448         (_Jv_NewArray): Likewise.
5449         (_Jv_NewMultiArray): Likewise.
5450         (_Jv_CheckCast): Likewise.
5451         (_Jv_LookupInterfaceMethod): Likewise.
5452         (_Jv_CheckArrayStore): Likewise.
5453         (_Jv_RegisterClass): Likewise.
5455         * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5456         * configure: Rebuilt.
5457         * configure.in: Don't check for fmod; it is provided by the fdlibm
5458         code.
5459         * prims.cc (fmod): Removed.
5461         * java/lang/natString.cc (charAt): Use _Jv_uint.
5462         * java/lang/Class.h (class JvField): Use _Jv_ushort.
5463         * prims.cc (HASH_CHARS): Use _Jv_ushort.
5464         (equalUtf8Consts): Likewise.
5465         (internalAddClass): Use _Jv_uint.
5466         (processClass): Likewise.
5467         * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5468         (_Jv_uint): Renamed from uint32.
5469         (struct _Jv_Utf8Const): Changed members to use new type names.
5471         * configure: Rebuilt.
5472         * configure.in: Don't check for memcpy.  Require memmove and a way
5473         to get the time.
5474         * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5475         #error.
5476         (currentTimeMillis): Don't use #error.
5478 Tue Sep 22 18:00:16 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5480         * java/lang/Math.java: static member random renamed to random_ to
5481         avoid conflict with member function of the same name.
5482         * include/javaprims.h: java.util.Random added.
5484 Tue Sep 22 13:53:14 1998  Tom Tromey  <tromey@cygnus.com>
5486         * include/java-chartables.h: Regenerated.
5487         * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5488         printed.
5490 Tue Sep 22 17:17:52 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
5492         * java/lang/Math.java: Rewritten.
5493         * java/lang/natMath.cc: New file.
5494         * Files added from fdlibm:
5495           java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5496           java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5497           java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5498           java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5499           java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5500           java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5501           java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5502           java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5503           java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5504           java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5505           java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5506           java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5507           java/lang/k_cos.c, java/lang/sf_ceil.c,
5508           java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5509           java/lang/ieeefp.h, java/lang/fdlibm.h
5510         * Makefile.am: rules added for compiling C files from fdlibm.
5511         
5512 Mon Sep 21 15:40:58 1998  Tom Tromey  <tromey@cygnus.com>
5514         * chartables.pl: Minor documentation fixes.
5516         * configure: Rebuilt.
5517         * configure.in: Fixed --help output for --enable-fast-character.
5519 Thu Sep 17 11:03:27 1998  Tom Tromey  <tromey@cygnus.com>
5521         * configure: Rebuilt.
5522         * configure.in: Recognize --enable-fast-character.
5523         * acconfig.h (COMPACT_CHARACTER): New define.
5524         * include/config.h.in: Rebuilt.
5525         * include/java-chartables.h: New file.
5526         * Makefile.in: Rebuilt.
5527         * Makefile.am (nat_files): Added natCharacter.o.
5528         * java/lang/natCharacter.cc: New file.
5529         * chartables.pl (set_attribute): New function.
5530         (@attributes, @second_attributes): New globals.
5531         ($ROMAN_START, $ROMAN_END): Likewise.
5532         (process_char): Call set_attribute when required.
5533         (print_char): Just print hex value.
5534         (print_block): Generate C++ syntax.
5535         (print_numerics): Likewise.
5536         (print_single_map): Likewise.
5537         (print_all_block): Likewise.
5538         (print_case_table): Likewise.
5539         (print_fast_tables): New function.
5540         Generate C++ code suitable for a header file.
5541         * java/lang/Character.java (table_search): Removed.
5542         (digit_value): Now native.
5543         (getNumericValue): Likewise.
5544         (getType): Likewise.
5545         Removed all automatically-generated tables.
5546         (Tamil_Digit_One): Removed.
5547         (isSpaceChar): Now native.
5548         (isTitleCase): Likewise.
5549         (isLowerCase): Likewise.
5550         (isUpperCase): Likewise.
5551         (toLowerCase): Likewise.
5552         (toTitleCase): Likewise.
5553         (toUpperCase): Likewise.
5554         (isDefined): Fixed sense of test.
5556 Wed Sep 16 12:00:19 1998  Tom Tromey  <tromey@cygnus.com>
5558         * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5559         FIXME comment.
5560         (regionMatches): Likewise.
5562 Tue Sep 15 14:35:12 1998  Tom Tromey  <tromey@cygnus.com>
5564         * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5566         * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5567         a friend.
5568         * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5569         _Jv_AllocObject.
5571         * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5572         not a char.
5574         * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5576 Fri Sep 11 14:01:08 1998  Tom Tromey  <tromey@cygnus.com>
5578         * prims.cc (instanceof_class): Removed.
5579         (instanceof_array): Likewise.
5580         (instanceof): Likewise.
5581         (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5582         (_Jv_CheckCast): Likewise.
5583         * java/lang/natClass.cc (isAssignableFrom): New method.
5584         * java/lang/Class.java (isAssignableFrom): Now native.
5586         * include/cni.h (JvThrow): Use `extern inline'.
5587         (JvAllocObject): Likewise.
5588         (JvInitClass): Likewise.
5590         * java/lang/natSystem.cc (arraycopy): Only check class of source
5591         object if not null.
5593         * prims.cc (_Jv_CheckArrayStore): Wrote.
5594         (_Jv_MonitorEnter): Prefer `JvThrow'.
5595         Include ArrayStoreException.h.
5596         (_Jv_CheckCast): Indentation cleanup.
5598 Thu Sep 10 18:59:29 1998  Tom Tromey  <tromey@cygnus.com>
5600         * chartables.pl: New file.
5601         * java/lang/Character.java: Rewrote from scratch.
5603 Fri Sep 18 18:15:58 1998  Warren Levy  <warrenl@cygnus.com>
5605         * java/lang/ArithmeticException.java,
5606         java/lang/ArrayIndexOutOfBoundsException.java,
5607         java/lang/ArrayStoreException.java,
5608         java/lang/ClassCastException.java,
5609         java/lang/ClassNotFoundException.java,
5610         java/lang/CloneNotSupportedException.java,
5611         java/lang/Exception.java, java/lang/IllegalAccessException.java,
5612         java/lang/IllegalArgumentException.java,
5613         java/lang/IllegalMonitorStateException.java,
5614         java/lang/IllegalThreadStateException.java,
5615         java/lang/IndexOutOfBoundsException.java,
5616         java/lang/InstantiationException.java,
5617         java/lang/InterruptedException.java,
5618         java/lang/NegativeArraySizeException.java,
5619         java/lang/NoSuchMethodException.java,
5620         java/lang/NullPointerException.java,
5621         java/lang/NumberFormatException.java,
5622         java/lang/RuntimeException.java, java/lang/SecurityException.java,
5623         java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5625         * java/lang/IllegalStateException.java,
5626         java/lang/NoSuchFieldException.java,
5627         java/lang/UnsupportedOperationException.java: Created.
5629 Fri Sep 18 15:01:42 1998  Warren Levy  <warrenl@cygnus.com>
5631         * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5632         * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5634 Fri Sep 11 16:49:19 1998  Per Bothner  <bothner@cygnus.com>
5636         * prims.cc (JvRunMain):  No longer need to call _Jv_InitClass.
5638 Thu Sep 10 12:23:55 1998  Warren Levy  <warrenl@cygnus.com>
5640         * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5642         * Makefile.in: Rebuilt.
5644         * include/javaprims.h (java::lang): Added
5645         StringIndexOutOfBoundsException.
5647         * java/lang/String.java: Added header comment and FIXME comment for 
5648         missing constructors/methods.
5649         (endsWith): Adjusted offset into string to look at just the last chars.
5650         Commented out undocumented method.
5652         * java/lang/natString.cc: Added includes for
5653         ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5654         (String::init): Throw StringIndexOutOfBoundsException.
5655         (String::charAt): Throw StringIndexOutOfBoundsException.
5656         (String::substring): Throw StringIndexOutOfBoundsException.
5657         (String::getChars): Throw ArrayIndexOutOfBoundsException.
5658         (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5659         (String::compareTo): Return difference/offset between chars/strings.
5661 Tue Sep  8 13:22:33 1998  Warren Levy  <warrenl@cygnus.com>
5663         * java/lang/Boolean.java (TYPE): Added comment.
5664         
5665         * java/lang/Byte.java (decode): Added - commented out until dependent
5666         code for Integer is written.
5667         (compareTo): JDK 1.2 methods written.
5668         (hashCode): Added comment to note that values have been verified.
5669         
5670         * java/lang/Short.java (decode): Added - commented out until dependent
5671         code for Integer is written.
5672         (compareTo): JDK 1.2 methods written.
5673         (hashCode): Added comment to note that values have been verified.
5675         * java/lang/Comparable.java: Created - JDK 1.2 interface.
5677 Fri Sep  4 10:36:35 1998  Tom Tromey  <tromey@cygnus.com>
5679         * include/javaprims.h (java::lang): Added VirtualMachineError,
5680         OutOfMemoryError.
5681         * Makefile.in: Rebuilt.
5682         * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5683         VirtualMachineError.h.
5684         * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5685         (lookupArray): Likewise.
5686         (makeUtf8Const): Likewise.
5687         (_Jv_AllocObject): Likewise.
5688         (_Jv_NewObjectArray): Likewise.
5689         Include OutOfMemoryError.h.
5691         * java/io/natFileDescriptor.cc (newstr): Removed.  Changed callers
5692         to use JvNewStringLatin1.
5694         * java/io/io-defs.h: Include java/lang/IOException.h.
5695         * Makefile.in: Rebuilt.
5696         * Makefile.am (nat_headers): Added
5697         ArrayIndexOutOfBoundsException.h,
5698         ClassFormatError.h,ClassNotFoundException.h,
5699         ClassCircularityError.h, ClassCastException.h,
5700         IncompatibleClassChangeError.h, AbstractMethodError.h,
5701         IllegalAccessError.h, LinkageError.h, Error.h,
5702         NegativeArraySizeException.h, IOException.h.
5703         * include/cni.h (SignalError): Removed declaration.
5704         * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5705         * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5706         * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5707         (newInstance): Likewise.
5708         (forName): Likewise.
5709         * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5710         sorry.
5711         (read): Use JvThrow, not SignalError.
5712         (read): Likewise.
5713         (write): Likewise.
5714         (skip): Likewise.
5715         (close): Likewise.
5716         (open_read): Likewise.
5717         (open_write): Likewise.
5718         (ftell): Likewise.
5719         (fseek): Likewise.
5720         (newstr): New function.
5721         * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5722         sorry.
5723         (lastModifiedUnchecked): Likewise.
5724         (lengthUnchecked): Likewise.
5725         * include/javaprims.h (sorry): Removed declaration.
5726         (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5727         ClassFormatError, ClassNotFoundException, ClassCircularityError,
5728         ClassCastException, IncompatibleClassChangeError,
5729         AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5730         * prims.cc (instanceof_array): Use JvFail, not sorry.
5731         (sorry): Removed.
5732         Include ArrayIndexOutOfBoundsException.h,
5733         ClassFormatError.h,ClassNotFoundException.h,
5734         ClassCircularityError.h, ClassCastException.h,
5735         IncompatibleClassChangeError.h, AbstractMethodError.h,
5736         IllegalAccessError.h, NegativeArraySizeException.h.
5737         (_Jv_ThrowBadArrayIndex): Implemented.
5738         (JvNewStringUTF): Use JvFail, not sorry.
5739         (_Jv_FindClass): Likewise.
5740         (_Jv_NewArray): Likewise.
5741         (throwException): Removed.
5742         (getClass): Use JvThrow.
5743         (processClass): Likewise.
5744         (_Jv_NewObjectArray): Likewise.
5745         (_Jv_NewMultiArray): Likewise.
5746         (_Jv_CheckCast): Likewise.
5747         (_Jv_LookupInterfaceMethod): Likewise.
5748         (SignalError): Removed.
5749         (getClass): Use _Jv_NewStringUtf8Const to create String.
5751         * java/lang/natSystem.cc (arraycopy): Throw
5752         ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5754         * Makefile.in: Rebuilt.
5755         * Makefile.am (GCJH): Renamed.  Now use `gcjh'.  Changed all
5756         users.
5757         * include/java-array.h: Mention gcjh, not gjavah.
5759         * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5760         (canReadUnchecked): Likewise.
5761         (canWriteUnchecked): Likewise.
5762         (isFileUnchecked): Likewise.
5763         * java/io/natFileDescriptor.cc: Don't include cni.h.
5765         * java/lang/Thread.java (run__): Declare.
5766         * java/lang/natThread.cc (run__): New method, to avoid compiler
5767         warning.
5768         (start): Use run__, not run_.
5770         * java/io/io-defs.h: Include cni.h and jvm.h.
5772 Thu Sep  3 18:20:08 1998  Per Bothner  <bothner@cygnus.com>
5774         Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5775         * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1):  Moved
5776         to natString.cc (with suitable renaming, inlines etc).
5777         (javaString2CString):  Removed.  Subsumed by _Jv_GetStringUTFRegion.
5778         * java/lang/Class.h:  Renamed Utf8Const to _Jv_Utf8Const.
5779         * java/lang/String.h:  Removed - now generated using gjavah.
5780         * java/lang/String.java:  Re-written from scratch. Many native methods.
5781         * java/lang/natDouble.cc, java/util/natDate.cc:  #include <cni.h>.
5782         * java/lang/natString.cc:  Many functions re-written for "compact
5783         strings" representation, or native java.lang.String methods added.
5784         (Utf8Const2JavaString):  Renamed to _Jv_NewStringUtf8Const.
5785         (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion):  New methods.
5786         * java/lang/natClass.cc (getName):  Use new _Jv_NewStringUtf8Const.
5787         * java/io/natFileDescriptor.cc:  Use new JvGetStringUTFRegion.
5788         * include/cni.h:  Add inline method.
5789         * include/java-array.h (jobjectArrayjchar):  gjavah bug work-around.
5790         * include/javaprims.h:  Moved some stuff frm String.h.
5791         * include/jvm.h (UTF8_GET, Utf8Const, StringClass):  Moved here.
5792         * Makefile.am (nat_header):  Added Character.h and String.h.
5793         (String.h):  Add new rule.
5795 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
5797         * no-threads.cc: Include config.h, cni.h, jvm.h.  Don't include
5798         java-assert.h.
5799         * posix-threads.cc: Include cni.h, jvm.h.
5800         * quick-threads.cc: Include cni.h, jvm.h.
5801         * nogc.cc: Include cni.h, not javaprims.h.
5802         * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5803         * java/lang/natThread.cc: Rearranged #include ordering.  Don't
5804         include java-assert.h.
5805         * java/lang/natSystem.cc: Include cni.h.  Don't include
5806         java-assert.h.
5807         * java/lang/natRuntime.cc: Include cni.h.  Don't include
5808         java-assert.h.
5809         * prims.cc: Rearranged #include ordering.  Don't include
5810         java-array.h or java-assert.h.
5811         * boehm.cc: Include config.h, cni.h.
5812         * exception.cc: Include config.h, cni.h.
5813         * include/jvm.h: Include java-assert.h.
5814         * include/cni.h: Include java/lang/Object.h.  Don't include
5815         java-threads.h or java-array.h.
5817 Thu Sep  3 16:03:08 1998  Warren Levy  <warrenl@cygnus.com>
5819         * java/lang/Boolean.java: Rewritten.
5821 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
5823         * java/lang/natFirstThread.cc (main_func): New typedef.
5824         (run): Use main_func, not JvPrivThreadStartFunc.
5825         * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5826         argument type.
5827         * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5828         argument type.
5829         * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5830         argument type.
5832         Can't throw Java exceptions with C++ `throw':
5833         * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5834         * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5835         (setPriority): Likewise.
5836         (sleep): Likewise.
5837         (start): Likewise.
5838         (stop): Likewise.
5839         * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5840         * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5842         Can't catch Java exceptions from C++:
5843         * java/lang/natThread.cc (finish_): New method.
5844         (run_): Removed.
5845         * java/lang/Thread.java (run_): Rewrote in Java.
5846         (finish_): New native method.
5848 Wed Sep  2 17:30:39 1998  Warren Levy  <warrenl@cygnus.com>
5850         * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5852         * include/javaprims.h (java::io): Added Serializable.
5854 Wed Sep  2 15:22:00 1998  Warren Levy  <warrenl@cygnus.com>
5856         * java/util/EmptyStackException.java,
5857         java/util/NoSuchElementException.java: Rewritten.
5858         
5859         * java/util/ConcurrentModificationException.java,
5860         java/util/MissingResourceException.java,
5861         java/util/TooManyListenersException.java: Created.
5863 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
5865         * include/cni.h (JvThrow): New function.
5866         * include/javaprims.h (_Jv_Throw): Declare.
5868 Wed Sep  2 14:07:48 1998  Warren Levy  <warrenl@cygnus.com>
5870         * java/util/Observable.java: Rewritten.
5872 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
5874         * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5875         (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5876         Include NullPointerException.h.
5878 Tue Sep  1 12:07:35 1998  Tom Tromey  <tromey@cygnus.com>
5880         * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5881         assignability checks.  Don't bother using memcpy.
5883         * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5884         (started): Removed.
5885         * include/quick-threads.h (JvPrivThreadWait): New function.
5886         * include/no-threads.h (JvPrivThreadWait): New function.
5887         * include/posix-threads.h (JvPrivThreadWait): New function.
5888         * prims.cc (JvRunMain): Call JvPrivThreadWait.
5890         * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5892         * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5893         offsets by size of type that is being copied.
5895         * java/lang/natThread.cc (start): Don't pass `object' argument to
5896         JvPrivThreadStart.
5897         * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5898         * posix-threads.cc (JvPrivThreadStart): Removed `object'
5899         argument.
5900         * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5901         always pass thread as object.
5902         * include/quick-threads.h, include/posix-threads.h,
5903         include/no-threads.h (JvPrivThreadStart): Removed `object'
5904         argument.
5906 Mon Aug 31 19:11:53 1998  Warren Levy  <warrenl@cygnus.com>
5908         * java/util/Dictionary.java: Rewritten.
5910 Mon Aug 31 14:35:55 1998  Tom Tromey  <tromey@cygnus.com>
5912         * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5913         (JvPrivThreadDestroy): Likewise.
5914         
5915 Mon Aug 31 12:56:01 1998  Warren Levy  <warrenl@cygnus.com>
5917         * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5919 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
5921         * java/lang/natSystem.cc: Rewrote from scratch.
5922         * java/lang/System.java: Rewrote from scratch.
5923         * java/lang/Class.h (Class): Declare isAssignableFrom.
5924         * include/javaprims.h (java::lang): Added ArrayStoreException,
5925         IndexOutOfBoundsException.
5926         * Makefile.in: Rebuilt.
5927         * Makefile.am (nat_headers): Added ArrayStoreException.h,
5928         IndexOutOfBoundsException.h.
5929         * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5930         * include/jvm.h (_Jv_HashCode): New function.
5932         * java/lang/natThread.cc (suspend): Call checkAccess.
5933         (resume): Likewise.
5934         * java/lang/Thread.java (setDaemon): Call checkAccess.
5936 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
5938         * java/lang/Runtime.java: Rewrote from scratch.
5939         * java/lang/natRuntime.cc: Rewrote from scratch.
5941         * nogc.cc (JvPrivGCTotalMemory): New function.
5942         (JvPrivGCFreeMemory): Likewise.
5943         (total): New global.
5944         (JvPrivAllocObj): Increment total.
5945         (JvPrivAllocArray): Likewise.
5946         (JvPrivAllocBytes): Likewise.
5947         * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
5948         * boehm.cc (JvPrivGCTotalMemory): New function.
5949         (sum_blocks): Likewise.
5950         (JvPrivGCFreeMemory): Likewise.
5952 Wed Aug 26 12:30:32 1998  Tom Tromey  <tromey@cygnus.com>
5954         * include/javaprims.h (java::lang): Added FirstThread.
5955         * java/lang/natFirstThread.cc: New file.
5956         * java/lang/FirstThread.java: New file.
5957         * prims.cc (main_signature): Removed.
5958         (main_name): Removed.
5959         #include FirstThread.h.
5960         * Makefile.in: Rebuilt.
5961         * Makefile.am (TFRIEND): Removed.
5962         (java/lang/Thread.h): Likewise.
5963         (FTFRIEND): New macro.
5964         (java/lang/FirstThread.h): New target.
5965         (nat_files): Added natFirstThread.o.
5966         (nat_headers): Added FirstThread.h.
5967         * include/jvm.h (_Jv_StartFirstThread): Don't declare.
5968         * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
5970         * java/lang/Thread.java (setName): Throw IllegalArgumentException
5971         if name is null.
5972         (Thread): Likewise.
5974         * java/lang/natThread.cc (start): Synchronize the thread.
5975         (stop): Synchronize the thread.
5977         * java/lang/ThreadDeath.java: Rewrote from scratch.
5979         * Makefile.in: Rebuilt.
5980         * Makefile.am (TGFRIEND): New macro.
5981         (java/lang/ThreadGroup.h): New target.
5982         ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
5983         native headers.
5984         ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
5986         * nogc.cc: Include config.h.
5988         * java/lang/ThreadGroup.java: Rewrote from scratch.
5990 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
5992         * java/lang/Thread.java (checkAccess): Only call in to security
5993         manager if it exists.
5994         (Thread): Don't check access when creating the first thread.  Add
5995         this thread to the appropriate ThreadGroup.
5997         * java/lang/natThread.cc (run_): Call uncaughtException method on
5998         the ThreadGroup.
6000         * java/lang/Runnable.java: Rewrote from scratch.
6001         * java/lang/Thread.java: Updated copyright comment to correct
6002         form.
6004 Wed Aug 26 15:16:18 1998  Warren Levy  <warrenl@cygnus.com>
6006         * java/util/Random.java: Rewritten.
6008 Wed Aug 26 14:25:39 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6010         * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6011         trailing 0 in array[].
6013 Wed Aug 26 12:21:06 1998  Anthony Green  <green@cygnus.com>
6015         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
6016         and RUNTESTFLAGS from AM_MAKEFLAGS.
6017         (SUBDIRS): Conditionally include testsuite.
6018         * Makefile.in: Rebuilt.
6020 Tue Aug 25 18:14:53 1998  Anthony Green  <green@cygnus.com>
6022         * java/lang/Object.h: Include java-assert.h.
6024 Tue Aug 25 17:33:57 1998  Anthony Green  <green@cygnus.com>
6026         * Makefile.am: Add testsuite directory.
6027         * configure.in: Build testsuite/Makefile.
6028         * Makefile.in, configure: Rebuilt.
6029         
6030 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6032         * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6033         * include/jvm.h (_Jv_StartFirstThread): Declare.
6035         * include/javaprims.h (java::lang): Added Exception,
6036         RuntimeException.
6038         * Makefile.in: Rebuilt.
6039         * Makefile.am (nat_headers): Added NullPointerException.h,
6040         InterruptedException.h, IllegalArgumentException.h, Exception.h,
6041         Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6042         (java/lang/Thread.h): New target.
6043         (TFRIEND): New macro
6045         * include/java-assert.h (JvFail): Use 0 and not NULL.
6047         * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6048         instead of assuming we are a friend of Thread.
6049         * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6050         instead of assuming we are a friend of Thread.
6052 Mon Aug 24 15:58:36 1998  Tom Tromey  <tromey@cygnus.com>
6054         * java/lang/natThread.cc: Rewrote from scratch.
6055         * java/lang/Thread.java: Rewrote from scratch.
6056         * prims.cc (JvRunMain): Use new Thread constructor.
6057         * include/javaprims.h (java::lang): Added InterruptedException.
6058         * Makefile.in: Rebuilt.
6059         * Makefile.am (nat_headers): Added java/lang/Thread.h.
6060         * java/lang/Thread.h: Removed.
6061         * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6062         * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6063         argument.
6064         * posix-threads.cc (JvPrivThreadJoin): Removed.
6065         (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6066         (really_start): Don't notify join_cond.
6067         (JvPrivThreadStart): Added `data' argument.
6068         * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6069         (JvPrivThreadJoin): Likewise.
6070         Use JvFail instead of sorry.
6071         (JvPrivThreadSuspend): Removed.
6072         (JvPrivThreadResume): Removed.
6073         * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6074         (JvPrivThreadJoin): Likewise.
6075         (JvPrivThreadSuspend): Use JvFail.
6076         (JvPrivThreadResume): Likewise.
6077         (JvPrivThreadSuspend): Removed.
6078         (JvPrivThreadResume): Likewise.
6079         * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6080         (JvPrivThread_t): Removed join_mutex, join_cond.
6081         Use JvFail instead of sorry.
6082         (JvPrivThreadSuspend): Removed.
6083         (JvPrivThreadResume): Likewise.
6085 Tue Aug 25 12:50:13 1998  Warren Levy  <warrenl@cygnus.com>
6087         * java/util/Observer.java: Rewritten
6088         * java/util/Enumeration.java: Rewritten
6090 Tue Aug 25 11:33:54 1998  Warren Levy  <warrenl@cygnus.com>
6092         * java/util/StringTokenizer.java: Rewritten
6093         * java/util/Stack.java: Added COPYRIGHT-TBD comment
6094         * java/util/Vector.java: Added COPYRIGHT-TBD comment
6095         * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6096         
6097 Fri Aug 21 10:14:22 1998  Tom Tromey  <tromey@cygnus.com>
6099         * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6100         not defined.
6102         * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6103         Include java-assert.h.
6104         * include/java-assert.h: New file.
6105         * prims.cc (_Jv_Abort): New function.
6106         Include java-assert.h, not assert.h.
6107         (_Jv_MonitorExit): Use JvAssert.
6108         (resolveConstants): Likewise.
6109         (processClass): Likewise.
6110         (JvRunMain): Assert that method is found.
6112         * configure: Rebuilt.
6113         * configure.in: Check for test subdir.
6114         * Makefile.in: Rebuilt.
6115         * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6117         * prims.cc (JvRunMain): Use NORM_PRIORITY.
6118         * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6120         * prims.cc (resolveConstants): Removed unused variables.
6121         (processClass): Likewise.
6123         * include/quick-threads.h (JvPrivThreadCurrent): Use
6124         coop_getspecific.
6125         * quick-threads.cc (destroy_data): New function.
6126         (JvPrivInitThreads): Create key.
6127         (JvPrivThreadKey): New global.
6128         (JvPrivThreadStart): Use coop_setspecific.
6130         * include/quick-threads.h, include/posix-threads.h,
6131         include/no-threads.h, no-threads.cc, quick-threads.cc,
6132         posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6134 Thu Aug 20 10:57:30 1998  Tom Tromey  <tromey@cygnus.com>
6136         * include/no-threads.h (JvPrivThreadInitData): Don't set
6137         JvPrivOnlyThread.
6139         * include/quick-threads.h (JvPrivCondWait): coop function now
6140         takes microseconds.
6141         (JvPrivThreadJoin): Likewise.
6143         * java/lang/Thread.h (Thread): Updated declaration of
6144         JvPrivThreadStart.
6145         * include/quick-threads.h, include/posix-threads.h: Updated
6146         declaration of JvPrivThreadStart.
6147         * include/no-threads.h (JvPrivThreadStart): Changed definition
6148         into declaration.
6149         * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6150         * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6151         * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6153 Wed Aug 19 14:53:59 1998  Tom Tromey  <tromey@cygnus.com>
6155         * quick-threads.cc (qthrow): New function.
6156         (JvPrivInitThreads): New function.
6157         (started): New global.
6158         (JvPrivThreadStart): Call coop_start if required.
6159         * include/quick-threads.h (JvPrivThreadCancel): Implement.
6160         (JvPrivThreadDestroy): Likewise.
6161         (JvPrivInitThreads): Removed.
6162         * include/posix-threads.h (JvPrivThreadCancel): Added error
6163         argument.
6164         * java/lang/natThread.cc (stop_): Pass exception to
6165         JvPrivThreadCancel.
6167 Tue Aug 18 12:58:22 1998  Tom Tromey  <tromey@cygnus.com>
6169         * include/javaprims.h (java::lang): Added
6170         IllegalArgumentException, IllegalThreadStateException, Math,
6171         NullPointerException, ThreadDeath.
6172         (java::util): Added Enumeration.
6174         * Makefile.in: Rebuilt.
6175         * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6177         * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6178         now public.
6179         (threadsv): Renamed from threads to avoid clash in C++ header.
6180         (groupsv): Likewise.
6181         * include/no-threads.h (JvPrivThreadStart): Removed.
6182         * no-threads.cc (JvPrivThreadStart): New function.
6183         * java/lang/Thread.java (Thread): New constructor for internal use.
6184         * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6185         (Thread): Declare constructor.
6186         * prims.cc (JvRunMain): Create the initial Thread and
6187         ThreadGroup.
6188         Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6189         * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6190         Removed `daemon' argument.
6192         * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6193         * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6194         a friend.
6195         * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6197         * Makefile.in: Rebuilt.
6198         * Makefile.am (INCLUDES): Include THREADINCS.
6200         * configure: Rebuilt.
6201         * configure.in: Recognize `qt' as a threads package.
6203 Thu Aug 20 12:42:32 1998  Warren Levy  <warrenl@cygnus.com>
6205         * java/util/Stack.java (pop): Null out topmost node for robustness.
6207 Thu Aug 20 12:30:30 1998  Warren Levy  <warrenl@cygnus.com>
6209         * java/util/Stack.java: Rewritten.
6210         * java/util/Vector.java (isEmpty): Simplified expression.
6212 Wed Aug 19 18:02:19 1998  Warren Levy  <warrenl@cygnus.com>
6214         * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6215         (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6217         * include/java-array.h (JvNewObjectArray): Created inline to
6218         _Jv_NewObjectArray.
6220         * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6221         JvNewObjectArray.
6222         
6223 Wed Aug 19 14:12:02 1998  Warren Levy  <warrenl@cygnus.com>
6225         * java/util/Vector.java: Rewritten.
6226         * java/io/Serializable.java: Created.
6228 Fri Aug 14 10:31:54 1998  Tom Tromey  <tromey@cygnus.com>
6230         * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6231         Infinity is 1/0, not 1/1.
6233         * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6235         * configure: Rebuilt.
6236         * configure.in: Removed duplicate AC_ARG_WITH.
6238 Thu Aug 13 14:51:47 1998  Warren Levy  <warrenl@cygnus.com>
6240         * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6241         soft_badarrayindex.
6242         (_Jv_InitClass): Renamed from soft_initialise_class.
6243         (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6244         (_Jv_CheckCast): Renamed from soft_checkcast.
6245         (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6246         (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6247         (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6248         * include/cni.h (JvInitClass): New function.
6249         (_Jv_InitClass): Renamed from soft_initialise_class.
6251 Wed Aug 12 10:07:04 1998  Tom Tromey  <tromey@cygnus.com>
6253         * configure: Rebuilt.
6254         * configure.in (CXX): Don't set.
6255         * Makefile.in: Rebuilt.
6256         * Makefile.am (AM_CXXFLAGS): New macro.
6258         * Makefile.in: Rebuilt.
6259         * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6260         nogc.o): New target.
6262         * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6263         GC.
6264         (mark_array): Likewise.
6266 Tue Aug 11 11:44:53 1998  Per Bothner  <bothner@cygnus.com>
6268         * java/lang/Class.h (JvMethod):  Removed some unused fields.
6269         (JvField.info):  Removed unused idx union variant.
6271 Mon Aug 10 15:00:14 1998  Tom Tromey  <tromey@cygnus.com>
6273         * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6274         match compiler.
6276 Mon Aug  3 16:13:54 1998  Per Bothner  <bothner@cygnus.com>
6278         * configure.in, configure (CXX):  Add -fvtable-thunks.
6280 Thu Jul 30 14:34:47 1998  Per Bothner  <bothner@cygnus.com>
6282         * java/lang/Object.java (finalize):  Move first.
6283         * java/lang/Object.h (_JvObjectPrefix):  New dummy base class.
6284         (Object):  Re-arrange order to match Object.java.
6286 Tue Jul 28 21:42:16 1998  Per Bothner  <bothner@cygnus.com>
6288         * prims.cc (hashUtf8String):  Fix - use new JavaSoft specification.
6289         * java/lang/natString.cc (hashChars):  Likewise.
6291         * prims.cc (RuntimeClass):  New macro.
6292         (JvRunMain):  Do soft_initialise_class of RuntimeClass before exit.
6294 Mon Jul 27 22:20:10 1998  Tom Tromey  <tromey@cygnus.com>
6296         * Makefile.in: Rebuilt.
6297         * Makefile.am (AM_MAKEFLAGS): New macro.
6299 Fri Jul 24 11:21:24 1998  Tom Tromey  <tromey@cygnus.com>
6301         * nogc.cc: Include <javaprims.h>.
6303         * Makefile.in: Rebuilt.
6304         * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6306 Thu Jul 23 11:38:40 1998  Tom Tromey  <tromey@cygnus.com>
6308         * exception.cc (terminate): Removed.
6309         (unexpected): Removed.
6311         * configure: Rebuilt.
6312         * configure.in: Handle case where target subdir is ".".
6314         * configure: Rebuilt.
6315         * configure.in: Compute COMPPATH based on --with-target-subdir
6316         option.  Added --with-target-subdir and --with-cross-host.  Use
6317         --with-cross-host to determine when a cross compiler is in use.
6319         * Makefile.in: Rebuilt.
6320         * Makefile.am (GJAVAH): Include COMPPATH.
6321         * configure: Rebuilt.
6322         * configure.in: Subst COMPPATH.
6324 Mon Jul 20 16:13:43 1998  Tom Tromey  <tromey@cygnus.com>
6326         * prims.cc (lockMutex): Removed.
6327         (unlockMutex): Likewise.
6328         (processClass): Lock the class using a JvSynchronize object.
6330 Fri Jul 17 11:27:48 1998  Tom Tromey  <tromey@cygnus.com>
6332         * java/lang/natString.cc (gc_calloc_fixed): Removed.
6333         (gc_free_fixed): Removed.
6334         (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6335         freeing old value of strhash.
6337         * exception.cc (_Jv_type_matcher): Cast first argument to
6338         _Jv_IsInstanceOf.
6340 Thu Jul 16 14:51:44 1998  Tom Tromey  <tromey@cygnus.com>
6342         * include/java-array.h (jstringArray): New type.
6343         * java/lang/natSystem.cc (setProperty): Removed.
6344         (initProperties): Directly call JvNewStringLatin1 for arguments.
6345         * java/util/natDate.cc: Include java/util/Date.h, not
6346         java-util.h.
6347         (setTime): Removed.
6348         * java/io/FileDescriptor.java (available): No longer static.
6349         * java/lang/natDouble.cc (Double): Removed class definition.
6350         * include/javaprims.h (java::lang::Number): Declare.
6351         (java::lang::NumberFormatException): Likewise.
6352         (java::io::FilenameFilter): Likewise.
6353         (java::lang::Character): Likewise.
6354         (java::lang::Error): Likewise.
6355         (java::lang::SecurityManager): Likewise.
6356         (java::util::Vector): Likewise.
6357         (java::io::FileNotFoundException): Likewise.
6358         (java::io::IOException): Likewise.
6359         (java::lang::NativeLang): Likewise.
6360         (java::lang::UnsatisfiedLinkError): Likewise.
6361         (java::util::StringTokenizer): Likewise.
6362         (java::io::InputStream, java::io::OutputStream): Likewise.
6363         (java::io::PrintStream, java::lang::SecurityException): Likewise.
6364         (java::util::Hashtable): Likewise.
6365         * Makefile.in: Rebuilt.
6366         * Makefile.am (nat_headers): Added java/lang/Double.h,
6367         java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6368         (MOSTLYCLEANFILES): Added nat_headers.
6369         * include/jvm.h: Moved many defines, declarations, and functions
6370         to java/lang/Class.h.
6371         (struct JvSyncInfo): Moved to java/lang/Object.h.
6372         (UTF8_GET): Moved to java/lang/String.h.
6374 Wed Jul 15 09:02:31 1998  Tom Tromey  <tromey@cygnus.com>
6376         * java/io/io-defs.h: Don't include java-io.h.
6377         * include/java-io.h: Removed.
6378         * include/javaprims.h: Include java::io.
6380 Tue Jul 14 17:04:26 1998  Tom Tromey  <tromey@cygnus.com>
6382         * include/java-io.h (File): Removed
6383         (FileDescriptor): Likewise.
6385         * java/io/io-defs.h: Include java/io/File.h and
6386         java/io/FileDescriptor.h.
6388         * Makefile.in: Rebuilt.
6389         * Makefile.am (GJAVAH): New macro.
6390         (.class.h): New rule.
6391         (SUFFIXES): Added .h.
6392         (nat_headers): New macro.
6393         ($(nat_headers)): New target.
6394         (BUILT_SOURCES): Added nat_headers.
6396         * include/java-util.h: Removed.
6398 Fri Jul  3 10:17:14 1998  Tom Tromey  <tromey@cygnus.com>
6400         * include/java-io.h: Changed to avoid java-lang.h.
6401         * java/lang/natThread.cc: Include java/lang/Thread.h, not
6402         java-lang.h.
6403         * java/lang/natSystem.cc: Include java/lang/System.h, not
6404         java-lang.h.
6405         * java/lang/natString.cc: Include java/lang/String.h, not
6406         java-lang.h.
6407         * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6408         java-lang.h.
6409         * java/lang/natClass.cc: Include java/lang/Class.h, not
6410         java-lang.h.
6411         * java/lang/natDouble.cc: Include java/lang/Object.h, not
6412         java-lang.h.
6413         * java/lang/natObject.cc: Include java/lang/Object.h, not
6414         java-lang.h.
6415         * exception.cc: Don't include java-lang.h.
6416         * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6417         * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6418         * nogc.cc: Don't include java-lang.h.
6419         * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6420         * prims.cc (processClass): Don't use `init_type'; just cast to
6421         type directly.
6422         Include java/lang/Class.h and jvm.h, not java-lang.h.
6423         (JvAllocObject): Wrote single-argument version.
6424         (PrimClass): Inherit from Class.
6425         (initPrimClass): Removed.
6426         * include/java-lang.h: Removed.
6427         * include/jvm.h: Declare struct _dispatchTable.
6428         * include/cni.h: Don't declare _Jv_MonitorEnter,
6429         _Jv_MonitorExit, struct _dispatchTable.
6430         * include/javaprims.h: Moved all typedefs here, from cni.h.
6431         * java/lang/Class.h: New file.
6432         * include/java-array.h: New file.
6433         * java/lang/Object.h: New file.
6435         * prims.cc (classFromSig): Now static.
6437 Wed Jul  1 12:28:48 1998  Tom Tromey  <tromey@cygnus.com>
6439         * include/cni.h: Don't mention soft_new.
6440         * include/java-lang.h (Object): Don't mention soft_new.  Mention
6441         _Jv_NewPrimArray, not newPrimArray.
6442         * prims.cc (soft_new): Removed.
6443         (_Jv_NewArray): Renamed from soft_newarray.
6444         (soft_anewarray): Use JvNewObjectArray.
6445         (newArray): Likewise.
6446         (newRefArray): Removed.
6447         (_Jv_NewPrimArray): Renamed from newPrimArray.
6448         (equalUtf8Consts): Now static.
6449         (soft_instanceof): Removed.
6450         * java/lang/natDouble.cc (doubleToString): Now static.
6452         * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6453         java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6454         Removed.
6456 Tue Jun 30 10:54:57 1998  Tom Tromey  <tromey@cygnus.com>
6458         * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6459         _Jv_MonitorExit.
6460         * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6461         _Jv_MonitorExit.
6462         * include/no-threads.h (JvPrivMutexLock): Always return -1.
6463         (JvPrivMutexUnlock): Likewise.
6464         * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6465         Return value now jint.
6466         (_Jv_MonitorExit): Renamed from soft_monitorexit.  Return value
6467         now jint.
6469         * Makefile.in: Rebuilt.
6470         * Makefile.am: Don't allow `jV' names.
6471         (maintainer-check): Depend on libjava.a.
6472         * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6474         * Makefile.in: Rebuilt.
6475         * Makefile.am (NM): New macro.
6476         (maintainer-check): New target.
6478         * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6480         * configure: Rebuilt.
6481         * configure.in: Use --enable-threads, not --enable-gc.  Fix
6482         documentation for --enable-threads.  Changed option to work like
6483         identical option in gcc/configure.
6485 Mon Jun 29 10:44:29 1998  Tom Tromey  <tromey@cygnus.com>
6487         * boehm.cc (mark_array): Use JvGetArrayLength.
6489 Thu Jun 25 11:56:21 1998  Per Bothner  <bothner@cygnus.com>
6491         * exception.cc:  New file (mostly written by Andrew MacLeod),
6492         exception handling support.
6493         * Makefile.am (libjava_a_SOURCES), Makefile.in:  Add exception.cc.
6494         Remove -fexceptions - it is now the default.
6496         * prims.cc (JvIsInstanceOf):  Renamed to _Jv_IsInstanceOf.
6497         (JvAllocObject):  Renamed to _Jv_AllocObject.
6498         (soft_athrow):  Removed.  Replaced by _Jv_Throw in exception.cc.
6499         (loadClass):  Renamed to _Jv_FindClass.
6500         * include/cni.h (JvIsInstanceOf, JvAllocObject).  Make into
6501         inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6502         * include/java-lang.h (JvGetArrayLength):  New CNI function.
6503         * include/jvm.h (_Jv_FindClass):  Added declaration.
6505         * java/lang/natString.cc:  More implementation if COMPACT_STRINGS.
6507 Wed Jun 24 16:41:30 1998  Per Bothner  <bothner@cygnus.com>
6509         * java/lang/natClass.cc (getName):  Add implementation.
6510         * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6512 Tue Jun 23 15:56:24 1998  Tom Tromey  <tromey@cygnus.com>
6514         * Makefile.in: Rebuilt.
6515         * Makefile.am (.class.o): Added -fexceptions.
6517 Mon Jun 15 14:54:06 1998  Tom Tromey  <tromey@cygnus.com>
6519         * configure: Rebuilt.
6520         * configure.in: Don't check for __nanosleep.
6521         * posix-threads.cc (nanosleep): Never define.
6523 Sun Jun 14 22:37:23 1998  Tom Tromey  <tromey@cygnus.com>
6525         * posix-threads.cc (JvPrivCondWait): Fixed computation of
6526         timespec.
6528 Thu Jun 11 10:51:44 1998  Tom Tromey  <tromey@cygnus.com>
6530         * java/lang/natThread.cc (enumerate): Uncommented.
6531         * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6532         (interrupt): Call it.
6534 Wed Jun 10 15:57:16 1998  Tom Tromey  <tromey@cygnus.com>
6536         * configure: Rebuilt.
6537         * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6539 Mon Jun  8 12:04:11 1998  Tom Tromey  <tromey@cygnus.com>
6541         * include/no-threads.h (JvPrivThreadInterrupt): New method.
6542         * include/java-lang.h (Thread): Added `interrupted_' method.
6543         * java/lang/Thread.java (interrupted_): New method.
6544         * java/lang/natThread.cc (join): Possibly throw interrupted
6545         exception after join finishes.
6546         (interrupted_): New method.
6547         * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6548         join_cond.
6549         (JvPrivThreadJoin): New function.
6550         (really_start): Notify all threads waiting for this thread.
6551         (struct starter): Added `data' member.
6552         (JvPrivThreadStart): Set it.
6553         * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6554         join_cond.
6555         (JvPrivThreadJoin): No longer inline.
6556         (JvPrivThreadInterrupt): New function.
6558         * include/no-threads.h (JvPrivThreadSleep): Removed.
6559         * posix-threads.cc (JvPrivThreadSleep): Removed.
6561 Fri Jun  5 13:51:25 1998  Tom Tromey  <tromey@cygnus.com>
6563         * configure: Rebuilt.
6564         * configure.in (THREADOBJS): Initialize to no-threads.o in
6565         no-threads case.
6566         * posix-threads.cc (key): New global.
6567         (JvPrivInitThreads): New function.
6568         (really_start): Set thread-specific data to point to object.
6569         (JvPrivThreadStart): Added `daemon' argument.
6570         (JvPrivThreadSleep): Added `data' argument.
6571         * include/posix-threads.h (JvPrivInitThreads): Removed
6572         implementation.
6573         (JvPrivThreadCurrent): New function.
6574         * include/no-threads.h (JvPrivThreadInitData): Initialize
6575         JvPrivOnlyThread.  Added `thread' argument.
6576         (JvPrivThreadCurrent): New function.
6577         (JvPrivThreadStart): Added `daemon' argument.
6578         * no-threads.cc: New file.
6579         * java/lang/natThread.cc (init_data): New function.
6580         (isAlive): Removed.
6581         (start): Set `alive' member.
6582         (stop_): Clear `alive' member.
6583         (destroy): Likewise.
6584         (currentThread): Implemented.
6585         (start): Pass `daemon' argument to JvPrivThreadStart.
6586         (sleep): Rewrote.
6587         * include/java-lang.h (Thread): Added `alive', `tsync' members.
6588         (Thread): Added `init_data' method.
6589         * java/lang/Thread.java (alive, data): New instance variables.
6590         (init_data): New private method.
6591         (isAlive): No longer native.
6593 Thu Jun  4 14:09:32 1998  Tom Tromey  <tromey@cygnus.com>
6595         * include/java-lang.h (JvRunMain): Declare.
6596         * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6597         * prims.cc (JvRunMain): New function.
6598         (main_signature, main_name): New globals.
6600         * boehm.cc (mark_array): Use `elements' function and not
6601         operator[] on jarray.
6603         * posix-threads.cc: Include <config.h>.  Define nanosleep if
6604         required.
6606         * configure: Rebuilt.
6607         * configure.in: Check for _nanosleep.
6609         * configure: Rebuilt.
6610         * configure.in: Check for pthread_mutexattr_settype.
6612         * include/cni.h (class JvSynchronize): New class.
6613         * java/lang/Thread.java (sleep): Throws InterruptedException.
6614         (join): Throws InterruptedException.
6615         (resume): Not native.
6616         (resume_): New method.
6617         (start): Now synchronized.
6618         (stop_): New method.
6619         (Thread): Synchronize when accessing threadNumber.
6620         (misc): Removed.
6621         * java/lang/natThread.cc (throwException): New macro.
6622         (sleep): Throw InterruptedException.
6623         (resume_): Renamed.
6624         (stop_): Renamed.
6625         * include/java-lang.h (Runtime): Added interrupted().
6627         * boehm.cc (call_finalizer): Correctly initialize jobj.
6628         * include/java-lang.h (Runtime): Added getRuntime() and exit().
6630         * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6631         `#elseif'.
6633         * configure: Rebuilt.
6634         * configure.in: Added support for --disable-threads.
6635         * include/no-threads.h: New file.
6637         * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6639         * Makefile.in: Rebuilt.
6640         * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6641         (libjava_a_DEPENDENCIES): Added THREADOBJS.
6642         (libjava_a_LIBADD): Added THREADOBJS.
6643         * configure: Rebuilt.
6644         * configure.in: Added --with-threads option.
6645         * posix-threads.cc: New file.
6646         * include/posix-threads.h: New file.
6647         * include/java-lang.h (Object): Added static member sync_mutex,
6648         member sync_info, method init_mutex.
6649         (struct JvSyncInfo): New struct.
6650         Include "java-threads.h".
6651         * prims.cc (soft_monitorenter): Wrote.
6652         (soft_monitorexit): Likewise.
6653         * java/lang/natObject.cc (init_mutex): New method.
6654         (notify): Wrote.
6655         (notifyAll): Wrote.
6656         (wait): Wrote.
6657         (sync_mutex): Define.
6658         Include "java-threads.h".
6660 Tue Jun  2 15:24:33 1998  Per Bothner  <bothner@cygnus.com>
6662         * include/java-lang.h (JvPrivInitGC):  Make extern "C".
6663         * include/jvm.h (JvConvertArgv, JvNewObjectArray):  Likewise.
6665 Mon Jun  1 11:21:34 1998  Per Bothner  <bothner@cygnus.com>
6667         * include/cni.h (jbyte etc):  Re-define using __java_byte etc.
6668         Added extern "Java" in places to tell G++ Object is a "Java" type.
6669         Other minor renaming and fixes.
6670         * include/java-io.h (FileDescriptor):  Add friend class declarations.
6671         G++ no longer allows non-Java types in method parameters and results
6672         of Java classes.  Converted most offending methods to friends.
6673         * java/lang/natDouble.cc (Double::toString):  Rename to doubleToString.
6674         * java/lang/natSystem.cc (setProperty):  Make friend.
6675         * java/lang/natString.cc, include/java-lang.h (String):  Rename
6676         methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6677         * include/java-lang.h (JArray):  Remove getData and eoprator[].
6678         Add elements friend function instead.
6679         * java/lang/natSystem.cc (arraycopy):  Use elements function.
6680         * java/io/natFileDescriptor.cc (read, write):  Likewise.
6681         * include/java-lang.h (Object):  Remove unused make method.
6682         (System::setProperty(char*,char*)): Turn into friend function.
6683         (Class):  Rename newObject by JvAllocObject.
6684         * prims.cc:  Update to use JvAllocObject, and elements.
6686         * java/lang/natDouble.cc:  Fix double -> jdouble.
6688 Wed May 20 16:50:06 1998  Per Bothner  <bothner@cygnus.com>
6690         * Makefile.am (INCLUDES):  Add -Iinclude (to get config.h).
6692 Mon May 18 13:46:02 1998  Tom Tromey  <tromey@cygnus.com>
6694         * java/lang/natRuntime.cc (finalize_on_exit): Define.
6695         * include/java-lang.h (Runtime): finalize_on_exit and
6696         runFinalizersOnExit now static.
6697         * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6698         match JDK 1.2b3.
6699         (finalize_on_exit): Now static.
6701         * boehm.cc (mark_obj): Get class using getClass() method on
6702         object.
6703         (_dispatchTable): Removed.
6705 Mon May 11 15:26:52 1998  Tom Tromey  <tromey@cygnus.com>
6707         * java/io/natFileDescriptor.cc (open_read): Only call open if
6708         HAVE_OPEN defined.
6709         (open_write): Likewise.
6711         * Makefile.in: Rebuilt.
6712         * Makefile.am ($(nat_files)): Depend on config.h.
6714 Thu May  7 16:22:00 1998  Tom Tromey  <tromey@cygnus.com>
6716         * prims.cc (ObjectClass): Now a macro; updated for new class name
6717         mangling scheme.
6718         (StringClass): Likewise.
6719         (ClassClass): Likewise.
6721 Wed May  6 00:26:44 1998  Tom Tromey  <tromey@cygnus.com>
6723         * java/io/natFileDescriptor.cc (available): Do nothing unless
6724         HAVE_SELECT defined.
6725         * java/util/natDate.cc (setTime): Conditional on
6726         HAVE_GETTIMEOFDAY.
6727         (toString): Conditional on HAVE_TIME.
6728         * aclocal.m4, configure: Rebuilt.
6729         * acinclude.m4: New file.
6730         * configure.in: Don't actually call AM_EXEEXT.  Call
6731         AC_CANONICAL_HOST.  Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX.  Added
6732         --with-target-subdir option.  Check for select and open
6733         functions.
6735 Tue May  5 00:10:45 1998  Tom Tromey  <tromey@cygnus.com>
6737         * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6738         (call_finalizer): Likewise.
6739         * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6740         * prims.cc (newObject): Pass actual method pointer to
6741         JvPrivRegisterFinalizer.
6742         * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6743         (JvPrivRegisterFinalizer): Changed interface.
6745         * Makefile.in: Rebuilt.
6746         * Makefile.am (MOSTLYCLEANFILES): New macro.
6747         (CLEANFILES): Removed javao_files.
6749 Fri May  1 22:52:24 1998  Tom Tromey  <tromey@cygnus.com>
6751         * nogc.cc: New file.
6752         * Makefile.in: Rebuilt.
6753         * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6754         (EXTRA_libjava_a_SOURCES): New macro.
6755         (libjava_a_SOURCES): Removed boehm.cc.
6756         (libjava_a_DEPENDENCIES): Added GCOBJS.
6757         (libjava_a_LIBADD): Likewise.
6758         * configure: Rebuilt.
6759         * configure.in: Added code for --enable-gc=TYPE.
6761 Thu Apr 30 14:54:00 1998  Tom Tromey  <tromey@cygnus.com>
6763         * boehm.cc (mark_array): Don't further dereference pointer from
6764         array.
6766         * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6767         * Makefile.in: Rebuilt.
6768         * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6769         one for boehm-gc build directory.
6771 Wed Apr 29 09:45:19 1998  Tom Tromey  <tromey@cygnus.com>
6773         * include/java-lang.h (finalize_on_exit): New instance variable in
6774         java::lang::Runtime.
6775         (runFinalizersOnExit): New method.
6776         * java/lang/Runtime.java (finalize_on_exit): New instance
6777         variable.
6778         (runAllFinalizers_): New private method.
6779         (runFinalizersOnExit): New method.
6780         * boehm.cc (JvPrivRunFinalizers): New function.
6781         (JvPrivRunAllFinalizers): Likewise.
6782         (JvPrivRunGC): Likewise.
6783         * java/lang/natRuntime.cc: Include "jvm.h".
6784         (gc): Call JvPrivRunGC.
6785         (runFinalization): Call JvPrivRunFinalizers.
6786         (runFinalizersOnExit): New method.
6787         (exit_): Call JvPrivRunAllFinalizers if required.
6788         * include/jvm.h: Declare JvPrivRunFinalizers,
6789         JvPrivRunAllFinalizers, JvPrivRunGC.
6791 Tue Apr 28 15:06:50 1998  Tom Tromey  <tromey@cygnus.com>
6793         * boehm.cc (JvPrivRegisterFinalizer): New function.
6794         (call_finalizer): Likewise.
6795         * include/jvm.h: Declare JvPrivRegisterFinalizer.
6796         * prims.cc (finalize_name): New global.
6797         (newObject): Just call other newObject.
6798         (newObject): Register finalizer if it exists.
6800 Mon Apr 27 12:47:03 1998  Tom Tromey  <tromey@cygnus.com>
6802         * prims.cc (gc_malloc): Removed.
6803         (makeUtf8Const): Use JvPrivAllocBytes.
6804         (lookupArray): Likewise.
6805         (newPrimArray): Likewise.
6806         (JvNewObjectArray): Use JvPrivAllocArray.
6807         (newObject): Use JvPrivAllocObj.
6808         (newObject): Likewise.
6809         Changed Method -> JvMethod everywhere.
6810         Changed Field -> JvField everywhere.
6811         * include/java-lang.h (Object): Changed type of `fields' to
6812         JvField*.
6813         (jmethodID, jfieldID): New typedefs.
6814         (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6815         friends.
6816         * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6817         from java-lang.h.
6818         (METHOD_NATIVECODE): Moved from java-lang.h.
6819         (class JvField): New class.
6820         (JvGetFirstInstanceField): New function.
6821         (JvFieldIsRef): Likewise.
6822         (JvGetObjectField): Likewise.
6823         (JvNumInstanceFields): Likewise.
6825 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
6827         * boehm.cc: New file.
6828         * Makefile.in: Rebuilt.
6829         * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6830         (INCLUDES): Added -I options to find boehm-gc files.
6832 Wed Apr 29 15:11:37 1998  Tom Tromey  <tromey@cygnus.com>
6834         * configure: Rebuilt.
6835         * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6837         * Makefile.in: Rebuilt.
6838         * Makefile.am (nat_files): New macro.
6839         (libjava_a_DEPENDENCIES): Use it.
6840         (libjava_a_LIBADD): Likewise.
6841         ($(nat_files)): New static pattern rule.
6842         (class_files): Run separate find to find .class files.
6843         (javao_files): Compute based on class_files.
6844         (BUILT_SOURCES): New macro.
6846 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
6848         * Makefile.am (java_files): New macro.
6849         (class_files): Likewise.
6850         (javao_files): Likewise.
6851         (libjava_a_DEPENDENCIES): Include $(javao_files).
6852         (libjava_a_LIBADD): Likewise.
6853         (classes.stamp): Depend on $(java_files); only recompile changed
6854         files.
6855         (here): New macro.
6856         (CLEANFILES): Don't run find; use macros.  Don't mention
6857         libjava.a.
6858         (.class.o): New target.
6859         (compiled.stamp): Removed.
6861 Thu Apr 23 14:17:43 1998  Per Bothner  <bothner@cygnus.com>
6863         * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6864         LineNumberReader}>java:  Newly-implemented standard classes.
6866 Thu Apr 23 14:02:04 1998  Tom Tromey  <tromey@cygnus.com>
6868         * Makefile.in: Rebuilt.
6869         * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6871         * Makefile.in: Rebuilt.
6872         * Makefile.am (hack): New macro.
6873         (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6875 Wed Apr 22 16:49:57 1998  Tom Tromey  <tromey@cygnus.com>
6877         * include/config.h.in: New file.
6878         * include/config.h: Removed.
6879         * acconfig.h: New file.
6880         * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6881         (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6882         libjava_a_LIBADD): New macros.
6883         (INCLUDES): New macro.
6884         (prims.o): Removed.
6885         (.cc.o): Removed.
6886         (SUFFIXES): Removed.
6887         (all): Removed.
6888         (libjava.a): Removed.
6890         * configure: Rebuilt.
6891         * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6892         Look for headers and functions we require.  Create
6893         include/config.h.
6895 Mon Apr 20 22:25:00 1998  Per Bothner  <bothner@cygnus.com>
6897         * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6898         soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6899         soft_lookupinterfacemethod):  New functions.
6900         (PrimClass):  Actually initialize the primitive classes.
6901         (Utf8Const2JavaString):  Moved to java/lang/natString.cc.
6903         * include/java-util.h:  Removed java::util definition.
6904         * include/cni.h:  Moved java::util here and added Properties.
6905         Added more function prototypes.
6906         * include/java-lang.h:  Added mroe methods and friend declarations.
6907         * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME):  Added.
6908         * include/jvm.h (strLengthUtf8):  Add declaration.
6909         
6910         * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6911         New static field.
6912         * java/lang/{Byte,Short,Void}.java:  New classes.
6913         * java/lang/Character.java (isJavaIdentifierStart,
6914         JavaIdentifierPart):  New static methods.
6915         * java/lang/Number.java (byteValue, shortValue):  New methods.
6917         * java/lang/String.java (intern, hashCode):  Make native.
6918         * java/lang/natString.cc:  New file.  Handle the string pool.
6919         * Makefile.am:  Build natString.o.  Use CXXFLAGS.
6921         * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6922         isInstance, isAssignableFrom), java/lang/natClass.cc:  New methods.
6923         * java/lang/Throwable.java (<init>):  Don't fillInStackTrace yet.
6924         * java/lang/System.java (setProperty):  New private method.
6925         (initProperties):  Take argument, and make native.
6926         * java/lang/natSystem.cc:  Implement (preliminary) initProperties.
6927         (currentTimeMillis):  Make more robust.
6929         * java/io/{Writer,PrintWriter,OutputStreamWriter}.java:  New classes.
6930         * java/io/UnsupportedEncodingException.java:  New exception class.
6932         * java/io/DataInputStream.java:  Don't use a PushbackInputStream.
6933         * java/io/FilterOutputStream.java:  Add missing 'extends OutputStream'.
6934         
6935 Fri Apr 10 11:52:10 1998  Per Bothner  <bothner@cygnus.com>
6937         * Makefile.am (CXXFLAGS, JC1FLAGS):  New macro.
6938         * prims.cc:  Added bunch of stuff.
6939         * include/cni.h:  Added various definitions.
6940         * include/java-lang.h:  Added Method, various friends, some macros.
6942         * include/config.h:  Added HAVA_MEMMOVE and HAVE_MEMCPY.
6943         * java/lang/System.java (arraycopy):  Make native.
6945 Sun Apr  5 23:58:51 1998  Per Bothner  <bothner@cygnus.com>
6947         * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
6948         natSystem.cc,natThread.cc}:  Native (C++) methods for various classes.
6949         * java/lang/ClassLoader.java (defineClass):  Now takes extra argument.
6950         * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
6951         Make native.
6952         * java/lang/Runtime.java:  Declare methods as native instead of
6953         using NativeLang.
6954         * java/lang/SecurityManager.java (getClassContext):  Just throw Error.
6955         * java/lang/System.java:  Comment out some stuff, for now.
6956         * java/lang/Thread.java:  Re-write.  Use native methods.
6957         * java/lang/NativeLang.java:  Remove most of it.
6958         
6959         * java/util/natDate.cc:  Native (C++) methods for Date.
6960         * java/util/{Calendar.java,GregorianCalendar.java}:  New classes.
6961         * java/util/Date.java:  Complete re-write.
6963         * java/io/io-defs.h:  New header file.
6964         * java/io/FileDescriptor.java:  Add a bunch of private methods,
6965         mostly moved from NativeIO.java and natNativeIO.cc.
6966         * java/io/{natFile.cc,java/io/natFileDescriptor.cc}:  New native code.
6967         * java/io/File.java:  Use new code.
6968         * java/io/{FileInputStream.java.FileOutputStream.java,
6969         RandomAccessFile.java}:  Use new private FileDescriptor methods.
6970         * java/io/NativeIO.java:  Removed, no longer used.
6972         * java/io/StreamTokenizer.java (numericChars):  Make char array.
6974         * include/*.h:  Various header files used by the C++ native code.
6976         * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
6977         New autoconf+automake-based setup.
6978         * prims.cc:  New file for Java "primitives".