* class.c (check_field_decls): Split out from ...
[official-gcc.git] / libjava / ChangeLog
blob36559ba87062d8fb1e44131c422219ca74eabee0
1 1999-12-08  Tom Tromey  <tromey@cygnus.com>
3         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
4         where no recursive mutexes exist.  Fixes PR libgcj/117.
6 1999-12-05  Anthony Green  <green@cygnus.com>
8         * include/jvm.h: Declare many functions with
9         __attribute__((__malloc__)).
10         * gcj/javaprims.h: Ditto.
12 Thu Dec  2 17:26:47 1999  Anthony Green  <green@cygnus.com>
14         * THANKS: Giving credit where credit is due.
16 1999-12-02  Bryce McKinlay  <bryce@albatross.co.nz>
18         * java/net/ServerSocket.java (ServerSocket): Bind to any interface 
19         if bindAddr is null.
20         * java/lang/natString.cc (equalsIgnoreCase): return false if
21         anotherString is null.
22         * java/lang/Boolean.java (valueOf): return FALSE if argument is
23         null.
25 1999-11-30  Tom Tromey  <tromey@cygnus.com>
27         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
28         mutex to initialize.  Initialize `count' if required.
29         Fixes PR libgcj/98.
31 1999-11-27  Per Bothner  <per@bothner.com>
33         * exception.cc:  Remove prototype declarations for malloc and free.
34         These clash with recent versions of glibc, which specifies `throws ()'
35         when __cplusplus is defined.  Instead, #include <stdlib.h>.
37 1999-11-24  Tom Tromey  <tromey@cygnus.com>
39         * prims.cc (_Jv_NewObjectArray): Use
40         _Jv_GetArrayElementFromElementType.
41         (_Jv_NewPrimArray): Likewise.
42         * java/lang/natObject.cc (clone): Use
43         _Jv_GetArrayElementFromElementType instead of sizeof.
44         * java/lang/natSystem.cc (arraycopy): Use
45         _Jv_GetArrayElementFromElementType.
46         * include/jvm.h (_Jv_GetArrayElementFromElementType): New
47         function.
49 1999-11-23  Bryce McKinlay  <bryce@albatross.co.nz>
51         * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in
52         Exception messages. PR java.net/57.
53         (bind): set SO_REUSEADDR before bind.
54         * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer
55         overruns. PR java.net/57.
57 1999-11-19  Tom Tromey  <tromey@cygnus.com>
59         * Makefile.am (DIVIDESPEC): Removed.
60         (EXCEPTIONSPEC): Removed.
62 1999-11-19  Andrew Haley  <aph@cygnus.com>
64         * Makefile.am (JCFLAGS): Add -L$(here)
65         (JC1FLAGS): Ditto.
66         * Makefile.in: Rebuild.
68 1999-11-18  Tom Tromey  <tromey@cygnus.com>
70         * java/lang/natDouble.cc: Include <config.h>.
72         * include/config.h.in: Rebuilt.
73         * acconfig.h (SJLJ_EXCEPTIONS): Undefine.
74         * configure.host: Force -fsjlj-exceptions on non-sparc, non-x86
75         targets.
76         * configure: Rebuilt.
77         * configure.in (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
78         requested by configure.host.  Don't put `-D' option into
79         libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
81         * configure: Rebuilt.
82         * configure.in (EXCEPTIONSPEC): Changed `_' to `-' in
83         sjlj-exceptions.
85 1999-11-18  Andrew Haley  <aph@cygnus.com>
87         * Makefile.am: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
88         (AM_CFLAGS): remove SJLJ_EXCEPTIONS.
89         (JC1FLAGS): Ditto.
90         * Makefile.in: Rebuild
91         * acconfig.h: remove SJLJ_EXCEPTIONS
92         * configure.in: rename SJLJ_EXCEPTIONS to EXCEPTIONSPEC.
93         Do not AC_DEFINE SJLJ_EXCEPTIONS.
94         * libgcj.spec.in: Add EXCEPTIONSPEC to jc1.
95         * gcj/Makefile.in, include/Makefile.in: rebuild.
96         * include/config.h.in: remove SJLJ_EXCEPTIONS.
97                 
98 1999-11-18  Andrew Haley  <aph@cygnus.com>
100         * gij.cc (main): Rename label to prevent conflict.
102         * exception.cc (_Jv_type_matcher): Don't check the table if we're
103         using setjmp/longjmp exceptions: there isn't one.
105 1999-11-17  Andrew Haley  <aph@cygnus.com>
107         * exception.cc (_Jv_type_matcher): Ignore null exception tables.
108         (_Jv_Throw ): Add SJLJ_EXCEPTIONS.
109         (__sjthrow): Add declaration.
110         * Makefile.am (JCFLAGS): Add SJLJ_EXCEPTIONS
111         (JC1FLAGS): Ditto
112         (AM_CFLAGS): Ditto
113         (AM_CXXFLAGS): Ditto
114         * Makefile.in: Rebuild
115         * acconfig.h: Add SJLJ_EXCEPTIONS
116         * configure.in: Add SJLJ_EXCEPTIONS
117         * configure: Rebuild.
118         * gcj/Makefile.in: Rebuild.
119         * gcj/cni.h: Add support for sjlj-exceptions.
120         * gcj/javaprims.h: Add _Jv_Sjlj_Throw.
121         * include/Makefile.in: Rebuild.
122         * include/default-signal.h: Add support for sjlj-exceptions.
124 1999-11-18  Tom Tromey  <tromey@cygnus.com>
126         * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
128         * java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
129         minus 1.
130         (method_cache): Made larger.
132 1999-11-11  Tom Tromey  <tromey@cygnus.com>
134         * posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
135         initializing mutex.  Initialize `count' when required.
137 1999-11-07  Anthony Green  <green@trip.cygnus.com>
139         * java/util/zip/ZipFile.java: Compute the offset of the ZipEntry
140         data correctly.
142 1999-11-05  Tom Tromey  <tromey@cygnus.com>
144         * java/lang/natThread.cc (destroy): Removed incorrect comment.
146 1999-11-05  Jeff Sturm  <jsturm@sigma6.com>
148         * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.
149         * prims.cc (parse_heap_size): Use end, not spec.  Use 1024
150         multipler for `k'.
152 1999-11-05  Tom Tromey  <tromey@cygnus.com>
154         * java/lang/natThread.cc (stop): Removed argument name.
156         * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer
157         `private'; now has default access.
158         * Makefile.in: Rebuilt.
159         * Makefile.am (java/lang/ThreadGroup.h): Removed.
161 1999-11-04  Tom Tromey  <tromey@cygnus.com>
163         * java/lang/natClass.cc (method_cache_count): Removed.
164         (_Jv_FindMethodInCache): Don't loop looking for the hash entry.
165         (_Jv_AddMethodToCache): Don't loop.
167         * configure.in: Removed `qt' threads case.
168         * include/quick-threads.h: Removed.
169         * quick-threads.cc: Removed.
171         * include/quick-threads.h (_Jv_ThreadCancel): Removed.
172         (_Jv_ThreadDestroy): Likewise.
173         * include/no-threads.h (_Jv_ThreadCancel): Removed.
174         (_Jv_ThreadDestroy): Likewise.
175         * include/posix-threads.h (struct _Jv_Thread_t): Removed
176         `exception' field.
177         (_Jv_ThreadCancel): Removed decl.
178         (_Jv_ThreadDestroy): Removed.
179         * posix-threads.cc (_Jv_ThreadCancel): Removed.
180         (throw_cleanup): Removed.
181         (really_start): Don't push or pop cleanup.
182         (_Jv_ThreadInitData): Don't initialize `exception' field.
183         * java/lang/Thread.java (stop): Officially unimplemented.
184         * java/lang/natThread.cc (stop): Officially unimplemented.
186 1999-11-02  Bryce McKinlay  <bryce@albatross.co.nz>
188         * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h 
189         instead.
191 1999-11-02  Tom Tromey  <tromey@cygnus.com>
193         * boehm.cc: Don't include boehm-config.h.
195 1999-11-01  Tom Tromey  <tromey@cygnus.com>
197         * boehm.cc (_Jv_InitGC): Set GC_java_finalization.
198         (sum_blocks): Removed.
199         (_Jv_GCFreeMemory): Use GC_get_free_bytes.
201 1999-11-01  Bryce McKinlay  <bryce@albatross.co.nz>
203         * java/io/PrintStream (PrintStream): Fix illegal usage of "this" 
204           before "super".
205         * java/io/OutputStreamWriter (OutputStreamWriter): ditto.
206         * java/io/InputStreamReader (InputStreamReader): ditto.
208 1999-10-22  Tom Tromey  <tromey@cygnus.com>
210         * Makefile.in: Rebuilt.
211         * Makefile.am (java/lang/ClassLoader.h): New target.
212         * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
213         to `redirect'.
215         * include/java-props.h (_Jv_Compiler_Properties): Changed
216         declaration.
217         * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
218         * include/jvm.h (_Jv_GCSetInitialHeapSize,
219         _Jv_GCSetMaximumHeapSize): Declare.
220         (JvRunMain, _Jv_RunMain): Declare.
221         (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
222         * nogc.cc (_Jv_GCSetInitialHeapSize): New function.
223         (_Jv_GCSetMaximumHeapSize): Likewise.
224         * boehm.cc (_Jv_GCSetInitialHeapSize): New function.
225         (_Jv_GCSetMaximumHeapSize): Likewise.
226         * prims.cc (parse_heap_size): New function.
227         (_Jv_SetInitialHeapSize): Likewise.
228         (_Jv_SetMaximumHeapSize): Likewise.
229         (_Jv_Compiler_Properties): New global.
230         * gij.cc (help): New function.
231         (version): Likewise.
232         (heap_size): Likewise.
233         (heap_max_size): Likewise.
234         (main): Parse arguments.  Set _Jv_Compiler_Properties.
235         Include <config.h>, <java-props.h>.
236         (_Jv_Compiler_Properties): Removed.
238 1999-10-18  Tom Tromey  <tromey@cygnus.com>
240         * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New
241         method.
242         (redirect): New static field.
243         * java/lang/ClassLoader.java (getSystemClassLoader): Now
244         native
245         (getVMClassLoader0): Removed.
246         * java/lang/natClassLoader.cc (getVMClassLoader0): Removed.
247         (redirect): Removed.
248         (getSystemClassLoader): Implemented.
250 1999-10-16  Anthony Green  <green@cygnus.com>
252         * java/lang/ClassLoader.java (getSystemResource): Use
253         getSystemClassLoader instead of ClassLoader.system.
254         (getSystemResourceAsStream): Ditto.
256         * java/lang/natClassLoader.cc (redirect): Make static and
257         remove #ifdef INTERPRETER so it is always defined.
258         (getVMClassLoader0): Remove #ifdef INTERPRETER so it always
259         returns a VMClassLoader.
261         * java/util/ResourceBundle.java (trySomeGetBundle): Create a
262         PropertyResourceBundle if a properties file is found before a
263         ResourceBundle class.
265 1999-10-15  Tom Tromey  <tromey@cygnus.com>
267         * gij.cc (main): Formatting fixes.
268         (_Jv_Compiler_Properties): Define.
269         * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't
270         declare.
271         (init_properties): Set properites from _Jv_Compiler_Properties.
272         * include/java-props.h (_Jv_Compiler_Properties,
273         _Jv_Environment_Properties): Declare.
275         * include/java-props.h: Added copyright.
277 1999-10-13  Anthony Green  <green@cygnus.com>
279         * libtool-version: Catch up by incrementing current.
281         * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
282         * configure, include/config.h.in: Rebuilt.
283         * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
284         * configure.in: Added --disable-getenv-properties and new define
285         `DISABLE_GETENV_PROPERTIES'.
287         * prims.cc (PROCESS_GCJ_PROPERTIES): Define.
288         (next_property_key): New function.
289         (next_property_value): New function.
290         (process_gcj_properties): New function.
291         (JvRunMain): Call process_gcj_properties.
292         (_JvRunMain): Ditto.
294         * java/lang/natSystem.cc (init_properties): Set properties defined
295         in GCJ_PROPERTIES.
297         * include/java-props.h: New file.
299         * java/lang/natSystem.cc (init_properties): Add new properties to
300         conform with Java Product Versioning Specification.
302 1999-10-12  Tom Tromey  <tromey@cygnus.com>
304         * configure: Rebuilt.
305         * configure.in: Fixed test for --disable-java-net.
307 1999-10-06  Tom Tromey  <tromey@cygnus.com>
309         * configure.in (GCJ): Define as "target-gcj", not "target/gcj"
310         when building Canadian cross.
311         (NATIVE): Don't define when cross-compiling.
313 1999-10-04  Tom Tromey  <tromey@cygnus.com>
315         * java/net/natPlainSocketImpl.cc: Don't include headers if
316         java.net is disabled.
318         * Makefile.in: Rebuilt.
319         * Makefile.am (ZINCS): Removed.  This is defined in configure.in
320         when needed, and must be left empty when not needed.
322 1999-10-01  Anthony Green  <green@cygnus.com>
324         * THANKS: Refreshed from htdocs version.
326 1999-10-01  Steve Chamberlain  <sac@pobox.com>
328         * Makefile.in: Rebuilt.
329         * Makefile.am (ZINCS): Define
331         * configure: Rebuilt.
332         * configure.in (ZLIBSPEC): Spell -lzgcj correctly.
334         * java/lang/ieeefp.h: Add definitions for picoJava.
336 1999-10-01  Tom Tromey  <tromey@cygnus.com>
338         * configure: Rebuilt.
339         * configure.in: Set classpath when invoking gcj.  Use changequote
340         around sed invocation.
342         * java/net/natPlainSocketImpl.cc: Stub native functions if
343         DISABLE_JAVA_NET is defined.
344         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed
345         typo in exception string.
346         (getTimeToLive): Likewise.
347         Stub native functions if DISABLE_JAVA_NET is defined.
348         * java/net/natInetAddress.cc: Stub native functions if
349         DISABLE_JAVA_NET is defined.
350         * configure.host: Disable java.net for mips-tx39.
351         * configure, include/config.h.in: Rebuilt.
352         * acconfig.h (DISABLE_JAVA_NET): Undefine.
353         * configure.in: Added --disable-java-net and new define
354         `DISABLE_JAVA_NET'.
356 1999-09-30  Tom Tromey  <tromey@cygnus.com>
358         * java/net/natPlainDatagramSocketImpl.cc: Indentation fix.
360 1999-09-29  Bryce McKinlay  <bryce@albatross.co.nz>
362         * README: New file.
364 1999-09-28  Tom Tromey  <tromey@cygnus.com>
366         * configure: Rebuilt.
367         * configure.in (PROCESS): In POSIX case, only set if not already
368         set.
369         * configure.host (PROCESS): Set in mips-tx39 case.
371         * aclocal.m4, configure: Rebuilt.
372         * acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
373         appropriate AC_PROG_ symbol.
375 1999-09-24  Tom Tromey  <tromey@cygnus.com>
377         * include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
378         `void *'.
379         (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
381         Fix for PR java.util/47:
382         * configure, include/config.h: Rebuilt.
383         * configure.in: Don't look for ctime or ctime_r.
384         * Makefile.in: Rebuilt.
385         * Makefile.am (nat_source_files): Don't mention natDate.cc.
386         * java/util/natDate.cc: Removed.
387         * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New
388         static fields.
389         (getAvailableIDs): Rewrote.
390         (getTimeZone): Rewrote.
391         * java/util/Date.java (toGMTString): New method.
392         (toLocaleString): New method.
393         (toString): Rewrote.
395 1999-09-23  Tom Tromey  <tromey@cygnus.com>
397         * configure: Rebuilt.
398         * configure.in: Print message when checking to see if gcj can
399         handle -fuse-divide-subroutine.
401         * java/lang/natFirstThread.cc (run): Renamed from `run0'.  Removed
402         dead code.
403         * java/lang/FirstThread.java (run0): Renamed to `run'.
404         (run): Removed.
406         * prims.cc (main_init): New function.
407         (JvRunMain): Call it.
408         (_Jv_RunMain): Likewise.
409         Include <signal.h>.
410         (main_init): Ignore SIGPIPE.  Fixes PR 51.
412 1999-09-22  Tom Tromey  <tromey@cygnus.com>
414         * libgcj.spec.in: Use `jc1' spec, not `cc1' spec.
416 1999-09-16  Bryce McKinlay  <bryce@albatross.co.nz>
418         * java/text/MessageFormat.java (MessageFormat(String)): Set the
419         default locale.
420         * java/text/NumberFormat.java: Check that object is a Number. If
421         not, throw IllegialArgumentException.
423 1999-09-21  Tom Tromey  <tromey@cygnus.com>
425         * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless
426         both `inlength' and `bytes_todo' are 0.  Simplified 2-byte case.
428         * include/posix-threads.h (_Jv_MutexDestroy): Use
429         _Jv_PthreadGetMutex.
430         (_Jv_MutexLock): Likewise.
431         (_Jv_MutexUnlock): Likewise.
433         * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted
434         previous patch; it too was incorrect.
435         * java/io/PrintStream.java (PrintStream): Likewise.
437         * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
438         refer to `this' before calling superclass constructor.
439         * java/io/PrintStream.java (PrintStream): Don't refer to `this'
440         before calling superclass constructor.
442 1999-09-20  Tom Tromey  <tromey@cygnus.com>
444         * configure: Rebuilt.
445         * configure.in: Send output of `-fuse-divide-subroutine' test
446         compilation to /dev/null.
448 1999-09-14  Tom Tromey  <tromey@cygnus.com>
450         * include/java-insns.h: Turned constants into an enum.  Added
451         multiple-inclusion protection.
453 1999-09-10  Tom Tromey  <tromey@cygnus.com>
455         * configure: Rebuilt.
456         * configure.in: Build include/Makefile.
457         * Makefile.in: Rebuilt.
458         * Makefile.am (SUBDIRS): Added gcj and include.
459         (install-data-local): New target.
460         (extra_headers): New macro.
461         * include/Makefile.in: New file.
462         * include/Makefile.am: New file.
464         * interpret.cc: Don't include gcj/field.h or gcj/cni.h.
465         * java/lang/reflect/natField.cc: Don't include gcj/field.h or
466         gcj/cni.h.
467         * boehm.cc: Don't include java-threads.h or gcj/field.h.
468         * resolve.cc: Include config.h.
469         * defineclass.cc: Include config.h.
470         * include/java-interp.h: Don't include config.h.
471         * include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
472         cni.h.
474         * gcj/javaprims.h: Regenerated namespace decls.
475         * classes.pl (scan): Don't put `;' after closing brace.
477         * Makefile.in: Rebuilt.
478         * Makefile.am (INCLUDES): Added -I for top_srcdir.
479         * configure.in: Create gcj/Makefile.
480         * gcj/Makefile.in: New file.
481         * gcj/Makefile.am: New file.
482         * java/lang/Object.h: Don't include any other headers.
483         * gcj/array.h: Renamed from include/java-array.h.
484         * gcj/field.h: Renamed from include/java-field.h.
485         * gcj/method.h: Renamed from include/java-method.h.
486         * gcj/cni.h, gcj/javaprims.h: Moved from include/.
487         Updated all files to reflect new include structure.
489 1999-09-09  Tom Tromey  <tromey@cygnus.com>
491         * configure: Rebuilt.
492         * configure.in: Fixed typo; variable is THREADSPEC and not
493         THREADSPECS.
495 1999-09-08  Tom Tromey  <tromey@cygnus.com>
497         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
498         previous change and implemented a correct test in the __m_count
499         case.
501         * include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
502         in __m_count case.
504 1999-09-07  Tom Tromey  <tromey@cygnus.com>
506         * posix-threads.cc (_Jv_CondWait): pthread_ calls return error
507         code and don't set errno.
509         * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR,
510         not `r'.  Changed `done_sleeping' to a `bool'.
512 1999-09-07  Matt Welsh <mdw@cs.berkeley.edu>
514         * libjava/posix-threads.cc: Added _Jv_ThreadDataKey.
515         Added FLAG_INTERRUPTED to indicate that a thread was interrupted
516         by another thread, rather than by the GC.
517         (_Jv_CondWait): Prevent premature thread wakeup by GC.
518         (_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
519         * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New 
520         function.
522 1999-09-03  Tom Tromey  <tromey@cygnus.com>
524         * configure: Rebuilt.
525         * configure.in: Check for fstat function.
526         * java/io/natFileDescriptorPosix.cc (available): Use fstat() if
527         FIONREAD fails.
529 1999-09-02  Tom Tromey  <tromey@cygnus.com>
531         * include/java-array.h (jobjectArrayjchar): Removed unused
532         declaration.
534         * java/lang/natClassLoader.cc (_Jv_WaitForState): Call
535         _Jv_PrepareCompiledClass while holding class mutex.
537 1999-09-01  Tom Tromey  <tromey@cygnus.com>
539         * include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
540         (_Jv_PthreadGetMutex): Use it.
541         (_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
542         (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT.
543         (_Jv_MutexLock): Likewise.
544         (_Jv_MutexUnlock): Likewise.
545         * include/config.h.in: Rebuilt.
546         * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT,
547         PTHREAD_MUTEX_HAVE___M_COUNT): New undefs.
548         * configure: Rebuilt.
549         * libgcj.spec.in: Don't mention INTERPSPEC.
550         * configure.in (INTERPSPEC): Removed.
551         Only run pthreads-related checks when using POSIX threads.  Check
552         for m_count and __m_count in mutex structure.
554 1999-09-01  Matt Welsh <mdw@cs.berkeley.edu>
556         * java/lang/natClass.cc: Fixed notification of threads
557         when class initialization is complete.
559 1999-09-01  Tom Tromey  <tromey@cygnus.com>
561         * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
562         * resolve.cc: Removed constants defined by
563         java.lang.reflect.Modifier.
564         Include <java/lang/reflect/Modifier.h>.
565         (_Jv_ResolvePoolEntry): Use values from Modifier.
566         (_Jv_DetermineVTableIndex): Likewise.
567         (_Jv_PrepareClass): Likewise.
568         (ncode): Likewise.
569         * defineclass.cc (_Jv_ClassReader): Removed constants defined by
570         java.lang.reflect.Modifier.
571         Include <java/lang/reflect/Modifier.h>.
572         (checkExtends): Use values from Modifier.
573         (checkImplements): Likewise.
574         (handleField): Likewise.
575         (handleConstantValueAttribute): Likewise.
576         (handleFieldsEnd): Likewise.
577         (handleMethod ): Likewise.
578         (handleMethodsEnd): Likewise.
579         (handleClassBegin): Likewise.
580         * interpret.cc: Removed constants defined by
581         java.lang.reflect.Modifier.
582         (continue1): Use values from Modifier.
583         * java/lang/natClassLoader.cc: Removed constants defined by
584         java.lang.reflect.Modifier.
586         * java/lang/natClassLoader.cc (_Jv_NewClass): Use
587         JV_STATE_NOTHING, not `0'.
588         * java/lang/Class.h: Replaced JV_STATE_ defines with enum.
590         * posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.
591         * include/posix-threads.h (_Jv_Mutex_t): Define as structure,
592         except on Linux.
593         (_Jv_PthreadGetMutex): New function.
594         (_Jv_PthreadCheckMonitor): Use it.
595         (_Jv_MutexInit): Likewise.  ALso, initialize `count'.
596         (_Jv_MutexLock): Update `count'.
597         (_Jv_MutexUnlock): Likewise.
598         (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
599         appropriate.
601 1999-09-01  Kresten Krab Thorup  <krab@gnu.org>
603         * Makefile.am (.java.lo): Add rule.
605         * Makefile.in: Rebuilt.
607 1999-09-01  Tom Tromey  <tromey@cygnus.com>
609         * posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
610         * include/posix-threads.h (_Jv_PthreadCheckMonitor): New
611         function.
612         (_Jv_CondNotify): Use it.
613         (_Jv_CondNotifyAll): Likewise.
615         * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
617 1999-08-31  Tom Tromey  <tromey@cygnus.com>
619         * include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
620         declaration.
622 1999-08-24  Bryce McKinlay  <bryce@albatross.co.nz>
624         * posix-threads.cc: Include <errno.h>.
626 1999-08-23  Tom Tromey  <tromey@cygnus.com>
628         * boehm.cc: Undefine TRUE and FALSE.
630         * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
632 1999-08-21  Tom Tromey  <tromey@cygnus.com>
634         * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
635         result.  PR 40.
637 1999-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
639         * configure.in: Check for in_addr_t in netinet/in.h too.  Check
640         for ip_mreq too.
641         * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
642         (HAVE_STRUCT_IP_MREQ): Added.
643         * configure, include/config.h.in: Rebuilt.
644         * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
645         if needed.
646         * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
647         Disable if ip_mreq is not available.
648         
649         * configure.in: Check types ssize_t and in_addr_t.
650         * acconfig.h: Undefine them.
651         * configure, include/config.h.in: Rebuilt.
653         * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
654         function that detects the signature of getpwuid_r.
655         (init_properties): Use it.
656         * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
657         (toString): Use it.
659 1999-08-20  Kresten Krab Thorup  <krab@samam.daimi.au.dk>
661         * interpret.cc (continue1): Implement explicit dispatch table.
662         insn_target: Explicit interpreter switch table.  
663         SAVE_PC: New macro, moves pc saving code into instructions that
664         require so.
665         NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
666         PC_REGISTER_ASM: New macro.
667         INLINE_SWITCH: New macro.  Constrols dispatching strategy.
668         opcode: Remove local variable.
669         {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
670         (POKEI): Use _Jv_word.
671         (iinc): Use _Jv_word.
672         (dupx): Change reference argument (sp) to pointer.  
673         (jvdump): Remove
674         
675         * interpret.cc: Remove instruction timing instrumentation.  
677         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
678         comment.  Don't use _Jv_ClassNameSamePackage. 
680         * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
681         URLPathEntry, CacheEntry}: Removed.
682         
683         * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
684         package.
685         (.java.lo): Rule removed.
687         * Makefile.in: Rebuilt.
689 1999-08-19  Tom Tromey  <tromey@cygnus.com>
691         * java/lang/natThread.cc (class locker): New class.
692         (join): Use a locker around _Jv_CondWait.
693         (sleep): Likewise.
695 1999-08-18  Tom Tromey  <tromey@cygnus.com>
697         * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
698         * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
700 1999-08-18  Tom Tromey  <tromey@cygnus.com>
702         * include/javaprims.h ("Java"): Regenerated namespace decls.
704 1999-08-18  Kresten Krab Thorup  <krab@gnu.org>
706         * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
707         from _Jv_InternClassStrings.   
709         * prims.cc (_Jv_RunMain): New function.
710         (JvRunMain): Remove gij-support.
712         * gij.cc (main): Use _Jv_RunMain.
714         * java/util/zip/ZipFile.java: Call readDirectory in constructor.
716         * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
717         argument in temp variable.
718         (continue1): For all op_x2y insns, use temp variable for
719         intermediate value.  Also remove some comments.
721         * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
722         (forName): Don't call _Jv_InitClass.
724         * java/lang/Class.java (getResource,getResourceAsStream): Implement.
726         * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
728         * java/util/jar/JarInputStream.java: New file.
730         * java/util/jar/JarEntry.java: New file.
732         * java/util/jar/JarFile.java: New file.
734         * java/net/URLClassLoader.java: New file.
736         * java/net/JarURLConnection.java: New file.
738         * gnu/gcj/protocol/jar/Handler.java: New file.
740         * gnu/gcj/protocol/jar/Connection.java: New file.
742         * java/security/SecureClassLoader.java: New file.
744         * java/lang/ClassLoader.java (parent): New variable.
745         (ClassLoader (ClassLoader)): new constructor.  
746         (findClass): New method.
747         (loadClass): Add default 1.2 implementation.
748         (getSystemResourceAsBytes, getResourceAsBytes): Removed.
749         (readfully): Removed.
751         * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. 
752         (findSystemClass): New method.
753         (VMClassLoader): Constructor rewritten.
754         (init): New method.
755         All other methods removed.
756         
757         * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
758         to gnu::gcj::runtime::VMClassLoader. 
759         (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry.  Also handle
760         class entries.   
761         (VMClassLoader::findSystemClass): renamed from findBootClass.
763         * Makefile.am: Add new files.
764         (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
766         * Makefile.in: Rebuilt.
768 1999-08-17  Tom Tromey  <tromey@cygnus.com>
770         * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
771         nano.
772         * include/quick-threads.h (_Jv_CondWait): Don't round to 0
773         inappropriately.
775 1999-08-16  Tom Tromey  <tromey@cygnus.com>
777         * configure: Rebuilt.
778         * configure.in: Set DIVIDESPEC to empty string if compiler does
779         not support -fuse-divide-subroutine.
781 1999-08-14  Per Bothner  <per@bothner.com>
783         * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
784         * java/lang/natClass.cc (initializeClass): Likewise.
785         * java/lang/ClassLoader.java (resolveClass0): New static method.
786         (resolveClass): Call resolveClass0.
787         (findSystemClass): No longer static.
789 1999-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
791         * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
793 1999-08-11  Bryce McKinlay  <bryce@albatross.co.nz>
795         * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
796         as long.
798 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
800         * Makefile: Rebuilt.
801         * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
802         builds.
804         * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
805         present.
807         * configure: Rebuilt.
808         * configure.in: Properly align --help output, fix capitalization
809         and punctuation.
810         * acinclude.m4: Likewise.
812 1999-08-09  Kresten Krab Thorup  <krab@gnu.org>
814         * include/javaprims.h (_Jv_word, _Jv_word2): New types.
816         * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
817         (_Jv_callInterpretedMethod): Unused. Remove.
818         (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
819         Use ffi_raw.
820         * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
821         (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
822         * boehm.cc (_Jv_MarkObj): Use _Jv_word.
823         * interpret.cc: use _Jv_word.
824         * defineclass.cc: use_Jv_word.
825         * resolve.cc: Use _Jv_word.
826         (_Jv_ResolvePoolEntry): Return _Jv_word.
827         * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
828         * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
830         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): 
831         Change comment.
833 Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
835         * configure: Rebuilt.
836         * configure.in (sched_yield): Try librt first, then libposix4.
837         Add -lrt, -lposix4 to THREADSPEC.
839 1999-08-08  Anthony Green  <green@cygnus.com>
841         * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
843 1999-08-08  Anthony Green  <green@cygnus.com>
845         * defineclass.cc (_Jv_VerifyClassName): Verify array names
846         correctly.
848 1999-08-08  Anthony Green  <green@cygnus.com>
850         * gij.cc: New file.
852         * include/config.h.in: Rebuilt.
853         * acconfig.h: Add INTERPRETER.
855         * Makefile.in: Rebuilt.
856         * Makefile.am (libffi_files): Identify the libffi object files for
857         inclusion in libgcj.
858         (LIBFFIINCS): Define.
860         * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
861         Dummy definition for configurations without an interpreter.
862         
863         * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
864         java::lang::Boolean constructor.
866         * include/java-interp.h: Always include java-cpool.h.
868         * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
869         when INTERPRETER not defined.
871         * java/lang/Class.h (finalize): Define.
873         * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
874         IOException from File.getCanonicalPath.
875         (getStream): Likewise.
877         * NEWS: More news.
878         * THANKS: More thanks.
880 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
882         * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
883         jchar type.
884         (_Jv_PrepareClass): Allow non-abstract classes to
885         have abstract subclasses.
886         (_Jv_ResolvePoolEntry): Revert subclass check for protected
887         fields and methods.
888         * interpret.cc (continue1/perform_invoke): Don't sign extend
889         uint16 return val. 
890         (continue1/lshl,lshr): Push long, not int.
891         (continue1/ulshr): Use UINT64, not long long.
892         * defineclass.cc (handleFieldsEnd): Handle case when all fields
893         are static.
894         * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
895         * java/lang/FirstThread.java (run): Add top-level exception
896         handler. 
897         (run0): Renamed from run.
899 1999-08-08  Kresten Krab Thorup  <krab@gnu.org>
901         * configure.in (--with-interpreter): Added.
902         * include/config.h.in (INTERPRETER): Added.
904         * java/lang/ClassLoader.java: File replaced.
905         * java/lang/VMClassLoader.java: New file.
906         * java/lang/natClassLoader.cc: New file.
907         * gnu/gcj/runtime/MethodInvocation.java: New file.
908         * gnu/gcj/util/path/SearchPath.java: New file.
909         * gnu/gcj/util/path/PathEntry.java: New file.
910         * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
911         * gnu/gcj/util/path/ZipPathEntry.java: New file.
912         * gnu/gcj/util/path/URLPathEntry.java: New file.
913         * gnu/gcj/util/path/CacheEntry.java: New file. 
914         * include/java-interp.h: New file.
915         * include/java-cpool.h: New file.
916         * include/java-insns.h: New file.
917         * defineclass.cc: New file.
918         * interpret.cc: New file.
919         * resolve.cc: New file.
921         * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
922         _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
923         _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
924         (finalize): New.
925         (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
926         STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
927         prefix. 
928         (initializeClass): Use new JV_ prefixed names.  Also, call
929         ClassLoader::resolveClass instead of _Jv_ResolveClass.
930                 
931         * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
932         JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
933         JV_STATE_LINKED): New.
934         (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
935         _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
936         (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
937         _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
938         _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
939         _Jv_InterpMethodInvocation): New friends for interpreter.
940         (finalize): New.
941         (CONSTANT_Class, CONSTANT_String, etc.): Moved to
942         include/java-cpool.h and renamed with JV_ prefix.
943         
944         * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
945         decls.
946         (_Jv_UnregisterClass): New decl.
948         * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
949         class loader argument. 
950         (_Jv_FindClass): Use class loader.
951         
952         * prims.cc (_Jv_makeUtf8Const): New function.
953         (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
954         (_Jv_NewPrimArray): Ditto.
955         (_Jv_FindClassFromSignature): Ditto.
956         * java/lang/reflect/natArray.cc (newInstance): Ditto.
957         * java/lang/reflect/natMethod.cc (getType): Ditto.
959         * include/java-field.h (_Jv_Field::isRef): Make robust for
960         non-resolved contexts. 
962         * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields. 
963         Also, don't mark class->next field.
965         * java/lang/VirtualMachineError.java: Added FIXME note.
967         * configure.in (INTERPSPEC): New spec.
968         * libgcj.spec.in: Added INTERPSPEC.
969         * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
970         gnu/gcj/runtime/MethodInvocation.
971         (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
972         (ordinary_java_source_files): Added above mentioned java classes.
974         * configure: Rebuilt.
975         * Makefile.in: Rebuilt.
977 1999-08-06  Tom Tromey  <tromey@cygnus.com>
979         * configure: Rebuilt.
980         * configure.in: Look for sched_yield in -lrt.
982 1999-08-06  Mojo Jojo <mojojojo@pacbell.net>
984         * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
985         ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
986         SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
987         locales.
988         (toString): Print correctly when `country' is empty.
990 1999-08-04  Per Bothner <per@bothner.com>
992         * configure.in:  Also do AC_SUBST for DIVIDESPEC.
994 1999-08-02  Tom Tromey  <tromey@cygnus.com>
996         * aclocal.m4, configure: Rebuilt for new libtool.
998 1999-08-02  Bryce McKinlay  <bryce@albatross.co.nz>
1000         * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
1001         * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
1002         * java/net/ServerSocket.java: Define ANY_IF.
1003         (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
1004         all network interfaces.
1005         * java/net/DatagramSocket.java (DatagramSocket): ditto.
1006         * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
1007         null.
1008         * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
1009         instead of null.
1010         * java/io/natFile.cc (performMkdir): Remove FIXME.
1011         * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
1013 1999-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
1015         * configure.in: Check for bstring.h.
1016         * configure, include/config.h.in: Rebuilt.
1017         * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
1018         * java/net/natPlainSocketImpl.cc: Likewise.
1020 1999-07-31  Tom Tromey  <tromey@cygnus.com>
1022         * NEWS: Likewise.
1023         * THANKS: New file.
1025 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1027         * configure.in: Check for struct hostent_data and need for
1028         -D_REENTRANT for gethostbyname_r declaration.
1029         * java/net/natInetAddress.cc: Define _REENTRANT if needed.
1030         (lookup): Use hostent_data for fixed_buffer.
1031         * configure, include/config.h.in: Rebuilt.
1033 1999-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1035         * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
1036         available.  Don't cast memmove args to (void*).
1037         * configure.in: Do not abort if memmove is not available.
1039 1999-07-22  Bryce McKinlay  <bryce@albatross.co.nz>
1041         * java/lang/natString.cc (substring): optimize where substring is
1042         entire String.
1043         * java/io/File.java (getName): don't return separator with file name.
1044         * java/io/natFile.cc (attr): fix overflow.
1046 Sun Jul 25 01:43:34 1999  Anthony Green  <green@cygnus.com>
1048         * mauve-libgcj: Disable Object Serialization tests.
1050 1999-07-20  Warren Levy  <warrenl@cygnus.com>
1052         * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
1053         Default to using PlainDatagramSocketImpl.
1054         * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
1056 1999-07-19  Tom Tromey  <tromey@cygnus.com>
1058         * include/stamp-h.in: New file.
1060 1999-07-12  Tom Tromey  <tromey@cygnus.com>
1062         * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1063         _UINT32_T.
1065 1999-07-07  Andrew Haley  <aph@cygnus.com>
1067         * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
1068         bytes to make it point after the instruction where the trap
1069         occurred.
1070         (HANDLE_DIVIDE_OVERFLOW): Ditto.
1072 1999-07-07  Tom Tromey  <tromey@cygnus.com>
1074         * mauve-libgcj: Explicitly enable formerly disabled java.text
1075         tests.
1077         * mauve-libgcj: Turn off ClassTest test.  Enable java.text tests
1078         again.
1080 Mon Jul  5 12:01:35 1999  Anthony Green  <green@cygnus.com>
1082         * java/net/URL.java (equals): Compare strings using String.equals.
1083         * java/net/URL.java (sameFile): Ditto.
1085 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1087         * configure: Rebuilt.
1088         * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
1089         * include/config.h.in: Rebuilt.
1090         * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
1091         (mcastGrp): Updated FIXME comments.
1092         (setOption): Fixed typo.
1093         (getOption):Implemented IP_MULTICAST_IF.
1095 1999-07-02  Warren Levy  <warrenl@cygnus.com>
1097         * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
1098         * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
1099         (getTimeToLive): Implemented.
1100         (setOption): Implemented IP_MULTICAST_IF.
1102 1999-07-01  Bryce McKinlay  <bryce@albatross.co.nz>
1104         * java/lang/String.java (toString): Check for this == null and throw
1105         NullPointerException.
1107 1999-07-01  Warren Levy  <warrenl@cygnus.com>
1109         * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
1110         to count and revised comments to match.
1111         * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
1112         * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
1113         * gnu/gcj/convert/Input_SJIS.java (read): ditto.
1114         * gnu/gcj/convert/Input_UTF8.java (read): ditto.
1115         * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
1116         * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
1118 1999-07-01  John-Marc Chandonia  <jmc@cmpharm.ucsf.edu>
1120         * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
1121         properly as count rather than outlength.
1122         * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
1123         output on overflow rather than buffer fill.
1124         * java/io/BufferedReader.java (fill): Don't clear out the buffer
1125         if markPos is 0 and there is still room in the buffer.
1127 1999-07-01  Andrew Haley  <aph@cygnus.com>
1129         * include/i386-signal.h: Replace sigaction () with __sigaction ().
1130         This is a workaround for a bug in glibc's pthreads package which
1131         doesn't deliver any sigcontext information to a signal handler.
1133 1999-06-24  Tom Tromey  <tromey@cygnus.com>
1135         * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
1136         * java/lang/fdlibm.h (HUGE): Conditionally define.
1138 Fri May 28 22:20:03 1999  Anthony Green  <green@cygnus.com>
1140         * java/lang/fdlibm.h: Don't use __uint32_t.  Include mprec.h.
1141         * java/lang/e_log.c: Don't use __uint32_t.
1143 1999-05-27  Eric Christopher <echristo@cygnus.com>
1145         * configure: Rebuilt
1146         * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
1147         * acconfig.h: Rebuilt
1148         * include/config.h.in: Rebuilt
1150         * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
1151         java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
1152         e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
1153         java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
1154         k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
1155         java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
1156         s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
1157         and namespace collision with __uint32_t
1159 1999-06-23  Tom Tromey  <tromey@cygnus.com>
1161         * java/util/zip/InflaterInputStream.java (read): Throw
1162         ZipException if inflater throws a DataFormatException.
1164 1999-06-23  Warren Levy  <warrenl@cygnus.com>
1166         * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
1167         * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
1168         * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
1169         is not final per JDK.
1170         * java/util/PropertyResourceBundle.java (handleGetObject): Method is
1171         public per JDK.
1172         * java/util/zip/DataFormatException.java: Class extends Exception.
1173         * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
1174         * java/util/zip/ZipEntry.java: Class implements ZipConstants.
1175         * java/util/zip/ZipInputStream.java: ditto.
1176         (closeEntry): Changed method name to match JDK spec.
1178 1999-06-21  Tom Tromey  <tromey@cygnus.com>
1180         * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
1181         From Jeff Sturm.
1183         * Makefile.in: Rebuilt.
1184         * Makefile.am (toolexeclibdir): Define as libdir when
1185         appropriate.
1186         * configure: Rebuilt.
1187         * configure.in (USE_LIBDIR): New conditional.
1189 1999-06-18  Bryce McKinlay  <bryce@albatross.co.nz>
1191         * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
1192         hostname in returned InetAddress objects.
1193         (getLocalHostname): Fix typo.
1194         * java/net/InetAddress.java (getByName): Set hostname on return
1195         object.
1196         (getLocalHost): Call lookup directly to ensure that a fully-qualified
1197         name is returned.
1199 1999-06-17  Bryce McKinlay  <bryce@albatross.co.nz>
1201         * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
1202         interfaces if host==NULL. 
1203         (accept): Throw message with InterruptedIOException.
1204         (getOption): Cache localAddress.
1205         * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
1206         'address' for DatagramSocket.
1207         (setTimeToLive): Fix compiler warnings.
1208         (getOption): Cache localAddress.
1209         * java/net/Socket.java (getLocalAddress): Don't need local
1210         InetAddress object. Add FIXME comment about calling checkConnect().
1211         * java/net/ServerSocket.java (ServerSocket(int)): Initialize
1212         connection queue to 50 as per JDK 1.2 docs.
1213         (ServerSocket(int,int)): Listen on all network interfaces by
1214         default, per JDK 1.2 docs.
1215         * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
1216         Add localAddress caching. 
1218 1999-06-15  Bryce McKinlay  <bryce@albatross.co.nz>
1220         * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
1221         to JDK 1.2 docs.
1222         (write(byte[],int,int)): ditto.
1224 1999-06-14  Bryce McKinlay  <bryce@albatross.co.nz>
1226         * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
1228 1999-06-11  Warren Levy  <warrenl@cygnus.com>
1230         * mauve-libgcj: Activated java.net Mauve tests.
1232 1999-06-10  Bryce McKinlay  <bryce@albatross.co.nz>
1234         * java/net/natInetAddress.cc (aton): Fix typos.
1235         (lookup): Use a bigger buffer size for gethostbyname_r on all
1236         versions of glibc. Updated FIXME comment explaining this.
1237         Modified while loops to not set herr = ERANGE to work around glibc 
1238         problems. Use user specified hostname in InetAddress result when
1239         available (consistent with JDK).
1241 1999-06-10  Warren Levy  <warrenl@cygnus.com>
1243         * java/io/FileDescriptor.java (FileDescriptor(String, int)):
1244         Throw FileNotFoundException instead of IOException.
1245         (open): ditto.
1246         * java/io/FileInputStream.java (FileInputStream): Doesn't throw
1247         IOException.
1248         * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
1249         in static field name.
1250         * java/text/DecimalFormat.java: Throw IllegalArgumentException
1251         throughout rather than ParseException.
1253 1999-06-09  Bryce McKinlay  <bryce@albatross.co.nz>
1255         * java/lang/Runtime.java (exec): Convert prog name and arguments
1256         to string array.
1257         * java/lang/natPosixProcess.cc (startProcess): Fix typo in
1258         environment array conversion. Preserve current environment if envp
1259         not passed. Preserve PATH unless explicitly specified.
1260         * java/io/DataInputStream.java (readLine): Fix case where '\r' is
1261         followed by EOF. Set a flag when a line is terminated by '\r' and
1262         ignore following '\n' if set.
1264 1999-06-02  Warren Levy  <warrenl@cygnus.com>
1266         * java/net/URL.java (URL(URL,String)): Initialize port to -1.
1267         Ignore context if spec is an absolute URL.  Fix braindead
1268         string comparison.
1269         (hashCode): Use JDK 1.2 style algorithm.
1270         * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
1271         context URL properly.
1273 1999-05-30  Anthony Green  <green@cygnus.com>
1275         * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
1276         correctly.  Clean up "/../" an\e[Bd "/./" path fragments.
1278 1999-05-28  Warren Levy  <warrenl@cygnus.com>
1280         * java/net/DatagramSocket.java (laddr): Removed.
1281         (DatagramSocket): Removed attempts to get or set laddr if null.
1282         (getLocalAddress): Reimplemented per spec.
1283         * java/net/MulticastSocket.java (setTimeToLive): Throw exception
1284         when ttl is 0.
1285         (joinGroup): Throw NullPointerException if any argument is null.
1286         (leaveGroup): ditto.
1287         * java/net/PlainDatagramSocketImpl.java: Updated comments.
1288         * java/net/PlainSocketImpl.java (timeout): Added.
1289         (getInputStream): Added FIXME comment on how to support timeouts
1290         for TCP.
1291         * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
1292         * java/net/Socket.java: Added FIXME comments to identify
1293         conflicting specs between the JCL and JDK 1.2 documents.
1294         * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
1295         if host is null.  Get localport value resolved by kernel if bind
1296         lport is 0.
1297         (receive): Implemented support for timeouts in UDP.
1298         (setOption): Implemented based on natPlainSocketImpl version.
1299         (getOption): ditto.
1300         * java/net/natPlainSocketImpl.cc (bind): Get localport value
1301         resolved by kernel if bind lport is 0.
1302         (connect): Get localport value resolved by kernel if bind wasn't
1303         done to set localport.
1304         (accept): Implemented support for timeouts for ServerSocket.
1305         (setOption): Save value for SO_TIMEOUT.
1306         (getOption): Return timeout for SO_TIMEOUT.
1308 1999-05-26  Bryce McKinlay <bryce@albatross.co.nz>
1310         * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
1311         * java/net/DatagramSocketImpl.java (getOption): Made abstract.
1312         (setOption): Made abstract.
1313         * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
1314         to avoid cpp conflicts in native code.
1315         * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
1316         cpp conflicts in native code.
1317         * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
1318         * java/net/Socket.java (getLocalAddress): Implemented.
1319         (setTcpNoDelay): Implemented.
1320         (getTcpNoDelay): Implemented.
1321         (setSoLinger): Implemented.
1322         (getSoLinger): Implemented.
1323         (getSoTimeout): Verify class type.
1324         (setSendBufferSize): Implemented.
1325         (getSendBufferSize): Implemented.
1326         (setReceiveBufferSize): Implemented.
1327         (getReceiveBufferSize): Implemented.
1328         (toString): Prepended "Socket".
1329         * java/net/SocketImpl.java (toString): Rewritten.
1330         (getOption): Made abstract.
1331         (setOption): Made abstract.
1332         * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
1333         (setOption): Implemented.
1334         (getOption): Implemented.
1336 1999-05-26  Warren Levy  <warrenl@cygnus.com>
1338         * java/net/DatagramSocket.java (DatagramSocket): Get local host
1339         address when null.  Set SO_REUSEADDR for multicasts.
1340         (getSoTimeout): Implemented.
1341         (setSoTimeout): Implemented.
1342         * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
1343         * java/net/MulticastSocket.java (getInterface): Implemented.
1344         (setInterface): Implemented.
1345         (setTimeToLive): Check for invalid ttl.
1346         (joinGroup): Verify multicast address and security.
1347         (leaveGroup): Verify multicast address and security.
1348         (send): Implemented.
1349         * java/net/PlainDatagramSocketImpl.java (timeout): Added.
1350         (iface): Added.
1351         (ttl): Added.
1352         (setOption): Added.
1353         (getOption): Added.
1354         (mcastGrp): Added.
1355         (getTTL): Implemented as non-native.
1356         (setTTL): ditto.
1357         (join): ditto.
1358         (leave): ditto.
1359         * java/net/ServerSocket.java (setSoTimeout): Implemented.
1360         (getSoTimeout): Implemented.
1361         (setSocketFactory): Made synchronized.
1362         * java/net/Socket.java (setSoTimeout): Implemented.
1363         (getSoTimeout): Implemented.
1364         (close): Made synchronized.
1365         (setSocketImplFactory): Made synchronized.
1366         * java/net/SocketImpl.java: Implement SocketOptions interface.
1367         * java/net/natInetAddress.cc: Corrected module name at top of file.
1368         * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
1369         (bind): Added FIXME.
1370         (peek): Implemented.
1371         (setTTL): Removed.
1372         (getTTL): Removed.
1373         (join): Removed.
1374         (leave): Removed.
1375         (mcastGrp): Added.
1376         (setOption): Implemented for SO_REUSEADDR.
1377         (getOption): Implemented for SO_REUSEADDR.
1379 1999-05-24  Tom Tromey  <tromey@cygnus.com>
1381         * java/util/ResourceBundle.java (getBundle): Throw
1382         NullPointerException if baseName is null.
1384 1999-05-22  Tom Tromey  <tromey@cygnus.com>
1386         * java/util/zip/ZipInputStream.java (fill): New method.
1387         (compressed_len): New instance variable.
1388         (getNextStream): Set it.
1389         (read): Reset inflater on EOF.  Only read via `super' if entry is
1390         deflated.
1391         (skip): Only skip via `super' if entry is deflated.
1392         * java/util/zip/Deflater.java (last_input_count): Removed.
1393         * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
1394         is length 0.
1395         (needsInput): Don't use last_input_count.
1396         (setInput): Don't set last_input_count.
1397         * java/util/zip/natInflater.cc (getRemaining): Return correct
1398         result.
1399         (inflate): Return 0 if input array is length 0.
1400         (setInput): Don't set last_input_count.
1401         * java/util/zip/Inflater.java (last_input_count): Removed.
1403 1999-05-21  Tom Tromey  <tromey@cygnus.com>
1405         * Makefile.in: Rebuilt.
1406         * Makefile.am (INCLUDES): Added $(ZINCS).
1407         * configure: Rebuilt.
1408         * configure.in (ZINCS): New subst.
1410 1999-05-21  Andrew Haley  <aph@cygnus.com>
1412         * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
1413         to signal options to allow the same exceptions to be rethrown
1414         later.
1416 1999-05-20  Andrew Haley  <aph@cygnus.com>
1418         * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
1419         added.
1420         * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
1421         (INIT_FPE): Exception string made more informative.
1422         * include/sparc-signal.h (INIT_FPE): Exception string made more
1423         informative.
1424         * testsuite/libjava.lang/Divide_1.java: New file.
1425         * testsuite/libjava.lang/Divide_1.out: New file.
1427 1999-05-19  Tom Tromey  <tromey@cygnus.com>
1429         * aclocal.m4, configure: Rebuilt.
1430         * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
1432         * java/util/zip/GZIPOutputStream.java (write(byte[])): New
1433         method.
1435         * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
1436         Include <stdlib.h>.
1437         * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
1438         Include <stdlib.h>.
1439         (update): Fail in default case.  Always initialize `strat'.
1441         * mauve-libgcj: Enable java.util.zip.
1443 1999-05-18  Warren Levy  <warrenl@cygnus.com>
1445         * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
1446         DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
1447         PlainDatagramSocketImpl.java, and SocketOptions.java.
1448         (nat_source_files): Added natPlainDatagramSocketImpl.cc.
1449         * Makefile.in: Rebuilt.
1451         * java/net/DatagramPacket.java: New file.
1452         * java/net/DatagramSocket.java: New file.
1453         * java/net/DatagramSocketImpl.java: New file.
1454         * java/net/MulticastSocket.java: New file.
1455         * java/net/PlainDatagramSocketImpl.java: New file.
1456         * java/net/SocketOptions.java: New file.
1457         * java/net/natPlainDatagramSocketImpl.cc: New file.
1459 1999-05-18  Tom Tromey  <tromey@cygnus.com>
1461         * java/util/zip/ZipOutputStream.java (level): Initial value is
1462         Deflater.DEFAULT_COMPRESSION.
1463         (close): New method.
1464         (closeEntry): Likewise.
1465         (finish): Likewise.
1466         (put_version): Likewise.
1467         (write_entry): Likewise.
1468         (put2, put4): Now return `int'.
1469         (comment): Default to empty string.
1470         (bytes_written): New instance variable.
1471         (chain): Likewise.
1472         * java/util/zip/ZipEntry.java (setComment): Limit length of
1473         comment string.
1474         (setCrc): Check CRC validity.
1475         (setExtra): Check argument validity.
1476         (setMethod): Likewise.
1477         (setSize): Likewise.
1478         (ZipEntry): Likewise.
1479         * include/javaprims.h: Updated namespace declarations.
1480         * Makefile.in: Rebuilt.
1481         * Makefile.am (ordinary_java_source_files): Mention new files.
1482         (nat_source_files): Likewise.
1483         * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
1484         EOFException.
1485         (read4): Likewise.
1486         (getInputStream): Handle compressed entries.
1487         * java/util/zip/GZIPOutputStream.java: New file.
1488         * java/util/zip/GZIPInputStream.java: New file.
1489         * java/util/zip/DataFormatException.java: New file.
1490         * java/util/zip/CheckedInputStream.java: New file.
1491         * java/util/zip/CheckedOutputStream.java: New file.
1492         * java/util/zip/InflaterInputStream.java: Implemented.
1493         * java/util/zip/natInflater.cc: New file.
1494         * java/util/zip/Deflater.java: Implemented.
1495         * java/util/zip/natDeflater.cc: New file.
1496         * java/util/zip/DeflaterOutputStream.java: Implemented.
1498         * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
1499         ZipException, not IOException.
1500         * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
1501         not IOException.
1503 1999-05-17  Tom Tromey  <tromey@cygnus.com>
1505         * java/lang/natSystem.cc (init_properties): URL now points to
1506         sourceware.
1508 1999-05-12  Per Bothner  <bothner@cygnus.com>
1510         * java/util/Calendar.java (set):  First call computeFields if needed.
1511         * java/util/natGregorianCalendar.cc (computeTime):  Cast 1000 to jlong.
1512         
1513 1999-05-12  Tom Tromey  <tromey@cygnus.com>
1515         * configure: Rebuilt.
1516         * configure.in: Look for -ldl when using the Boehm collector.
1517         Look for sched_yield in -lposix4.
1519 1999-05-12  Per Bothner  <bothner@cygnus.com>
1521         * java/io/File.java (mkdirs):  Handle a null parent directory.
1523 1999-05-12  Tom Tromey  <tromey@cygnus.com>
1525         * include/javaprims.h: Updated namespace declarations.
1526         * classes.pl (scan): Uniquify class list.
1527         * Makefile.in, configure: Rebuilt.
1528         * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
1529         (built_java_source_files): New macro.
1530         (nat_headers): Added built_java_source_files.
1531         (javao_files): Likewise.
1532         (EXTRA_libgcj_la_SOURCES): Likewise.
1533         (libgcj.zip): Create built class files.
1534         ($(built_java_source_files:.java=.class)): New target.
1535         (jv_convert_LDADD): Added -L$(here)/.libs.
1536         * configure.in: Create links for ConcreteProcess.java and
1537         natConcreteProcess.cc.
1538         * java/lang/Runtime.java (exec): Create a ConcreteProcess.
1539         * java/lang/natEcosProcess.cc: New file.
1540         * java/lang/EcosProcess.java: New file.
1541         * java/lang/PosixProcess.java: New file.
1542         * java/lang/natPosixProcess.cc: New file.
1544 1999-05-12  Warren Levy  <warrenl@cygnus.com>
1546         * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
1547         * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
1548         * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
1549         (connect): Throw ConnectException.
1551 1999-05-11  Tom Tromey  <tromey@cygnus.com>
1553         * Makefile.in: Rebuilt.
1554         * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
1555         * libgcj.spec.in: Don't use `+'.  Instead, put old lib spec after
1556         our libraries.
1558         * Makefile.in: Rebuilt.
1559         * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
1560         and it causes problems with libtool.
1562         * Makefile.in, configure: Rebuilt.
1563         * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
1564         (jv_convert_LDADD): Added ZLIBS.  Removed -lm, -lc, -lgcc.
1565         (jv_convert_DEPENDENCIES): Added ZDEPS.
1566         * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
1567         directory.
1568         (THREADSPEC): Added `-L' to point to qthreads build directory.
1569         (ZLIBS): New subst.
1570         (ZDEPS): New subst.
1572         * configure, Makefile.in: Rebuilt.
1573         * Makefile.am (toolexeclib_DATA): New macro.
1574         * configure.in: Create libgcj.spec.  Look for -lsocket and -lnsl.
1575         Recognize --with-system-zlib.
1576         (GCSPEC): New subst.
1577         (THREADSPEC): New subst.
1578         (SYSTEMSPEC): New subst.
1579         (ZLIBSPEC): New subst.
1580         * libgcj.spec.in: New file.
1582 1999-05-10  Tom Tromey  <tromey@cygnus.com>
1584         * java/io/InputStreamReader.java (read): If length is 0, return
1585         0.  Reset `wpos' and `wcount' when buffer has been filled and
1586         emptied.
1588         * java/util/Properties.java (save): Removed `FIXME' comment.
1589         (load): Invalid characters in \u now treated as terminators.
1590         Make sure to append character resulting from `\' handling.
1591         Cast to `char' when appending to key or value.
1592         (skip_ws): Inverted test for whitespace.
1594         * java/io/RandomAccessFile.java (RandomAccessFile): Removed
1595         `FIXME' comment.
1596         (readLine): Likewise.
1597         (readFully): Implemented.
1599         * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
1601         * java/awt/natToolkit.cc: Added copyright header.
1602         * java/util/zip/InflaterInputStream.java: Added copyright header.
1604         * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
1605         comment.
1606         * java/io/SequenceInputStream.java (SequenceInputStream): Removed
1607         `FIXME' comment.
1608         (getNextStream): Likewise.
1610         * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
1611         locale.toString().
1612         (getBundle): Don't explicitly throw null pointer exception.
1614         * gnu/gcj/RawData.java: Added copyright header.
1616         * include/jni.h (_Jv_va_list): Always define as va_list.
1618 1999-05-9  Anthony Green  <green@cygnus.com>
1620         * java/text/DateFormat.java (computeInstance): Separate time
1621         and date styles.
1622         (getDateTimeInstance): Ditto.
1623         (getDateTimeInstance(int,int)): New method.
1625         * Makefile.in: Rebuilt.
1626         * Makefile.am (ordinary_java_source_files): Add new classes.
1628         * java/util/PropertyResourceBundle.java: New file.
1629         * gnu/gcj/util/EnumerationChain.java: New file.
1631 1999-05-07  Tom Tromey  <tromey@cygnus.com>
1633         * acconfig.h (GCJVERSION): New undef.
1634         * java/lang/natSystem.cc (init_properties): Define java.version,
1635         java.class.version, os.name, os.arch, os.version.
1636         Include <sys/utsname.h> if required.
1637         * configure: Rebuilt.
1638         * configure.in: Compute and define GCJVERSION.
1640         * java/lang/natSystem.cc (default_file_encoding): Now static.
1642         * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1644         * libtool-version: New file.
1645         * Makefile.in: Rebuilt.
1646         * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1647         -release.
1649         * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1650         Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1651         again (oops).
1653         * mauve-libgcj: Test more from java.text.  Don't mention 1.1 tests
1654         (we pick those up already).
1656 1999-05-05  Per Bothner  <bothner@cygnus.com>
1658         * java/awt/*:  Check a bunch of classes, a few complete, but mostly
1659         stub classes.  (This is enough to get Kawa to compile against libgcj.)
1661         * gnu/gcj/RawData.java:  New class.
1662         * doc/cni.sgml:  Document RawData.
1664         * java/util/zip/InflaterInputStream.java:  New stub class.
1665         * java/util/zip/ZipInputStream.java:  New class.  Partly works.
1666         * java/util/zip/ZipConstants.java:  Add two (internal) constants.
1667         * java/util/zip/ZipEntry.java (timeFromDOS):  New static method.
1668         * java/util/zip/ZipFile.java:  Now mostly works (unless compressed).
1669         * java/util/zip/ZipOutputStream.java:  Start implementation.
1670         
1671         * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING):  New macro.
1672         (default_file_encoding):  New global, initial value is above macro.
1673         (init_properties):  Default file.encoding to default_file_encoding.
1674         
1675         * Makefile.am:  Add new classes.
1677 1999-05-05  Tom Tromey  <tromey@cygnus.com>
1679         * Makefile.in: Rebuilt.
1680         * Makefile.am (CLEANFILES): Don't mention $(class_files).
1681         (clean-local): New target
1683         * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1684         (load, loadLibrary): Now native.
1685         (init): New method.
1686         * java/lang/Runtime.java (load, loadLibrary): Now native.
1687         (init): New native method.
1688         (Runtime): Use init.
1689         * prims.cc: Include <ltdl.h> if required.
1690         (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1692 1999-05-05  Gilles Zunino  <Gilles.Zunino@hei.fr>
1694         * configure.in: Switch from irix threads to posix threads
1695         * configure: Regenerate.
1697 1999-04-30  Tom Tromey  <tromey@cygnus.com>
1699         * Makefile.in: Rebuilt.
1700         * Makefile.am (jv_convert_LDADD): Added -lgcc.
1702 1999-04-29  Tom Tromey  <tromey@cygnus.com>
1704         * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1705         vector when shared.
1707         * java/util/Locale.java (Locale(String,String)): Implement in
1708         terms of 3-argument version; variant now defaults to empty
1709         string.
1710         (toString): Assume variant is not null.
1711         (equals): Assume all strings are not null.
1712         (Locale): Throw NullPointerException if any argument is null.
1714         * java/util/ResourceBundle.java (getBundle): Don't try the base
1715         name; now implicit in partialGetBundle call.
1716         (trySomeGetBundle): Search for parent bundles and call setParent
1717         as required.
1718         (partialGetBundle): Added `langStop' argument.  Use
1719         `Locale.toString' to compute bundleName.
1720         (resource_cache): New static field.
1721         (partialGetBundle): Cache the returned resource bundle.  Now
1722         synchronized.
1724         * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1725         missing `<'.
1727         * mauve-libgcj: Enable Collator and RuleBasedCollator.
1728         * java/text/natCollator.cc (decomposeCharacter): `base' now
1729         `const'.
1730         * Makefile.in: Rebuilt.
1731         * Makefile.am (ordinary_java_source_files): Added
1732         CollationElementIterator, CollationKey, Collator,
1733         RuleBasedCollator.
1734         (nat_source_files): Added natCollator.cc.
1735         * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1736         (compare): Pass `this' to CollationElementIterator constructor.
1737         (getCollationElementIterator): Likewise.
1738         (ceiNext): Fix off-by-one error when finding initial substring.
1739         (next): Correctly mask off bits when computing return value.
1740         Fixed return values when one string is shorter than the other.
1741         * java/text/CollationElementIterator.java (collator): New field.
1742         (CollationElementIterator): Added collator argument.
1743         (next): Call ceiNext on collator object.
1745 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1747         * natCollator.cc: New file.
1749         * java/util/GregorianCalendar.java (setDefaultTime): New method.
1750         (GregorianCalendar): Use it in all constructors.
1751         * java/util/Calendar.java (Calendar): Changed argument name to
1752         `zone' to match code.
1754         * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1755         * java/text/CollationKey.java: New file.
1756         * java/text/CollationElementIterator.java: New file.
1757         * java/text/Collator.java: New file.
1758         * java/text/RuleBasedCollator.java: New file.
1760         * Makefile.in: Rebuilt.
1761         * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1762         (jv_convert_LDADD): Explicltly add -lm -lc.
1764 1999-04-26  Tom Tromey  <tromey@cygnus.com>
1766         * configure, Makefile.in: Rebuilt.
1767         * configure.in: Added AM_PROG_LIBTOOL.
1768         (GCOBJS): Use `.lo' form of files.
1769         (THREADOBJS): Likewise.
1770         (GCDEPS): Use `.la' form of library.
1771         (GCLIBS): Set to be the same as GCDEPS.
1772         (THREADDEPS): Use `.la' form of library.
1773         (THREADLIBS): Set to be the same as THREADDEPS.
1774         * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1775         toolexeclib_LIBRARIES.
1776         (libgcj_la_SOURCES): Renamed for libtoolization.
1777         (EXTRA_libgcj_la_SOURCES): Likewise.
1778         (libgcj_la_DEPENDENCIES): Likewise.
1779         (libgcj_la_LIBADD): Likewise.
1780         ($(nat_files)): Use LTCXXCOMPILE.
1781         ($(c_files)): Use LTCOMPILE.
1782         (GCJCOMPILE): New macro.
1783         (.class.o): Use it.
1784         (.java.o): Likewise.
1785         ($(javao_files)): Likewise.
1786         (jv_convert_LINK): Use LIBTOOL.
1787         (nat_files): Use `.lo' files.
1788         (c_files): Likewise.
1789         (javao_files): Likewise.
1790         (.class.lo): Renamed.
1791         (.java.lo): Likewise.
1792         ($(nat_files)): Depend on %.lo.
1793         ($(c_files)): Likewise.
1794         ($(javao_files)): Likewise.
1795         (jv_convert_LDADD): Link against .lo files.
1796         (jv_convert_DEPENDENCIES): Depend on .lo files.
1797         (maintainer-check): Depend on libgcj.la, but examine .a file.
1798         (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1799         (libgcj_la_LDFLAGS): New macro.
1801 1999-04-23  Warren Levy  <warrenl@cygnus.com>
1803         * Makefile.am: Added URLDecoder and URLEncoder.
1804         * Makefile.in: Rebuilt.
1806         * java/net/ServerSocket.java (setSocketFactory): Renamed from
1807         setSocketImplFactory to match spec.
1808         * java/net/Socket.java (getSoLinger): Changed return type to
1809         match spec.
1811         * java/net/URLDecoder.java: New file.
1812         * java/net/URLEncoder.java: New file.
1814 1999-04-21  Tom Tromey  <tromey@cygnus.com>
1816         * java/lang/natString.cc (getBytes): Reverted earlier change and
1817         applied correct fix from Per Bothner.
1819         * java/lang/String.java: Don't throw
1820         UnsupportedEncodingException.
1822         * java/lang/natString.cc (getBytes): Correctly size result
1823         buffer.  From Bryce McKinlay <bryce@albatross.co.nz>.
1825 1999-04-20  Andrew Haley  <aph@cygnus.com>
1827         * include/sparc-signal.h: new file.
1828         * configure.in: include/sparc-signal.h added.
1829         * configure: regenerated.
1830         * prims.cc (JvRunMain): signal handling code rewritten to be more
1831         portable.
1832         (catch_segv): ditto.
1833         (catch_fpe): ditto.
1834         * include/i386-signal.h: reorganized.
1835         * include/default-signal.h: reorganized.
1837 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1839         * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1840         once.  From Anthony Green.
1842 1999-04-19  Andrew Haley  <aph@cygnus.com>
1844         * Makefile.in: Processed with new automake.
1846 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1848         * include/javaprims.h: Removed security namespace.
1850 1999-04-20  Anthony Green  <green@cygnus.com>
1852         * java/io/PrintStream.java (println): Remove extra println.
1854 1999-04-19  Anthony Green  <green@cygnus.com>
1856         * Makefile.in: Rebuilt.
1857         * Makefile.am (ordinary_java_source_files): Add new security files.
1859         * java/security/NoSuchAlgorithmException.java,
1860         java/security/MessageDigest.java: New files.
1862         * include/javaprims.h: Add security namespace.
1864 1999-04-16  Per Bothner  <bothner@cygnus.com>
1866         * gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
1867         * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1868         * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1869         * gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
1870         * gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
1871         * gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
1872         * gnu/gcj/convert/natInput_SJIS.cc:  New file.
1873         * gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
1874         * gnu/gcj/convert/natOutput_SJIS.cc:  New file.
1875         * gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
1876         * gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
1877         * gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.
1878         * Makefile.am:  Various changes for new files and conversions.
1880         * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1881         New overloading, allows greater efficiency.
1882         * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1883         New overloading (for efficiency - avoids copying).
1885         * gnu/gcj/convert/Output_UTF8.java:  Fix typo: 0xC0 -> 0c3F.
1886         * gnu/gcj/convert/Input_UTF8.java:  Fix typos in bit masks.
1888         * java/io/InputStreamReader.java (<init>):  Set super.in correctly.
1889         * java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
1890         (writeChars):  Don't be quite so eager to flush.
1891         * java/io/PrintStream.java:  Rewrite.  Now more similar to
1892         OutputStreamWriter, using explicit UnicodeToBytes converter.
1893         Also, autoflush does not need to flush so often.
1894         * java/lang/natString.cc (getBytes):  More efficient algorithm.
1895         (init(jbyteArray,jint,jint,jstring)):  More efficient.
1896         
1897 1999-04-15  Warren Levy  <warrenl@cygnus.com>
1899         * Makefile.am (ordinary_java_source_files): Added new Connection 
1900         and Handler classes in gnu.gcj.protocol.file package.
1901         * Makefile.in: Rebuilt.
1903         * gnu/gcj/protocol/file/Connection.java: New file.
1904         * gnu/gcj/protocol/file/Handler.java: New file.
1905         * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1906         if doInput allows input.
1907         (getOutputStream): Check if doOutput allows output.
1908         * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1910 1999-04-14  Tom Tromey  <tromey@cygnus.com>
1912         * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1913         buffer larger to work around bug.
1914         From Bryce McKinlay <bryce@albatross.co.nz>.
1916 1999-04-14  Andrew Haley  <aph@cygnus.com>
1918         * java/lang/natDouble.java (doubleToLongBits): ensure that all
1919         NaNs are always converted to the same long value.  
1920         * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1921         converted to int.
1923 1999-04-13  Tom Tromey  <tromey@cygnus.com>
1925         * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1926         instead switch on actual element type.
1928         * Makefile.in: Rebuilt.
1929         * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1931 1999-04-13  Andrew Haley  <aph@cygnus.com>
1933         * include/i386-signal.h, include/default-signal.h: New files.   
1934         * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1935         handler.
1936         (catch_fpe): New function.      
1937         * configure.in: Make link to appropriate include/java-signal.h.
1938         * configure: Rebuilt.
1939         * Makefile.am: include/java-signal.h added to dependency list.
1940         * Makefile.in: Rebuilt.
1942 1999-04-12  Urban Widmark <urban@svenskatest.se>
1944         * java/io/DataInputStream.java (readLine): Corrected handling of
1945         empty lines, from null to "".
1947 1999-04-12  Tom Tromey  <tromey@cygnus.com>
1949         * Makefile.in: Rebuilt.
1950         * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1952         * java/lang/natSystem.cc (SystemClass): New define.
1953         (init_properties): Synchronize.
1955 1999-04-08  Geoff Berry  <gcb@gnu.org>
1957         * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1958         * natPlainSocketImpl.cc (accept): Add missing else if check
1959         for AF_INET6.
1961 1999-04-08  Tom Tromey  <tromey@cygnus.com>
1963         * java/lang/Long.java (parseLong): Corrected overflow detection
1964         code.
1965         * java/lang/Integer.java (parseInt): Corrected overflow detection
1966         code.
1968         * java/io/PrintStream.java (print): Handle null string argument.
1969         (println): Likewise.
1971 1999-04-07  Warren Levy  <warrenl@cygnus.com>
1973         * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
1974         Set count to 0 when InputStreamReader returns -1 for EOF.
1976 1999-04-07  Tom Tromey  <tromey@cygnus.com>
1978         * mauve-libgcj: Omit java.text.Collator,
1979         java.text.RuleBasedCollator.
1981 1999-04-06  Tom Tromey  <tromey@cygnus.com>
1983         * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
1984         IOException from getHttpHeaders().
1985         (getHeaderFieldKey): Likewise.
1987         * include/javaprims.h: Regenerated declarations.
1989         * Makefile.in: Rebuilt.
1990         * Makefile.am (ordinary_java_source_files): Updated for removed
1991         files.
1993 1999-04-06  Per Bothner  <bothner@cygnus.com>
1995         * java/util/zip/Adler32.java:  New class.
1996         * java/util/zip/CRC32.java:  Add working method bodies.
1997         * Makefile.am (ordinary_java_source_files):  Add new Adler32 class.
1998         * Makefile.in:  Re-generate.
2000 Tue Apr  6 18:28:42 1999  Warren Levy  <warrenl@cygnus.com>
2002         * gnu/gcj/protocol/http/Connection.java: New file.  Rewritten
2003         from version in removed www hierarchy.
2004         * gnu/gcj/protocol/http/Handler.java: New file.  Copied from
2005         version in removed www hierarchy.
2007         * gnu/gcj/www/protocol/http/Connection.java: Removed.
2008         * gnu/gcj/www/protocol/http/Handler.java: Removed.
2009         * gnu/gcj/www/protocol/http: Removed dir.
2010         * gnu/gcj/www/protocol: Removed dir.
2011         * gnu/gcj/www: Removed dir.
2013         * java/net/HttpURLConnection.java: Revised comments to indicate
2014         missing JDK 1.2 methods.
2016         * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
2017         hierarchy rather than the gnu/gcj/www/protocol one.
2018         * java/net/URLConnection.java: Updated status comments.
2019         (setContentHandler): Look in gnu/gcj/content hierarchy rather than
2020         the gnu/gcj/www/content one.
2022 1999-04-06  Per Bothner  <bothner@cygnus.com>
2024         * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
2025         The gen-from-JIS program is in $(CONVERT_DIR).
2027 1999-04-06  Tom Tromey  <tromey@cygnus.com>
2029         * mauve-libgcj: Renamed from mauve-libjava.
2031 Tue Apr  6 03:18:38 1999  Warren Levy  <warrenl@cygnus.com>
2033         * java/net/HttpURLConnection.java (getResponseCode): Implemented.
2034         (getResponseMessage): Implemented.
2035         (getResponseVals): New private method.
2037         * java/net/URLConnection.java (getContent): Implemented.
2038         (setContentHandler): Convert non-alphabetic/numeric chars per spec.
2040 1999-04-05  Tom Tromey  <tromey@cygnus.com>
2042         * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
2043         (jv_convert_SOURCES): Renamed.
2044         (EXTRA_jv_convert_SOURCES): Likewise.
2045         (jv_convert_LDFLAGS): Likewise.
2046         (jv_convert_LINK): Likewise.
2047         (jv_convert_LDADD): Likewise.
2048         (jv_convert_DEPENDENCIES): Likewise.
2050         * Makefile.in: Rebuilt.
2051         * Makefile.am (toolexeclibdir): Reference toolexecdir, not
2052         tooldir.
2054 Mon Apr  5 02:14:35 1999  Warren Levy  <warrenl@cygnus.com>
2056         * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
2057         method for comparison.
2059         * java/net/URLConnection.java (getContentLength): Implemented.
2060         (getContentType): Implemented.
2061         (getContentEncoding): Implemented.
2062         (getExpiration): Implemented.
2063         (getDate): Implemented.
2064         (getLastModified): Implemented.
2065         (getHeaderFieldInt): Implemented.
2066         (getHeaderFieldDate): Implemented.
2068 Fri Apr  2 18:04:52 1999  Warren Levy  <warrenl@cygnus.com>
2070         * java/net/URLConnection.java (toString): Implemented.
2071         (setContentHandlerFactory): Implemented.
2072         (setContentHandler): Wrote new private helper method.
2074 1999-04-01  Tom Tromey  <tromey@cygnus.com>
2076         * Makefile.in: Rebuilt.
2077         * Makefile.am ($(java_source_files:.java=.class): Reverted change
2078         of 1999-03-31; we always want to build all the .class files.
2079         Depend on java_source_files, not libgcj.zip.
2080         (nat_headers): Define in terms of ordinary_java_source_files.
2082 1999-03-31  Tom Tromey  <tromey@cygnus.com>
2084         * Makefile.in: Rebuilt.
2085         * Makefile.am (special_java_source_files): New macro.
2086         (java_source_files): Use it.
2087         (ordinary_java_source_files): New macro.
2088         (java_source_files): Use it.
2089         ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
2090         creating headers for those files with hand-maintained headers.
2092         * include/javaprims.h: Regenerated namespace declarations.
2093         * classes.pl (scan): Include [0-9] in regexp for matching class
2094         names; for java.util.zip.CRC32.
2096         * Makefile.in: Rebuilt.
2097         * Makefile.am (nat_headers): Redefined to generate all possible
2098         header files.
2100         * java/util/zip/ZipException.java: In package java.util.zip, not
2101         java.net.
2103 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2105         * configure: Rebuilt.
2106         * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
2107         eh-common.h when not building in tree with gcc.
2109         * Makefile.in: Rebuilt.
2110         * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
2111         $(libgcj_a_OBJECTS)): Changed how we list files that depend on
2112         nat_headers.
2113         ($(java_source_files:.java=.class)): New target.
2115         * Makefile.in: Rebuilt.
2116         * Makefile.am (java_source_files): Added
2117         java/net/HttpURLConnection.java and
2118         gnu/gcj/www/protocol/http/Connection.java.
2120 Tue Mar 30 15:20:45 1999  Warren Levy  <warrenl@cygnus.com>
2122         * gnu/gcj/www/protocol/http/Connection.java: New file.
2123         * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
2124         * java/net/HttpURLConnection.java: New file.
2125         * java/net/URLConnection.java (getHeaderField): Implemented default.
2126         (getHeaderFieldKey): Implemented default method.
2128 1999-03-30  Tom Tromey  <tromey@cygnus.com>
2130         * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
2132         * java/util/zip/Deflater.java: Added copyright header.
2133         * java/util/zip/CRC32.java: Added copyright header.
2135         * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
2136         that it is automatically generated.
2137         ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
2139         * gnu/gcj/convert/BytesToUnicode.java,
2140         gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
2141         gnu/gcj/convert/Input_EUCJIS.java,
2142         gnu/gcj/convert/Input_UTF8.java,
2143         gnu/gcj/convert/JIS0208_to_Unicode.cc,
2144         gnu/gcj/convert/JIS0212_to_Unicode.cc,
2145         gnu/gcj/convert/Output_8859_1.java,
2146         gnu/gcj/convert/Output_JavaSrc.java,
2147         gnu/gcj/convert/Output_UTF8.java,
2148         gnu/gcj/convert/UnicodeToBytes.java,
2149         gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
2151         * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
2153         * Makefile.in, configure: Rebuilt.
2154         * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
2155         not if test subdir exists.
2156         (--enable-gcj-classes): Removed; gcj always used to generate
2157         .class files.
2158         (JAVA, JAVAC): Removed.
2159         (--enable-single-compilation, --enable-source-compilation):
2160         Removed.
2161         (here): New subst.
2162         (NATIVE): New conditional.
2163         * Makefile.am (toolexecdir): Renamed from tooldir to allow
2164         `install-exec' to work.
2165         (toolexeclibdir): Likewise.
2166         (toollib_LIBRARIES): Likewise.
2167         (AM_MAKEFLAGS): Don't pass tooldir.
2168         (JAVAC): New macro.
2169         (javao_files): Redefined.
2170         (java_source_files): New macro.
2171         (c_source_files): New macro.
2172         (c_files): Redefined in terms of c_source_files.
2173         (java_io_files, java_lang_files, java_net_files, java_text_files,
2174         java_util_files, gnu_files, java_files): Removed.
2175         (class_io_files, class_lang_files, class_net_files,
2176         class_text_files, class_util_files, class_gnu_files, class_files):
2177         Removed.
2178         (nat_source_files): New macro.
2179         (nat_files): Redefined in terms of nat_source_files.
2180         (EXTRA_libgcj_a_SOURCES): Added c_source_files,
2181         java_source_files.  Removed no-such-file.c.
2182         (here): Removed.
2183         (ETAGS_ARGS): Removed.
2184         (TAGS_DEPENDENCIES): Likewise.
2185         (libgcj.zip): Depend on java_source_files.  Use $(here) and not
2186         pwd in rule.
2187         (src_io_files, src_lang_files, src_text_files, src_util_files,
2188         src_gnu_files): Removed.
2189         Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
2190         (BUILT_SOURCES): Removed.
2191         (header-check): New target.
2192         (javadir): Removed.
2193         (noinst_PROGRAMS): New macro.
2194         ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
2195         on MAINTAINER_MODE.
2196         ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
2197         (gen-from-JIS): Build in top directory.
2198         (convert_source_files): New macro.
2199         (convert_SOURCES): New macro.
2200         (convert_LDFLAGS): Likewise.
2201         (convert_LINK): Likewise.
2202         (convert_LDADD): Likewise.
2203         (convert_DEPENDENCIES): Likewise.
2204         (convert): Removed.
2205         (gen-from-JIS): Removed.
2206         (gen_from_JIS_SOURCES): New macro.
2207         (gen_from_JIS_LDADD): Likewise.
2208         (gen_from_JIS_DEPENDENCIES): Likewise.
2210         * configure: Rebuilt.
2211         * configure.in (CANADIAN): Set to `yes', not `canadian'.
2212         (NULL_TARGET): Initialize to `no'.  Correctly examine $NULL_TARGET
2213         when defining conditional.
2215 Tue Mar 30 10:36:27 1999  Per Bothner  <bothner@cygnus.com>
2217         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  Remove these files.
2218         The Unicode Consortium does not permit their re-distribution.
2219         * Makefile.am, Makefile.in:  Add comments with URLs for removed files.
2220         (JIS0208.h, JIS0212.h):  Do not depend on removed files.
2222 Mon Mar 29 18:58:13 1999  Per Bothner  <bothner@cygnus.com>
2224         * natSystem.c (init_properties):  Use malloc, realloc, free after all.
2226 Mon Mar 29 13:41:02 1999  Per Bothner  <bothner@cygnus.com>
2228         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  New mapping tables
2229         from Unicode Consortium.
2230         * gnu/gcj/convert/{JIS0208.h,JIS0212.h}:  New generated headers.
2231         * gnu/gcj/convert/gen-from-JIS.c:  New utility for maintainers only.
2232         * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
2233         New tables, generated using gen-from-JIS.
2234         * gnu/gcj/convert/Output_JavaSrc.java:  New UnicodeToBytes class.
2235         * gnu/gcj/convert/Output_UTF8.java:  Fix bug.
2236         * gnu/gcj/convert/Input_EUCJIS.java:  New BytesToUnicode class.
2237         * gnu/gcj/convert/natInput_EUCJIS.cc:  Native methods for new class.
2239         * gnu/gcj/convert/Convert.java:  New application.
2240         * Makefile.am, Makefile.in (convert):  New program, using Convert.
2241         Build the various JIS conversion tables (in maintainer mode).
2243 Fri Mar 26 16:51:30 1999  Warren Levy  <warrenl@cygnus.com>
2245         * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
2247         * java/net/URL.java (URL): Deal with null property value.  Use "."
2248         as separator in building class name.
2249         * java/net/URLConnection.java: Implemented majority of stubbed methods.
2250         * java/net/URLStreamHandler.java (parseURL): Use "" in string
2251         manipulations instead of 'null'.  Comment cleanup.  Use 0 for the
2252         beginning of the substring rather than 'start'.
2254 1999-03-26  Tom Tromey  <tromey@cygnus.com>
2256         * include/java-chartables.h: Rebuilt.
2257         * include/java-chardecomp.h: New file.
2258         * chartables.pl: Generate output files directly.  Added support
2259         for generating decomposition header.
2260         (canonical_decomposition, full_decomposition): New globals.
2261         (DECOMPOSITION): New constant.
2262         (process_char): Call add_decomposition.
2263         (add_decomposition): New sub.
2264         (write_decompositions): New sub.
2266 1999-03-25  Tom Tromey  <tromey@cygnus.com>
2268         * java/text/CollationElementIterator.java: New file.
2270         * mauve-libjava: Omit StringTest.
2272 Wed Mar 24 15:17:49 1999  Warren Levy  <warrenl@cygnus.com>
2274         * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
2275         without a '/' when parsing protocol.  Handle ref outside of parseURL.
2276         (hashCode): Implemented.
2277         (set): Don't expand -1 to default port.
2278         (getDefaultPort): Removed.
2280         * java/net/URLStreamHandler.java (parseURL): Implemented.
2281         (toExternalForm): Implemented.
2283 1999-03-23  Tom Tromey  <tromey@cygnus.com>
2285         * java/text/BreakIterator.java (getSentenceInstance):
2286         Implemented.
2287         * gnu/gcj/text/SentenceBreakIterator.java: New file.
2289         * Makefile.in: Rebuilt.
2290         * Makefile.am (nat_headers): Added IllegalAccessException.
2291         * java/lang/natClass.cc (newInstance): Throw
2292         IllegalAccessException, not IllegalAccessError.
2293         Include IllegalAccessException.h.
2295 1999-03-22  Tom Tromey  <tromey@cygnus.com>
2297         * gnu/gcj/text/LineBreakIterator.java: New file.
2298         * java/text/BreakIterator.java (getLineInstance): Implemented.
2300         * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
2301         copy constructor private.
2302         (previous, next): Removed erroneous comment about line
2303         separators.
2304         (previous): Correctly recognize break between non-letter on the
2305         left and letter on the right.  Handle apostrophes correctly.
2307         * java/text/BreakIterator.java (getWordInstance): Implemented.
2308         * gnu/gcj/text/WordBreakIterator.java: New file.
2309         * gnu/gcj/text/CharacterBreakIterator.java: Extend
2310         BaseBreakIterator.
2311         * gnu/gcj/text/BaseBreakIterator.java: New file.
2313 1999-03-19  Tom Tromey  <tromey@cygnus.com>
2315         * java/text/BreakIterator.java: New file (partially stubbed out).
2316         * gnu/gcj/text/CharacterBreakIterator.java: New file.
2318         * include/config.h.in: Rebuilt.
2319         * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
2320         (HAVE_TIMEZONE): Likewise.
2321         * configure: Rebuilt.
2322         * configure.in: Added timezone checks.
2323         * java/util/natGregorianCalendar.cc (computeTime): Adjust for
2324         timezone.
2326 Fri Mar 19 15:26:35 1999  Per Bothner  <bothner@cygnus.com>
2328         * gnu/gcj/convert/BytesToUnicode.java:  New abstract class.
2329         * gnu/gcj/convert/UnicodeToBytes.java:  New abstract class.
2330         * gnu/gcj/convert/Input_8859_1.java:  New BytesToUnicode sub-class.
2331         * gnu/gcj/convert/Input_UTF8.java:  New BytesToUnicode sub-class.
2332         * gnu/gcj/convert/Output_8859_1.java:  New UnicodeToBytes sub-class.
2333         * gnu/gcj/convert/Output_UTF8.java:  New UnicodeToBytes sub-class.
2334         * java/io/InputStreamReader.java:  Rewrite to use BytesToUnicode.
2335         * java/io/OutputStreamWriter.java:  Rewrite to use UnicodeToBytes.
2337         * java/io/natFileDescriptorPosix.cc (open):  Use O_BINARY flag.
2338         (BSD_COMP):  Kludge needed for Solaris2.
2340 Fri Mar 19 01:49:46 1999  Warren Levy  <warrenl@cygnus.com>
2342         * java/net/URL.java (URL(java.net.URL, string): Moved code to
2343         URL(java.net.URL, string, URLStreamHandler) and call it with a
2344         null handler.  In latter constructor, added SecurityManager check.
2345         (set): Expect null handler on bad protocol rather than an exception.
2346         (setURLStreamHandler): Simplified exception handling; return null
2347         on invalid protocol.
2349 1999-03-18  Tom Tromey  <tromey@cygnus.com>
2351         * java/text/DecimalFormat.java (format(long,...)): Rewrote.
2353         * java/lang/natSystem.cc (setOut, setIn, setErr): New native
2354         methods.
2355         Include PrintStream.h, InputStream.h.
2356         * java/lang/System.java (ForwardingInputStream,
2357         ForwardingOutputStream): Removed.
2358         (setErr, setIn, setOut): Now native.
2360         Reverted patch from 1999-02-12 to work around problem in
2361         libgcc2.c.
2362         * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
2363         (_Jv_eh_free): Use free.
2365         * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
2366         for path name.  Minor formatting fixes.
2368         * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
2370         * prims.cc (fail_on_finalization): New function.
2371         (_Jv_GCWatch): Likewise.
2373         * prims.cc (JvRunMain): Initialize `nullp'.
2374         (nullp): New global.
2375         (catch_segv): Throw nullp.
2377         * Makefile.in: Rebuilt.
2378         * Makefile.am (ZIP): In "null target" case, zip is found in the
2379         build tree.
2381         * prims.cc (_Jv_PrimClass): Initialize all elements of class
2382         object.
2383         Include Modifier.h.
2385         * java/lang/StringBuffer.java (StringBuffer): Don't use
2386         ensureCapacity to set initial capacity.
2387         (capacity): Subtract `length' from return result.
2389 Thu Mar 18 01:53:35 1999  Warren Levy  <warrenl@cygnus.com>
2391         * java/io/natFileDescriptorPosix.cc (open): Throw
2392         FileNotFoundException, but with filename and errno in msg.
2394 Wed Mar 17 11:09:30 1999  Warren Levy  <warrenl@cygnus.com>
2396         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
2397         functionality folded into java/net/URL.java per spec.
2398         
2399         * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
2400         than EEXIST for throwing FileNotFoundException.
2401         
2402         * java/net/URL.java: Folded in default URLStreamHandlerFactory 
2403         algorithm per JDK 1.2 doc.  Added SecurityManager checks.
2404         
2405         * java/net/URLStreamHandler.java (parseURL): Added stub.
2407 1999-03-15  Andrew Haley  <aph@cygnus.com>
2409         * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
2410         by one errors.
2412 1999-03-15  Andrew Haley  <aph@cygnus.com>
2414         * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
2415         support.
2417 1999-03-12  Tom Tromey  <tromey@cygnus.com>
2419         * prims.cc (catch_segv): New function.
2420         Include <signal.h> if HANDLE_SEGV defined.  Include
2421         NullPointerException.h.
2422         (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
2423         handler.
2425         * java/text/SimpleDateFormat.java (equals): Ensure that object is
2426         a SimpleDateFormat, not just a DateFormat.
2427         (defaultCenturyStart, formatData, pattern): Now private.
2428         (append): Now `final'.  Use `NumberFormat.format'.
2429         (parse): Wrote.
2430         (SimpleDateFormat): Turn off groupin in NumberFormat object.
2432         * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
2433         result.
2435         * java/text/MessageFormat.java (format): Use default MessageFormat
2436         constructor.
2437         (parse, parseObject): Wrote.
2439         * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
2440         constructor.
2442 1999-03-12  Andrew Haley  <aph@cygnus.com>
2444         * java/lang/String.java (indexOf): Replace with native method for
2445         better performance.
2446         * java/lang/natString.cc (IndexOf): As above.
2448         * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
2449         Argument check corrected.
2450         (init(jbyteArray,jint,jint,jstring)): Likewise.
2451         
2452         * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
2453         1.2 compliant method.
2455         * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
2456         added.
2457         * java/lang/Float.java (byteValue, shortValue): Likewise.
2459 1999-03-11  Tom Tromey  <tromey@cygnus.com>
2461         * java/text/DecimalFormat.java (parse): Wrote.
2463         * java/text/ChoiceFormat.java (parse): Set error index on
2464         ParsePosition object.
2466         * java/lang/Integer.java (parseInt): Throw exception on overflow
2467         when intermediate result is most negative number.  Changed
2468         overflow detection as well.
2469         * java/lang/Long.java (parseLong): Likewise.
2471         * configure, Makefile.in: Rebuilt.
2472         * configure.in (NULL_TARGET, CANADIAN): New conditionals.  Set
2473         CANADIAN when building in source tree that doesn't include gcc.
2474         * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
2475         define.
2477         * java/text/ChoiceFormat.java (nextDouble): Correct some
2478         off-by-one errors when masking or adding.
2480         * java/text/DecimalFormat.java (format): Fill in FieldPosition
2481         parameter, if given.  Use `%', not IEEEremainder.
2482         (scanFix): Throw error if multiplier already set.
2483         (computePattern): Wrote.
2485 1999-03-11  Andrew Haley  <aph@cygnus.com>
2487         * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
2488         52.
2489         (nextDouble): Corrected masking logic.  Handle interaction between
2490         `next' and negative numbers.
2492 Wed Mar 10 18:58:37 1999  Warren Levy  <warrenl@cygnus.com>
2494         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
2495         * java/net/URL.java: Added general comments.
2497 1999-03-10  Tom Tromey  <tromey@cygnus.com>
2499         * java/text/ChoiceFormat.java (parse): Wrote.
2501         * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
2503         * java/text/MessageFormat.java (MessageFormatElement.setLocale):
2504         Create ChoiceFormat objects.
2505         (format): Special-case ChoiceFormat.
2506         (scanFormatElement): Include { and } in generated style string.
2508 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2510         * java/text/ChoiceFormat.java: New file.
2512 Tue Mar  9 17:09:18 1999  Warren Levy  <warrenl@cygnus.com>
2514         * java/net/BindException.java: Created.
2515         * java/net/ConnectException.java: Created.
2516         * java/net/ContentHandler.java: Created.
2517         * java/net/ContentHandlerFactory.java: Created.
2518         * java/net/FileNameMap.java: Created.
2519         * java/net/MalformedURLException.java: Created.
2520         * java/net/NoRouteToHostException.java: Created.
2521         * java/net/ProtocolException.java: Created.
2522         * java/net/ServerSocket.java (@author): Fixed typo.
2523         * java/net/Socket.java (@author): Fixed typo.
2524         * java/net/SocketImpl.java (@author): Fixed typo.
2525         * java/net/SocketImplFactory.java (@author): Fixed typo.
2526         * java/net/URL.java: Created - nearly complete.
2527         * java/net/URLConnection.java: Created - near-empty stub.
2528         * java/net/URLStreamHandler.java: Created - incomplete stub.
2529         * java/net/URLStreamHandlerFactory.java: Created.
2530         * java/net/UnknownServiceException.java: Created.
2532 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2534         * java/lang/System.java (ForwardingInputStream): New class.
2535         (ForwardingOutputStream): Likewise.
2536         (in, out, err): Now `final' forwarding streams.
2537         (setIn, setOut, setErr): Use appropriate method on forwarding
2538         streams.
2540         * java/text/MessageFormat.java (MessageFormatElement): Now `final'
2541         class.
2543 Tue Mar  9 12:16:53 1999  Per Bothner  <bothner@cygnus.com>
2545         * java/util/zip/CRC32.java:  New class (just an incomplete stub).
2546         * java/util/zip/Checksum.java:  New interface (complete).
2547         * java/util/zip/Deflater.java:  New class (near-empty stub).
2548         * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
2549         * java/util/zip/ZipConstants.java:  New interface (near-empty stub).
2550         * java/util/zip/ZipEntry.java:  New class (complete).
2551         * java/util/zip/ZipException.java:  New class (complete).
2552         * java/util/zip/ZipFile.java:  New class (incomplete stub).
2553         * java/util/zip/ZipOutputStream.java:  New class (incomplete stub).
2555 1999-03-09  Tom Tromey  <tromey@cygnus.com>
2557         * java/text/MessageFormat.java (MessageFormatElement): Removed
2558         `public' specifiers.
2560         * java/text/DecimalFormat.java (scanFormat): Increment index
2561         before processing exponential format.  Fixed a couple typos in
2562         exception messages.
2563         (format): Correct normalization of exponent.
2565 1999-03-08  Tom Tromey  <tromey@cygnus.com>
2567         * java/text/SimpleDateFormat.java (parse): Throw
2568         IllegalArgumentException, not ParseException.
2570 1999-03-05  Tom Tromey  <tromey@cygnus.com>
2572         * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
2573         when constructing DateFormatSymbols.  Initialize numberFormat
2574         field of superclass.
2576         * java/text/DateFormat.java (equals): Rewrote.
2577         (getAvailableLocales): New method.
2578         (getDateInstance): New methods.
2579         (getDateTimeInstance): Likewise.
2580         (getTimeInstance): Likewise.
2581         (getInstance): New method.
2582         (computeInstance): New method.
2584         * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
2585         for US.
2586         (safeGetResource): New method.
2587         (DateFormatSymbols): Use Locale paramater.
2588         (equals): Now protected.
2589         Made instance variables private.
2591 1999-03-04  Tom Tromey  <tromey@cygnus.com>
2593         * java/text/DecimalFormat.java: New file.
2595         * java/text/NumberFormat.java (groupingUsed,
2596         maximumFractionDigits, maximumIntegerDigits,
2597         minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
2598         New fields.
2599         (setDecimalSeparatorAlwaysShown, setMultiplier,
2600         setPositivePrefix): Removed.
2601         (setMinimumFractionDigits, setMaximumFractionDigits):
2602         Implemented.
2603         (format): Now final.
2604         Added many new methods.
2606         * Makefile.in: Rebuilt.
2607         * Makefile.am (gnu_files): New macro.
2608         (java_files): Added gnu_files.
2609         (class_gnu_files): New macro.
2610         (class_files): Use it.
2611         (src_gnu_files): New macro.
2612         (gnu.o): New target.
2613         (javao_files): Added gnu.o.
2615         * gnu/gcj/text/LocaleData_en_US.java: New file.
2616         * gnu/gcj/text/LocaleData_en.java: New file.
2617         * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
2618         (DecimalFormatSymbols): Use ResourceBundle to find resources.
2619         (safeGetString): New method.
2620         (safeGetChar): Likewise.
2622 1999-03-03  Tom Tromey  <tromey@cygnus.com>
2624         * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2625         constants.
2627         * java/text/FieldPosition.java (equals): Don't check for null
2628         object; instanceof does this.
2630         * java/util/Locale.java (clone): New method.
2631         (equals): Likewise.
2633 Wed Mar  3 17:20:15 1999  Anthony Green  <green@cygnus.com>
2635         * doc/cni.sgml: New file.
2637 1999-03-03  Tom Tromey  <tromey@cygnus.com>
2639         * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2641         * java/text/DecimalFormatSymbols.java: New file.
2643 1999-03-02  Tom Tromey  <tromey@cygnus.com>
2645         * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2646         exists.
2647         * configure: Rebuilt.
2648         * configure.in: Check for sys/filio.h.
2650         * java/lang/Runtime.java (checkLink): Throw NullPointerException
2651         if required.
2652         (load): Always throw UnsatisfiedLinkError.
2653         (loadLibrary): Likewise.
2655 1999-03-02  Anthony Green  <green@cygnus.com>
2657         * LIBGCJ_LICENSE: New file.
2658         * LIBJAVA_LICENSE: Removed.
2659         * Many files: libjava now libgcj.
2660         
2661 1999-03-02  Tom Tromey  <tromey@cygnus.com>
2663         * include/java-chartables.h: Rebuilt.
2664         * chartables.pl (print_block): Make table `const'.
2665         (print_numerics): Likewise.
2666         (print_single_map): Likewise.
2667         (print_all_block): Likewise.
2668         (print_case_table): Likewise.
2669         (print_fast_tables): Likewise.
2670         * java/lang/natCharacter.cc (table_search): `table' argument now
2671         const.
2673 1999-03-01  Tom Tromey  <tromey@cygnus.com>
2675         * java/util/Date.java (before, after): Inverted logic.
2677         * java/util/Date.java (parse): Handle case where first character
2678         in string is open parenthesis.
2679         (skipParens): Rewrote.
2681         * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2682         * java/lang/reflect/natField.cc: Include <stdlib.h>.
2684         * java/util/Date.java (parse): Correctly compute beginning of
2685         punctuation.
2687         * java/util/Hashtable.java (get): Throw NullPointerException if
2688         key is null.
2689         (containsKey): Likewise.
2691         * java/util/Properties.java (list): Truncate value to 37
2692         characters and add `...'.
2694         * java/lang/Byte.java (parseByte): Pass `radix' to
2695         Integer.parseInt.
2697         * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2698         fprintf.
2699         Include System.h, PrintStream.h.
2701         * java/lang/natSystem.cc (init_properties): Don't use malloc,
2702         realloc, or free.
2704         * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2705         exists.
2706         * configure: Rebuilt.
2707         * configure.in: Check for getpwuid_r.  Look for `pwd.h', not
2708         `pwd.d'.
2710         * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2712         * java/lang/SecurityManager.java: Import java.net.*.
2713         (checkMulticast): New methods.
2715 Fri Feb 26 14:54:52 1999  Per Bothner  <bothner@cygnus.com>
2717         * Makefile.am, Makefile.in (java/lang/reflect/Method.h):  New rule.
2718         (nat_files):  Add java/lang/reflect/natArray.o.
2719         (nat_headers):  Add Field.h and NoSuchFieldException.h.
2720         
2721         * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2722         _Jv_GetStaticShortField, _Jv_GetStaticByteField):  New inline methods.
2723         (_Jv_FromReflectedField):  Fix buglet.
2724         * include/jvm.h (_Jv_NewMultiArray):  New declaration.
2725         * include/java-assert.h (JvFail):  Pass message string to _Jv_Abort.
2726         * prims.cc (_Jv_Abort):  Include message in print-out.
2728         * prims.cc (_Jv_equal):  New method (compare Utf8Const and jstring).
2729         (new_multi_array):  Rename to _Jv_NewMultiArray.  Make non-static.
2730         * include/jvm.h (_Jv_NewMultiArray, _Jv_equal):  New declarations.
2732         * configure.in (AC_CHECK_HEADERS), configure:  Add pwd.h.
2733         * include/config.h.in (HAVE_PWD_H):  New feature macro.
2734         * java/lang/natSystem.cc (init_properties):  Set file.encoding,
2735         user.name, user.home, user.dir.
2737         * java/lang/reflect/Array.java:  New class.
2738         * java/lang/reflect/natArray.cc:  New native methods.
2739         * include/javaprims.h:  Declare java::lang::reflect::Array.
2741         * java/lang/Class.h (getField):  New private method.  Add friends.
2742         * java/lang/Class.java (getField):  Add private overload.
2743         * java/lang/natClass.cc (getField, getField, getDeclaredField,
2744         getDeclaredMethods):  Add working implementations.
2745         * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2746         Finish implementation, except for access control.
2748         * java/lang/reflect/Modifier.java (toString):  New overload.
2749         * include/java-method.h:  New file.
2750         * java/lang/reflect/Method.java (index):  Replaced by offset field.
2751         Remove various private fields - get them from _Jv_Field instead.
2752         * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2753         New method implementations.
2755         * java/text/NumberFormat.java:  Add a bunch of methods.
2757 Mon Feb 22 17:52:34 1999  Per Bothner  <bothner@cygnus.com>
2759         * java/lang/StringBuffer.java (getChars):  Fix bounds checks.
2761 1999-02-26  Tom Tromey  <tromey@cygnus.com>
2763         * include/config.h.in: Rebuilt.
2764         * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2765         GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2766         HAVE_GETHOSTBYADDR_R): New defines.
2767         * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2768         gethostbyaddr_r if available.
2769         Include <errno.h>.
2770         * configure: Rebuilt.
2771         * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2773         * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2774         Don't use JvFree.
2775         (lookup): Likewise.
2776         Include <jvm.h>.
2777         * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2778         * prims.cc (_Jv_AllocBytesChecked): New function.
2780         * Makefile.in: Rebuilt.
2781         * Makefile.am (SUBDIRS): Removed `test'.
2782         * configure: Rebuilt.
2783         * configure.in: Don't build test/Makefile.
2784         * test/*: Removed all files.
2786 Thu Feb 25 17:27:37 1999  Warren Levy  <warrenl@cygnus.com>
2788         * java/lang/reflect/Constructor.java: Make class final to match spec.
2789         * java/lang/reflect/Method.java: Ditto.
2791 1999-02-25  Tom Tromey  <tromey@cygnus.com>
2793         * java/net/natInetAddress.cc: Include <sys/types.h> before
2794         <sys/socket.h>.
2795         * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2796         <sys/socket.h>.
2798         * java/net/natInetAddress.cc: Declare gethostname if required.
2799         * include/config.h.in: Rebuilt.
2800         * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2801         * configure: Rebuilt.
2802         * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2803         declared in unistd.h.
2805 1999-02-24  Tom Tromey  <tromey@cygnus.com>
2807         * Makefile.in: Rebuilt.
2808         * Makefile.am (java/io/FileDescriptor.h): Removed target.
2809         * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2810         from private to "none".
2812         * include/javaprims.h: Regenerated class declarations with new
2813         classes.pl.
2814         * classes.pl (scan): Only generate decls for java.lang, java.io,
2815         and java.util.
2817 1999-02-24  Tom Tromey  <tromey@cygnus.com>
2819         * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2820         (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2822 1999-02-23  Tom Tromey  <tromey@cygnus.com>
2824         * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2825         not already defined.
2826         * java/io/natFile.cc (_REENTRANT): Only define if not already
2827         defined.
2828         * include/config.h.in: Rebuilt.
2829         * acconfig.h (HAVE_BOEHM_GC): New define.
2830         * configure: Rebuilt.
2831         * configure.in: Define HAVE_BOEHM_GC if using it.
2832         * posix-threads.cc: Include boehm-config.h and gc.h if
2833         HAVE_BOEHM_GC.
2834         * include/posix-threads.h: Added explanatory note about Boehm GC.
2836         * java/io/BufferedReader.java (readLine): Only return null when
2837         EOF seen before any characters read.  (In particular, an empty
2838         line should not return null.)
2840         * java/io/BufferedInputStream.java (read): Only refill once per
2841         invocation.
2843         * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2844         java.lang.Character.classify12, java.lang.String.hash,
2845         java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2846         java.text.SimpleDateFormat.getAndSet2DigitYearStart
2848         * java/text/StringCharacterIterator.java (setIndex): No error if
2849         index == end.
2850         (next): Check for `pos == end', not `end - 1'.
2851         (StringCharacterIterator): Allow `pos == end'.  Explicitly check
2852         for null text in each constructor.
2853         (clone): Fixed order of arguments to constructor.
2855 1999-02-22  Tom Tromey  <tromey@cygnus.com>
2857         * include/config.h.in: Rebuilt.
2858         * acconfig.h (HAVE_INET6): New define.
2859         (HAVE_SOCKLEN_T): Likewise.
2860         * java/net/PlainSocketImpl.java: Added copyright header.
2861         * java/net/natPlainSocketImpl.cc: Added copyright header.
2862         (union SockAddr): Use HAVE_INET6, not AF_INET6.
2863         (bind): Likewise.
2864         (connect): Likewise.
2865         (accept): Likewise.
2866         (socklen_t): New typedef.
2867         (accept): Use socklen_t.
2868         * java/net/natInetAddress.cc: Added copyright header.
2869         (HAVE_GETHOSTNAME): Don't define.
2870         (HAVE_INET_ADDR): Likewise.
2871         (lookup): Fixed typo.
2872         (aton): Don't use `address' as name of local variable.
2873         (lookup): Use HAVE_INET6, not AF_INET6.
2875         * configure: Rebuilt.
2876         * configure.in: Look for functions inet_aton, inet_addr,
2877         gethostname, inet_pton, uname.  Check for sockaddr_in6 structure.
2878         Check for socklen_t typedef.
2880         * exception.cc (__throw): Declare as __noreturn__.
2882 Mon Feb 22 15:27:35 1999  Per Bothner  <bothner@cygnus.com>
2884         * Makefile.am, Makefile.in:  Also build java/net.
2885         (java/io/FileDescriptor.h):  Add friend java::net::PlainSocketImpl.
2887         * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2888         * java/util/natGregorianCalendar.cc:  #define _REENTRANT.
2890         * prims.cc (_Jv_malloc, _Jv_Free):  New functions.
2891         * include/cni.h (JvMalloc, JvFree):  New inline functions.
2892         (JvThrow):  Add __noreturn__ attribute.
2893         * include/javaprims.h (_Jv_Malloc, _Jv_Free):  New declarations.
2894         (_Jv_Throw):  Add __noreturn__ attribute.
2896         * java/net/PlainSocketImpl.java:  Init fnum to -1.
2897         * java/net/ServerSocket.java:  Add missing throws clauses.
2898         * java/lang/Socket.java:  For the constructor taking a SocketImpl,
2899         don't call create on the latter.  Instead, other constructors
2900         have to explicitly call SocketImpl.create.
2901         * java/net/natPlainSocketImpl.cc (accept):  Change variable addrlen
2902         from size_t to int, to match ::accept prototype.
2903         * java/net/natInetAddress.cc:  Use JvFree rather than free.
2906 1999-02-22  Tom Tromey  <tromey@cygnus.com>
2908         * include/javaprims.h: Added new classes.
2909         * java/text/StringCharacterIterator.java: New file.
2910         * java/text/CharacterIterator.java: New file.
2912         * java/text/ParseException.java (errorOffset): Now private.
2914 Mon Feb 22 12:54:53 1999  Per Bothner  <bothner@cygnus.com>
2916         * java/net:  New package.
2917         * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2918         Socket.java,SocketException.java,SocketImpl.java,
2919         SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2920         natPlainSocketImpl.cc}:  New classes.
2922         * configure.in (AC_CHECK_HEADERS):  Also check for <sys/socket.h>,
2923         <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2924         * include/config.h.in:  Add place-holders for HAVE_ARPA_INET_H,
2925         HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2927         * classes.pl:  Translate package into "namespace", not "class".
2928         * include/javaprims.h:  Update class list, using "namespace".
2930 1999-02-21  Tom Tromey  <tromey@cygnus.com>
2932         * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2933         Define when appropriate.
2935 1999-02-20  Tom Tromey  <tromey@cygnus.com>
2937         * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2938         as a single byte and \u07ff as two bytes.
2939         (_Jv_GetStringUTFLength): Likewise.
2940         * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2941         with 0x0f, not 0x1f.
2943 1999-02-19  Tom Tromey  <tromey@cygnus.com>
2945         * java/io/DataOutputStream.java (writeUTF): When encoding
2946         character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2947         * java/io/DataInputStream.java (readUTF): Mask second byte of
2948         3-byte character with 0x3f, not 0x1f.
2950         * java/io/DataInputStream.java (readLong): Cast result of
2951         readUnsignedByte to long before using.
2953         * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2954         it is not null.
2956         * mauve-libjava: Re-enabled java.io.DataInputOutput.
2957         * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2958         argument to avoid warning.
2959         * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2960         argument to avoid warning.
2962 1999-02-18  Tom Tromey  <tromey@cygnus.com>
2964         * mauve-libjava: Omit java.io.DataInputOutput and
2965         java.io.Utf8Encoding.
2967 1999-02-17  Tom Tromey  <tromey@cygnus.com>
2969         * Makefile.in: Rebuilt.
2970         * Makefile.am (nat_headers): Added InterruptedIOException.h.
2971         * java/io/natFileDescriptorPosix.cc: Include
2972         InterruptedIOException.h, Thread.h.
2973         (write): Throw InterruptedIOException when required.
2974         (read): Likewise.
2975         * posix-threads.cc: Include <signal.h>.
2976         (_Jv_ThreadInterrupt): New function.
2977         (INTR): New define.
2978         (handle_intr): New function.
2979         (_Jv_InitThreads): Register handle_intr via sigaction.
2980         * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
2981         * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
2982         * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
2983         * include/no-threads.h (_Jv_ThreadInterrupt): New function.
2985 1999-02-19  Andrew Haley  <aph@cygnus.com>
2987         * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
2988         of subgroups.
2989         (ThreadGroup (int)): Set the maximum priority of the initial
2990         ThreadGroup.
2992 1999-02-18  Andrew Haley  <aph@cygnus.com>
2994         * java/lang/natClass.cc (forName): Check for the case where a
2995         classname is the name of an array and call FindClassFromSignature
2996         to find the Class.
2998 1999-02-18  Andrew Haley  <aph@cygnus.com>
3000         * java/lang/StringBuffer (insert (int, String)): Move up any
3001         characters above the insert position and increase the length of
3002         the string buffer by the length of the argument.
3003         (insert (int, char[])): Likewise.
3004         (insert (int, char)): Likewise.
3005         (StringBuffer (String)): The initial capacity of the string buffer
3006         is 16 plus the length of the argument.
3007         (getChars): Add a JDK 1.2 FIXME.
3009 1999-02-18  Andrew Haley  <aph@cygnus.com>
3011         * java/lang/Short.java (parseShort(String, int)): Pass radix to
3012         Integer.parseInt.
3014 1999-02-18  Andrew Haley  <aph@cygnus.com>
3016         * java/lang/Double.java (equals): Use a bit-by-bit comparision
3017         instead of floating-point equality.  This is necessary for
3018         correct floating-point Hashtables.
3019         * java/lang/Float.java (equals): Ditto.
3021 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3023         * java/util/Properties.java (list): Truncate value to 37
3024         characters and add "...".
3026 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3028         * java/util/Vector.java (Vector): Throw IllegalArgumentException
3029         if initCap is negative.
3030         (contains): Implement JDK1.2-style handling of null argument.
3031         (removeElement): Likewise.
3032         (indexOf): Likewise.  Also, correctly handle case where idx is
3033         negative.
3034         (lastIndexOf): Likewise.
3036 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3038         * java/lang/natString.cc (init): Increment source pointer in
3039         loop.
3041 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3043         * exception.cc: Include NullPointerException.h.
3044         (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
3046 1999-02-16  Tom Tromey  <tromey@cygnus.com>
3048         * Makefile.in: Rebuilt.
3049         * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
3051 Sat Feb 13 20:25:09 1999  Bonzo Armstrong  <bonzo@cygnus.com>
3053         * configure.in: Don't undefine EH_COMMON_INCLUDE just because
3054         we're compiling canadian.
3055         * configure: Regenerated.
3057 1999-02-12  Andrew Haley  <aph@cygnus.com>
3059         * java/lang/sf_rint.c: Resurrected.  This file shouldn't have been
3060         deleted from libgcj.
3062 1999-02-12  Tom Tromey  <tromey@cygnus.com>
3064         * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
3065         (_Jv_eh_free): Don't call free.
3066         Don't declare malloc or free.
3068 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3070         * configure.host: Use `libgcj', not `libjava'.  Removed `echo'.
3072 1999-02-11  Andrew Haley  <aph@cygnus.com>
3074         * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
3075         wf_fmod.c: Deleted.  These are all files from fdlibm which aren't
3076         needed by java.lang.*.
3077         * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
3078         wf_fmod.o: Removed from libjava.a.
3080 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3082         * include/javaprims.h: Reverted previous change; with it
3083         exception.cc can't compile.
3085         * include/javaprims.h (_Jv_Throw): Mark as noreturn.
3087         * include/config.h.in: Rebuilt.
3088         * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
3089         HAVE_SCHED_YIELD.
3090         * configure: Rebuilt.
3091         * configure.in: Check for sched_yield.  Look in thread library for
3092         all thread functions.
3094         * posix-threads.cc (_Jv_MutexInit): Handle case where system has
3095         no recursive mutexes.
3096         (_Jv_MutexDestroy): Define when required.
3097         (_Jv_MutexLock): Likewise.
3098         (_Jv_MutexUnlock): Likewise.
3099         (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
3100         * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
3101         (_Jv_Mutex_t): New structure.
3102         (_Jv_MutexDestroy): Only define if recursive mutexes available.
3103         (_Jv_MutexLock): Likewise.
3104         (_Jv_MutexUnlock): Likewise.
3106 1999-02-10  Tom Tromey  <tromey@cygnus.com>
3108         * aclocal.m4, configure, Makefile.in: Rebuilt.
3109         * acinclude.m4: Renamed libjava to libgcj.  Updated to use
3110         automake 1.4.
3111         * configure.in: Changed to track library changes.
3112         * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
3113         (AM_CXXFLAGS): Likewise.
3114         (data_DATA): Likewise.
3115         (AM_CFLAGS): Likewise.
3116         (JC1FLAGS): Likewise.
3117         (libgcj_a_SOURCES): Likewise.
3118         (EXTRA_libgcj_a_SOURCES): Likewise.
3119         (libgcj_a_DEPENDENCIES): Likewise.
3120         (libgcj_a_LIBADD): Likewise.
3121         (libgcj.zip): Likewise.
3122         (CLEANFILES): Likewise.
3123         ($(nat_headers)): Likewise.
3124         (java/lang/FirstThread.h): Likewise.
3125         (java/lang/ThreadGroup.h): Likewise.
3126         (java/lang/String.h): Likewise.
3127         (java/lang/reflect/Field.h): Likewise.
3128         (BUILT_SOURCES): Likewise.
3129         (maintainer-check): Likewise.
3130         (CONFIG_STATUS_DEPENDENCIES): Likewise.
3131 Tue Feb  9 11:06:38 1999  Anthony Green  <green@cygnus.com>
3133         * java/util/natGregorianCalendar.cc (computeFields): Only use
3134         gmtime_r and localtime_r when configured for posix threads.
3136         * java/io/natFile.cc (get_entry): Only use readdir_r when
3137         configured for posix threads.
3139         * java/util/natGregorianCalendar.cc: Update copyright notice.
3140         * java/util/TimeZone.java: Ditto.
3141         * java/util/SimpleTimeZone.java: Ditto.
3143 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3145         * java/io/PrintStream.java (line_separator): New constant.
3146         (print): Use line_separator, not `file.separator' property.
3147         (println): Use line_separator.
3149         * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
3150         when trying to instantiate Class.
3152         * java/lang/ThreadGroup.java (ThreadGroup): Throw
3153         NullPointerException if argument is null.
3155         * java/lang/Thread.java (setName): Throw NullPointerException, not
3156         IllegalArgumentException.
3157         (Thread): Likewise.
3159 1999-02-08  Andrew Haley  <aph@cygnus.com>
3161         * java/lang/natClass.cc (newInstance): Don't allow anyone to
3162         create new Classes with Class.newInstance().
3164         * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
3165         semiciolon to end of an array Class's signature if the elements of
3166         the array aren't themselves arrays.
3168         * java/lang/natSystem.cc (arraycopy): The size of an element of an
3169         array of objects is always sizeof(jobject), not the size of the
3170         object to which the reference points.
3172 1999-02-08  Tom Tromey  <tromey@cygnus.com>
3174         * java/util/BitSet.java (and): Throw NullPointerException when
3175         required.
3176         (or): Likewise.
3177         (xor): Likewise.
3179         * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
3180         if argument is negative.
3181         (clear): Correctly compute `offset'.  Throw
3182         IndexOutOfBoundsException when required.
3183         (set): Likewise.
3184         (get): Likewise.  Also, return correct value.
3185         (ensure): Changed meaning of argument.
3186         (toString): Wrap contents in `{}'; put spaces after commas.
3187         (hashCode): Don't try to examine elements off the end of array.
3188         (or): Correctly include bits past the end of this bit set.
3189         (xor): Likewise.
3191 Thu Feb  4 12:48:03 1999  Warren Levy  <warrenl@cygnus.com>
3193         * configure.host (mips-tx39-*): Use jmr3904dram.ld link script 
3194         instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
3196 1999-02-04  Andrew Haley  <aph@cygnus.com>
3198         * java/lang/natClass.cc (Class::forName): Remove code which mapped
3199         '/' in signatures to '.'
3200         (Class::getName): Likewise,
3201         (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
3202         signature.
3203         * java/lang/natFirstThread.cc (run): Change '/' in main's
3204         signature to '.'.
3206 1999-02-03  Andrew Haley  <aph@cygnus.com>
3208         * configure.host: -ffloat-store added when compiling libjava on
3209         x86.  fdlibm apparently relies on this.
3211         * java/lang/ThreadGroup.java (add): throw an exception if the
3212         ThreadGroup has been destroyed.
3214         * java/lang/natMath.cc (round): Ensure correct NaN and overflow
3215         behaviour.
3217 1999-01-27  Tom Tromey  <tromey@cygnus.com>
3219         * java/lang/StringBuffer.java (StringBuffer): Handle null
3220         argument.
3222 1999-01-21  Tom Tromey  <tromey@cygnus.com>
3224         * java/lang/natFirstThread.cc (run): Don't require main to be
3225         public.
3227 Wed Jan 20 15:44:56 1999  Anthony Green  <green@cygnus.com>
3229         * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
3231 1999-01-20  Tom Tromey  <tromey@cygnus.com>
3233         * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
3234         StringClass.
3235         (rehash): Likewise.
3236         (intern): Likewise.
3237         (unintern): Likewise.
3238         (_Jv_NewStringUtf8Const): Likewise.
3240         * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
3241         Character.isLetter, to see if character is self-quoting.  Also,
3242         correctly handle quoted characters.
3243         (parse): Fixed typo.  Also now throws ParseException.
3245 1999-01-15  Tom Tromey  <tromey@cygnus.com>
3247         * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
3249         * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
3250         _Jv_SyncInfo has `init' member.
3252         * include/quick-threads.h (_Jv_MutexUnlock): Return result of
3253         coop_mutex_unlock.
3255         * java/lang/natObject.cc (_Jv_MonitorExit): Throw
3256         IllegalMonitorStateException if unlock fails.
3258         * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
3259         zero.
3260         (_Jv_NewObjectArray): Likewise.
3262 1999-01-14  Tom Tromey  <tromey@cygnus.com>
3264         * java/lang/Character.java (isJavaIdentifierPart): Allow
3265         LETTER_NUMBER characters.
3267         * chartables.pl (process_char): Fixed error messages.
3269         * include/java-chartables.h: Rebuilt with UniData 2.1.8.
3270         * chartables.pl: Updated comments.  Changed detection of non-digit
3271         numeric values (no longer miss \u00b2 and friends).
3273         * java/lang/Character.java (isJavaIdentifierPart): Recognize
3274         currency symbols and connector punctuation.
3275         (isIdentifierIgnorable): Make 7f-9f ignorable.
3277         * prims.cc (_Jv_NewObjectArray): Check for overflow.
3278         (_Jv_NewPrimArray): Likewise.
3279         (SIZE_T_MAX): New define.
3281         * java/lang/ClassLoader.java (system): Now private and final.
3283         * boehm.cc (_Jv_MarkObj): Handle case where object's class is
3284         null.
3286         * configure: Rebuilt.
3287         * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
3288         well.
3289         * exception.cc: Include gansidecl.h.
3291 1999-01-14  Andrew Haley  <aph@cygnus.com>
3293         * java/lang/Math.java, java/lang/natMath.cc: min and max routines
3294         corrected: they didn't treat -0.0 and NaNs correctly.
3296 Wed Jan 13 13:32:22 1999  Anthony Green  <green@cygnus.com>
3298         * nogc.cc: Use calloc to zero out memory.
3300 1999-01-11  Tom Tromey  <tromey@cygnus.com>
3302         * java/lang/natClass.cc (isInstance): Return false if this class
3303         is primitive, not if class of `obj' is primitive.
3304         (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
3306         * java/io/SequenceInputStream.java (close): Handle case where `in'
3307         is already null.
3309         * java/text/DateFormat.java (format): New method.
3311         * mauve-libjava: Omit java.text.DateFormat.
3313 1999-01-08  Tom Tromey  <tromey@cygnus.com>
3315         * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
3316         argument.
3317         * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
3318         argument.
3319         (_Jv_CondNotifyAll): Likewise.
3321         * configure: Rebuilt.
3322         * configure.in: Change --enable-source-compilation logic to work
3323         correctly.
3325 1999-01-07  Andrew Haley  <aph@cygnus.co.uk>
3327         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
3328         and RUNTESTFLAGS from AM_MAKEFLAGS.
3329         * configure.in: AM_RUNTESTFLAGS added.
3330         * configure.host: AM_RUNTESTFLAGS added.
3331         * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
3332         * configure: rebuilt.
3333         * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
3335         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
3336         argv[] made conditional because embedded targets may not have
3337         argv[].
3338         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
3339         explanatory comments added in call to super.
3341         * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
3342         exception thrown in the test harness itself added.
3343         * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
3345 Wed Jan  6 17:27:39 1999  Per Bothner  <bothner@cygnus.com>
3347         * java/text/DateFormatSymbols.java (zoneStringsDefault):  Make static.
3349 1999-01-06  Tom Tromey  <tromey@cygnus.com>
3351         * java/io/natFile.cc (get_entry): New function.
3352         (performList): Use get_entry.
3353         * include/config.h.in: Rebuilt.
3354         * acconfig.h (HAVE_READDIR_R): New define.
3355         * configure: Rebuilt.
3356         * configure.in: Look for readdir_r.
3358         * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
3360         * java/util/natDate.cc: Added copyright header.
3362 1999-01-05  Tom Tromey  <tromey@cygnus.com>
3364         * include/config.h.in: Rebuilt.
3365         * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
3366         HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
3367         * configure: Rebuilt.
3368         * configure.in: Check for access, stat, mkdir, rename, rmdir,
3369         unlink, and realpath.
3370         * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
3371         (stat): Conditionalize on HAVE_STAT.
3372         (attr): Likewise.
3373         (getCanonicalPath): Conditionalize on HAVE_REALPATH.
3374         (performMkdir): Conditionalize on HAVE_MKDIR.
3375         (performRenameTo): Conditionalize on HAVE_RENAME.
3376         (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
3378         * include/config.h.in: Rebuilt.
3379         * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
3380         * configure: Rebuilt.
3381         * configure.in: Check for gmtime_r and localtime_r.  For cross
3382         builds, assume they exist.
3384         * mauve-libjava: Include java.text.DateFormatSymbols again.
3385         * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
3386         from setAmPmStrings.
3388         * mauve-libjava: Omit java.text.DateFormatSymbols.
3390 1999-01-04  Tom Tromey  <tromey@cygnus.com>
3392         * java/io/PushbackReader.java: `off' already includes `numBytes'.
3394         * java/io/LineNumberReader.java (read): Decrement `count' in
3395         loop.
3397         * java/io/BufferedWriter.java (write): Correctly determine when
3398         incoming data would overrun buffer.  Flush buffer if write causes
3399         it to become full.
3401         * java/io/BufferedOutputStream.java (write): Increment `count'
3402         after copying data into buffer.
3404         * java/io/FilterOutputStream.java (close): Call flush first.
3406         * java/io/PipedReader.java (read): If read causes `out' to catch
3407         up with `in', then set `in' to -1.
3409         * java/io/LineNumberInputStream.java (read): If no bytes read,
3410         return -1.  If no bytes requested, return 0.
3412         * java/lang/StringBuffer.java (insert): If `str' is null, use
3413         string "null".
3415 1998-12-30  Anthony Green  <green@cygnus.com>
3417         * README: Removed.
3418         * LIBJAVA_LICENSE, COPYING.LIB: Created.
3420 1998-12-23  Tom Tromey  <tromey@cygnus.com>
3422         * java/io/PushbackInputStream.java (read): `off' already includes
3423         `numBytes'.
3425 1998-12-17  Tom Tromey  <tromey@cygnus.com>
3427         * Makefile.in: Rebuilt.
3428         * Makefile.am (GCJ_canadian): Include target_alias.
3430         * java/lang/natFirstThread.cc (run): Require main's class to be
3431         public.
3433 1998-12-16  Tom Tromey  <tromey@cygnus.com>
3435         * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
3437         * java/util/ResourceBundle.java (getBundle): Throw
3438         NullPointerException if locale argument is null.
3440         * java/lang/natClass.cc (forName): Throw NullPointerException if
3441         argument is null.
3442         Include NullPointerException.h.
3444 1998-12-14  Tom Tromey  <tromey@cygnus.com>
3446         * java/lang/Character.java (Character): Implement Comparable.
3447         (compareTo): New methods.
3449         * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'.  Use
3450         correct country and language codes.
3451         (UK, US): New constants.
3452         (setDefault): Language codes are lower-case.
3454         * java/lang/natClass.cc (getDeclaredConstructor): New method.
3455         (getDeclaredConstructors): Likewise.
3456         (getDeclaredField): Likewise.
3457         (getDeclaredFields): Likewise.
3458         (getDeclaredMethod): Likewise.
3459         (getDeclaredMethods): Likewise.
3460         (getField): Likewise.
3461         (getFields): Likewise.
3462         (getMethod): Likewise.
3463         (getMethods): Likewise.
3464         * java/lang/Class.java: Declare new methods.
3465         * java/lang/Class.h: Declare new methods.
3467         * java/lang/natString.cc: Removed `#pragma implementation'.
3468         * include/cni.h (_Jv_GetStringChars): New function.
3469         * Makefile.in: Rebuilt.
3470         * Makefile.am (java/lang/String.h): Don't generate definition for
3471         _Jv_GetStringChars.
3473         * java/lang/natString.cc: Added `#pragma implementation'.
3475         * Makefile.in: Rebuilt.
3476         * Makefile.am (libjava.zip): Put build directory first in class
3477         path to avoid bug in compiler.
3479 1998-12-14  Anthony Green  <green@cygnus.com>
3481         * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
3483         * include/javaprims.h: Add EventObject, ListResourceBundle and
3484         ResourceBundle.
3486 1998-12-13  Anthony Green  <green@cygnus.com>
3488         * mauve-libjava: Run the ResourceBundle tests.
3490         * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
3491         NULL.
3493 Sun Dec 13 18:11:21 1998  Per Bothner  <bothner@cygnus.com>
3495         * configure.in, configure:  Make --enable-gcj-classes and
3496         --enable-source-compilation the default.  (Nervously...)  Yeah!
3497         Based on a patch from Tom Tromey.
3499 1998-12-13  Tom Tromey  <tromey@cygnus.com>
3501         * java/util/EventObject.java: New file.
3502         * java/util/EventListener.java: New file.
3504         * include/javaprims.h: Updated class declarations.
3505         * Makefile.in: Rebuilt.
3506         * Makefile.am (nat_headers): Added Constructor.h.
3507         (java/lang/String.h): Don't inline String::length().
3508         * java/lang/Class.h (getConstructor, getConstructors): Declare.
3509         * java/lang/Class.java (initializeClass, hackRunInitializers,
3510         hackTrampoline): No need to mark `final'.
3511         (getConstructor, getConstructors): Declare.
3512         * java/lang/reflect/Field.java (equals): New method.
3513         * java/lang/natClass.cc (getConstructor): New method.
3514         (getConstructors): Likewise.
3515         Include Method.h, Field.h, Constructor.h.
3516         * java/lang/reflect/Constructor.java: New file.
3517         * java/lang/reflect/Method.java (toString): No space before open
3518         paren.
3519         (equals): Simplified.
3521 1998-12-13  Anthony Green  <green@cygnus.com>
3523         * java/util/ResourceBundle.java: New file.
3524         * java/util/ListResourceBundle.java: New file.
3526 1998-12-12  Tom Tromey  <tromey@cygnus.com>
3528         * java/lang/System.java (in, out, err): Now buffered streams by
3529         default.
3531         * include/javaprims.h: Updated class declarations.
3532         * Makefile.in: Rebuilt.
3533         * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
3534         InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
3535         Long.h, Boolean.h.
3536         (nat_files): Added natMethod.o.
3537         * java/lang/reflect/natMethod.cc: New file.
3538         * java/lang/reflect/Field.java (Field): Now extends
3539         AccessibleObject.
3540         * java/lang/reflect/AccessibleObject.java: New file.
3541         * java/lang/reflect/InvocationTargetException.java: New file.
3543 1998-12-11  Tom Tromey  <tromey@cygnus.com>
3545         * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
3546         java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
3547         Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
3549         * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
3551 1998-12-09  Tom Tromey  <tromey@cygnus.com>
3553         * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
3554         HAVE_CTIME_R.
3556         * java/lang/natCharacter.cc (toTitleCase): Handle case where
3557         character is already titlecase.
3559         * java/lang/Character.java (isJavaLetter): Follow spec.
3560         (isJavaLetterOrDigit): Likewise.
3562         * java/util/GregorianCalendar.java (gregorianCutover): Append
3563         `L'.
3565         * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
3567 1998-12-08  Tom Tromey  <tromey@cygnus.com>
3569         * java/lang/reflect/Modifier.java (toString): Replace second
3570         `static' with `synchronized'.
3572         * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
3573         * java/lang/Object.h (Object::hack12_6): Declare.
3574         * java/lang/Object.java (hack12_6): New function.
3576 1998-12-07  Tom Tromey  <tromey@cygnus.com>
3578         * include/java-array.h (__JArray::clone): Removed decl.
3579         * prims.cc (__JArray::clone): Removed.
3580         * java/lang/natObject.cc (clone): Incorporate code to clone an
3581         array.
3583         * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
3584         (_Jv_FindArrayClass): Set dtable_method_count on new class.
3585         Correctly use dtable_method_count.
3587 1998-12-07  Andrew Haley  <aph@cygnus.co.uk>
3589         * java/lang/Double.java (isInfinite, isNaN): Handle correct
3590         IEEE754 values.
3592 1998-12-06  Anthony Green  <green@cygnus.com>
3594         * mauve-libjava: Don't test ResourceBundle.
3596 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3598         More JDK 1.2 spec fixes:
3599         * java/util/Date.java (millis): Now private.
3600         * java/text/DateFormat.java (DateFormat): Constructor now
3601         protected.
3602         * java/lang/Void.java (Void): New private constructor.
3603         * java/lang/System.java (System): New private constructor.
3604         * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
3605         body.
3606         (currentClassLoader): New method.
3607         (currentLoadedClass): New method.
3608         * java/lang/Math.java (Math): New private constructor.
3609         * java/lang/Compiler.java (Compiler): New private constructor.
3610         * java/lang/Class.java (Class): New private constructor.
3611         * java/lang/Double.java (toString): Removed access specifier from
3612         two-argument `toString' method.
3614 1998-12-04  Andrew Haley  <aph@cygnus.co.uk>
3616         * java/lang/s_rint.c (rint): Make the variable w volatile; this
3617         causes it to be flushed from an fp register (where it may be
3618         longer than double precision) to a double in memory.  This is
3619         essential to ensure correct rounding behaviour.
3621 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3623         * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3624         function.
3626         * java/lang/Character.java (isIdentifierIgnorable): Added comment
3627         explaining apparent divergence from JDK 1.2.
3629 1998-12-04  Per Bothner  <bothner@cygnus.com>
3631         * include/no-threads.h:  Remove unused parameter names.
3632         This silences a bunch of warnings.
3634 1998-12-04  Tom Tromey  <tromey@cygnus.com>
3636         * include/config.h.in: Rebuilt.
3637         * acconfig.h (HAVE_CTIME_R): New symbol.
3639 1998-12-03  Tom Tromey  <tromey@cygnus.com>
3641         * mauve-libjava: Added many more categories to reject.
3643         Changes to follow JDK1.2 spec:
3644         * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3645         setErr, setIn, setOut): No need to be `final'.
3646         * java/lang/natObject.cc (wait): `nanos' argument is an int.
3647         * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3648         * java/lang/Object.java (wait): `nanos' argument is an int.
3649         * java/lang/VirtualMachineError.java: Class is abstract.
3650         * java/lang/ThreadDeath.java: Made constructors public.
3651         * java/io/FileDescriptor.java (FileDescriptor): Added missing
3652         constructor.
3654 Thu Dec  3 20:29:38 1998  Warren Levy  <warrenl@cygnus.com>
3656         * java/text/DateFormatSymbols.java (getAmPmStrings,
3657         getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3659 Thu Dec  3 19:21:53 1998  Warren Levy  <warrenl@cygnus.com>
3661         * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3662         writeDouble, writeByte, writeBytes, writeChar, writeChars,
3663         writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3664         and 1.2.
3666         * java/lang/IllegalThreadStateException.java
3667         (IllegalThreadStateException): Changed extending class to match spec.
3669         * java/lang/NumberFormatException.java
3670         (java/lang/NumberFormatException): Changed extending class to match
3671         spec.
3673         * java/util/Observer.java (Observer): Changed sig to match JCL.
3675 Thu Dec  3 19:05:26 1998  Warren Levy  <warrenl@cygnus.com>
3677         * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3678         writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3679         signature to match JDK 1.1 and 1.2.
3681 Thu Dec  3 16:47:42 1998  Warren Levy  <warrenl@cygnus.com>
3683         * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3684         * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3685         * Makefile.in, configure: Rebuilt.
3687         * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3688         name.
3690 1998-12-02  Tom Tromey  <tromey@cygnus.com>
3692         * mauve-libjava: New file.
3694         The remaining `-W -Wall' fixes:
3695         * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3696         avoid warning.
3697         * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3698         `else'.
3699         * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3700         warning.
3701         * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3702         avoid warning.
3703         * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3704         ambiguous `else'.
3705         * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3706         warning.
3707         * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3708         suggestion.
3709         * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3710         suggestion.
3711         * java/lang/mprec.c (Balloc): Removed unused variable.
3712         (mult): Added parentheses per gcc suggestion.
3713         (pow5mult): Likewise.
3714         (lshift): Likewise.
3715         (ulp): Likewise.
3716         (b2d): Likewise.
3717         (d2b): Likewise.
3718         * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3719         suggestion.  Added cast to `int' to avoid signed/unsigned
3720         comparison.
3721         * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3722         parameter.
3723         (IsAssignableFrom): Likewise.
3724         (_Jv_JNI_GetObjectField): Likewise.
3725         (_Jv_JNI_GetByteField): Likewise.
3726         (_Jv_JNI_GetShortField): Likewise.
3727         (_Jv_JNI_GetIntField): Likewise.
3728         (_Jv_JNI_GetLongField): Likewise.
3729         (_Jv_JNI_GetStringLength): Likewise.
3730         (_Jv_JNI_ToReflectedField): Likewise.
3731         (_Jv_JNI_FromReflectedField): Likewise.
3732         (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3734         * Makefile.in: Rebuilt.
3735         * Makefile.am (AM_CFLAGS): Define conditionally.
3736         (WARNINGS): New macro.
3737         (AM_CXXFLAGS): Include WARNINGS.
3738         * configure: Rebuilt.
3739         * configure.in (USING_GCC): New conditional.
3741         * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3743         * java/lang/Character.java: Changed classification constants to
3744         type `byte' to match JDK 1.2 docs.
3746 1998-12-01  Tom Tromey  <tromey@cygnus.com>
3748         Some fixes to be `-W -Wall' clean:
3749         * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3750         (_Jv_MarkArray): Likewise.
3751         * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3752         (to_upper_title): Likewise.
3753         (isTitleCase): Likewise.
3754         (toTitleCase): Likewise.
3755         (getNumericValue): Likewise.
3756         (isLowerCase): Likewise.
3757         * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3758         (avoids compiler warning).
3759         * java/lang/natClass.cc (getDeclaredClasses): Always return a
3760         value.
3761         (getDeclaringClass): Likewise.
3762         (_Jv_LookupInterfaceMethod): Likewise.
3763         (_Jv_NewClass): Removed name of unused parameter.
3764         * exception.cc (_Jv_type_matcher): Removed unused variable.
3765         (_Jv_setup_eh_info): Removed name of unused parameter.
3766         * prims.cc (_Jv_NewArray): Always return a value.
3767         (_Jv_FindClassFromSignature): Likewise.
3768         * include/java-field.h (getNameUtf8Const): Removed name of unused
3769         parameter.
3770         * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3771         unused parameter.
3772         (_Jv_ThreadSetPriority): Likewise.
3774         * java/lang/natString.cc (hashChars): Now static.
3776         * java/lang/FirstThread.java (FirstThread): Now final.
3778         * java/io/File.java (performMkdir, performRenameTo): Now private.
3780         * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3781         if no time function defined.
3783         * configure: Rebuilt.
3784         * configure.in: Look for ctime_r, ctime.
3785         * java/util/Date.java (toString): Now native.
3786         * java/util/natDate.cc (toString): Rewrote.
3788 1998-11-27  Andrew Haley  <aph@viagra.cygnus.co.uk>
3790         * Add LDFLAGS line to allow TX39 test cases to link when cross
3791         compiling.
3793 1998-11-23  Anthony Green  <green@cygnus.com>
3795         * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3796         no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3797         quick-threads.cc, include/boehm-gc.h, include/cni.h,
3798         include/java-array.h, include/java-assert.h, include/java-field.h,
3799         include/javaprims.h, include/jni.h, include/jvm.h,
3800         include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3801         include/quick-threads.h, java/io/BufferedInputStream.java,
3802         java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3803         java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3804         java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3805         java/io/CharArrayWriter.java,
3806         java/io/CharConversionException.java, java/io/DataInput.java,
3807         java/io/DataInputStream.java, java/io/DataOutput.java,
3808         java/io/DataOutputStream.java, java/io/EOFException.java,
3809         java/io/File.java, java/io/FileDescriptor.java,
3810         java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3811         java/io/FileOutputStream.java, java/io/FileReader.java,
3812         java/io/FileWriter.java, java/io/FilenameFilter.java,
3813         java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3814         java/io/FilterReader.java, java/io/FilterWriter.java,
3815         java/io/IOException.java, java/io/InputStream.java,
3816         java/io/InputStreamReader.java,
3817         java/io/InterruptedIOException.java,
3818         java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3819         java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3820         java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3821         java/io/PipedReader.java, java/io/PipedWriter.java,
3822         java/io/PrintStream.java, java/io/PrintWriter.java,
3823         java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3824         java/io/RandomAccessFile.java, java/io/Reader.java,
3825         java/io/SequenceInputStream.java, java/io/Serializable.java,
3826         java/io/StreamTokenizer.java,
3827         java/io/StringBufferInputStream.java, java/io/StringReader.java,
3828         java/io/StringWriter.java, java/io/SyncFailedException.java,
3829         java/io/UTFDataFormatException.java,
3830         java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3831         java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3832         java/io/natFileDescriptorPosix.cc,
3833         java/lang/AbstractMethodError.java,
3834         java/lang/ArithmeticException.java,
3835         java/lang/ArrayIndexOutOfBoundsException.java,
3836         java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3837         java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3838         java/lang/Class.java, java/lang/ClassCastException.java,
3839         java/lang/ClassCircularityError.java,
3840         java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3841         java/lang/ClassNotFoundException.java,
3842         java/lang/CloneNotSupportedException.java,
3843         java/lang/Cloneable.java, java/lang/Comparable.java,
3844         java/lang/Compiler.java, java/lang/Double.java,
3845         java/lang/Error.java, java/lang/Exception.java,
3846         java/lang/ExceptionInInitializerError.java,
3847         java/lang/FirstThread.java, java/lang/Float.java,
3848         java/lang/IllegalAccessError.java,
3849         java/lang/IllegalAccessException.java,
3850         java/lang/IllegalArgumentException.java,
3851         java/lang/IllegalMonitorStateException.java,
3852         java/lang/IllegalStateException.java,
3853         java/lang/IllegalThreadStateException.java,
3854         java/lang/IncompatibleClassChangeError.java,
3855         java/lang/IndexOutOfBoundsException.java,
3856         java/lang/InstantiationError.java,
3857         java/lang/InstantiationException.java, java/lang/Integer.java,
3858         java/lang/InternalError.java, java/lang/InterruptedException.java,
3859         java/lang/LinkageError.java, java/lang/Long.java,
3860         java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3861         java/lang/NoClassDefFoundError.java,
3862         java/lang/NoSuchFieldError.java,
3863         java/lang/NoSuchFieldException.java,
3864         java/lang/NoSuchMethodError.java,
3865         java/lang/NoSuchMethodException.java,
3866         java/lang/NullPointerException.java, java/lang/Number.java,
3867         java/lang/NumberFormatException.java, java/lang/Object.h,
3868         java/lang/Object.java, java/lang/OutOfMemoryError.java,
3869         java/lang/Process.java, java/lang/Runnable.java,
3870         java/lang/Runtime.java, java/lang/RuntimeException.java,
3871         java/lang/SecurityException.java, java/lang/SecurityManager.java,
3872         java/lang/Short.java, java/lang/StackOverflowError.java,
3873         java/lang/String.java, java/lang/StringBuffer.java,
3874         java/lang/StringIndexOutOfBoundsException.java,
3875         java/lang/System.java, java/lang/Thread.java,
3876         java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3877         java/lang/Throwable.java, java/lang/UnknownError.java,
3878         java/lang/UnsatisfiedLinkError.java,
3879         java/lang/UnsupportedOperationException.java,
3880         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3881         java/lang/Void.java, java/lang/natCharacter.cc,
3882         java/lang/natClass.cc, java/lang/natDouble.cc,
3883         java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3884         java/lang/natMath.cc, java/lang/natObject.cc,
3885         java/lang/natRuntime.cc, java/lang/natString.cc,
3886         java/lang/natSystem.cc, java/lang/natThread.cc,
3887         java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3888         java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3889         java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3890         java/text/FieldPosition.java, java/text/Format.java,
3891         java/text/NumberFormat.java, java/text/ParseException.java,
3892         java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3893         java/util/BitSet.java, java/util/Calendar.java,
3894         java/util/ConcurrentModificationException.java,
3895         java/util/Date.java, java/util/Dictionary.java,
3896         java/util/EmptyStackException.java, java/util/Enumeration.java,
3897         java/util/GregorianCalendar.java, java/util/Hashtable.java,
3898         java/util/Locale.java, java/util/MissingResourceException.java,
3899         java/util/NoSuchElementException.java, java/util/Observable.java,
3900         java/util/Observer.java, java/util/Properties.java,
3901         java/util/Random.java, java/util/SimpleTimeZone.java,
3902         java/util/Stack.java, java/util/StringTokenizer.java,
3903         java/util/TimeZone.java, java/util/TooManyListenersException.java,
3904         java/util/Vector.java, java/util/natGregorianCalendar.cc:  Updated
3905         copyright notices.
3907         * exception.cc: Include eh-common.h instead of duplicating 
3908         code.
3910 1998-11-23  Tom Tromey  <tromey@cygnus.com>
3912         * configure.host: Don't add `-O2' to libjava_flags.  Only add
3913         `-Os' to libjava_flags once.
3915 1998-11-17  Andrew Haley  <aph@viagra.cygnus.co.uk>
3917         * Makefile.am: add LIBJAVA_JAVAFLAGS.
3918         * Makefile.in: likewise
3919         * acconfig.h: add ECOS conditional for configure.h
3920         * config.h.in: likewise
3921         * configure: add test for --with-ecos
3922         * configure.in: likewise
3923         * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3924         rename call to avoid name clash.
3925         * java/lang/natSystem.cc: add eCos clock support.
3926         * java/util/natGregorianCalendar.cc: add eCos support.
3927         
3928 1998-11-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
3930         * Makefile.am, Makefile.in, configure.host: tx39 build option 
3931         "-G 0" added.
3933 Wed Nov 18 18:55:25 1998  Warren Levy  <warrenl@cygnus.com>
3935         * java/io/BufferedReader.java: Added more comments for clarity.
3936         (mark): Used more mnemonic name for local var extraBuffSpace.
3938         * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3939         confusion with private method of same name in superclass.
3940         (skipRedundantLF): Set fields in special case to avoid infinite
3941         recursion.  Check if markPos has been invalidated in special case.
3942         (readLine): Rewritten to use readLine method of superclass.
3943         (skip): Incorporated code from lineEnd.
3945 Wed Nov 18 02:46:03 1998  Warren Levy  <warrenl@cygnus.com>
3947         * java/io/BufferedReader.java (readLine): New method.
3948         (lineEnd): new private method.
3949         (mark): Track special case for readLine of getting '\r' at the
3950         end of the buffer.
3951         (reset): Ditto.
3952         (read): Ditto.
3953         (fill): Ditto.
3954         (skip): Ditto.
3956         * java/io/InputStreamReader.java (read): Return number chars skipped
3957         rather than requested.
3959         * java/lang/StringBuffer.java (append): Update count and differentiate
3960         between field and local variable.
3962         * java/util/Date.java (parseTz): Evaluate in minutes rather than
3963         seconds.  Deal with military style time.
3964         (parse): Consistently treat all timezones in minutes until final
3965         calculation.  Flag as non-local timezone.  Return value in milliseconds.
3966         (setTime): Adjust for year offset from 1900.
3967         (UTC): Adjust for year offset from 1900.
3969 1998-11-17  Tom Tromey  <tromey@cygnus.com>
3971         * configure: Rebuilt.
3972         * configure.in: Switch on host, not target.
3974         * Makefile.in: Rebuilt.
3975         * Makefile.am (GCJ_no): New macro.
3976         (GCJ): Use @CANADIAN@.
3977         (GCJH_no): New macro
3978         (GCJH_canadian): New macro.
3979         (GCJH): Use @CANADIAN@.
3980         (ZIP_no): New macro.
3981         (ZIP_canadian): New macro.
3982         (ZIP): Use @CANADIAN@.
3983         * aclocal.m4, configure: Rebuilt.
3984         * configure.in (CANADIAN): Compute and subst.
3986 Tue Nov 17 12:44:37 1998  Anthony Green  <green@cygnus.com>
3988         * java/io/FileDescriptor.java (finalize): Only close file
3989         descriptor if valid.
3991 1998-11-17  Tom Tromey  <tromey@cygnus.com>
3993         * prims.cc (_Jv_InitRuntime): Removed.
3995 1998-11-16  Tom Tromey  <tromey@cygnus.com>
3997         * java/io/FileOutputStream.java (close): Only close file
3998         descriptor if valid.
3999         (finalize): New method.
4001         * prims.cc (_Jv_NewObjectArray): Set vtbl last.
4002         (_Jv_NewPrimArray): Likewise.
4003         * boehm.cc (_Jv_RegisterFinalizer): Use
4004         GC_REGISTER_FINALIZER_NO_ORDER.
4005         (GC_GENERIC_MALLOC): New define.
4006         (_Jv_AllocObj): Use it.
4007         (_Jv_AllocArray): Likewise.
4008         (_Jv_AllocBytes): Likewise.
4009         (_Jv_MarkObj): Just return if vtbl not set.
4010         (_Jv_MarkArray): Likewise.
4011         (MAYBE_MARK): New macro; use everywhere.
4012         (_Jv_MarkObj): Mark fields belonging to superclasses as well.
4014 Mon Nov 16 14:57:53 1998  Warren Levy  <warrenl@cygnus.com>
4016         * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
4017         to a jlong before calculation to prevent overflow.
4019 1998-11-16  Tom Tromey  <tromey@cygnus.com>
4021         * Makefile.in: Rebuilt.
4022         * Makefile.am (nat_headers): Fixed typo.
4024 1998-11-15  Tom Tromey  <tromey@cygnus.com>
4026         * java/lang/Class.h (Class::getName): Removed definition.
4027         * Makefile.in: Rebuilt.
4028         * Makefile.am (nat_headers): Added InstantiationException.h,
4029         NoSuchMethodException.h.
4030         * java/lang/natClass.cc (clinit_name): Renamed from init_name.
4031         (init_name): New global.
4032         (hackRunInitializers): Use clinit_name.
4033         Include InstantiationException.h, NoSuchMethodException.h.
4034         (newInstance): Do some error checking (but not all).  Call
4035         constructor.
4036         (forName): Throw exception if class not found.
4037         (getName): New method.
4038         (forName): Transform class name from external format to internal
4039         format before lookup.
4041 1998-11-15  Anthony Green  <green@cygnus.com>
4043         * java/lang/Class.h (Class::forName): Method is static.
4045         * java/lang/natClass.cc (newInstance): Add simple implementation.
4046         (forName): Ditto.
4048 Sat Nov 14 18:25:13 1998  Per Bothner  <bothner@cygnus.com>
4050         * java/lang/Class.h (Class::accflags):  Must be unsigned short (not
4051         int), for compatibility with jc1.
4053 1998-11-14  Tom Tromey  <tromey@cygnus.com>
4055         * include/config.h.in: Rebuilt.
4056         * acconfig.h (LINUX_THREADS): New define.
4057         * configure: Rebuilt.
4058         * configure.in: Define LINUX_THREADS if using POSIX threads on
4059         Linux.  Look for pthread_mutexattr_setkind_np function.
4060         * posix-threads.cc (throw_cleanup): New function.
4061         (really_start): Push cleanup function.
4062         (_Jv_ThreadCancel): New function.
4063         (daemon_mutex, daemon_cond, non_daemon_count): New globals.
4064         (_Jv_ThreadInitData): Set `exception' field in new structure.
4065         (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
4066         thread.
4067         (_Jv_ThreadWait): New function.
4068         (_Jv_InitThreads): Initialize daemon globals.
4069         (FLAG_DAEMON): New macro.
4070         (really_start): Notify daemon_cond when non-daemon thread exits.
4071         Include <java/lang/System.h>.
4072         (struct starter): `object' field now a thread.
4073         (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
4074         * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
4075         (_Jv_ThreadWait): Removed definition.
4076         (_Jv_Thread_t): Added `exception' field.
4077         (_Jv_ThreadCancel): Removed definition.
4079 1998-11-13  Tom Tromey  <tromey@cygnus.com>
4081         * Makefile.in: Rebuilt.
4082         * Makefile.am (libjava.zip): Compute javac before changing
4083         directory.
4085         * Makefile.in: Rebuilt.
4086         * Makefile.am (libjava.zip): Include directory entries.
4088         * Makefile.in: Rebuilt.
4089         * Makefile.am (expanded): New macro.
4090         (GCJ): Use it.
4092 1998-11-12  Tom Tromey  <tromey@cygnus.com>
4094         * prims.cc (clone): New function.
4095         * include/java-array.h (__JArray::clone): Removed definition.
4097         * java/lang/natObject.cc (clone): Don't assert that class is not
4098         an array; array's `clone' method just calls this one.
4100         * Makefile.in: Rebuilt.
4101         * Makefile.am (libjava.zip): Renamed target from classes.stamp.
4102         Now creates zip file.  Changed all users.
4103         (ZIP): New macro.
4104         (data_DATA): New macro.
4106 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4108         * configure: Rebuilt.
4109         * configure.in: Recognize --enable-java-gc, not --enable-gc.
4111 Wed Nov 11 18:13:46 1998  Warren Levy  <warrenl@cygnus.com>
4113         * java/io/InputStream.java (reset): Add msg to thrown exception.
4115 Wed Nov 11 17:57:02 1998  Warren Levy  <warrenl@cygnus.com>
4117         * java/io/LineNumberInputStream.java: Rewritten.
4119         * java/io/StringBufferInputStream.java: Removed extraneous import.
4121 Wed Nov 11 15:19:33 1998  Warren Levy  <warrenl@cygnus.com>
4123         * java/io/StringBufferInputStream.java: Rewritten.
4125         * java/util/Date.java (parseMonth): Optimize.
4126         (parseDayOfWeek): Created.
4127         (parse): Optimize to use parseDayOfWeek.
4129 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4131         * java/lang/StringBuffer.java (append): Handle case where STR is
4132         `null'.
4134         * include/javaprims.h: Regenerated class declarations.
4136         * configure: Rebuilt.
4137         * configure.in: Added --enable-gcj-classes,
4138         --enable-single-compilation, --enable-source-compilation flags.
4139         * Makefile.in: Rebuilt.
4140         * Makefile.am (java_io_files): New macro.
4141         (java_lang_files): Likewise.
4142         (java_text_files): Likewise.
4143         (java_util_files): Likewise.
4144         (java_files): Use new macros.
4145         (java-io.o): New target.
4146         (java-lang.o): Likewise.
4147         (java-text.o): Likewise.
4148         (java-util.o): Likewise.
4149         (src_io_files): New macro.
4150         (src_lang_files): Likewise.
4151         (src_text_files): Likewise.
4152         (src_util_files): Likewise.
4153         (class_io_files): New macro.
4154         (class_lang_files): Likewise.
4155         (class_text_files): Likewise.
4156         (class_util_files): Likewise.
4157         (class_files): Use new macros.
4158         (javao_files): Define conditionally.
4159         (.java.o): New target.
4160         ($(javao_files)): New target.
4161         (GCJ): new macro.
4162         (GCJH): Added $(EXEEXT).
4163         (CLASSPATH_ENV): Removed.
4164         (GCJCOMPILE): New macro.
4166 Wed Nov 11 12:03:15 1998  Warren Levy  <warrenl@cygnus.com>
4168         * java/util/Date.java (parse): Written from scratch.
4170 1998-11-11  Tom Tromey  <tromey@cygnus.com>
4172         * java/lang/Throwable.java (toString): Correct sense of test for
4173         determining when to include detail message in result.
4175         * java/lang/ThreadDeath.java (ThreadDeath): Added missing
4176         constructor.
4178 Fri Nov  6 16:30:20 1998  Tom Tromey  <tromey@ferrule.cygnus.com>
4180         * java/lang/Class.h: Use _Jv_RegisterClasses, not
4181         _Jv_RegisterClass.
4182         * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
4183         (_Jv_RegisterClass): Use it.
4184         * include/jvm.h (_Jv_RegisterClasses): Declare.
4185         * java/lang/natObject.cc (init): Removed.
4186         (sync_init): Never call _Jv_InitializeSyncMutex.
4187         (_Jv_InitializeSyncMutex): Don't set `init'.
4188         * prims.cc (JvRunMain): Don't run init functions.
4190 Thu Nov  5 17:14:37 1998  Tom Tromey  <tromey@sanguine.cygnus.com>
4192         * java/lang/natClass.cc (initializeClass): Set state before
4193         resolving constants.
4195         * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
4196         (STATE_RESOLVED): New macro.
4197         (initializeClass): Call resolveConstants.
4198         (hackRunInitializers): Don't call resolveConstants.
4199         (_Jv_FindArrayClass): Move short-circuit return for primitive
4200         element types earlier in function.
4202 1998-11-03  Tom Tromey  <tromey@hoser.cygnus.com>
4204         * prims.cc (no_memory): New global.
4205         (_Jv_makeUtf8Const): Throw no_memory.
4206         (_Jv_AllocObject): Likewise.
4207         (_Jv_NewObjectArray): Likewise.
4208         (_Jv_NewPrimArray): Likewise.
4209         (JvRunMain): Initialize no_memory.
4211 Tue Nov  3 17:15:45 1998  Warren Levy  <warrenl@cygnus.com>
4213         * java/io/FileInputStream.java: Corrected date comment.
4214         * java/io/SequenceInputStream.java: Rewritten.
4216 Mon Nov  2 17:20:31 1998  Tom Tromey  (tromey@cygnus.com)
4218         * java/lang/FirstThread.java (die): New method.
4219         * java/lang/natFirstThread.cc (die): Removed.
4220         (DIE): New macro.
4221         (run): Use `DIE', not `die'.
4223 Mon Nov  2 16:23:41 1998  Warren Levy  <warrenl@cygnus.com>
4225         * java/io/CharArrayReader.java (read): Move check into synchronized
4226         block to prevent a close while in progress.
4227         (reset): Ditto.
4228         (skip): Ditto.
4229         * java/io/PushbackReader.java (read): Ditto.
4230         (ready): Ditto.
4231         (unread): Ditto.
4232         * java/io/StringReader.java (mark): Ditto.
4233         (read): Ditto.
4234         (reset): Ditto.
4235         (skip): Ditto.
4237 Mon Nov  2 15:56:20 1998  Warren Levy  <warrenl@cygnus.com>
4239         * java/io/PipedInputStream.java: Updated status.
4240         (connect): Added code to prevent infinite recursion and to
4241         differentiate exception causes.
4242         (read): Added code to differentiate exception causes.
4243         (receive): Made exception pass string with the cause.
4245         * java/io/PipedOutputStream.java: Updated status.
4246         (connect): Added code to call connect at the other end of the pipe.
4248 Mon Nov  2 00:22:12 1998  Warren Levy  <warrenl@cygnus.com>
4249         
4250         * java/io/PipedInputStream.java (connect): Throw exception if
4251         already connected to the same output stream.
4252         (read): Do bounds checking first.
4254 Sun Nov  1 22:48:55 1998  Warren Levy  <warrenl@cygnus.com>
4256         * java/io/PipedInputStream.java: Added private boolean outClosed.
4257         (available): Removed check if output stream is open.
4258         (close): Mark the buffer as empty so available returns 0.
4259         (read): Check if the output stream was closed and then return EOF
4260         when the buffer is empty.
4261         (receive): Mark the output stream as closed when passed a -1.
4263         * java/io/PipedOutputStream.java (close): Notify the input stream
4264         that there's no more data coming.
4265         (connect): Added a FIXME comment to note more coordination needed
4266         with PipedInputStream.
4267         (flush): Added a FIXME comment to mark what this method might do
4268         instead of nothing.
4270 Fri Oct 30 14:27:21 1998  Warren Levy  <warrenl@cygnus.com>
4272         * java/io/PipedInputStream.java: Rewritten.
4274 1998-10-30  Tom Tromey  <tromey@cygnus.com>
4276         * java/lang/Throwable.java: Rewrote from scratch.
4278         * java/lang/Class.h (Class): Don't mention newMultiArray.
4279         * prims.cc (newMultiArray): Removed.
4280         (_Jv_NewMultiArray): Removed.
4281         (newArray): Removed.
4282         (new_multi_array): New function.
4283         (_Jv_NewMultiArray): Rewrote from scratch.
4285         * include/javaprims.h: Regenerated class declarations.
4286         * classes.pl (scan): Don't declare PrimClass.
4287         * include/cni.h (JvPrimClass): Use new names for classes.
4288         * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
4289         added _Jv_PrimClass.
4290         * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
4291         (_Jv_initPrimClass): Removed.
4292         (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
4293         (_Jv_AllocObject): Added comment.
4294         (_Jv_NewObjectArray): Likewise.
4295         (_Jv_NewPrimArray): Likewise.
4297 1998-10-29  Tom Tromey  <tromey@cygnus.com>
4299         * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
4300         (_Jv_FindArrayClass): Use dtable_method_count to compute size of
4301         new dtable.
4302         * java/lang/Class.h (Class): Added `dtable_method_count' field.
4304         * java/lang/natObject.cc (init): New global.
4305         (sync_init): Call _Jv_InitializeSyncMutex if required.
4307         * Makefile.in: Rebuilt.
4308         * Makefile.am (nat_headers): Added ClassLoader.h.
4309         * include/jvm.h (_Jv_FindClassFromSignature): Declare.
4310         * java/lang/Class.h (Class): simpleLookupClass, insertClass,
4311         internalAddClass, lookupArray no longer friends.
4312         _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
4313         _Jv_FindArrayClass now friends.
4314         * java/lang/natClass.cc (HASH_LEN): New macro.
4315         (HASH_UTF): Likewise.
4316         (loaded_classes): New global.
4317         (_Jv_FindClass): New function.
4318         (ClassClass): New define.
4319         (_Jv_FindClassInCache): New function.
4320         (_Jv_RegisterClass): Likewise.
4321         (_Jv_NewClass): Likewise.
4322         Include <string.h>
4323         (ObjectClass): New define.
4324         (CloneableClass): New define.
4325         * prims.cc (_Jv_FindClass): Removed.
4326         (simpleLookupClass): Removed.
4327         (insertClass): Removed.
4328         (CLASSHASHSZ): Removed.
4329         (classPool): Removed.
4330         (_Jv_RegisterClass): Removed.
4331         (internalAddClass): Removed.
4332         (ClassClass): Removed.
4333         (RuntimeClass): Removed.
4334         (lookupArray): Removed.
4335         (CloneableClass): Removed.
4336         (CLASSMAXSIG): Removed.
4337         Rearranged file to group related functions together.
4338         (_Jv_IsInstanceOf): Moved to natClass.cc.
4339         (abort_final): Removed.
4340         Removed some unused includes.
4341         (classFromSig): Removed.
4342         (_Jv_FindClassFromSignature): New function.
4343         (_Jv_initPrimClass): Renamed.
4344         (getClass): Removed.
4346 Thu Oct 29 23:17:17 1998  Warren Levy  <warrenl@cygnus.com>
4348         * java/io/FileDescriptor.java (finalize): Throws IOException
4349         instead of Throwable.
4351         * java/io/FileInputStream.java: Rewritten.
4353         * java/io/StreamTokenizer.java (nextToken): Unread newline character
4354         at the end of a comment.
4356 1998-10-29  Tom Tromey  <tromey@cygnus.com>
4358         * include/javaprims.h: Regenerated class declarations.
4359         * classes.pl (scan): Don't special-case ClassLoader.
4361         * prims.cc (processClass): Removed.
4362         (_Jv_InitClass): Removed.
4363         Removed all CSTATE_ macros.
4364         (resolveConstants): Removed.
4365         (MAXDIMS): Removed.
4366         (_Jv_NewMultiArray): Cleaned up.
4367         * Makefile.in: Rebuilt.
4368         * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
4369         * java/lang/Class.h (Class): Declare new methods.  processClass no
4370         longer a friend.
4371         * java/lang/Class.java (hackTrampoline): New method.
4372         (initializeClass): Declare.
4373         (hackRunInitializers): Declare.
4374         * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
4375         (initializeClass): New method.
4376         (hackRunInitializers): New method.
4377         (init_name, void_signature): Moved from prims.cc.
4378         (_Jv_InitClass): New function.
4379         (isAssignableFrom): Don't call processClass.
4380         (STATE_NOTHING): New macro.
4381         (resolveConstants): New function.
4382         Include Thread.h.
4383         (ErrorClass): New define.
4385         * java/lang/Class.java (getClassLoader): Declare.
4386         * java/lang/ClassLoader.java: Rewrote from scratch.
4388         * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
4389         AbstractMethodError.h, IllegalAccessError.h,
4390         NoClassDefFoundError.h.
4391         * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
4392         * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
4393         longer static.  Changed return type.
4394         * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
4395         * java/lang/Class.h (Class): findMethodLocal no longer a friend.
4396         * prims.cc (findMethodLocal): Removed.
4397         (processClass): Use _Jv_GetMethodLocal.
4399 1998-10-28  Tom Tromey  <tromey@cygnus.com>
4401         * prims.cc (_Jv_LookupInterfaceMethod): Removed.
4402         * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
4403         friend.
4404         * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
4405         (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
4407         * include/jni.h: Added copyright header.
4408         * include/javaprims.h: Added copyright header.
4409         * include/java-field.h: Added copyright header.
4410         * include/java-array.h: Added copyright header.
4411         * include/cni.h: Added copyright header.
4413         * include/javaprims.h: Regenerated class declarations using
4414         classes.pl; now they are complete.
4415         * classes.pl: New file.
4417         * java/lang/natMath.cc: Include <config.h>.
4418         * java/lang/reflect/natField.cc: Include <config.h>.
4419         * java/util/NativeUtil.java: Removed.
4420         * Makefile.in: Rebuilt.
4421         * Makefile.am (nat_headers): Added Math.h.
4422         * java/lang/Math.h: Removed.
4423         * java/util/natGregorianCalendar.cc: Added copyright header.
4424         Include <config.h>.
4425         * java/lang/natFloat.cc: Added copyright header.
4426         * java/lang/Byte.java: Added copyright header.
4427         * java/lang/Void.java: Added copyright header.
4428         * java/lang/Short.java: Added copyright header.
4430 Wed Oct 28 12:55:47 1998  Warren Levy  <warrenl@cygnus.com>
4432         * include/javaprims.h (java::io): Added bunch of missing classes.
4433         
4434         * java/io/DataInputStream.java (readLine): Added a special case
4435         for handling BufferedInputStream data to reduce the likelihood
4436         of a pushback error.
4437         (skipBytes): Added code to handle negative number of skip bytes.
4438         
4439         * java/io/StreamTokenizer.java: Rewritten.
4441 1998-10-28  Tom Tromey  <tromey@cygnus.com>
4443         * java/util/natGregorianCalendar.cc (computeFields): Call
4444         getRawOffset as a method.
4446         * include/javaprims.h (java::io): Added FilterOutputStream.
4447         * Makefile.in: Rebuilt.
4448         * Makefile.am (nat_headers): Added PrintStream.h,
4449         FilterOutputStream.h.
4450         * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
4451         PrintStream.h.
4452         (die): New function.
4453         (run): Die if `main' not found, is not public, or is not static.
4455         * boehm.cc (_Jv_MarkObj): Use new field names.
4456         * include/java-field.h (JvGetFirstInstanceField): Use new field
4457         names.
4458         (JvNumInstanceFields): Likewise.
4459         * java/lang/natClass.cc (isAssignableFrom): Use new field names.
4460         (getInterfaces): Likewise.
4461         * prims.cc (CLASS_CONSTANTS): Removed.
4462         (CLASS_CONST_SIZE): Likewise.
4463         (CLASS_CONST_TAG): Likewise.
4464         (CLASS_CONST_DATA): Likewise.
4465         (CLASS_CONST_UTF8): Likewise.
4466         (WORD2UTF): Likewise.
4467         (CLASS_CLASS): Likewise.
4468         (CLASS_PRIM_SIG): Likewise.
4469         (CLASS_ARRAY_CACHE): Likewise.
4470         (HASH_CHARS): Likewise.
4471         (hashClassName): Likewise.
4472         Many changes to use new field names.
4473         * java/lang/Class.h (Class): Renamed fields to track compiler.
4475 1998-10-27  Tom Tromey  <tromey@cygnus.com>
4477         * java/lang/natClass.cc: Use #pragma implementation.
4478         (getComponentType): Moved into header.
4479         (getModifiers): Likewise.
4480         (getName): Likewise.
4481         (getSuperclass): Likewise.
4482         (isArray): Likewise.
4483         (isPrimitive): Likewise.
4484         * include/jvm.h (_Jv_FindClass): Declare.
4485         * java/lang/natFirstThread.cc (run): Updated for new Class.h.
4486         * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
4487         * include/javaprims.h: Use _Jv_Method, not JvMethod.
4488         * java/lang/Class.h: Rewrote from scratch.
4489         * prims.cc: Many changes to work with new Class.h.
4490         * include/java-field.h (CLASS_FIELDS): Removed.
4491         (CLASS_SFIELDS): Likewise.
4492         (CLASS_IFIELDS): Likewise.
4493         (CLASS_NFIELDS): Likewise.
4494         (CLASS_NIFIELDS): Likewise.
4495         (CLASS_NSFIELDS): Likewise.
4496         (CLASS_FSIZE): Likewise.
4497         (JvGetFirstInstanceField): Rewrote.
4498         (JvNumInstanceFields): Likewise.
4500         * java/lang/Object.h: Added copyright comment.
4502 Wed Oct 28 00:32:23 1998  Per Bothner  <bothner@cygnus.com>
4504         * java/text:  New package directory.
4505         * java/text/FieldPosition.java:  New class.
4506         * java/text/ParsePosition.java:  New class. 
4507         * java/text/ParseException.java:  New Exception class.
4508         * java/text/Format.java:  New class.
4509         * java/text/NumberFormat.java:  New (empty placeholder) class.
4510         * java/text/DateFormatSymbols.java:  New class (no Locales support).
4511         * java/text/DateFormat.java:  New Format class (incomplete).
4512         * java/text/SimpleDateFormat.java:  New DateFormat class.
4513         
4514         * include/javaprims.h (java::test):  Added new package and classes.
4515         * java/util/Calendar.java (clone):  New method.
4516         * java/util/Date.java (toString):  Added non-native implementation.
4517         (parse):  Made public instead of synchronized.
4518         * java/util/natDate.cc (toString):  Removed.
4519         * java/util/natGregorianCalendar.cc (computeFields):
4520         Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
4522 1998-10-27  Tom Tromey  <tromey@cygnus.com>
4524         * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
4526         * prims.cc (lookupArray): Added explanatory comment.
4527         * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
4528         class.  Mark the class of each object.
4529         (_Jv_MarkArray): Mark the object's class.
4531         * configure: Rebuilt.
4532         * configure.in: Create java-gc.h.
4533         * include/boehm-gc.h: New file.
4534         * include/no-gc.h: New file.
4535         * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
4536         defined.
4537         * java/lang/Object.h: Include java-gc.h.
4538         (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
4539         friends, if defined.
4540         * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
4541         signature.
4542         (_Jv_MarkArray): Renamed from mark_array; changed signature.
4544 1998-10-26  Tom Tromey  <tromey@cygnus.com>
4546         * java/lang/natCharacter.cc (isSpaceChar): Look for line and
4547         paragraph separators, not numbers.
4549         * java/io/Writer.java (write): Removed write(char) to avoid
4550         ambiguity.
4551         * java/util/Properties.java: Rewrote from scratch.
4552         * include/javaprims.h (java::io): Added PrintWriter,
4553         BufferedWriter, PushbackReader.
4555 Mon Oct 26 13:13:28 1998  Anthony Green  <green@cygnus.com>
4557         * java/lang/System.java: exit() is a static method.
4559 1998-10-26  Tom Tromey  <tromey@cygnus.com>
4561         * java/lang/natString.cc (_Jv_NewStringUTF): Use
4562         _Jv_strLengthUtf8.
4563         (_Jv_NewStringUtf8Const): Likewise.
4564         * include/jvm.h (_Jv_strLengthUtf8): Declare.
4565         * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
4567         * java/lang/Object.h (Object): Add mark_array as friend function.
4568         * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
4569         _Jv_AllocBytes, to ensure that header is marked.
4570         * boehm.cc (mark_obj): Push sync_info field for all objects, not
4571         just Objects.
4572         (mark_array): Push sync_info field for array.
4574 1998-10-24  Tom Tromey  <tromey@cygnus.com>
4576         * java/lang/String.java (String): Updated for StringBuffer
4577         change.
4578         * java/util/BitSet.java: Renamed field (data->bits) to conform to
4579         serialization spec.
4580         * java/lang/StringBuffer.java: Renamed fields to conform to
4581         serialization spec: buffer->value, next->count, copy->shared.
4583 Wed Oct 21 18:24:57 1998  Per Bothner  <bothner@cygnus.com>
4585         * java/util/TimeZone.java:  New class.
4586         * java/util/SimpleTimeZone.java:  New class.
4587         * java/util/Locale.java:  New file.
4588         * java/util/Calendar.java:  Make almost complete.
4589         * java/util/GregorianCalendar.java
4590         * java/util/natGregorianCalendar.cc:  New file.
4591         * java/util/Date.java:  Re-written from scratch.
4592         * java/util/natDate.cc (setTime):  Removed - no longer native.
4593         * include/javaprims.h (java::util):  Add new classes.
4594         * Makefile.am (nat_files):  Add java/util/natGregorianCalendar.o.
4595         (nat_headers);  Add TimeZone.h, Calendar.h, GregorianCalendar.h.
4597 Sat Oct 24 22:58:25 1998  Warren Levy  <warrenl@cygnus.com>
4599         * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
4600         returning it as a jint.
4602 1998-10-23  Tom Tromey  <tromey@cygnus.com>
4604         * prims.cc (arg_vec, main_group, main_thread): New globals.
4605         (JvRunMain): Use them.
4607 Fri Oct 23 17:10:12 1998  Warren Levy  <warrenl@cygnus.com>
4609         * java/io/DataInputStream.java: Rewritten.
4611         * java/io/DataOutputStream.java (writeUTF): OR secondary and
4612         tertiary bytes with 0x80 per spec.
4614 1998-10-23  Tom Tromey  <tromey@cygnus.com>
4616         * java/lang/String.java (init): Changed name of `copy' argument.
4617         * java/lang/natString.cc (init): Inverted sense of `copy'
4618         argument.
4620         * java/lang/Object.h (Object): Declare mark_obj as a friend.
4621         * java/lang/Class.h (Class): Declare mark_obj as a friend.
4622         * boehm.cc (ObjectClass): New define.
4623         (ClassClass): Likewise.
4624         (mark_obj): Special-case Object and Class.
4626         * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4628         * java/util/BitSet.java: Rewrote from scratch.
4630         * prims.cc (lookupArray): Removed useless cast.
4632         * java/lang/natObject.cc: Use `#pragma implementation'.
4634         * java/lang/String.java (init): Added `copy' argument.
4635         (String): Look in StringBuffer to find char array.
4636         * java/lang/natString.cc (init): Added `copy' argument.
4637         * java/lang/StringBuffer.java: Rewrote from scratch.
4639         * java/lang/Compiler.java: Rewrote from scratch.
4640         * java/lang/Throwable.java: Don't use NativeLang.
4641         * include/javaprims.h (java::lang): Don't mention NativeLang.
4642         * java/lang/Process.java: Rewrote from scratch.
4643         * java/lang/SecurityManager.java (classLoaderDepth): Commented
4644         out.
4645         (currentClassLoader): Likewise.
4646         (currentLoadedClass): Likewise.
4647         * java/lang/natClass.cc (getClassLoader): Commented out.
4648         * java/lang/Class.java (getClassLoader): Commented out.
4649         * java/lang/Compiler.java: Removed.
4650         * java/lang/NativeLang.java: Removed.
4652         * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4653         * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4654         * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4655         (_Jv_hashUtf8String): Now static.
4656         * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4657         name of return type.
4659         * java/lang/Class.h (Class): Declare checkMemberAccess.
4660         * Makefile.in: Rebuilt.
4661         * Makefile.am (nat_headers): Added Member.h.
4662         * java/lang/natClass.cc: Include Member.h.
4663         (getDeclaredClasses): Call checkMemberAccess.
4664         * java/lang/Class.java (checkMemberAccess): Call
4665         SecurityManager.checkMemberAccess.
4667 Fri Oct 23 08:01:54 1998  Anthony Green  <green@cygnus.com>
4669         * java/lang/SecurityManager.java: Rewritten.
4671 Thu Oct 22 17:16:10 1998  Anthony Green  <green@cygnus.com>
4673         * java/applet/Applet.java, java/applet/AppletContext.java,
4674         java/applet/AppletStub.java, java/applet/AudioClip.java,
4675         java/awt/AWTError.java, java/awt/AWTException.java,
4676         java/awt/BorderLayout.java, java/awt/Button.java,
4677         java/awt/Canvas.java, java/awt/CardLayout.java,
4678         java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4679         java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4680         java/awt/Color.java, java/awt/Component.java,
4681         java/awt/Container.java, java/awt/Dialog.java,
4682         java/awt/Dimension.java, java/awt/Event.java,
4683         java/awt/FileDialog.java, java/awt/FlowLayout.java,
4684         java/awt/Font.java, java/awt/FontMetrics.java,
4685         java/awt/Frame.java, java/awt/Graphics.java,
4686         java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4687         java/awt/GridLayout.java, java/awt/Image.java,
4688         java/awt/Insets.java, java/awt/Label.java,
4689         java/awt/LayoutManager.java, java/awt/List.java,
4690         java/awt/MediaTracker.java, java/awt/Menu.java,
4691         java/awt/MenuBar.java, java/awt/MenuComponent.java,
4692         java/awt/MenuContainer.java, java/awt/MenuItem.java,
4693         java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4694         java/awt/Rectangle.java, java/awt/Scrollbar.java,
4695         java/awt/TextArea.java, java/awt/TextComponent.java,
4696         java/awt/TextField.java, java/awt/Toolkit.java,
4697         java/awt/Window.java, java/awt/image/ColorModel.java,
4698         java/awt/image/CropImageFilter.java,
4699         java/awt/image/DirectColorModel.java,
4700         java/awt/image/FilteredImageSource.java,
4701         java/awt/image/ImageConsumer.java,
4702         java/awt/image/ImageFilter.java,
4703         java/awt/image/ImageObserver.java,
4704         java/awt/image/ImageProducer.java,
4705         java/awt/image/IndexColorModel.java,
4706         java/awt/image/MemoryImageSource.java,
4707         java/awt/image/PixelGrabber.java,
4708         java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4709         java/awt/peer/CanvasPeer.java,
4710         java/awt/peer/CheckboxMenuItemPeer.java,
4711         java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4712         java/awt/peer/ComponentPeer.java,
4713         java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4714         java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4715         java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4716         java/awt/peer/MenuBarPeer.java,
4717         java/awt/peer/MenuComponentPeer.java,
4718         java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4719         java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4720         java/awt/peer/TextAreaPeer.java,
4721         java/awt/peer/TextComponentPeer.java,
4722         java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4723         java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4724         java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4725         java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4726         java/net/MalformedURLException.java, java/net/NativeNet.java,
4727         java/net/ProtocolException.java, java/net/ServerSocket.java,
4728         java/net/Socket.java, java/net/SocketException.java,
4729         java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4730         java/net/URL.java, java/net/URLConnection.java,
4731         java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4732         java/net/URLStreamHandlerFactory.java,
4733         java/net/UnknownHostException.java,
4734         java/net/UnknownServiceException.java: Removed.
4736 1998-10-22  Tom Tromey  <tromey@cygnus.com>
4738         * prims.cc (_Jv_AllocObject): Register finalizer if class'
4739         finalizer is not Object.finalize.
4740         (internalAddClass): Don't set `final' member of class.
4741         * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4742         other places that know about finalize() location.
4743         * java/lang/Class.h (Class): Removed `final' field.
4745         * aclocal.m4, configure: Rebuilt.
4746         * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4747         AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4748         set.
4749         * configure.in (AC_OUTPUT): Pass CXX to config.status.
4750         * Makefile.in: Rebuilt.
4751         * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4753 1998-10-21  Tom Tromey  <tromey@cygnus.com>
4755         * java/lang/Object.java (finalize): Move to be first method in
4756         class.
4758         * configure: Rebuilt.
4759         * configure.in (GCINCS): Include contents of boehm-cflags file.
4761 Tue Oct 20 13:11:04 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4763         * java/lang/ArrayIndexOutOfBoundsException.java
4764         (ArrayIndexOutOfBoundsException): Fixed string literal.
4765         * java/lang/StringIndexOutOfBoundsException.java
4766         (StringIndexOutOfBoundsException): Fixed string literal.
4768 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4770         * natFileDescriptorEcos.cc added.
4771         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
4773 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
4775         * acconfig.h: test for __int32_t and __uint32_t added.
4776         * include/config.h.in: test for __int32_t and __uint32_t added.
4777         * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4778         * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4779         * configure.in: test for __int32_t and __uint32_t added.
4780         * configure: test for __int32_t and __uint32_t added.
4781         
4782         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
4784         * configure.in: Test for --enable ecos and link
4785         natFileDescriptor.cc to natFileDescriptorEcos.cc or
4786         natFileDescriptorPosix.cc
4787         
4788         * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4789         
4790 Mon Oct 19 18:13:58 1998  Warren Levy  <warrenl@cygnus.com>
4792         * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4793         in isn't negative.
4795         * java/io/CharArrayReader.java (close): Synchronize on lock
4796         object per Reader contract.
4797         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
4798         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
4799         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
4800         Ensure that arg passed in isn't negative.
4802         * java/io/FilterReader.java (FilterReader): Use the lock obj when
4803         constructing the superclass.
4805         * java/io/PushbackReader.java (close): Synchronize on lock
4806         object per Reader contract.
4807         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
4808         (ready): Synchronize on lock obj.  Throw IOException if reader
4809         wasn't closed.
4810         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
4811         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
4812         Ensure that arg passed in isn't negative.
4813         (unread): Synchronize on lock obj.  Verify that reader wasn't closed.
4815         * java/io/StringReader.java: Created.
4816         
4817 Sun Oct 18 02:19:11 1998  Warren Levy  <warrenl@cygnus.com>
4819         * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4820         to match JCL.
4821         (read): Removed synchronized modifier to match JCL.
4822         (reset): Removed synchronized modifier to match JCL.
4823         (skip): Removed synchronized modifier to match JCL.
4825 Sun Oct 18 02:01:54 1998  Warren Levy  <warrenl@cygnus.com>
4827         * java/io/PushbackReader.java (PushbackReader): Made
4828         constructors public.
4830 1998-10-17  Tom Tromey  <tromey@cygnus.com>
4832         * java/io/PushbackInputStream.java (PushbackInputStream): Made
4833         constructors public.
4835 1998-10-16  Anthony Green  <green@cygnus.com>
4837         * aclocal.m4, configure: Rebuilt.
4838         * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4839         configure.host.
4840         * configure.host: Rewrote.
4841         * Makefile.in: Rebuilt.
4842         * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4843         (AM_CFLAGS): New macro.
4844         ($(c_files)): Use COMPILE macro.
4845         (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4846         automake problem(s).
4848 Fri Oct 16 16:36:28 1998  Warren Levy  <warrenl@cygnus.com>
4850         * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4852         * java/io/CharArrayReader.java: Created.
4854 Fri Oct 16 15:17:01 1998  Warren Levy  <warrenl@cygnus.com>
4856         * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4857         size check to allow 0 per JCL.
4859         * java/io/PushbackReader.java: Created.
4861 1998-10-16  Tom Tromey  <tromey@cygnus.com>
4863         * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4864         <sys/time.h> includes. 
4865         * java/io/natFile.cc: Conditionalize <unistd.h> include.
4866         * include/no-threads.h: Conditionalize <unistd.h> include on
4867         HAVE_UNISTD_H.
4869 Fri Oct 16 14:39:51 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
4871         * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4872         is defined.
4874 Thu Oct 15 19:27:54 1998  Warren Levy  <warrenl@cygnus.com>
4876         * java/io/FilterReader.java: Created.
4878 Thu Oct 15 17:49:43 1998  Warren Levy  <warrenl@cygnus.com>
4880         * java/io/PushbackInputStream.java: Rewritten.
4882         * java/io/BufferedInputStream.java (BufferedInputStream): Check
4883         that size passed to constructor is legal.
4884         (read): Check that args passed in are legal.
4885         (skip): Rewritten to get rid of the temporary buffer.
4886         (refill): Added marklimit check to grow the buffer.
4888         * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4889         check.
4890         (bytesAvail): Removed.
4891         (read): Changed bytesAvail to Math.min.
4892         (skip): Changed bytesAvail to Math.min.
4894         * java/io/InputStream.java (read): Got rid of extraneous exceptions
4895         from the throws clause.
4896         (skip): Rewritten to use a temporary buffer.
4898 Thu Oct 15 19:42:55 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
4900         * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4901         some target OSes
4903         * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4905         * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4906         to write the double one word at a time.
4908 Tue Oct 13 14:41:47 1998  Warren Levy  <warrenl@cygnus.com>
4910         * java/io/BufferedInputStream.java:  Rewritten.
4912 1998-10-12  Tom Tromey  <tromey@cygnus.com>
4914         * jni.cc: Include config.h and stddef.h.
4916         * java/lang/Class.h (_dispatchTable): Removed again.
4917         Removed all ACC_* defines again.
4919 Fri Oct  9 17:08:34 1998  Per Bothner  <bothner@cygnus.com>
4921         * Makefile.am (nat_files):  Add netField.o.
4922         (libjava_a_SOURCES):  Add jni.cc.
4923         (java/lang/reflect/Field.h):  New rule.
4924         * Makefile.in:  Re-generated.
4925         * include/javaprims.h:  Add some extra class and typedefs.
4926         * include/jni.h:  New file.
4927         * jni.cc:  New file.
4929         * include/java-field.h:  New file.
4930         * include/jvm.h:  #include <java-field.h>.
4931         * boehm.cc:  #include <java-field.h>.
4932         * java/lang/Class.h (JvField, inline numbers):  Moved to java-field.h.
4933         * java/lang/reflect/Member.java:  New class.
4934         * java/lang/reflect/Field.java:  New class.  (Very incomplete.)
4935         * java/lang/reflect/natField.cc:  New file.  (Very incomplete.)
4937 Sun Oct 11 00:34:44 1998  Anthony Green  <green@cygnus.com>
4939         * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4940         testsuite/Makefile.in: Rebuilt.
4941         * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4942         * configure.host: Created.
4944 1998-10-10  Tom Tromey  <tromey@cygnus.com>
4946         * java/lang/natObject.cc (sync_init): Always allocate a new
4947         sync_info.
4949 1998-10-09  Tom Tromey  <tromey@cygnus.com>
4951         * java/io/ByteArrayInputStream.java (mark): Renamed from
4952         `mark_FIXME'.
4954         * java/io/FileOutputStream.java (finalize): Removed.
4955         * java/io/FileDescriptor.java (finalize): New method.
4957 Thu Oct  8 17:59:43 1998  Warren Levy  <warrenl@cygnus.com>
4959         * ByteArrayInputStream.java: Corrected status comment.
4961 Thu Oct  8 17:22:49 1998  Warren Levy  <warrenl@cygnus.com>
4963         * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4965 1998-10-08  Tom Tromey  <tromey@cygnus.com>
4967         * prims.cc (lookupArray): Use static array to initialize list of
4968         interfaces.
4970 Thu Oct  8 12:45:03 1998  Anthony Green  <green@cygnus.com>
4972         * prims.cc (lookupArray): Initialize the msize for new
4973         array classes.
4975 Wed Oct  7 12:13:59 1998  Anthony Green  <green@cygnus.com>
4977         * configure: Rebuilt.
4978         * configure.in: Check for fsync and sleep.
4979         * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
4981         * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
4982         HAVE_SLEEP. Include config.h.
4984         * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
4985         * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
4986         with HAVE_FSYNC.
4988 1998-10-08  Tom Tromey  <tromey@cygnus.com>
4990         * java/io/natFile.cc: Don't include SecurityManager.h.
4991         (performList): Renamed.
4992         (performMkdir): Likewise.
4993         (performRenameTo): Likewise.
4994         (performDelete): Likewise.
4995         Include <stdlib.h>.
4996         * java/io/File.java (performDelete): Renamed from natDelete.
4997         (list): Now written in Java.
4998         (performList): New method.
4999         (performMkdir): New method.
5000         (mkdir): Now written in Java.
5001         (performRenameTo): New method.
5002         (renameTo): Now written in Java.
5004 1998-10-06  Tom Tromey  <tromey@cygnus.com>
5006         * Makefile.in: Rebuilt.
5007         * Makefile.am (ETAGS_ARGS): New macro.
5008         (TAGS_DEPENDENCIES): Likewise.
5010 Tue Oct  6 22:04:44 PDT 1998 Anthony Green  <green@cygnus.com>
5012         * Makefile.in: Rebuilt.
5013         * Makefile.am: Use -classpath option with javac.
5014         
5015 Tue Oct  6 18:51:31 1998  Tom Tromey  <tromey@cygnus.com>
5017         * java/io/FileOutputStream.java (finalize): Call
5018         super.finalize().
5020 Tue Oct  6 16:02:45 1998  Anthony Green  <green@cygnus.com>
5022         * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
5023         with newlib's libm.
5024         * java/lang/mprec.c: Ditto.
5026         * java/lang/mprec.h: Include math.h for HUGE_VAL when
5027         cross-compiling.
5029 Tue Oct  6 14:27:00 1998  Warren Levy  <warrenl@cygnus.com>
5031         * java/io/InputStream.java (skip): Make local var i a long.
5033 Mon Oct  5 09:44:24 1998  Tom Tromey  <tromey@cygnus.com>
5035         * java/lang/natObject.cc (clone): Use memcpy, not memmove.
5036         * prims.cc (lookupArray): Use memcpy, not memmove.
5037         * include/config.h.in: Rebuilt.
5038         * acconfig.h (HAVE_MEMCPY): Added.
5039         * configure: Rebuilt.
5040         * configure.in: Check for memcpy again.
5042         * java/io/RandomAccessFile.java (RandomAccessFile): Use
5043         String.compareTo, not ==.
5045         * java/lang/Class.h (Class): Use _Jv_DispatchTable.
5046         (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
5047         * java/lang/natObject.cc (struct _dispatchTable): Removed.
5048         * include/jvm.h (struct _Jv_DispatchTable): New structure.
5049         * prims.cc (lookupArray): Removed dead code.  Copy Object's dtable
5050         into new array's dtable.
5051         (_Jv_AllocObject): Use _Jv_DispatchTable.
5052         (_Jv_NewPrimArray): Likewise.
5053         (_Jv_NewObjectArray): Likewise.
5055 Fri Oct  2 18:57:14 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
5057         * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
5058         offending index value.
5059         (_Jv_NewPrimArray): Throw NegativeArraySizeException when
5060         appropriate.
5061         * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
5062         * java/lang/Throwable.java: (Throwable): fixed argument to this().
5064 Fri Oct  2 15:58:23 1998  Warren Levy  <warrenl@cygnus.com>
5066         * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
5067         
5068         * java/io/OutputStream.java (write): Use off and len parameters to
5069         output partial byte array.
5070         
5071         * java/io/BufferedReader.java, java/io/FileReader.java,
5072         java/io/InputStreamReader.java, java/io/LineNumberReader.java,
5073         java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
5074         java/io/Reader.java, java/io/UnsupportedEncodingException.java,
5075         java/io/Writer.java: Added COPYRIGHT-TBD comment.
5077         * include/javaprims.h (java::lang): Added
5078         ExceptionInInitializerError, IllegalStateException,
5079         NoSuchFieldException, and UnsupportedOperationException.
5081 Fri Oct  2 01:05:38 1998  Tom Tromey  <tromey@cygnus.com>
5083         * java/lang/natObject.cc (CloneableClass): Is a Class, not a
5084         Class*.
5086         * include/java-array.h (__JArray): Added clone method.
5087         * prims.cc (CloneableClass): New define.
5088         (lookupArray): Initialize array class to indicate that it
5089         implements Cloneable.
5091         * java/lang/Class.h: Removed all ACC_* defines.
5092         * prims.cc: Include Modifier.h.
5093         (_Jv_LookupInterfaceMethod): Use methods in
5094         java.lang.reflect.Modifier, not ACC_ defines.
5096         * java/lang/Class.h (Class): Declare getClasses,
5097         getDeclaredClasses, getDeclaringClass, getModifiers, 
5098         * java/lang/Class.java: Rewrote from scratch.
5100         * include/javaprims.h (java::lang): Added reflect and
5101         reflect::Modifier.
5102         * Makefile.in: Rebuilt.
5103         * Makefile.am (nat_headers): Added Modifier.h.
5105         * prims.cc (_Jv_IsInstanceOf): Return false if class is
5106         primitive.
5108 Fri Oct 2 06:49:00 1998  Anthony Green  <green@cygnus.com>
5110         * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
5111         instead of test and abort.
5113         * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
5114         remove compiler warning.
5116 Fri Oct  2 12:33:44 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5118         * java/lang/natDouble.cc: zero terminate string.
5119         * strtod.c: Set errno if no digits are found in fraction.
5121 Thu Oct  1 11:48:28 1998  Tom Tromey  <tromey@cygnus.com>
5123         * java/lang/reflect/Modifier.java: New file.
5125         * java/lang/VirtualMachineError.java: Rewrote from scratch.
5126         * java/lang/VerifyError.java: Rewrote from scratch.
5127         * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
5128         * java/lang/UnknownError.java: Rewrote from scratch.
5129         * java/lang/StackOverflowError.java: Rewrote from scratch.
5130         * java/lang/OutOfMemoryError.java: Rewrote from scratch.
5131         * java/lang/InternalError.java: Rewrote from scratch.
5132         * java/lang/IllegalAccessError.java: Rewrote from scratch.
5133         * java/lang/ExceptionInInitializerError.java: New file.
5134         * java/lang/Error.java: Rewrote from scratch.
5135         * java/lang/ClassFormatError.java: Rewrote from scratch.
5136         * java/lang/ClassCircularityError.java: Rewrote from scratch.
5137         * java/lang/AbstractMethodError.java: Rewrote from scratch.
5138         * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
5139         * java/lang/NoSuchFieldError.java: Rewrote from scratch.
5140         * java/lang/LinkageError.java: Rewrote from scratch.
5141         * java/lang/IncompatibleClassChangeError.java: Rewrote from
5142         scratch.
5143         * java/lang/NoSuchMethodError.java: Rewrote from scratch.
5145         * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
5146         * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
5147         friend.
5148         * include/cni.h (JvAllocObject): Moved from prims.cc.
5149         Include Class.h.
5150         * prims.cc (JvAllocObject): Moved to cni.h.
5151         (_Jv_AllocObject): Use _Jv_FinalizeObject.
5152         (finalize_name): Removed.
5154 Wed Sep 30 12:09:34 1998  Tom Tromey  <tromey@cygnus.com>
5156         * java/lang/Class.h (Class): Added size() method.
5157         * prims.cc (_Jv_MonitorEnter): Removed.
5158         (_Jv_MonitorExit): Removed.
5159         * java/lang/Object.h (JvSyncInfo): Removed.
5160         * Makefile.in: Rebuilt.
5161         * Makefile.am (nat_headers): Added Cloneable.h,
5162         CloneNotSupportedException.h.
5163         * java/lang/Object.h: Rewrote.
5164         * java/lang/natObject.cc: Rewrote from scratch.
5165         * java/lang/Object.java: Rewrote from scratch.
5167         * java/io/natFile.cc: Conditionally include <dirent.h>.
5168         (list): If no <dirent.h>, always return NULL.
5169         * configure: Rebuilt.
5170         * configure.in: Check for dirent.h.
5172         * prims.cc (lookupArray): Don't use sprintf.
5174         * java/util/Hashtable.java (containsKey): Use `abs' to compute
5175         initial index.
5176         (get): Likewise.
5177         (put): Likewise.
5178         (rehash): Likewise.
5179         (remove): Likewise.
5181         * java/util/Hashtable.java (hsize): Renamed from size to avoid
5182         name conflict with method.
5184         * include/javaprims.h (java::util): Added HashtableEntry.
5186 Tue Sep 29 16:48:01 1998  Warren Levy  <warrenl@cygnus.com>
5188         * java/util/Hashtable.java: Rewritten.
5190 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5192         * java/io/natFileDescriptor.cc (write): Correctly test `write'
5193         return value.
5194         (write): Likewise.
5196         * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
5197         not `curr_nt'.
5199         * posix-threads.cc (_Jv_CondWait): Now returns int.
5200         * include/javaprims.h (java::lang): Added
5201         IllegalMonitorStateException.
5202         * Makefile.in: Rebuilt.
5203         * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
5204         * include/no-threads.h (_Jv_CondDestroy): Removed.
5205         (_Jv_MutexDestroy): Removed.
5206         (_Jv_CondWait): Now returns int.
5207         (_Jv_CondNotify): Likewise.  Added mutex argument.
5208         (_Jv_CondNotifyAll): Likewise.
5209         (_Jv_MutexLock): Always succeed.
5210         (_Jv_MutexUnlock): Likewise.
5211         * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
5212         (_Jv_HaveMutexDestroy): Define.
5213         (_Jv_CondNotify): Now returns int.  Added mutex argument.
5214         (_Jv_CondNotifyAll): Likewise.
5215         * include/quick-threads.h (_Jv_CondDestroy): Removed.
5216         (_Jv_MutexDestroy): Removed.
5217         (_Jv_CondWait): Now returns int.
5218         (_Jv_CondNotify): Likewise.  Added mutex argument.
5219         (_Jv_CondNotifyAll): Likewise.
5220         * java/lang/natObject.cc (finalize_sync_info): New function.
5221         (init_mutex): Initialize `init' and register finalizer if
5222         required.
5223         (CHECK): New macro.
5224         (init_mutex): Use it.
5225         (notify): Use it.
5226         (notifyAll): Use it.
5227         (wait): Use it.
5228         (notify): Throw IllegalMonitorStateException on failure.
5229         (notifyAll): Likewise.
5230         (wait): Likewise.  Also, throw InterruptedException if
5231         appropriate.
5232         Include cni.h, Thread.h, IllegalMonitorStateException.h,
5233         InterruptedException.h, IllegalArgumentException.h.
5234         * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
5236         * java/lang/natString.cc: Renamed all `JvPriv' functions.
5237         * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
5238         * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
5239         * java/lang/natObject.cc: Renamed all `JvPriv' functions.
5240         * java/lang/natThread.cc: Renamed all `JvPriv' functions.
5241         * quick-threads.cc: Renamed all `JvPriv' functions.
5242         * prims.cc: Renamed all `JvPriv' functions.
5243         * posix-threads.cc: Renamed all `JvPriv' functions.
5244         * nogc.cc: Renamed all `JvPriv' functions.
5245         * no-threads.cc: Renamed all `JvPriv' functions.
5246         * boehm.cc: Renamed all `JvPriv' functions.
5247         * include/quick-threads.h: Renamed all `JvPriv' functions.
5248         * include/posix-threads.h: Renamed all `JvPriv' functions.
5249         * include/no-threads.h: Renamed all `JvPriv' functions.
5250         * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
5252         * include/no-threads.h (JvPrivCondWait): Wrote minimal
5253         implementation.
5254         (JvPrivCondNotify): Do nothing.
5255         (JvPrivCondNotifyAll): Do nothing.
5257         * prims.cc (processClass): Handle case where state is
5258         DOING_CONSTINIT.
5260         * java/lang/natFirstThread.cc: Include <stdlib.h>
5262         * configure: Rebuilt.
5263         * configure.in: Fixed sense of --enable-libjava-debug.
5265         * java/lang/natThread.cc (join): Declare `t' outside the loop so
5266         it can be used afterward by the assertion.
5268         * configure: Rebuilt.
5269         * configure.in: When cross-compiling, assume alloca.
5271         * java/lang/natDouble.cc: Updated alloca magic to avoid use of
5272         __builtin_alloca (autoconf docs are wrong here).
5274         * java/io/natFileDescriptor.cc (close): Set fd to -1 before
5275         closing.
5276         (available): Use `FD_ZERO' (typo fix).
5278 Tue Sep 29 17:43:30 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
5280         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5281         java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
5282         struct _Jv_Bigint.
5283         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
5284         java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
5285         struct _Jv_reent.
5287         * java/lang/natDouble.cc: layout changed to match GNU coding standard.
5288         
5289 Tue Sep 29 07:57:13 1998  Anthony Green  <green@cygnus.com>
5291         * java/lang/natDouble.cc: Declare alloca safely.
5293         * configure, include/config.h.in: Rebuilt.
5294         * configure.in: Add alloca check.
5296 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
5298         * java/lang/natThread.cc (finish_): Hold mutex for interrupt
5299         condition while calling notify.
5300         (join): Remove `curr_nt' from `nt's join list, not vice versa.
5301         (interrupt): Hold mutex for interrupt condition while calling
5302         notify.
5304         * java/lang/natString.cc (init): Allocate and try to read `count'
5305         characters, not `count - offset' characters.
5307         * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
5308         Correctly compute `count'.
5310         * java/lang/Boolean.java (getBoolean): Return false if property
5311         not found.
5313         * java/lang/System.java (setProperties): Set prop_init.
5315 Mon Sep 28 12:39:25 1998  Tom Tromey  <tromey@cygnus.com>
5317         * java/io/PrintStream.java (println): Use line.separator, not
5318         file.separator.
5319         * java/lang/System.java (out, err): Make both autoflush streams.
5320         * java/io/ByteArrayOutputStream.java (write): Increment `count'.
5322         * include/config.h.in: Rebuilt.
5323         * acconfig.h (HAVE_MEMCPY): Removed.
5324         * configure: Rebuilt.
5325         * configure.in: Never define HAVE_MEMCPY.
5327         * java/lang/natString.cc: Don't include OutOfMemoryError.h or
5328         Class.h.
5329         (_Jv_AllocString): Use JvAllocObject again.
5330         * java/lang/Class.h (thread): New field.
5331         (_Jv_AllocString): No longer a friend.
5332         * prims.cc (processClass): Removed dead code.  Changed to more
5333         closely follow the Java Language Specification.
5334         (processClass): Return early if already at the right state.
5336         * prims.cc (JvNewStringUTF): Removed.
5337         * include/cni.h (JvNewStringUTF): New function.
5338         (_Jv_NewStringUTF): Declare as `extern "C"'.
5339         * java/lang/natString.cc (_Jv_NewStringUTF): New function.
5341         * java/lang/natDouble.cc: Added copyright info and header
5342         comment.  Include <stdlib.h>.
5343         (doubleValueOf): Use alloca, not malloc.  Allocate 3 times as many
5344         bytes as are chars in string.
5346 Sat Sep 26 00:19:27 1998  Tom Tromey  <tromey@cygnus.com>
5348         * java/util/Hashtable.java (hkeys): Member renamed from to avoid
5349         clash with method.
5350         (hsize): Likewise.
5352         * java/lang/System.java (init_properties): Now native.
5353         * java/lang/natSystem.cc (init_properties): New method.
5354         Include java/util/Properties.h.
5356         * Makefile.in: Rebuilt.
5357         * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
5358         OutputStreamWriter.h, ByteArrayInputStream.h,
5359         InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
5360         Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
5361         SyncFailedException.h, EOFException.h, FileNotFoundException.h,
5362         Properties.h, Hashtable.h, Dictionary.h.
5363         (CFLAGS): Removed.
5365         * include/javaprims.h (java::io): Added Reader, Writer,
5366         InputStreamReader, OutputStreamWriter,
5367         UnsupportedEncodingException, ByteArrayInputStream,
5368         ByteArrayOutputStream, EOFException, SyncFailedException,
5369         PushbackInputStream.
5370         (java::lang): Added Cloneable.
5371         (java::util): Added NoSuchElementException, VectorEnumeration,
5372         Dictionary, HashtableEnumeration, PropertiesEnumeration.
5374         * java/io/PipedReader.java: New file.
5376 Fri Sep 25 00:11:25 1998  Tom Tromey  <tromey@cygnus.com>
5378         * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
5379         up A-Z.
5381         * java/io/io-defs.h: Removed.
5383         * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
5384         (FileInputStream): Use new constructor.  Can throw IOException.
5386         * java/lang/System.java (getProperty): Don't throw
5387         NullPointerException.
5389         * java/io/RandomAccessFile.java: Rewrote from scratch.
5391         * java/io/natFileDescriptor.cc: Include EOFException.h.
5392         (seek): New method.
5393         (length): New method.
5394         (getFilePointer): New method.
5395         (read): New method.
5396         (available): New method.
5397         * java/io/FileDescriptor.java (SET, CUR): New constants.
5398         (seek, length, getFilePointer, read, available): New decls.
5400         * java/io/PipedWriter.java: New file.
5401         * java/io/StringWriter.java: New file.
5402         * java/io/CharArrayWriter.java: New file.
5403         * java/io/CharConversionException.java: New file.
5404         * java/io/BufferedWriter.java: New file.
5405         * java/io/FilterWriter.java: New file.
5406         * java/io/FileWriter.java: New file.
5408         * java/lang/natString.cc: Include ByteArrayOutputStream.h,
5409         OutputStreamWriter.h, NullPointerException.h,
5410         ByteArrayInputStream.h, InputStreamReader.h.
5411         (getBytes): New method.
5412         (init): Throw NullPointerException.
5413         (init): New function.
5414         * java/lang/String.java (getBytes): Added missing decl.
5415         (getBytes): New method.
5416         (String): Added byte[]-based constructors.
5417         (copyValueOf): Wrote.
5418         (init): Declare variant which takes byte array and encoding.
5419         Import java.io.UnsupportedEncodingException.
5421         * java/io/File.java: Rewrote from scratch.
5422         * java/io/natFileDescriptor.cc: Rewrote from scratch.
5423         * java/io/FileDescriptor.java: Rewrote from scratch.
5424         * java/io/FilenameFilter.java: Rewrote from scratch.
5426 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
5428         * java/io/SyncFailedException.java: New file.
5429         * java/io/UTFDataFormatException.java: Rewrote from scratch.
5430         * java/io/InterruptedIOException.java: Rewrote from scratch.
5431         * java/io/FileNotFoundException.java: Rewrote from scratch.
5432         * java/io/EOFException.java: Rewrote from scratch.
5433         * java/io/IOException.java: Rewrote from scratch.
5434         * java/io/PrintStream.java: Rewrote from scratch.
5435         * java/io/DataOutputStream.java: Rewrote from scratch.
5436         * java/io/BufferedOutputStream.java: Rewrote from scratch.
5437         * java/io/FilterOutputStream.java: Rewrote from scratch.
5438         * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
5439         * java/io/PipedOutputStream.java: Rewrote from scratch.
5440         * java/io/FileOutputStream.java: Rewrote from scratch.
5441         * java/io/OutputStream.java: Rewrote from scratch.
5442         * java/io/DataOutput.java: Rewrote from scratch.
5444 Mon Sep 28 22:59:54 1998  Per Bothner  <bothner@cygnus.com>
5446         * prims.cc (_Jv_CheckCast):  Add missing ! operator.
5448 Mon Sep 28 15:50:06 1998  Anthony Green  <green@cygnus.com>
5450         * configure.in: Add --enable-libjava-debug
5452         * Makefile.am (nat_headers): Add java/lang/Float.h and 
5453         java/lang/Double.h
5455         * acconfig.h: Add DEBUG and HAVE_MEMCPY.
5457         * Makefile.in, configure, include/config.h.in: Rebuilt.
5459 Mon Sep 28 17:05:58 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5461         * java/lang/Float.java: Rewritten
5462         * java/lang/Double.java: Rewritten
5463         * java/lang/natFloat.cc: toString() added.
5464         * java/lang/natDouble.cc: toString() added.
5465         * java/lang/natDouble.cc: doubleValueOf() added.
5466         * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h, 
5467         java/lang/strtod.c: added.
5468         * ieeefp.h: __sparc added.
5469         * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
5470         
5471 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
5473         * include/javaprims.h (java::lang): Added
5474         CloneNotSupportedException.
5476         * java/lang/Object.java (clone): No longer native.  Implemented.
5477         * java/lang/natObject.cc (clone): Removed.
5479 Wed Sep 23 12:03:38 1998  Tom Tromey  <tromey@cygnus.com>
5481         * prims.cc: Don't make definitions `extern "C"'.
5482         (_Jv_RegisterClass): Renamed from registerClass.
5483         * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
5484         (_Jv_NewArray): Likewise.
5485         (_Jv_NewMultiArray): Likewise.
5486         (_Jv_CheckCast): Likewise.
5487         (_Jv_LookupInterfaceMethod): Likewise.
5488         (_Jv_CheckArrayStore): Likewise.
5489         (_Jv_RegisterClass): Likewise.
5491         * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
5492         * configure: Rebuilt.
5493         * configure.in: Don't check for fmod; it is provided by the fdlibm
5494         code.
5495         * prims.cc (fmod): Removed.
5497         * java/lang/natString.cc (charAt): Use _Jv_uint.
5498         * java/lang/Class.h (class JvField): Use _Jv_ushort.
5499         * prims.cc (HASH_CHARS): Use _Jv_ushort.
5500         (equalUtf8Consts): Likewise.
5501         (internalAddClass): Use _Jv_uint.
5502         (processClass): Likewise.
5503         * include/javaprims.h (_Jv_ushort): Renamed from uint16.
5504         (_Jv_uint): Renamed from uint32.
5505         (struct _Jv_Utf8Const): Changed members to use new type names.
5507         * configure: Rebuilt.
5508         * configure.in: Don't check for memcpy.  Require memmove and a way
5509         to get the time.
5510         * java/lang/natSystem.cc (arraycopy): Removed dead code, and
5511         #error.
5512         (currentTimeMillis): Don't use #error.
5514 Tue Sep 22 18:00:16 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
5516         * java/lang/Math.java: static member random renamed to random_ to
5517         avoid conflict with member function of the same name.
5518         * include/javaprims.h: java.util.Random added.
5520 Tue Sep 22 13:53:14 1998  Tom Tromey  <tromey@cygnus.com>
5522         * include/java-chartables.h: Regenerated.
5523         * chartables.pl: End COMPACT_CHARACTER #if after fast tables
5524         printed.
5526 Tue Sep 22 17:17:52 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
5528         * java/lang/Math.java: Rewritten.
5529         * java/lang/natMath.cc: New file.
5530         * Files added from fdlibm:
5531           java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
5532           java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
5533           java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
5534           java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
5535           java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
5536           java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
5537           java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
5538           java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
5539           java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
5540           java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
5541           java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
5542           java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
5543           java/lang/k_cos.c, java/lang/sf_ceil.c,
5544           java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
5545           java/lang/ieeefp.h, java/lang/fdlibm.h
5546         * Makefile.am: rules added for compiling C files from fdlibm.
5547         
5548 Mon Sep 21 15:40:58 1998  Tom Tromey  <tromey@cygnus.com>
5550         * chartables.pl: Minor documentation fixes.
5552         * configure: Rebuilt.
5553         * configure.in: Fixed --help output for --enable-fast-character.
5555 Thu Sep 17 11:03:27 1998  Tom Tromey  <tromey@cygnus.com>
5557         * configure: Rebuilt.
5558         * configure.in: Recognize --enable-fast-character.
5559         * acconfig.h (COMPACT_CHARACTER): New define.
5560         * include/config.h.in: Rebuilt.
5561         * include/java-chartables.h: New file.
5562         * Makefile.in: Rebuilt.
5563         * Makefile.am (nat_files): Added natCharacter.o.
5564         * java/lang/natCharacter.cc: New file.
5565         * chartables.pl (set_attribute): New function.
5566         (@attributes, @second_attributes): New globals.
5567         ($ROMAN_START, $ROMAN_END): Likewise.
5568         (process_char): Call set_attribute when required.
5569         (print_char): Just print hex value.
5570         (print_block): Generate C++ syntax.
5571         (print_numerics): Likewise.
5572         (print_single_map): Likewise.
5573         (print_all_block): Likewise.
5574         (print_case_table): Likewise.
5575         (print_fast_tables): New function.
5576         Generate C++ code suitable for a header file.
5577         * java/lang/Character.java (table_search): Removed.
5578         (digit_value): Now native.
5579         (getNumericValue): Likewise.
5580         (getType): Likewise.
5581         Removed all automatically-generated tables.
5582         (Tamil_Digit_One): Removed.
5583         (isSpaceChar): Now native.
5584         (isTitleCase): Likewise.
5585         (isLowerCase): Likewise.
5586         (isUpperCase): Likewise.
5587         (toLowerCase): Likewise.
5588         (toTitleCase): Likewise.
5589         (toUpperCase): Likewise.
5590         (isDefined): Fixed sense of test.
5592 Wed Sep 16 12:00:19 1998  Tom Tromey  <tromey@cygnus.com>
5594         * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
5595         FIXME comment.
5596         (regionMatches): Likewise.
5598 Tue Sep 15 14:35:12 1998  Tom Tromey  <tromey@cygnus.com>
5600         * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
5602         * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
5603         a friend.
5604         * java/lang/natString.cc (_Jv_AllocString): For now, don't call
5605         _Jv_AllocObject.
5607         * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
5608         not a char.
5610         * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
5612 Fri Sep 11 14:01:08 1998  Tom Tromey  <tromey@cygnus.com>
5614         * prims.cc (instanceof_class): Removed.
5615         (instanceof_array): Likewise.
5616         (instanceof): Likewise.
5617         (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
5618         (_Jv_CheckCast): Likewise.
5619         * java/lang/natClass.cc (isAssignableFrom): New method.
5620         * java/lang/Class.java (isAssignableFrom): Now native.
5622         * include/cni.h (JvThrow): Use `extern inline'.
5623         (JvAllocObject): Likewise.
5624         (JvInitClass): Likewise.
5626         * java/lang/natSystem.cc (arraycopy): Only check class of source
5627         object if not null.
5629         * prims.cc (_Jv_CheckArrayStore): Wrote.
5630         (_Jv_MonitorEnter): Prefer `JvThrow'.
5631         Include ArrayStoreException.h.
5632         (_Jv_CheckCast): Indentation cleanup.
5634 Thu Sep 10 18:59:29 1998  Tom Tromey  <tromey@cygnus.com>
5636         * chartables.pl: New file.
5637         * java/lang/Character.java: Rewrote from scratch.
5639 Fri Sep 18 18:15:58 1998  Warren Levy  <warrenl@cygnus.com>
5641         * java/lang/ArithmeticException.java,
5642         java/lang/ArrayIndexOutOfBoundsException.java,
5643         java/lang/ArrayStoreException.java,
5644         java/lang/ClassCastException.java,
5645         java/lang/ClassNotFoundException.java,
5646         java/lang/CloneNotSupportedException.java,
5647         java/lang/Exception.java, java/lang/IllegalAccessException.java,
5648         java/lang/IllegalArgumentException.java,
5649         java/lang/IllegalMonitorStateException.java,
5650         java/lang/IllegalThreadStateException.java,
5651         java/lang/IndexOutOfBoundsException.java,
5652         java/lang/InstantiationException.java,
5653         java/lang/InterruptedException.java,
5654         java/lang/NegativeArraySizeException.java,
5655         java/lang/NoSuchMethodException.java,
5656         java/lang/NullPointerException.java,
5657         java/lang/NumberFormatException.java,
5658         java/lang/RuntimeException.java, java/lang/SecurityException.java,
5659         java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5661         * java/lang/IllegalStateException.java,
5662         java/lang/NoSuchFieldException.java,
5663         java/lang/UnsupportedOperationException.java: Created.
5665 Fri Sep 18 15:01:42 1998  Warren Levy  <warrenl@cygnus.com>
5667         * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5668         * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5670 Fri Sep 11 16:49:19 1998  Per Bothner  <bothner@cygnus.com>
5672         * prims.cc (JvRunMain):  No longer need to call _Jv_InitClass.
5674 Thu Sep 10 12:23:55 1998  Warren Levy  <warrenl@cygnus.com>
5676         * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5678         * Makefile.in: Rebuilt.
5680         * include/javaprims.h (java::lang): Added
5681         StringIndexOutOfBoundsException.
5683         * java/lang/String.java: Added header comment and FIXME comment for 
5684         missing constructors/methods.
5685         (endsWith): Adjusted offset into string to look at just the last chars.
5686         Commented out undocumented method.
5688         * java/lang/natString.cc: Added includes for
5689         ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5690         (String::init): Throw StringIndexOutOfBoundsException.
5691         (String::charAt): Throw StringIndexOutOfBoundsException.
5692         (String::substring): Throw StringIndexOutOfBoundsException.
5693         (String::getChars): Throw ArrayIndexOutOfBoundsException.
5694         (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5695         (String::compareTo): Return difference/offset between chars/strings.
5697 Tue Sep  8 13:22:33 1998  Warren Levy  <warrenl@cygnus.com>
5699         * java/lang/Boolean.java (TYPE): Added comment.
5700         
5701         * java/lang/Byte.java (decode): Added - commented out until dependent
5702         code for Integer is written.
5703         (compareTo): JDK 1.2 methods written.
5704         (hashCode): Added comment to note that values have been verified.
5705         
5706         * java/lang/Short.java (decode): Added - commented out until dependent
5707         code for Integer is written.
5708         (compareTo): JDK 1.2 methods written.
5709         (hashCode): Added comment to note that values have been verified.
5711         * java/lang/Comparable.java: Created - JDK 1.2 interface.
5713 Fri Sep  4 10:36:35 1998  Tom Tromey  <tromey@cygnus.com>
5715         * include/javaprims.h (java::lang): Added VirtualMachineError,
5716         OutOfMemoryError.
5717         * Makefile.in: Rebuilt.
5718         * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5719         VirtualMachineError.h.
5720         * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5721         (lookupArray): Likewise.
5722         (makeUtf8Const): Likewise.
5723         (_Jv_AllocObject): Likewise.
5724         (_Jv_NewObjectArray): Likewise.
5725         Include OutOfMemoryError.h.
5727         * java/io/natFileDescriptor.cc (newstr): Removed.  Changed callers
5728         to use JvNewStringLatin1.
5730         * java/io/io-defs.h: Include java/lang/IOException.h.
5731         * Makefile.in: Rebuilt.
5732         * Makefile.am (nat_headers): Added
5733         ArrayIndexOutOfBoundsException.h,
5734         ClassFormatError.h,ClassNotFoundException.h,
5735         ClassCircularityError.h, ClassCastException.h,
5736         IncompatibleClassChangeError.h, AbstractMethodError.h,
5737         IllegalAccessError.h, LinkageError.h, Error.h,
5738         NegativeArraySizeException.h, IOException.h.
5739         * include/cni.h (SignalError): Removed declaration.
5740         * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5741         * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5742         * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5743         (newInstance): Likewise.
5744         (forName): Likewise.
5745         * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5746         sorry.
5747         (read): Use JvThrow, not SignalError.
5748         (read): Likewise.
5749         (write): Likewise.
5750         (skip): Likewise.
5751         (close): Likewise.
5752         (open_read): Likewise.
5753         (open_write): Likewise.
5754         (ftell): Likewise.
5755         (fseek): Likewise.
5756         (newstr): New function.
5757         * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5758         sorry.
5759         (lastModifiedUnchecked): Likewise.
5760         (lengthUnchecked): Likewise.
5761         * include/javaprims.h (sorry): Removed declaration.
5762         (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5763         ClassFormatError, ClassNotFoundException, ClassCircularityError,
5764         ClassCastException, IncompatibleClassChangeError,
5765         AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5766         * prims.cc (instanceof_array): Use JvFail, not sorry.
5767         (sorry): Removed.
5768         Include ArrayIndexOutOfBoundsException.h,
5769         ClassFormatError.h,ClassNotFoundException.h,
5770         ClassCircularityError.h, ClassCastException.h,
5771         IncompatibleClassChangeError.h, AbstractMethodError.h,
5772         IllegalAccessError.h, NegativeArraySizeException.h.
5773         (_Jv_ThrowBadArrayIndex): Implemented.
5774         (JvNewStringUTF): Use JvFail, not sorry.
5775         (_Jv_FindClass): Likewise.
5776         (_Jv_NewArray): Likewise.
5777         (throwException): Removed.
5778         (getClass): Use JvThrow.
5779         (processClass): Likewise.
5780         (_Jv_NewObjectArray): Likewise.
5781         (_Jv_NewMultiArray): Likewise.
5782         (_Jv_CheckCast): Likewise.
5783         (_Jv_LookupInterfaceMethod): Likewise.
5784         (SignalError): Removed.
5785         (getClass): Use _Jv_NewStringUtf8Const to create String.
5787         * java/lang/natSystem.cc (arraycopy): Throw
5788         ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5790         * Makefile.in: Rebuilt.
5791         * Makefile.am (GCJH): Renamed.  Now use `gcjh'.  Changed all
5792         users.
5793         * include/java-array.h: Mention gcjh, not gjavah.
5795         * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5796         (canReadUnchecked): Likewise.
5797         (canWriteUnchecked): Likewise.
5798         (isFileUnchecked): Likewise.
5799         * java/io/natFileDescriptor.cc: Don't include cni.h.
5801         * java/lang/Thread.java (run__): Declare.
5802         * java/lang/natThread.cc (run__): New method, to avoid compiler
5803         warning.
5804         (start): Use run__, not run_.
5806         * java/io/io-defs.h: Include cni.h and jvm.h.
5808 Thu Sep  3 18:20:08 1998  Per Bothner  <bothner@cygnus.com>
5810         Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5811         * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1):  Moved
5812         to natString.cc (with suitable renaming, inlines etc).
5813         (javaString2CString):  Removed.  Subsumed by _Jv_GetStringUTFRegion.
5814         * java/lang/Class.h:  Renamed Utf8Const to _Jv_Utf8Const.
5815         * java/lang/String.h:  Removed - now generated using gjavah.
5816         * java/lang/String.java:  Re-written from scratch. Many native methods.
5817         * java/lang/natDouble.cc, java/util/natDate.cc:  #include <cni.h>.
5818         * java/lang/natString.cc:  Many functions re-written for "compact
5819         strings" representation, or native java.lang.String methods added.
5820         (Utf8Const2JavaString):  Renamed to _Jv_NewStringUtf8Const.
5821         (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion):  New methods.
5822         * java/lang/natClass.cc (getName):  Use new _Jv_NewStringUtf8Const.
5823         * java/io/natFileDescriptor.cc:  Use new JvGetStringUTFRegion.
5824         * include/cni.h:  Add inline method.
5825         * include/java-array.h (jobjectArrayjchar):  gjavah bug work-around.
5826         * include/javaprims.h:  Moved some stuff frm String.h.
5827         * include/jvm.h (UTF8_GET, Utf8Const, StringClass):  Moved here.
5828         * Makefile.am (nat_header):  Added Character.h and String.h.
5829         (String.h):  Add new rule.
5831 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
5833         * no-threads.cc: Include config.h, cni.h, jvm.h.  Don't include
5834         java-assert.h.
5835         * posix-threads.cc: Include cni.h, jvm.h.
5836         * quick-threads.cc: Include cni.h, jvm.h.
5837         * nogc.cc: Include cni.h, not javaprims.h.
5838         * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5839         * java/lang/natThread.cc: Rearranged #include ordering.  Don't
5840         include java-assert.h.
5841         * java/lang/natSystem.cc: Include cni.h.  Don't include
5842         java-assert.h.
5843         * java/lang/natRuntime.cc: Include cni.h.  Don't include
5844         java-assert.h.
5845         * prims.cc: Rearranged #include ordering.  Don't include
5846         java-array.h or java-assert.h.
5847         * boehm.cc: Include config.h, cni.h.
5848         * exception.cc: Include config.h, cni.h.
5849         * include/jvm.h: Include java-assert.h.
5850         * include/cni.h: Include java/lang/Object.h.  Don't include
5851         java-threads.h or java-array.h.
5853 Thu Sep  3 16:03:08 1998  Warren Levy  <warrenl@cygnus.com>
5855         * java/lang/Boolean.java: Rewritten.
5857 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
5859         * java/lang/natFirstThread.cc (main_func): New typedef.
5860         (run): Use main_func, not JvPrivThreadStartFunc.
5861         * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5862         argument type.
5863         * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5864         argument type.
5865         * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5866         argument type.
5868         Can't throw Java exceptions with C++ `throw':
5869         * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5870         * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5871         (setPriority): Likewise.
5872         (sleep): Likewise.
5873         (start): Likewise.
5874         (stop): Likewise.
5875         * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5876         * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5878         Can't catch Java exceptions from C++:
5879         * java/lang/natThread.cc (finish_): New method.
5880         (run_): Removed.
5881         * java/lang/Thread.java (run_): Rewrote in Java.
5882         (finish_): New native method.
5884 Wed Sep  2 17:30:39 1998  Warren Levy  <warrenl@cygnus.com>
5886         * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5888         * include/javaprims.h (java::io): Added Serializable.
5890 Wed Sep  2 15:22:00 1998  Warren Levy  <warrenl@cygnus.com>
5892         * java/util/EmptyStackException.java,
5893         java/util/NoSuchElementException.java: Rewritten.
5894         
5895         * java/util/ConcurrentModificationException.java,
5896         java/util/MissingResourceException.java,
5897         java/util/TooManyListenersException.java: Created.
5899 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
5901         * include/cni.h (JvThrow): New function.
5902         * include/javaprims.h (_Jv_Throw): Declare.
5904 Wed Sep  2 14:07:48 1998  Warren Levy  <warrenl@cygnus.com>
5906         * java/util/Observable.java: Rewritten.
5908 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
5910         * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5911         (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5912         Include NullPointerException.h.
5914 Tue Sep  1 12:07:35 1998  Tom Tromey  <tromey@cygnus.com>
5916         * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5917         assignability checks.  Don't bother using memcpy.
5919         * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5920         (started): Removed.
5921         * include/quick-threads.h (JvPrivThreadWait): New function.
5922         * include/no-threads.h (JvPrivThreadWait): New function.
5923         * include/posix-threads.h (JvPrivThreadWait): New function.
5924         * prims.cc (JvRunMain): Call JvPrivThreadWait.
5926         * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5928         * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5929         offsets by size of type that is being copied.
5931         * java/lang/natThread.cc (start): Don't pass `object' argument to
5932         JvPrivThreadStart.
5933         * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5934         * posix-threads.cc (JvPrivThreadStart): Removed `object'
5935         argument.
5936         * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5937         always pass thread as object.
5938         * include/quick-threads.h, include/posix-threads.h,
5939         include/no-threads.h (JvPrivThreadStart): Removed `object'
5940         argument.
5942 Mon Aug 31 19:11:53 1998  Warren Levy  <warrenl@cygnus.com>
5944         * java/util/Dictionary.java: Rewritten.
5946 Mon Aug 31 14:35:55 1998  Tom Tromey  <tromey@cygnus.com>
5948         * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5949         (JvPrivThreadDestroy): Likewise.
5950         
5951 Mon Aug 31 12:56:01 1998  Warren Levy  <warrenl@cygnus.com>
5953         * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5955 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
5957         * java/lang/natSystem.cc: Rewrote from scratch.
5958         * java/lang/System.java: Rewrote from scratch.
5959         * java/lang/Class.h (Class): Declare isAssignableFrom.
5960         * include/javaprims.h (java::lang): Added ArrayStoreException,
5961         IndexOutOfBoundsException.
5962         * Makefile.in: Rebuilt.
5963         * Makefile.am (nat_headers): Added ArrayStoreException.h,
5964         IndexOutOfBoundsException.h.
5965         * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5966         * include/jvm.h (_Jv_HashCode): New function.
5968         * java/lang/natThread.cc (suspend): Call checkAccess.
5969         (resume): Likewise.
5970         * java/lang/Thread.java (setDaemon): Call checkAccess.
5972 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
5974         * java/lang/Runtime.java: Rewrote from scratch.
5975         * java/lang/natRuntime.cc: Rewrote from scratch.
5977         * nogc.cc (JvPrivGCTotalMemory): New function.
5978         (JvPrivGCFreeMemory): Likewise.
5979         (total): New global.
5980         (JvPrivAllocObj): Increment total.
5981         (JvPrivAllocArray): Likewise.
5982         (JvPrivAllocBytes): Likewise.
5983         * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
5984         * boehm.cc (JvPrivGCTotalMemory): New function.
5985         (sum_blocks): Likewise.
5986         (JvPrivGCFreeMemory): Likewise.
5988 Wed Aug 26 12:30:32 1998  Tom Tromey  <tromey@cygnus.com>
5990         * include/javaprims.h (java::lang): Added FirstThread.
5991         * java/lang/natFirstThread.cc: New file.
5992         * java/lang/FirstThread.java: New file.
5993         * prims.cc (main_signature): Removed.
5994         (main_name): Removed.
5995         #include FirstThread.h.
5996         * Makefile.in: Rebuilt.
5997         * Makefile.am (TFRIEND): Removed.
5998         (java/lang/Thread.h): Likewise.
5999         (FTFRIEND): New macro.
6000         (java/lang/FirstThread.h): New target.
6001         (nat_files): Added natFirstThread.o.
6002         (nat_headers): Added FirstThread.h.
6003         * include/jvm.h (_Jv_StartFirstThread): Don't declare.
6004         * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
6006         * java/lang/Thread.java (setName): Throw IllegalArgumentException
6007         if name is null.
6008         (Thread): Likewise.
6010         * java/lang/natThread.cc (start): Synchronize the thread.
6011         (stop): Synchronize the thread.
6013         * java/lang/ThreadDeath.java: Rewrote from scratch.
6015         * Makefile.in: Rebuilt.
6016         * Makefile.am (TGFRIEND): New macro.
6017         (java/lang/ThreadGroup.h): New target.
6018         ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
6019         native headers.
6020         ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
6022         * nogc.cc: Include config.h.
6024         * java/lang/ThreadGroup.java: Rewrote from scratch.
6026 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6028         * java/lang/Thread.java (checkAccess): Only call in to security
6029         manager if it exists.
6030         (Thread): Don't check access when creating the first thread.  Add
6031         this thread to the appropriate ThreadGroup.
6033         * java/lang/natThread.cc (run_): Call uncaughtException method on
6034         the ThreadGroup.
6036         * java/lang/Runnable.java: Rewrote from scratch.
6037         * java/lang/Thread.java: Updated copyright comment to correct
6038         form.
6040 Wed Aug 26 15:16:18 1998  Warren Levy  <warrenl@cygnus.com>
6042         * java/util/Random.java: Rewritten.
6044 Wed Aug 26 14:25:39 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
6046         * prims.cc (_Jv_NewMultiArray): Need one more slot to store
6047         trailing 0 in array[].
6049 Wed Aug 26 12:21:06 1998  Anthony Green  <green@cygnus.com>
6051         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
6052         and RUNTESTFLAGS from AM_MAKEFLAGS.
6053         (SUBDIRS): Conditionally include testsuite.
6054         * Makefile.in: Rebuilt.
6056 Tue Aug 25 18:14:53 1998  Anthony Green  <green@cygnus.com>
6058         * java/lang/Object.h: Include java-assert.h.
6060 Tue Aug 25 17:33:57 1998  Anthony Green  <green@cygnus.com>
6062         * Makefile.am: Add testsuite directory.
6063         * configure.in: Build testsuite/Makefile.
6064         * Makefile.in, configure: Rebuilt.
6065         
6066 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
6068         * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
6069         * include/jvm.h (_Jv_StartFirstThread): Declare.
6071         * include/javaprims.h (java::lang): Added Exception,
6072         RuntimeException.
6074         * Makefile.in: Rebuilt.
6075         * Makefile.am (nat_headers): Added NullPointerException.h,
6076         InterruptedException.h, IllegalArgumentException.h, Exception.h,
6077         Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
6078         (java/lang/Thread.h): New target.
6079         (TFRIEND): New macro
6081         * include/java-assert.h (JvFail): Use 0 and not NULL.
6083         * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
6084         instead of assuming we are a friend of Thread.
6085         * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
6086         instead of assuming we are a friend of Thread.
6088 Mon Aug 24 15:58:36 1998  Tom Tromey  <tromey@cygnus.com>
6090         * java/lang/natThread.cc: Rewrote from scratch.
6091         * java/lang/Thread.java: Rewrote from scratch.
6092         * prims.cc (JvRunMain): Use new Thread constructor.
6093         * include/javaprims.h (java::lang): Added InterruptedException.
6094         * Makefile.in: Rebuilt.
6095         * Makefile.am (nat_headers): Added java/lang/Thread.h.
6096         * java/lang/Thread.h: Removed.
6097         * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
6098         * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
6099         argument.
6100         * posix-threads.cc (JvPrivThreadJoin): Removed.
6101         (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
6102         (really_start): Don't notify join_cond.
6103         (JvPrivThreadStart): Added `data' argument.
6104         * include/no-threads.h (JvPrivThreadInterrupt): Removed.
6105         (JvPrivThreadJoin): Likewise.
6106         Use JvFail instead of sorry.
6107         (JvPrivThreadSuspend): Removed.
6108         (JvPrivThreadResume): Removed.
6109         * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
6110         (JvPrivThreadJoin): Likewise.
6111         (JvPrivThreadSuspend): Use JvFail.
6112         (JvPrivThreadResume): Likewise.
6113         (JvPrivThreadSuspend): Removed.
6114         (JvPrivThreadResume): Likewise.
6115         * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
6116         (JvPrivThread_t): Removed join_mutex, join_cond.
6117         Use JvFail instead of sorry.
6118         (JvPrivThreadSuspend): Removed.
6119         (JvPrivThreadResume): Likewise.
6121 Tue Aug 25 12:50:13 1998  Warren Levy  <warrenl@cygnus.com>
6123         * java/util/Observer.java: Rewritten
6124         * java/util/Enumeration.java: Rewritten
6126 Tue Aug 25 11:33:54 1998  Warren Levy  <warrenl@cygnus.com>
6128         * java/util/StringTokenizer.java: Rewritten
6129         * java/util/Stack.java: Added COPYRIGHT-TBD comment
6130         * java/util/Vector.java: Added COPYRIGHT-TBD comment
6131         * java/io/Serializable.java: Added COPYRIGHT-TBD comment
6132         
6133 Fri Aug 21 10:14:22 1998  Tom Tromey  <tromey@cygnus.com>
6135         * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
6136         not defined.
6138         * no-threads.cc (JvPrivThreadStart): Use JvAssert.
6139         Include java-assert.h.
6140         * include/java-assert.h: New file.
6141         * prims.cc (_Jv_Abort): New function.
6142         Include java-assert.h, not assert.h.
6143         (_Jv_MonitorExit): Use JvAssert.
6144         (resolveConstants): Likewise.
6145         (processClass): Likewise.
6146         (JvRunMain): Assert that method is found.
6148         * configure: Rebuilt.
6149         * configure.in: Check for test subdir.
6150         * Makefile.in: Rebuilt.
6151         * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
6153         * prims.cc (JvRunMain): Use NORM_PRIORITY.
6154         * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
6156         * prims.cc (resolveConstants): Removed unused variables.
6157         (processClass): Likewise.
6159         * include/quick-threads.h (JvPrivThreadCurrent): Use
6160         coop_getspecific.
6161         * quick-threads.cc (destroy_data): New function.
6162         (JvPrivInitThreads): Create key.
6163         (JvPrivThreadKey): New global.
6164         (JvPrivThreadStart): Use coop_setspecific.
6166         * include/quick-threads.h, include/posix-threads.h,
6167         include/no-threads.h, no-threads.cc, quick-threads.cc,
6168         posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
6170 Thu Aug 20 10:57:30 1998  Tom Tromey  <tromey@cygnus.com>
6172         * include/no-threads.h (JvPrivThreadInitData): Don't set
6173         JvPrivOnlyThread.
6175         * include/quick-threads.h (JvPrivCondWait): coop function now
6176         takes microseconds.
6177         (JvPrivThreadJoin): Likewise.
6179         * java/lang/Thread.h (Thread): Updated declaration of
6180         JvPrivThreadStart.
6181         * include/quick-threads.h, include/posix-threads.h: Updated
6182         declaration of JvPrivThreadStart.
6183         * include/no-threads.h (JvPrivThreadStart): Changed definition
6184         into declaration.
6185         * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
6186         * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
6187         * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
6189 Wed Aug 19 14:53:59 1998  Tom Tromey  <tromey@cygnus.com>
6191         * quick-threads.cc (qthrow): New function.
6192         (JvPrivInitThreads): New function.
6193         (started): New global.
6194         (JvPrivThreadStart): Call coop_start if required.
6195         * include/quick-threads.h (JvPrivThreadCancel): Implement.
6196         (JvPrivThreadDestroy): Likewise.
6197         (JvPrivInitThreads): Removed.
6198         * include/posix-threads.h (JvPrivThreadCancel): Added error
6199         argument.
6200         * java/lang/natThread.cc (stop_): Pass exception to
6201         JvPrivThreadCancel.
6203 Tue Aug 18 12:58:22 1998  Tom Tromey  <tromey@cygnus.com>
6205         * include/javaprims.h (java::lang): Added
6206         IllegalArgumentException, IllegalThreadStateException, Math,
6207         NullPointerException, ThreadDeath.
6208         (java::util): Added Enumeration.
6210         * Makefile.in: Rebuilt.
6211         * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
6213         * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
6214         now public.
6215         (threadsv): Renamed from threads to avoid clash in C++ header.
6216         (groupsv): Likewise.
6217         * include/no-threads.h (JvPrivThreadStart): Removed.
6218         * no-threads.cc (JvPrivThreadStart): New function.
6219         * java/lang/Thread.java (Thread): New constructor for internal use.
6220         * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
6221         (Thread): Declare constructor.
6222         * prims.cc (JvRunMain): Create the initial Thread and
6223         ThreadGroup.
6224         Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
6225         * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
6226         Removed `daemon' argument.
6228         * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
6229         * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
6230         a friend.
6231         * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
6233         * Makefile.in: Rebuilt.
6234         * Makefile.am (INCLUDES): Include THREADINCS.
6236         * configure: Rebuilt.
6237         * configure.in: Recognize `qt' as a threads package.
6239 Thu Aug 20 12:42:32 1998  Warren Levy  <warrenl@cygnus.com>
6241         * java/util/Stack.java (pop): Null out topmost node for robustness.
6243 Thu Aug 20 12:30:30 1998  Warren Levy  <warrenl@cygnus.com>
6245         * java/util/Stack.java: Rewritten.
6246         * java/util/Vector.java (isEmpty): Simplified expression.
6248 Wed Aug 19 18:02:19 1998  Warren Levy  <warrenl@cygnus.com>
6250         * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
6251         (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
6253         * include/java-array.h (JvNewObjectArray): Created inline to
6254         _Jv_NewObjectArray.
6256         * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
6257         JvNewObjectArray.
6258         
6259 Wed Aug 19 14:12:02 1998  Warren Levy  <warrenl@cygnus.com>
6261         * java/util/Vector.java: Rewritten.
6262         * java/io/Serializable.java: Created.
6264 Fri Aug 14 10:31:54 1998  Tom Tromey  <tromey@cygnus.com>
6266         * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
6267         Infinity is 1/0, not 1/1.
6269         * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
6271         * configure: Rebuilt.
6272         * configure.in: Removed duplicate AC_ARG_WITH.
6274 Thu Aug 13 14:51:47 1998  Warren Levy  <warrenl@cygnus.com>
6276         * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
6277         soft_badarrayindex.
6278         (_Jv_InitClass): Renamed from soft_initialise_class.
6279         (_Jv_NewMultiArray): Renamed from soft_multianewarray.
6280         (_Jv_CheckCast): Renamed from soft_checkcast.
6281         (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
6282         (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
6283         (JvRunMain): Call JvInitClass instead of soft_initialise_class.
6284         * include/cni.h (JvInitClass): New function.
6285         (_Jv_InitClass): Renamed from soft_initialise_class.
6287 Wed Aug 12 10:07:04 1998  Tom Tromey  <tromey@cygnus.com>
6289         * configure: Rebuilt.
6290         * configure.in (CXX): Don't set.
6291         * Makefile.in: Rebuilt.
6292         * Makefile.am (AM_CXXFLAGS): New macro.
6294         * Makefile.in: Rebuilt.
6295         * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
6296         nogc.o): New target.
6298         * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
6299         GC.
6300         (mark_array): Likewise.
6302 Tue Aug 11 11:44:53 1998  Per Bothner  <bothner@cygnus.com>
6304         * java/lang/Class.h (JvMethod):  Removed some unused fields.
6305         (JvField.info):  Removed unused idx union variant.
6307 Mon Aug 10 15:00:14 1998  Tom Tromey  <tromey@cygnus.com>
6309         * prims.cc (makeUtf8Const): Mask off high bits of hash value to
6310         match compiler.
6312 Mon Aug  3 16:13:54 1998  Per Bothner  <bothner@cygnus.com>
6314         * configure.in, configure (CXX):  Add -fvtable-thunks.
6316 Thu Jul 30 14:34:47 1998  Per Bothner  <bothner@cygnus.com>
6318         * java/lang/Object.java (finalize):  Move first.
6319         * java/lang/Object.h (_JvObjectPrefix):  New dummy base class.
6320         (Object):  Re-arrange order to match Object.java.
6322 Tue Jul 28 21:42:16 1998  Per Bothner  <bothner@cygnus.com>
6324         * prims.cc (hashUtf8String):  Fix - use new JavaSoft specification.
6325         * java/lang/natString.cc (hashChars):  Likewise.
6327         * prims.cc (RuntimeClass):  New macro.
6328         (JvRunMain):  Do soft_initialise_class of RuntimeClass before exit.
6330 Mon Jul 27 22:20:10 1998  Tom Tromey  <tromey@cygnus.com>
6332         * Makefile.in: Rebuilt.
6333         * Makefile.am (AM_MAKEFLAGS): New macro.
6335 Fri Jul 24 11:21:24 1998  Tom Tromey  <tromey@cygnus.com>
6337         * nogc.cc: Include <javaprims.h>.
6339         * Makefile.in: Rebuilt.
6340         * Makefile.am (GJAVAH): gjavah no longer in java subdir.
6342 Thu Jul 23 11:38:40 1998  Tom Tromey  <tromey@cygnus.com>
6344         * exception.cc (terminate): Removed.
6345         (unexpected): Removed.
6347         * configure: Rebuilt.
6348         * configure.in: Handle case where target subdir is ".".
6350         * configure: Rebuilt.
6351         * configure.in: Compute COMPPATH based on --with-target-subdir
6352         option.  Added --with-target-subdir and --with-cross-host.  Use
6353         --with-cross-host to determine when a cross compiler is in use.
6355         * Makefile.in: Rebuilt.
6356         * Makefile.am (GJAVAH): Include COMPPATH.
6357         * configure: Rebuilt.
6358         * configure.in: Subst COMPPATH.
6360 Mon Jul 20 16:13:43 1998  Tom Tromey  <tromey@cygnus.com>
6362         * prims.cc (lockMutex): Removed.
6363         (unlockMutex): Likewise.
6364         (processClass): Lock the class using a JvSynchronize object.
6366 Fri Jul 17 11:27:48 1998  Tom Tromey  <tromey@cygnus.com>
6368         * java/lang/natString.cc (gc_calloc_fixed): Removed.
6369         (gc_free_fixed): Removed.
6370         (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
6371         freeing old value of strhash.
6373         * exception.cc (_Jv_type_matcher): Cast first argument to
6374         _Jv_IsInstanceOf.
6376 Thu Jul 16 14:51:44 1998  Tom Tromey  <tromey@cygnus.com>
6378         * include/java-array.h (jstringArray): New type.
6379         * java/lang/natSystem.cc (setProperty): Removed.
6380         (initProperties): Directly call JvNewStringLatin1 for arguments.
6381         * java/util/natDate.cc: Include java/util/Date.h, not
6382         java-util.h.
6383         (setTime): Removed.
6384         * java/io/FileDescriptor.java (available): No longer static.
6385         * java/lang/natDouble.cc (Double): Removed class definition.
6386         * include/javaprims.h (java::lang::Number): Declare.
6387         (java::lang::NumberFormatException): Likewise.
6388         (java::io::FilenameFilter): Likewise.
6389         (java::lang::Character): Likewise.
6390         (java::lang::Error): Likewise.
6391         (java::lang::SecurityManager): Likewise.
6392         (java::util::Vector): Likewise.
6393         (java::io::FileNotFoundException): Likewise.
6394         (java::io::IOException): Likewise.
6395         (java::lang::NativeLang): Likewise.
6396         (java::lang::UnsatisfiedLinkError): Likewise.
6397         (java::util::StringTokenizer): Likewise.
6398         (java::io::InputStream, java::io::OutputStream): Likewise.
6399         (java::io::PrintStream, java::lang::SecurityException): Likewise.
6400         (java::util::Hashtable): Likewise.
6401         * Makefile.in: Rebuilt.
6402         * Makefile.am (nat_headers): Added java/lang/Double.h,
6403         java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
6404         (MOSTLYCLEANFILES): Added nat_headers.
6405         * include/jvm.h: Moved many defines, declarations, and functions
6406         to java/lang/Class.h.
6407         (struct JvSyncInfo): Moved to java/lang/Object.h.
6408         (UTF8_GET): Moved to java/lang/String.h.
6410 Wed Jul 15 09:02:31 1998  Tom Tromey  <tromey@cygnus.com>
6412         * java/io/io-defs.h: Don't include java-io.h.
6413         * include/java-io.h: Removed.
6414         * include/javaprims.h: Include java::io.
6416 Tue Jul 14 17:04:26 1998  Tom Tromey  <tromey@cygnus.com>
6418         * include/java-io.h (File): Removed
6419         (FileDescriptor): Likewise.
6421         * java/io/io-defs.h: Include java/io/File.h and
6422         java/io/FileDescriptor.h.
6424         * Makefile.in: Rebuilt.
6425         * Makefile.am (GJAVAH): New macro.
6426         (.class.h): New rule.
6427         (SUFFIXES): Added .h.
6428         (nat_headers): New macro.
6429         ($(nat_headers)): New target.
6430         (BUILT_SOURCES): Added nat_headers.
6432         * include/java-util.h: Removed.
6434 Fri Jul  3 10:17:14 1998  Tom Tromey  <tromey@cygnus.com>
6436         * include/java-io.h: Changed to avoid java-lang.h.
6437         * java/lang/natThread.cc: Include java/lang/Thread.h, not
6438         java-lang.h.
6439         * java/lang/natSystem.cc: Include java/lang/System.h, not
6440         java-lang.h.
6441         * java/lang/natString.cc: Include java/lang/String.h, not
6442         java-lang.h.
6443         * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
6444         java-lang.h.
6445         * java/lang/natClass.cc: Include java/lang/Class.h, not
6446         java-lang.h.
6447         * java/lang/natDouble.cc: Include java/lang/Object.h, not
6448         java-lang.h.
6449         * java/lang/natObject.cc: Include java/lang/Object.h, not
6450         java-lang.h.
6451         * exception.cc: Don't include java-lang.h.
6452         * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6453         * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
6454         * nogc.cc: Don't include java-lang.h.
6455         * boehm.cc: Include java/lang/Class.h, not java-lang.h.
6456         * prims.cc (processClass): Don't use `init_type'; just cast to
6457         type directly.
6458         Include java/lang/Class.h and jvm.h, not java-lang.h.
6459         (JvAllocObject): Wrote single-argument version.
6460         (PrimClass): Inherit from Class.
6461         (initPrimClass): Removed.
6462         * include/java-lang.h: Removed.
6463         * include/jvm.h: Declare struct _dispatchTable.
6464         * include/cni.h: Don't declare _Jv_MonitorEnter,
6465         _Jv_MonitorExit, struct _dispatchTable.
6466         * include/javaprims.h: Moved all typedefs here, from cni.h.
6467         * java/lang/Class.h: New file.
6468         * include/java-array.h: New file.
6469         * java/lang/Object.h: New file.
6471         * prims.cc (classFromSig): Now static.
6473 Wed Jul  1 12:28:48 1998  Tom Tromey  <tromey@cygnus.com>
6475         * include/cni.h: Don't mention soft_new.
6476         * include/java-lang.h (Object): Don't mention soft_new.  Mention
6477         _Jv_NewPrimArray, not newPrimArray.
6478         * prims.cc (soft_new): Removed.
6479         (_Jv_NewArray): Renamed from soft_newarray.
6480         (soft_anewarray): Use JvNewObjectArray.
6481         (newArray): Likewise.
6482         (newRefArray): Removed.
6483         (_Jv_NewPrimArray): Renamed from newPrimArray.
6484         (equalUtf8Consts): Now static.
6485         (soft_instanceof): Removed.
6486         * java/lang/natDouble.cc (doubleToString): Now static.
6488         * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
6489         java_lang_Double_longBitsToDouble, java_lang_Double_toString):
6490         Removed.
6492 Tue Jun 30 10:54:57 1998  Tom Tromey  <tromey@cygnus.com>
6494         * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
6495         _Jv_MonitorExit.
6496         * include/cni.h: Renamed functions to _Jv_MonitorEnter and
6497         _Jv_MonitorExit.
6498         * include/no-threads.h (JvPrivMutexLock): Always return -1.
6499         (JvPrivMutexUnlock): Likewise.
6500         * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
6501         Return value now jint.
6502         (_Jv_MonitorExit): Renamed from soft_monitorexit.  Return value
6503         now jint.
6505         * Makefile.in: Rebuilt.
6506         * Makefile.am: Don't allow `jV' names.
6507         (maintainer-check): Depend on libjava.a.
6508         * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
6510         * Makefile.in: Rebuilt.
6511         * Makefile.am (NM): New macro.
6512         (maintainer-check): New target.
6514         * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
6516         * configure: Rebuilt.
6517         * configure.in: Use --enable-threads, not --enable-gc.  Fix
6518         documentation for --enable-threads.  Changed option to work like
6519         identical option in gcc/configure.
6521 Mon Jun 29 10:44:29 1998  Tom Tromey  <tromey@cygnus.com>
6523         * boehm.cc (mark_array): Use JvGetArrayLength.
6525 Thu Jun 25 11:56:21 1998  Per Bothner  <bothner@cygnus.com>
6527         * exception.cc:  New file (mostly written by Andrew MacLeod),
6528         exception handling support.
6529         * Makefile.am (libjava_a_SOURCES), Makefile.in:  Add exception.cc.
6530         Remove -fexceptions - it is now the default.
6532         * prims.cc (JvIsInstanceOf):  Renamed to _Jv_IsInstanceOf.
6533         (JvAllocObject):  Renamed to _Jv_AllocObject.
6534         (soft_athrow):  Removed.  Replaced by _Jv_Throw in exception.cc.
6535         (loadClass):  Renamed to _Jv_FindClass.
6536         * include/cni.h (JvIsInstanceOf, JvAllocObject).  Make into
6537         inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
6538         * include/java-lang.h (JvGetArrayLength):  New CNI function.
6539         * include/jvm.h (_Jv_FindClass):  Added declaration.
6541         * java/lang/natString.cc:  More implementation if COMPACT_STRINGS.
6543 Wed Jun 24 16:41:30 1998  Per Bothner  <bothner@cygnus.com>
6545         * java/lang/natClass.cc (getName):  Add implementation.
6546         * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
6548 Tue Jun 23 15:56:24 1998  Tom Tromey  <tromey@cygnus.com>
6550         * Makefile.in: Rebuilt.
6551         * Makefile.am (.class.o): Added -fexceptions.
6553 Mon Jun 15 14:54:06 1998  Tom Tromey  <tromey@cygnus.com>
6555         * configure: Rebuilt.
6556         * configure.in: Don't check for __nanosleep.
6557         * posix-threads.cc (nanosleep): Never define.
6559 Sun Jun 14 22:37:23 1998  Tom Tromey  <tromey@cygnus.com>
6561         * posix-threads.cc (JvPrivCondWait): Fixed computation of
6562         timespec.
6564 Thu Jun 11 10:51:44 1998  Tom Tromey  <tromey@cygnus.com>
6566         * java/lang/natThread.cc (enumerate): Uncommented.
6567         * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
6568         (interrupt): Call it.
6570 Wed Jun 10 15:57:16 1998  Tom Tromey  <tromey@cygnus.com>
6572         * configure: Rebuilt.
6573         * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
6575 Mon Jun  8 12:04:11 1998  Tom Tromey  <tromey@cygnus.com>
6577         * include/no-threads.h (JvPrivThreadInterrupt): New method.
6578         * include/java-lang.h (Thread): Added `interrupted_' method.
6579         * java/lang/Thread.java (interrupted_): New method.
6580         * java/lang/natThread.cc (join): Possibly throw interrupted
6581         exception after join finishes.
6582         (interrupted_): New method.
6583         * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
6584         join_cond.
6585         (JvPrivThreadJoin): New function.
6586         (really_start): Notify all threads waiting for this thread.
6587         (struct starter): Added `data' member.
6588         (JvPrivThreadStart): Set it.
6589         * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
6590         join_cond.
6591         (JvPrivThreadJoin): No longer inline.
6592         (JvPrivThreadInterrupt): New function.
6594         * include/no-threads.h (JvPrivThreadSleep): Removed.
6595         * posix-threads.cc (JvPrivThreadSleep): Removed.
6597 Fri Jun  5 13:51:25 1998  Tom Tromey  <tromey@cygnus.com>
6599         * configure: Rebuilt.
6600         * configure.in (THREADOBJS): Initialize to no-threads.o in
6601         no-threads case.
6602         * posix-threads.cc (key): New global.
6603         (JvPrivInitThreads): New function.
6604         (really_start): Set thread-specific data to point to object.
6605         (JvPrivThreadStart): Added `daemon' argument.
6606         (JvPrivThreadSleep): Added `data' argument.
6607         * include/posix-threads.h (JvPrivInitThreads): Removed
6608         implementation.
6609         (JvPrivThreadCurrent): New function.
6610         * include/no-threads.h (JvPrivThreadInitData): Initialize
6611         JvPrivOnlyThread.  Added `thread' argument.
6612         (JvPrivThreadCurrent): New function.
6613         (JvPrivThreadStart): Added `daemon' argument.
6614         * no-threads.cc: New file.
6615         * java/lang/natThread.cc (init_data): New function.
6616         (isAlive): Removed.
6617         (start): Set `alive' member.
6618         (stop_): Clear `alive' member.
6619         (destroy): Likewise.
6620         (currentThread): Implemented.
6621         (start): Pass `daemon' argument to JvPrivThreadStart.
6622         (sleep): Rewrote.
6623         * include/java-lang.h (Thread): Added `alive', `tsync' members.
6624         (Thread): Added `init_data' method.
6625         * java/lang/Thread.java (alive, data): New instance variables.
6626         (init_data): New private method.
6627         (isAlive): No longer native.
6629 Thu Jun  4 14:09:32 1998  Tom Tromey  <tromey@cygnus.com>
6631         * include/java-lang.h (JvRunMain): Declare.
6632         * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6633         * prims.cc (JvRunMain): New function.
6634         (main_signature, main_name): New globals.
6636         * boehm.cc (mark_array): Use `elements' function and not
6637         operator[] on jarray.
6639         * posix-threads.cc: Include <config.h>.  Define nanosleep if
6640         required.
6642         * configure: Rebuilt.
6643         * configure.in: Check for _nanosleep.
6645         * configure: Rebuilt.
6646         * configure.in: Check for pthread_mutexattr_settype.
6648         * include/cni.h (class JvSynchronize): New class.
6649         * java/lang/Thread.java (sleep): Throws InterruptedException.
6650         (join): Throws InterruptedException.
6651         (resume): Not native.
6652         (resume_): New method.
6653         (start): Now synchronized.
6654         (stop_): New method.
6655         (Thread): Synchronize when accessing threadNumber.
6656         (misc): Removed.
6657         * java/lang/natThread.cc (throwException): New macro.
6658         (sleep): Throw InterruptedException.
6659         (resume_): Renamed.
6660         (stop_): Renamed.
6661         * include/java-lang.h (Runtime): Added interrupted().
6663         * boehm.cc (call_finalizer): Correctly initialize jobj.
6664         * include/java-lang.h (Runtime): Added getRuntime() and exit().
6666         * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6667         `#elseif'.
6669         * configure: Rebuilt.
6670         * configure.in: Added support for --disable-threads.
6671         * include/no-threads.h: New file.
6673         * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6675         * Makefile.in: Rebuilt.
6676         * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6677         (libjava_a_DEPENDENCIES): Added THREADOBJS.
6678         (libjava_a_LIBADD): Added THREADOBJS.
6679         * configure: Rebuilt.
6680         * configure.in: Added --with-threads option.
6681         * posix-threads.cc: New file.
6682         * include/posix-threads.h: New file.
6683         * include/java-lang.h (Object): Added static member sync_mutex,
6684         member sync_info, method init_mutex.
6685         (struct JvSyncInfo): New struct.
6686         Include "java-threads.h".
6687         * prims.cc (soft_monitorenter): Wrote.
6688         (soft_monitorexit): Likewise.
6689         * java/lang/natObject.cc (init_mutex): New method.
6690         (notify): Wrote.
6691         (notifyAll): Wrote.
6692         (wait): Wrote.
6693         (sync_mutex): Define.
6694         Include "java-threads.h".
6696 Tue Jun  2 15:24:33 1998  Per Bothner  <bothner@cygnus.com>
6698         * include/java-lang.h (JvPrivInitGC):  Make extern "C".
6699         * include/jvm.h (JvConvertArgv, JvNewObjectArray):  Likewise.
6701 Mon Jun  1 11:21:34 1998  Per Bothner  <bothner@cygnus.com>
6703         * include/cni.h (jbyte etc):  Re-define using __java_byte etc.
6704         Added extern "Java" in places to tell G++ Object is a "Java" type.
6705         Other minor renaming and fixes.
6706         * include/java-io.h (FileDescriptor):  Add friend class declarations.
6707         G++ no longer allows non-Java types in method parameters and results
6708         of Java classes.  Converted most offending methods to friends.
6709         * java/lang/natDouble.cc (Double::toString):  Rename to doubleToString.
6710         * java/lang/natSystem.cc (setProperty):  Make friend.
6711         * java/lang/natString.cc, include/java-lang.h (String):  Rename
6712         methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6713         * include/java-lang.h (JArray):  Remove getData and eoprator[].
6714         Add elements friend function instead.
6715         * java/lang/natSystem.cc (arraycopy):  Use elements function.
6716         * java/io/natFileDescriptor.cc (read, write):  Likewise.
6717         * include/java-lang.h (Object):  Remove unused make method.
6718         (System::setProperty(char*,char*)): Turn into friend function.
6719         (Class):  Rename newObject by JvAllocObject.
6720         * prims.cc:  Update to use JvAllocObject, and elements.
6722         * java/lang/natDouble.cc:  Fix double -> jdouble.
6724 Wed May 20 16:50:06 1998  Per Bothner  <bothner@cygnus.com>
6726         * Makefile.am (INCLUDES):  Add -Iinclude (to get config.h).
6728 Mon May 18 13:46:02 1998  Tom Tromey  <tromey@cygnus.com>
6730         * java/lang/natRuntime.cc (finalize_on_exit): Define.
6731         * include/java-lang.h (Runtime): finalize_on_exit and
6732         runFinalizersOnExit now static.
6733         * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6734         match JDK 1.2b3.
6735         (finalize_on_exit): Now static.
6737         * boehm.cc (mark_obj): Get class using getClass() method on
6738         object.
6739         (_dispatchTable): Removed.
6741 Mon May 11 15:26:52 1998  Tom Tromey  <tromey@cygnus.com>
6743         * java/io/natFileDescriptor.cc (open_read): Only call open if
6744         HAVE_OPEN defined.
6745         (open_write): Likewise.
6747         * Makefile.in: Rebuilt.
6748         * Makefile.am ($(nat_files)): Depend on config.h.
6750 Thu May  7 16:22:00 1998  Tom Tromey  <tromey@cygnus.com>
6752         * prims.cc (ObjectClass): Now a macro; updated for new class name
6753         mangling scheme.
6754         (StringClass): Likewise.
6755         (ClassClass): Likewise.
6757 Wed May  6 00:26:44 1998  Tom Tromey  <tromey@cygnus.com>
6759         * java/io/natFileDescriptor.cc (available): Do nothing unless
6760         HAVE_SELECT defined.
6761         * java/util/natDate.cc (setTime): Conditional on
6762         HAVE_GETTIMEOFDAY.
6763         (toString): Conditional on HAVE_TIME.
6764         * aclocal.m4, configure: Rebuilt.
6765         * acinclude.m4: New file.
6766         * configure.in: Don't actually call AM_EXEEXT.  Call
6767         AC_CANONICAL_HOST.  Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX.  Added
6768         --with-target-subdir option.  Check for select and open
6769         functions.
6771 Tue May  5 00:10:45 1998  Tom Tromey  <tromey@cygnus.com>
6773         * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6774         (call_finalizer): Likewise.
6775         * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6776         * prims.cc (newObject): Pass actual method pointer to
6777         JvPrivRegisterFinalizer.
6778         * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6779         (JvPrivRegisterFinalizer): Changed interface.
6781         * Makefile.in: Rebuilt.
6782         * Makefile.am (MOSTLYCLEANFILES): New macro.
6783         (CLEANFILES): Removed javao_files.
6785 Fri May  1 22:52:24 1998  Tom Tromey  <tromey@cygnus.com>
6787         * nogc.cc: New file.
6788         * Makefile.in: Rebuilt.
6789         * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6790         (EXTRA_libjava_a_SOURCES): New macro.
6791         (libjava_a_SOURCES): Removed boehm.cc.
6792         (libjava_a_DEPENDENCIES): Added GCOBJS.
6793         (libjava_a_LIBADD): Likewise.
6794         * configure: Rebuilt.
6795         * configure.in: Added code for --enable-gc=TYPE.
6797 Thu Apr 30 14:54:00 1998  Tom Tromey  <tromey@cygnus.com>
6799         * boehm.cc (mark_array): Don't further dereference pointer from
6800         array.
6802         * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6803         * Makefile.in: Rebuilt.
6804         * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6805         one for boehm-gc build directory.
6807 Wed Apr 29 09:45:19 1998  Tom Tromey  <tromey@cygnus.com>
6809         * include/java-lang.h (finalize_on_exit): New instance variable in
6810         java::lang::Runtime.
6811         (runFinalizersOnExit): New method.
6812         * java/lang/Runtime.java (finalize_on_exit): New instance
6813         variable.
6814         (runAllFinalizers_): New private method.
6815         (runFinalizersOnExit): New method.
6816         * boehm.cc (JvPrivRunFinalizers): New function.
6817         (JvPrivRunAllFinalizers): Likewise.
6818         (JvPrivRunGC): Likewise.
6819         * java/lang/natRuntime.cc: Include "jvm.h".
6820         (gc): Call JvPrivRunGC.
6821         (runFinalization): Call JvPrivRunFinalizers.
6822         (runFinalizersOnExit): New method.
6823         (exit_): Call JvPrivRunAllFinalizers if required.
6824         * include/jvm.h: Declare JvPrivRunFinalizers,
6825         JvPrivRunAllFinalizers, JvPrivRunGC.
6827 Tue Apr 28 15:06:50 1998  Tom Tromey  <tromey@cygnus.com>
6829         * boehm.cc (JvPrivRegisterFinalizer): New function.
6830         (call_finalizer): Likewise.
6831         * include/jvm.h: Declare JvPrivRegisterFinalizer.
6832         * prims.cc (finalize_name): New global.
6833         (newObject): Just call other newObject.
6834         (newObject): Register finalizer if it exists.
6836 Mon Apr 27 12:47:03 1998  Tom Tromey  <tromey@cygnus.com>
6838         * prims.cc (gc_malloc): Removed.
6839         (makeUtf8Const): Use JvPrivAllocBytes.
6840         (lookupArray): Likewise.
6841         (newPrimArray): Likewise.
6842         (JvNewObjectArray): Use JvPrivAllocArray.
6843         (newObject): Use JvPrivAllocObj.
6844         (newObject): Likewise.
6845         Changed Method -> JvMethod everywhere.
6846         Changed Field -> JvField everywhere.
6847         * include/java-lang.h (Object): Changed type of `fields' to
6848         JvField*.
6849         (jmethodID, jfieldID): New typedefs.
6850         (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6851         friends.
6852         * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6853         from java-lang.h.
6854         (METHOD_NATIVECODE): Moved from java-lang.h.
6855         (class JvField): New class.
6856         (JvGetFirstInstanceField): New function.
6857         (JvFieldIsRef): Likewise.
6858         (JvGetObjectField): Likewise.
6859         (JvNumInstanceFields): Likewise.
6861 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
6863         * boehm.cc: New file.
6864         * Makefile.in: Rebuilt.
6865         * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6866         (INCLUDES): Added -I options to find boehm-gc files.
6868 Wed Apr 29 15:11:37 1998  Tom Tromey  <tromey@cygnus.com>
6870         * configure: Rebuilt.
6871         * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6873         * Makefile.in: Rebuilt.
6874         * Makefile.am (nat_files): New macro.
6875         (libjava_a_DEPENDENCIES): Use it.
6876         (libjava_a_LIBADD): Likewise.
6877         ($(nat_files)): New static pattern rule.
6878         (class_files): Run separate find to find .class files.
6879         (javao_files): Compute based on class_files.
6880         (BUILT_SOURCES): New macro.
6882 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
6884         * Makefile.am (java_files): New macro.
6885         (class_files): Likewise.
6886         (javao_files): Likewise.
6887         (libjava_a_DEPENDENCIES): Include $(javao_files).
6888         (libjava_a_LIBADD): Likewise.
6889         (classes.stamp): Depend on $(java_files); only recompile changed
6890         files.
6891         (here): New macro.
6892         (CLEANFILES): Don't run find; use macros.  Don't mention
6893         libjava.a.
6894         (.class.o): New target.
6895         (compiled.stamp): Removed.
6897 Thu Apr 23 14:17:43 1998  Per Bothner  <bothner@cygnus.com>
6899         * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6900         LineNumberReader}>java:  Newly-implemented standard classes.
6902 Thu Apr 23 14:02:04 1998  Tom Tromey  <tromey@cygnus.com>
6904         * Makefile.in: Rebuilt.
6905         * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6907         * Makefile.in: Rebuilt.
6908         * Makefile.am (hack): New macro.
6909         (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6911 Wed Apr 22 16:49:57 1998  Tom Tromey  <tromey@cygnus.com>
6913         * include/config.h.in: New file.
6914         * include/config.h: Removed.
6915         * acconfig.h: New file.
6916         * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6917         (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6918         libjava_a_LIBADD): New macros.
6919         (INCLUDES): New macro.
6920         (prims.o): Removed.
6921         (.cc.o): Removed.
6922         (SUFFIXES): Removed.
6923         (all): Removed.
6924         (libjava.a): Removed.
6926         * configure: Rebuilt.
6927         * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6928         Look for headers and functions we require.  Create
6929         include/config.h.
6931 Mon Apr 20 22:25:00 1998  Per Bothner  <bothner@cygnus.com>
6933         * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6934         soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6935         soft_lookupinterfacemethod):  New functions.
6936         (PrimClass):  Actually initialize the primitive classes.
6937         (Utf8Const2JavaString):  Moved to java/lang/natString.cc.
6939         * include/java-util.h:  Removed java::util definition.
6940         * include/cni.h:  Moved java::util here and added Properties.
6941         Added more function prototypes.
6942         * include/java-lang.h:  Added mroe methods and friend declarations.
6943         * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME):  Added.
6944         * include/jvm.h (strLengthUtf8):  Add declaration.
6945         
6946         * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6947         New static field.
6948         * java/lang/{Byte,Short,Void}.java:  New classes.
6949         * java/lang/Character.java (isJavaIdentifierStart,
6950         JavaIdentifierPart):  New static methods.
6951         * java/lang/Number.java (byteValue, shortValue):  New methods.
6953         * java/lang/String.java (intern, hashCode):  Make native.
6954         * java/lang/natString.cc:  New file.  Handle the string pool.
6955         * Makefile.am:  Build natString.o.  Use CXXFLAGS.
6957         * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6958         isInstance, isAssignableFrom), java/lang/natClass.cc:  New methods.
6959         * java/lang/Throwable.java (<init>):  Don't fillInStackTrace yet.
6960         * java/lang/System.java (setProperty):  New private method.
6961         (initProperties):  Take argument, and make native.
6962         * java/lang/natSystem.cc:  Implement (preliminary) initProperties.
6963         (currentTimeMillis):  Make more robust.
6965         * java/io/{Writer,PrintWriter,OutputStreamWriter}.java:  New classes.
6966         * java/io/UnsupportedEncodingException.java:  New exception class.
6968         * java/io/DataInputStream.java:  Don't use a PushbackInputStream.
6969         * java/io/FilterOutputStream.java:  Add missing 'extends OutputStream'.
6970         
6971 Fri Apr 10 11:52:10 1998  Per Bothner  <bothner@cygnus.com>
6973         * Makefile.am (CXXFLAGS, JC1FLAGS):  New macro.
6974         * prims.cc:  Added bunch of stuff.
6975         * include/cni.h:  Added various definitions.
6976         * include/java-lang.h:  Added Method, various friends, some macros.
6978         * include/config.h:  Added HAVA_MEMMOVE and HAVE_MEMCPY.
6979         * java/lang/System.java (arraycopy):  Make native.
6981 Sun Apr  5 23:58:51 1998  Per Bothner  <bothner@cygnus.com>
6983         * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
6984         natSystem.cc,natThread.cc}:  Native (C++) methods for various classes.
6985         * java/lang/ClassLoader.java (defineClass):  Now takes extra argument.
6986         * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
6987         Make native.
6988         * java/lang/Runtime.java:  Declare methods as native instead of
6989         using NativeLang.
6990         * java/lang/SecurityManager.java (getClassContext):  Just throw Error.
6991         * java/lang/System.java:  Comment out some stuff, for now.
6992         * java/lang/Thread.java:  Re-write.  Use native methods.
6993         * java/lang/NativeLang.java:  Remove most of it.
6994         
6995         * java/util/natDate.cc:  Native (C++) methods for Date.
6996         * java/util/{Calendar.java,GregorianCalendar.java}:  New classes.
6997         * java/util/Date.java:  Complete re-write.
6999         * java/io/io-defs.h:  New header file.
7000         * java/io/FileDescriptor.java:  Add a bunch of private methods,
7001         mostly moved from NativeIO.java and natNativeIO.cc.
7002         * java/io/{natFile.cc,java/io/natFileDescriptor.cc}:  New native code.
7003         * java/io/File.java:  Use new code.
7004         * java/io/{FileInputStream.java.FileOutputStream.java,
7005         RandomAccessFile.java}:  Use new private FileDescriptor methods.
7006         * java/io/NativeIO.java:  Removed, no longer used.
7008         * java/io/StreamTokenizer.java (numericChars):  Make char array.
7010         * include/*.h:  Various header files used by the C++ native code.
7012         * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
7013         New autoconf+automake-based setup.
7014         * prims.cc:  New file for Java "primitives".