* java/lang/StringBuffer.java (ensureCapacity): Don't resize
[official-gcc.git] / libjava / ChangeLog
blob1a0e8a5f6f6e13868df49e52546bc2b0b46833ef
1 1999-04-29  Tom Tromey  <tromey@cygnus.com>
3         * java/lang/StringBuffer.java (ensureCapacity): Don't resize
4         vector when shared.
6         * java/util/Locale.java (Locale(String,String)): Implement in
7         terms of 3-argument version; variant now defaults to empty
8         string.
9         (toString): Assume variant is not null.
10         (equals): Assume all strings are not null.
11         (Locale): Throw NullPointerException if any argument is null.
13         * java/util/ResourceBundle.java (getBundle): Don't try the base
14         name; now implicit in partialGetBundle call.
15         (trySomeGetBundle): Search for parent bundles and call setParent
16         as required.
17         (partialGetBundle): Added `langStop' argument.  Use
18         `Locale.toString' to compute bundleName.
19         (resource_cache): New static field.
20         (partialGetBundle): Cache the returned resource bundle.  Now
21         synchronized.
23         * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
24         missing `<'.
26         * mauve-libgcj: Enable Collator and RuleBasedCollator.
27         * java/text/natCollator.cc (decomposeCharacter): `base' now
28         `const'.
29         * Makefile.in: Rebuilt.
30         * Makefile.am (ordinary_java_source_files): Added
31         CollationElementIterator, CollationKey, Collator,
32         RuleBasedCollator.
33         (nat_source_files): Added natCollator.cc.
34         * java/text/RuleBasedCollator.java (ceiNext): No longer static.
35         (compare): Pass `this' to CollationElementIterator constructor.
36         (getCollationElementIterator): Likewise.
37         (ceiNext): Fix off-by-one error when finding initial substring.
38         (next): Correctly mask off bits when computing return value.
39         Fixed return values when one string is shorter than the other.
40         * java/text/CollationElementIterator.java (collator): New field.
41         (CollationElementIterator): Added collator argument.
42         (next): Call ceiNext on collator object.
44 1999-04-26  Tom Tromey  <tromey@cygnus.com>
46         * natCollator.cc: New file.
48         * java/util/GregorianCalendar.java (setDefaultTime): New method.
49         (GregorianCalendar): Use it in all constructors.
50         * java/util/Calendar.java (Calendar): Changed argument name to
51         `zone' to match code.
53         * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
54         * java/text/CollationKey.java: New file.
55         * java/text/CollationElementIterator.java: New file.
56         * java/text/Collator.java: New file.
57         * java/text/RuleBasedCollator.java: New file.
59         * Makefile.in: Rebuilt.
60         * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
61         (jv_convert_LDADD): Explicltly add -lm -lc.
63 1999-04-26  Tom Tromey  <tromey@cygnus.com>
65         * configure, Makefile.in: Rebuilt.
66         * configure.in: Added AM_PROG_LIBTOOL.
67         (GCOBJS): Use `.lo' form of files.
68         (THREADOBJS): Likewise.
69         (GCDEPS): Use `.la' form of library.
70         (GCLIBS): Set to be the same as GCDEPS.
71         (THREADDEPS): Use `.la' form of library.
72         (THREADLIBS): Set to be the same as THREADDEPS.
73         * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
74         toolexeclib_LIBRARIES.
75         (libgcj_la_SOURCES): Renamed for libtoolization.
76         (EXTRA_libgcj_la_SOURCES): Likewise.
77         (libgcj_la_DEPENDENCIES): Likewise.
78         (libgcj_la_LIBADD): Likewise.
79         ($(nat_files)): Use LTCXXCOMPILE.
80         ($(c_files)): Use LTCOMPILE.
81         (GCJCOMPILE): New macro.
82         (.class.o): Use it.
83         (.java.o): Likewise.
84         ($(javao_files)): Likewise.
85         (jv_convert_LINK): Use LIBTOOL.
86         (nat_files): Use `.lo' files.
87         (c_files): Likewise.
88         (javao_files): Likewise.
89         (.class.lo): Renamed.
90         (.java.lo): Likewise.
91         ($(nat_files)): Depend on %.lo.
92         ($(c_files)): Likewise.
93         ($(javao_files)): Likewise.
94         (jv_convert_LDADD): Link against .lo files.
95         (jv_convert_DEPENDENCIES): Depend on .lo files.
96         (maintainer-check): Depend on libgcj.la, but examine .a file.
97         (jv_convert_DEPENDENCIES): Depend on libgcj.la.
98         (libgcj_la_LDFLAGS): New macro.
100 1999-04-23  Warren Levy  <warrenl@cygnus.com>
102         * Makefile.am: Added URLDecoder and URLEncoder.
103         * Makefile.in: Rebuilt.
105         * java/net/ServerSocket.java (setSocketFactory): Renamed from
106         setSocketImplFactory to match spec.
107         * java/net/Socket.java (getSoLinger): Changed return type to
108         match spec.
110         * java/net/URLDecoder.java: New file.
111         * java/net/URLEncoder.java: New file.
113 1999-04-21  Tom Tromey  <tromey@cygnus.com>
115         * java/lang/natString.cc (getBytes): Reverted earlier change and
116         applied correct fix from Per Bothner.
118         * java/lang/String.java: Don't throw
119         UnsupportedEncodingException.
121         * java/lang/natString.cc (getBytes): Correctly size result
122         buffer.  From Bryce McKinlay <bryce@albatross.co.nz>.
124 1999-04-20  Andrew Haley  <aph@cygnus.com>
126         * include/sparc-signal.h: new file.
127         * configure.in: include/sparc-signal.h added.
128         * configure: regenerated.
129         * prims.cc (JvRunMain): signal handling code rewritten to be more
130         portable.
131         (catch_segv): ditto.
132         (catch_fpe): ditto.
133         * include/i386-signal.h: reorganized.
134         * include/default-signal.h: reorganized.
136 1999-04-19  Tom Tromey  <tromey@cygnus.com>
138         * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
139         once.  From Anthony Green.
141 1999-04-19  Andrew Haley  <aph@cygnus.com>
143         * Makefile.in: Processed with new automake.
145 1999-04-19  Tom Tromey  <tromey@cygnus.com>
147         * include/javaprims.h: Removed security namespace.
149 1999-04-20  Anthony Green  <green@cygnus.com>
151         * java/io/PrintStream.java (println): Remove extra println.
153 1999-04-19  Anthony Green  <green@cygnus.com>
155         * Makefile.in: Rebuilt.
156         * Makefile.am (ordinary_java_source_files): Add new security files.
158         * java/security/NoSuchAlgorithmException.java,
159         java/security/MessageDigest.java: New files.
161         * include/javaprims.h: Add security namespace.
163 1999-04-16  Per Bothner  <bothner@cygnus.com>
165         * gnu/gcj/convert/JIS0201.h:  New file, generated from Unicode table.
166         * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
167         * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
168         * gnu/gcj/convert/Output_EUCJIS.java:  New UnicodeToBytes class.
169         * gnu/gcj/convert/Output_SJIS.java:  New UnicodeToBytes class.
170         * gnu/gcj/convert/natInput_EUCJIS.cc:  New file.
171         * gnu/gcj/convert/natInput_SJIS.cc:  New file.
172         * gnu/gcj/convert/natOutput_EUCJIS.cc:  New file.
173         * gnu/gcj/convert/natOutput_SJIS.cc:  New file.
174         * gnu/gcj/convert/make-trie.c:  New file: functions to make a trie.
175         * gnu/gcj/convert/gen-from-JIS.c:  Invoke make-trie for output.
176         * gnu/gcj/convert/Unicode_to_JIS.cc:  New generated trie table.
177         * Makefile.am:  Various changes for new files and conversions.
179         * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
180         New overloading, allows greater efficiency.
181         * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
182         New overloading (for efficiency - avoids copying).
184         * gnu/gcj/convert/Output_UTF8.java:  Fix typo: 0xC0 -> 0c3F.
185         * gnu/gcj/convert/Input_UTF8.java:  Fix typos in bit masks.
187         * java/io/InputStreamReader.java (<init>):  Set super.in correctly.
188         * java/io/OutputStreamWriter.java (<init>):  Set super.in correctly.
189         (writeChars):  Don't be quite so eager to flush.
190         * java/io/PrintStream.java:  Rewrite.  Now more similar to
191         OutputStreamWriter, using explicit UnicodeToBytes converter.
192         Also, autoflush does not need to flush so often.
193         * java/lang/natString.cc (getBytes):  More efficient algorithm.
194         (init(jbyteArray,jint,jint,jstring)):  More efficient.
195         
196 1999-04-15  Warren Levy  <warrenl@cygnus.com>
198         * Makefile.am (ordinary_java_source_files): Added new Connection 
199         and Handler classes in gnu.gcj.protocol.file package.
200         * Makefile.in: Rebuilt.
202         * gnu/gcj/protocol/file/Connection.java: New file.
203         * gnu/gcj/protocol/file/Handler.java: New file.
204         * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
205         if doInput allows input.
206         (getOutputStream): Check if doOutput allows output.
207         * java/net/URLStreamHandler.java (parseURL): Fix indentation.
209 1999-04-14  Tom Tromey  <tromey@cygnus.com>
211         * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
212         buffer larger to work around bug.
213         From Bryce McKinlay <bryce@albatross.co.nz>.
215 1999-04-14  Andrew Haley  <aph@cygnus.com>
217         * java/lang/natDouble.java (doubleToLongBits): ensure that all
218         NaNs are always converted to the same long value.  
219         * java/lang/natFloat.java (floatToIntBits): ditto, but for float
220         converted to int.
222 1999-04-13  Tom Tromey  <tromey@cygnus.com>
224         * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
225         instead switch on actual element type.
227         * Makefile.in: Rebuilt.
228         * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
230 1999-04-13  Andrew Haley  <aph@cygnus.com>
232         * include/i386-signal.h, include/default-signal.h: New files.   
233         * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
234         handler.
235         (catch_fpe): New function.      
236         * configure.in: Make link to appropriate include/java-signal.h.
237         * configure: Rebuilt.
238         * Makefile.am: include/java-signal.h added to dependency list.
239         * Makefile.in: Rebuilt.
241 1999-04-12  Urban Widmark <urban@svenskatest.se>
243         * java/io/DataInputStream.java (readLine): Corrected handling of
244         empty lines, from null to "".
246 1999-04-12  Tom Tromey  <tromey@cygnus.com>
248         * Makefile.in: Rebuilt.
249         * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
251         * java/lang/natSystem.cc (SystemClass): New define.
252         (init_properties): Synchronize.
254 1999-04-08  Geoff Berry  <gcb@gnu.org>
256         * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
257         * natPlainSocketImpl.cc (accept): Add missing else if check
258         for AF_INET6.
260 1999-04-08  Tom Tromey  <tromey@cygnus.com>
262         * java/lang/Long.java (parseLong): Corrected overflow detection
263         code.
264         * java/lang/Integer.java (parseInt): Corrected overflow detection
265         code.
267         * java/io/PrintStream.java (print): Handle null string argument.
268         (println): Likewise.
270 1999-04-07  Warren Levy  <warrenl@cygnus.com>
272         * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
273         Set count to 0 when InputStreamReader returns -1 for EOF.
275 1999-04-07  Tom Tromey  <tromey@cygnus.com>
277         * mauve-libgcj: Omit java.text.Collator,
278         java.text.RuleBasedCollator.
280 1999-04-06  Tom Tromey  <tromey@cygnus.com>
282         * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
283         IOException from getHttpHeaders().
284         (getHeaderFieldKey): Likewise.
286         * include/javaprims.h: Regenerated declarations.
288         * Makefile.in: Rebuilt.
289         * Makefile.am (ordinary_java_source_files): Updated for removed
290         files.
292 1999-04-06  Per Bothner  <bothner@cygnus.com>
294         * java/util/zip/Adler32.java:  New class.
295         * java/util/zip/CRC32.java:  Add working method bodies.
296         * Makefile.am (ordinary_java_source_files):  Add new Adler32 class.
297         * Makefile.in:  Re-generate.
299 Tue Apr  6 18:28:42 1999  Warren Levy  <warrenl@cygnus.com>
301         * gnu/gcj/protocol/http/Connection.java: New file.  Rewritten
302         from version in removed www hierarchy.
303         * gnu/gcj/protocol/http/Handler.java: New file.  Copied from
304         version in removed www hierarchy.
306         * gnu/gcj/www/protocol/http/Connection.java: Removed.
307         * gnu/gcj/www/protocol/http/Handler.java: Removed.
308         * gnu/gcj/www/protocol/http: Removed dir.
309         * gnu/gcj/www/protocol: Removed dir.
310         * gnu/gcj/www: Removed dir.
312         * java/net/HttpURLConnection.java: Revised comments to indicate
313         missing JDK 1.2 methods.
315         * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
316         hierarchy rather than the gnu/gcj/www/protocol one.
317         * java/net/URLConnection.java: Updated status comments.
318         (setContentHandler): Look in gnu/gcj/content hierarchy rather than
319         the gnu/gcj/www/content one.
321 1999-04-06  Per Bothner  <bothner@cygnus.com>
323         * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
324         The gen-from-JIS program is in $(CONVERT_DIR).
326 1999-04-06  Tom Tromey  <tromey@cygnus.com>
328         * mauve-libgcj: Renamed from mauve-libjava.
330 Tue Apr  6 03:18:38 1999  Warren Levy  <warrenl@cygnus.com>
332         * java/net/HttpURLConnection.java (getResponseCode): Implemented.
333         (getResponseMessage): Implemented.
334         (getResponseVals): New private method.
336         * java/net/URLConnection.java (getContent): Implemented.
337         (setContentHandler): Convert non-alphabetic/numeric chars per spec.
339 1999-04-05  Tom Tromey  <tromey@cygnus.com>
341         * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
342         (jv_convert_SOURCES): Renamed.
343         (EXTRA_jv_convert_SOURCES): Likewise.
344         (jv_convert_LDFLAGS): Likewise.
345         (jv_convert_LINK): Likewise.
346         (jv_convert_LDADD): Likewise.
347         (jv_convert_DEPENDENCIES): Likewise.
349         * Makefile.in: Rebuilt.
350         * Makefile.am (toolexeclibdir): Reference toolexecdir, not
351         tooldir.
353 Mon Apr  5 02:14:35 1999  Warren Levy  <warrenl@cygnus.com>
355         * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
356         method for comparison.
358         * java/net/URLConnection.java (getContentLength): Implemented.
359         (getContentType): Implemented.
360         (getContentEncoding): Implemented.
361         (getExpiration): Implemented.
362         (getDate): Implemented.
363         (getLastModified): Implemented.
364         (getHeaderFieldInt): Implemented.
365         (getHeaderFieldDate): Implemented.
367 Fri Apr  2 18:04:52 1999  Warren Levy  <warrenl@cygnus.com>
369         * java/net/URLConnection.java (toString): Implemented.
370         (setContentHandlerFactory): Implemented.
371         (setContentHandler): Wrote new private helper method.
373 1999-04-01  Tom Tromey  <tromey@cygnus.com>
375         * Makefile.in: Rebuilt.
376         * Makefile.am ($(java_source_files:.java=.class): Reverted change
377         of 1999-03-31; we always want to build all the .class files.
378         Depend on java_source_files, not libgcj.zip.
379         (nat_headers): Define in terms of ordinary_java_source_files.
381 1999-03-31  Tom Tromey  <tromey@cygnus.com>
383         * Makefile.in: Rebuilt.
384         * Makefile.am (special_java_source_files): New macro.
385         (java_source_files): Use it.
386         (ordinary_java_source_files): New macro.
387         (java_source_files): Use it.
388         ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
389         creating headers for those files with hand-maintained headers.
391         * include/javaprims.h: Regenerated namespace declarations.
392         * classes.pl (scan): Include [0-9] in regexp for matching class
393         names; for java.util.zip.CRC32.
395         * Makefile.in: Rebuilt.
396         * Makefile.am (nat_headers): Redefined to generate all possible
397         header files.
399         * java/util/zip/ZipException.java: In package java.util.zip, not
400         java.net.
402 1999-03-30  Tom Tromey  <tromey@cygnus.com>
404         * configure: Rebuilt.
405         * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
406         eh-common.h when not building in tree with gcc.
408         * Makefile.in: Rebuilt.
409         * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
410         $(libgcj_a_OBJECTS)): Changed how we list files that depend on
411         nat_headers.
412         ($(java_source_files:.java=.class)): New target.
414         * Makefile.in: Rebuilt.
415         * Makefile.am (java_source_files): Added
416         java/net/HttpURLConnection.java and
417         gnu/gcj/www/protocol/http/Connection.java.
419 Tue Mar 30 15:20:45 1999  Warren Levy  <warrenl@cygnus.com>
421         * gnu/gcj/www/protocol/http/Connection.java: New file.
422         * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
423         * java/net/HttpURLConnection.java: New file.
424         * java/net/URLConnection.java (getHeaderField): Implemented default.
425         (getHeaderFieldKey): Implemented default method.
427 1999-03-30  Tom Tromey  <tromey@cygnus.com>
429         * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
431         * java/util/zip/Deflater.java: Added copyright header.
432         * java/util/zip/CRC32.java: Added copyright header.
434         * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
435         that it is automatically generated.
436         ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
438         * gnu/gcj/convert/BytesToUnicode.java,
439         gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
440         gnu/gcj/convert/Input_EUCJIS.java,
441         gnu/gcj/convert/Input_UTF8.java,
442         gnu/gcj/convert/JIS0208_to_Unicode.cc,
443         gnu/gcj/convert/JIS0212_to_Unicode.cc,
444         gnu/gcj/convert/Output_8859_1.java,
445         gnu/gcj/convert/Output_JavaSrc.java,
446         gnu/gcj/convert/Output_UTF8.java,
447         gnu/gcj/convert/UnicodeToBytes.java,
448         gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
450         * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
452         * Makefile.in, configure: Rebuilt.
453         * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
454         not if test subdir exists.
455         (--enable-gcj-classes): Removed; gcj always used to generate
456         .class files.
457         (JAVA, JAVAC): Removed.
458         (--enable-single-compilation, --enable-source-compilation):
459         Removed.
460         (here): New subst.
461         (NATIVE): New conditional.
462         * Makefile.am (toolexecdir): Renamed from tooldir to allow
463         `install-exec' to work.
464         (toolexeclibdir): Likewise.
465         (toollib_LIBRARIES): Likewise.
466         (AM_MAKEFLAGS): Don't pass tooldir.
467         (JAVAC): New macro.
468         (javao_files): Redefined.
469         (java_source_files): New macro.
470         (c_source_files): New macro.
471         (c_files): Redefined in terms of c_source_files.
472         (java_io_files, java_lang_files, java_net_files, java_text_files,
473         java_util_files, gnu_files, java_files): Removed.
474         (class_io_files, class_lang_files, class_net_files,
475         class_text_files, class_util_files, class_gnu_files, class_files):
476         Removed.
477         (nat_source_files): New macro.
478         (nat_files): Redefined in terms of nat_source_files.
479         (EXTRA_libgcj_a_SOURCES): Added c_source_files,
480         java_source_files.  Removed no-such-file.c.
481         (here): Removed.
482         (ETAGS_ARGS): Removed.
483         (TAGS_DEPENDENCIES): Likewise.
484         (libgcj.zip): Depend on java_source_files.  Use $(here) and not
485         pwd in rule.
486         (src_io_files, src_lang_files, src_text_files, src_util_files,
487         src_gnu_files): Removed.
488         Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
489         (BUILT_SOURCES): Removed.
490         (header-check): New target.
491         (javadir): Removed.
492         (noinst_PROGRAMS): New macro.
493         ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
494         on MAINTAINER_MODE.
495         ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
496         (gen-from-JIS): Build in top directory.
497         (convert_source_files): New macro.
498         (convert_SOURCES): New macro.
499         (convert_LDFLAGS): Likewise.
500         (convert_LINK): Likewise.
501         (convert_LDADD): Likewise.
502         (convert_DEPENDENCIES): Likewise.
503         (convert): Removed.
504         (gen-from-JIS): Removed.
505         (gen_from_JIS_SOURCES): New macro.
506         (gen_from_JIS_LDADD): Likewise.
507         (gen_from_JIS_DEPENDENCIES): Likewise.
509         * configure: Rebuilt.
510         * configure.in (CANADIAN): Set to `yes', not `canadian'.
511         (NULL_TARGET): Initialize to `no'.  Correctly examine $NULL_TARGET
512         when defining conditional.
514 Tue Mar 30 10:36:27 1999  Per Bothner  <bothner@cygnus.com>
516         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  Remove these files.
517         The Unicode Consortium does not permit their re-distribution.
518         * Makefile.am, Makefile.in:  Add comments with URLs for removed files.
519         (JIS0208.h, JIS0212.h):  Do not depend on removed files.
521 Mon Mar 29 18:58:13 1999  Per Bothner  <bothner@cygnus.com>
523         * natSystem.c (init_properties):  Use malloc, realloc, free after all.
525 Mon Mar 29 13:41:02 1999  Per Bothner  <bothner@cygnus.com>
527         * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}:  New mapping tables
528         from Unicode Consortium.
529         * gnu/gcj/convert/{JIS0208.h,JIS0212.h}:  New generated headers.
530         * gnu/gcj/convert/gen-from-JIS.c:  New utility for maintainers only.
531         * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
532         New tables, generated using gen-from-JIS.
533         * gnu/gcj/convert/Output_JavaSrc.java:  New UnicodeToBytes class.
534         * gnu/gcj/convert/Output_UTF8.java:  Fix bug.
535         * gnu/gcj/convert/Input_EUCJIS.java:  New BytesToUnicode class.
536         * gnu/gcj/convert/natInput_EUCJIS.cc:  Native methods for new class.
538         * gnu/gcj/convert/Convert.java:  New application.
539         * Makefile.am, Makefile.in (convert):  New program, using Convert.
540         Build the various JIS conversion tables (in maintainer mode).
542 Fri Mar 26 16:51:30 1999  Warren Levy  <warrenl@cygnus.com>
544         * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
546         * java/net/URL.java (URL): Deal with null property value.  Use "."
547         as separator in building class name.
548         * java/net/URLConnection.java: Implemented majority of stubbed methods.
549         * java/net/URLStreamHandler.java (parseURL): Use "" in string
550         manipulations instead of 'null'.  Comment cleanup.  Use 0 for the
551         beginning of the substring rather than 'start'.
553 1999-03-26  Tom Tromey  <tromey@cygnus.com>
555         * include/java-chartables.h: Rebuilt.
556         * include/java-chardecomp.h: New file.
557         * chartables.pl: Generate output files directly.  Added support
558         for generating decomposition header.
559         (canonical_decomposition, full_decomposition): New globals.
560         (DECOMPOSITION): New constant.
561         (process_char): Call add_decomposition.
562         (add_decomposition): New sub.
563         (write_decompositions): New sub.
565 1999-03-25  Tom Tromey  <tromey@cygnus.com>
567         * java/text/CollationElementIterator.java: New file.
569         * mauve-libjava: Omit StringTest.
571 Wed Mar 24 15:17:49 1999  Warren Levy  <warrenl@cygnus.com>
573         * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
574         without a '/' when parsing protocol.  Handle ref outside of parseURL.
575         (hashCode): Implemented.
576         (set): Don't expand -1 to default port.
577         (getDefaultPort): Removed.
579         * java/net/URLStreamHandler.java (parseURL): Implemented.
580         (toExternalForm): Implemented.
582 1999-03-23  Tom Tromey  <tromey@cygnus.com>
584         * java/text/BreakIterator.java (getSentenceInstance):
585         Implemented.
586         * gnu/gcj/text/SentenceBreakIterator.java: New file.
588         * Makefile.in: Rebuilt.
589         * Makefile.am (nat_headers): Added IllegalAccessException.
590         * java/lang/natClass.cc (newInstance): Throw
591         IllegalAccessException, not IllegalAccessError.
592         Include IllegalAccessException.h.
594 1999-03-22  Tom Tromey  <tromey@cygnus.com>
596         * gnu/gcj/text/LineBreakIterator.java: New file.
597         * java/text/BreakIterator.java (getLineInstance): Implemented.
599         * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
600         copy constructor private.
601         (previous, next): Removed erroneous comment about line
602         separators.
603         (previous): Correctly recognize break between non-letter on the
604         left and letter on the right.  Handle apostrophes correctly.
606         * java/text/BreakIterator.java (getWordInstance): Implemented.
607         * gnu/gcj/text/WordBreakIterator.java: New file.
608         * gnu/gcj/text/CharacterBreakIterator.java: Extend
609         BaseBreakIterator.
610         * gnu/gcj/text/BaseBreakIterator.java: New file.
612 1999-03-19  Tom Tromey  <tromey@cygnus.com>
614         * java/text/BreakIterator.java: New file (partially stubbed out).
615         * gnu/gcj/text/CharacterBreakIterator.java: New file.
617         * include/config.h.in: Rebuilt.
618         * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
619         (HAVE_TIMEZONE): Likewise.
620         * configure: Rebuilt.
621         * configure.in: Added timezone checks.
622         * java/util/natGregorianCalendar.cc (computeTime): Adjust for
623         timezone.
625 Fri Mar 19 15:26:35 1999  Per Bothner  <bothner@cygnus.com>
627         * gnu/gcj/convert/BytesToUnicode.java:  New abstract class.
628         * gnu/gcj/convert/UnicodeToBytes.java:  New abstract class.
629         * gnu/gcj/convert/Input_8859_1.java:  New BytesToUnicode sub-class.
630         * gnu/gcj/convert/Input_UTF8.java:  New BytesToUnicode sub-class.
631         * gnu/gcj/convert/Output_8859_1.java:  New UnicodeToBytes sub-class.
632         * gnu/gcj/convert/Output_UTF8.java:  New UnicodeToBytes sub-class.
633         * java/io/InputStreamReader.java:  Rewrite to use BytesToUnicode.
634         * java/io/OutputStreamWriter.java:  Rewrite to use UnicodeToBytes.
636         * java/io/natFileDescriptorPosix.cc (open):  Use O_BINARY flag.
637         (BSD_COMP):  Kludge needed for Solaris2.
639 Fri Mar 19 01:49:46 1999  Warren Levy  <warrenl@cygnus.com>
641         * java/net/URL.java (URL(java.net.URL, string): Moved code to
642         URL(java.net.URL, string, URLStreamHandler) and call it with a
643         null handler.  In latter constructor, added SecurityManager check.
644         (set): Expect null handler on bad protocol rather than an exception.
645         (setURLStreamHandler): Simplified exception handling; return null
646         on invalid protocol.
648 1999-03-18  Tom Tromey  <tromey@cygnus.com>
650         * java/text/DecimalFormat.java (format(long,...)): Rewrote.
652         * java/lang/natSystem.cc (setOut, setIn, setErr): New native
653         methods.
654         Include PrintStream.h, InputStream.h.
655         * java/lang/System.java (ForwardingInputStream,
656         ForwardingOutputStream): Removed.
657         (setErr, setIn, setOut): Now native.
659         Reverted patch from 1999-02-12 to work around problem in
660         libgcc2.c.
661         * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
662         (_Jv_eh_free): Use free.
664         * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
665         for path name.  Minor formatting fixes.
667         * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
669         * prims.cc (fail_on_finalization): New function.
670         (_Jv_GCWatch): Likewise.
672         * prims.cc (JvRunMain): Initialize `nullp'.
673         (nullp): New global.
674         (catch_segv): Throw nullp.
676         * Makefile.in: Rebuilt.
677         * Makefile.am (ZIP): In "null target" case, zip is found in the
678         build tree.
680         * prims.cc (_Jv_PrimClass): Initialize all elements of class
681         object.
682         Include Modifier.h.
684         * java/lang/StringBuffer.java (StringBuffer): Don't use
685         ensureCapacity to set initial capacity.
686         (capacity): Subtract `length' from return result.
688 Thu Mar 18 01:53:35 1999  Warren Levy  <warrenl@cygnus.com>
690         * java/io/natFileDescriptorPosix.cc (open): Throw
691         FileNotFoundException, but with filename and errno in msg.
693 Wed Mar 17 11:09:30 1999  Warren Levy  <warrenl@cygnus.com>
695         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
696         functionality folded into java/net/URL.java per spec.
697         
698         * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
699         than EEXIST for throwing FileNotFoundException.
700         
701         * java/net/URL.java: Folded in default URLStreamHandlerFactory 
702         algorithm per JDK 1.2 doc.  Added SecurityManager checks.
703         
704         * java/net/URLStreamHandler.java (parseURL): Added stub.
706 1999-03-15  Andrew Haley  <aph@cygnus.com>
708         * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
709         by one errors.
711 1999-03-15  Andrew Haley  <aph@cygnus.com>
713         * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
714         support.
716 1999-03-12  Tom Tromey  <tromey@cygnus.com>
718         * prims.cc (catch_segv): New function.
719         Include <signal.h> if HANDLE_SEGV defined.  Include
720         NullPointerException.h.
721         (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
722         handler.
724         * java/text/SimpleDateFormat.java (equals): Ensure that object is
725         a SimpleDateFormat, not just a DateFormat.
726         (defaultCenturyStart, formatData, pattern): Now private.
727         (append): Now `final'.  Use `NumberFormat.format'.
728         (parse): Wrote.
729         (SimpleDateFormat): Turn off groupin in NumberFormat object.
731         * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
732         result.
734         * java/text/MessageFormat.java (format): Use default MessageFormat
735         constructor.
736         (parse, parseObject): Wrote.
738         * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
739         constructor.
741 1999-03-12  Andrew Haley  <aph@cygnus.com>
743         * java/lang/String.java (indexOf): Replace with native method for
744         better performance.
745         * java/lang/natString.cc (IndexOf): As above.
747         * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
748         Argument check corrected.
749         (init(jbyteArray,jint,jint,jstring)): Likewise.
750         
751         * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
752         1.2 compliant method.
754         * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
755         added.
756         * java/lang/Float.java (byteValue, shortValue): Likewise.
758 1999-03-11  Tom Tromey  <tromey@cygnus.com>
760         * java/text/DecimalFormat.java (parse): Wrote.
762         * java/text/ChoiceFormat.java (parse): Set error index on
763         ParsePosition object.
765         * java/lang/Integer.java (parseInt): Throw exception on overflow
766         when intermediate result is most negative number.  Changed
767         overflow detection as well.
768         * java/lang/Long.java (parseLong): Likewise.
770         * configure, Makefile.in: Rebuilt.
771         * configure.in (NULL_TARGET, CANADIAN): New conditionals.  Set
772         CANADIAN when building in source tree that doesn't include gcc.
773         * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
774         define.
776         * java/text/ChoiceFormat.java (nextDouble): Correct some
777         off-by-one errors when masking or adding.
779         * java/text/DecimalFormat.java (format): Fill in FieldPosition
780         parameter, if given.  Use `%', not IEEEremainder.
781         (scanFix): Throw error if multiplier already set.
782         (computePattern): Wrote.
784 1999-03-11  Andrew Haley  <aph@cygnus.com>
786         * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
787         52.
788         (nextDouble): Corrected masking logic.  Handle interaction between
789         `next' and negative numbers.
791 Wed Mar 10 18:58:37 1999  Warren Levy  <warrenl@cygnus.com>
793         * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
794         * java/net/URL.java: Added general comments.
796 1999-03-10  Tom Tromey  <tromey@cygnus.com>
798         * java/text/ChoiceFormat.java (parse): Wrote.
800         * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
802         * java/text/MessageFormat.java (MessageFormatElement.setLocale):
803         Create ChoiceFormat objects.
804         (format): Special-case ChoiceFormat.
805         (scanFormatElement): Include { and } in generated style string.
807 1999-03-09  Tom Tromey  <tromey@cygnus.com>
809         * java/text/ChoiceFormat.java: New file.
811 Tue Mar  9 17:09:18 1999  Warren Levy  <warrenl@cygnus.com>
813         * java/net/BindException.java: Created.
814         * java/net/ConnectException.java: Created.
815         * java/net/ContentHandler.java: Created.
816         * java/net/ContentHandlerFactory.java: Created.
817         * java/net/FileNameMap.java: Created.
818         * java/net/MalformedURLException.java: Created.
819         * java/net/NoRouteToHostException.java: Created.
820         * java/net/ProtocolException.java: Created.
821         * java/net/ServerSocket.java (@author): Fixed typo.
822         * java/net/Socket.java (@author): Fixed typo.
823         * java/net/SocketImpl.java (@author): Fixed typo.
824         * java/net/SocketImplFactory.java (@author): Fixed typo.
825         * java/net/URL.java: Created - nearly complete.
826         * java/net/URLConnection.java: Created - near-empty stub.
827         * java/net/URLStreamHandler.java: Created - incomplete stub.
828         * java/net/URLStreamHandlerFactory.java: Created.
829         * java/net/UnknownServiceException.java: Created.
831 1999-03-09  Tom Tromey  <tromey@cygnus.com>
833         * java/lang/System.java (ForwardingInputStream): New class.
834         (ForwardingOutputStream): Likewise.
835         (in, out, err): Now `final' forwarding streams.
836         (setIn, setOut, setErr): Use appropriate method on forwarding
837         streams.
839         * java/text/MessageFormat.java (MessageFormatElement): Now `final'
840         class.
842 Tue Mar  9 12:16:53 1999  Per Bothner  <bothner@cygnus.com>
844         * java/util/zip/CRC32.java:  New class (just an incomplete stub).
845         * java/util/zip/Checksum.java:  New interface (complete).
846         * java/util/zip/Deflater.java:  New class (near-empty stub).
847         * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
848         * java/util/zip/ZipConstants.java:  New interface (near-empty stub).
849         * java/util/zip/ZipEntry.java:  New class (complete).
850         * java/util/zip/ZipException.java:  New class (complete).
851         * java/util/zip/ZipFile.java:  New class (incomplete stub).
852         * java/util/zip/ZipOutputStream.java:  New class (incomplete stub).
854 1999-03-09  Tom Tromey  <tromey@cygnus.com>
856         * java/text/MessageFormat.java (MessageFormatElement): Removed
857         `public' specifiers.
859         * java/text/DecimalFormat.java (scanFormat): Increment index
860         before processing exponential format.  Fixed a couple typos in
861         exception messages.
862         (format): Correct normalization of exponent.
864 1999-03-08  Tom Tromey  <tromey@cygnus.com>
866         * java/text/SimpleDateFormat.java (parse): Throw
867         IllegalArgumentException, not ParseException.
869 1999-03-05  Tom Tromey  <tromey@cygnus.com>
871         * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
872         when constructing DateFormatSymbols.  Initialize numberFormat
873         field of superclass.
875         * java/text/DateFormat.java (equals): Rewrote.
876         (getAvailableLocales): New method.
877         (getDateInstance): New methods.
878         (getDateTimeInstance): Likewise.
879         (getTimeInstance): Likewise.
880         (getInstance): New method.
881         (computeInstance): New method.
883         * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
884         for US.
885         (safeGetResource): New method.
886         (DateFormatSymbols): Use Locale paramater.
887         (equals): Now protected.
888         Made instance variables private.
890 1999-03-04  Tom Tromey  <tromey@cygnus.com>
892         * java/text/DecimalFormat.java: New file.
894         * java/text/NumberFormat.java (groupingUsed,
895         maximumFractionDigits, maximumIntegerDigits,
896         minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
897         New fields.
898         (setDecimalSeparatorAlwaysShown, setMultiplier,
899         setPositivePrefix): Removed.
900         (setMinimumFractionDigits, setMaximumFractionDigits):
901         Implemented.
902         (format): Now final.
903         Added many new methods.
905         * Makefile.in: Rebuilt.
906         * Makefile.am (gnu_files): New macro.
907         (java_files): Added gnu_files.
908         (class_gnu_files): New macro.
909         (class_files): Use it.
910         (src_gnu_files): New macro.
911         (gnu.o): New target.
912         (javao_files): Added gnu.o.
914         * gnu/gcj/text/LocaleData_en_US.java: New file.
915         * gnu/gcj/text/LocaleData_en.java: New file.
916         * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
917         (DecimalFormatSymbols): Use ResourceBundle to find resources.
918         (safeGetString): New method.
919         (safeGetChar): Likewise.
921 1999-03-03  Tom Tromey  <tromey@cygnus.com>
923         * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
924         constants.
926         * java/text/FieldPosition.java (equals): Don't check for null
927         object; instanceof does this.
929         * java/util/Locale.java (clone): New method.
930         (equals): Likewise.
932 Wed Mar  3 17:20:15 1999  Anthony Green  <green@cygnus.com>
934         * doc/cni.sgml: New file.
936 1999-03-03  Tom Tromey  <tromey@cygnus.com>
938         * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
940         * java/text/DecimalFormatSymbols.java: New file.
942 1999-03-02  Tom Tromey  <tromey@cygnus.com>
944         * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
945         exists.
946         * configure: Rebuilt.
947         * configure.in: Check for sys/filio.h.
949         * java/lang/Runtime.java (checkLink): Throw NullPointerException
950         if required.
951         (load): Always throw UnsatisfiedLinkError.
952         (loadLibrary): Likewise.
954 1999-03-02  Anthony Green  <green@cygnus.com>
956         * LIBGCJ_LICENSE: New file.
957         * LIBJAVA_LICENSE: Removed.
958         * Many files: libjava now libgcj.
959         
960 1999-03-02  Tom Tromey  <tromey@cygnus.com>
962         * include/java-chartables.h: Rebuilt.
963         * chartables.pl (print_block): Make table `const'.
964         (print_numerics): Likewise.
965         (print_single_map): Likewise.
966         (print_all_block): Likewise.
967         (print_case_table): Likewise.
968         (print_fast_tables): Likewise.
969         * java/lang/natCharacter.cc (table_search): `table' argument now
970         const.
972 1999-03-01  Tom Tromey  <tromey@cygnus.com>
974         * java/util/Date.java (before, after): Inverted logic.
976         * java/util/Date.java (parse): Handle case where first character
977         in string is open parenthesis.
978         (skipParens): Rewrote.
980         * java/lang/reflect/natArray.cc: Include <stdlib.h>.
981         * java/lang/reflect/natField.cc: Include <stdlib.h>.
983         * java/util/Date.java (parse): Correctly compute beginning of
984         punctuation.
986         * java/util/Hashtable.java (get): Throw NullPointerException if
987         key is null.
988         (containsKey): Likewise.
990         * java/util/Properties.java (list): Truncate value to 37
991         characters and add `...'.
993         * java/lang/Byte.java (parseByte): Pass `radix' to
994         Integer.parseInt.
996         * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
997         fprintf.
998         Include System.h, PrintStream.h.
1000         * java/lang/natSystem.cc (init_properties): Don't use malloc,
1001         realloc, or free.
1003         * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
1004         exists.
1005         * configure: Rebuilt.
1006         * configure.in: Check for getpwuid_r.  Look for `pwd.h', not
1007         `pwd.d'.
1009         * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
1011         * java/lang/SecurityManager.java: Import java.net.*.
1012         (checkMulticast): New methods.
1014 Fri Feb 26 14:54:52 1999  Per Bothner  <bothner@cygnus.com>
1016         * Makefile.am, Makefile.in (java/lang/reflect/Method.h):  New rule.
1017         (nat_files):  Add java/lang/reflect/natArray.o.
1018         (nat_headers):  Add Field.h and NoSuchFieldException.h.
1019         
1020         * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
1021         _Jv_GetStaticShortField, _Jv_GetStaticByteField):  New inline methods.
1022         (_Jv_FromReflectedField):  Fix buglet.
1023         * include/jvm.h (_Jv_NewMultiArray):  New declaration.
1024         * include/java-assert.h (JvFail):  Pass message string to _Jv_Abort.
1025         * prims.cc (_Jv_Abort):  Include message in print-out.
1027         * prims.cc (_Jv_equal):  New method (compare Utf8Const and jstring).
1028         (new_multi_array):  Rename to _Jv_NewMultiArray.  Make non-static.
1029         * include/jvm.h (_Jv_NewMultiArray, _Jv_equal):  New declarations.
1031         * configure.in (AC_CHECK_HEADERS), configure:  Add pwd.h.
1032         * include/config.h.in (HAVE_PWD_H):  New feature macro.
1033         * java/lang/natSystem.cc (init_properties):  Set file.encoding,
1034         user.name, user.home, user.dir.
1036         * java/lang/reflect/Array.java:  New class.
1037         * java/lang/reflect/natArray.cc:  New native methods.
1038         * include/javaprims.h:  Declare java::lang::reflect::Array.
1040         * java/lang/Class.h (getField):  New private method.  Add friends.
1041         * java/lang/Class.java (getField):  Add private overload.
1042         * java/lang/natClass.cc (getField, getField, getDeclaredField,
1043         getDeclaredMethods):  Add working implementations.
1044         * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
1045         Finish implementation, except for access control.
1047         * java/lang/reflect/Modifier.java (toString):  New overload.
1048         * include/java-method.h:  New file.
1049         * java/lang/reflect/Method.java (index):  Replaced by offset field.
1050         Remove various private fields - get them from _Jv_Field instead.
1051         * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
1052         New method implementations.
1054         * java/text/NumberFormat.java:  Add a bunch of methods.
1056 Mon Feb 22 17:52:34 1999  Per Bothner  <bothner@cygnus.com>
1058         * java/lang/StringBuffer.java (getChars):  Fix bounds checks.
1060 1999-02-26  Tom Tromey  <tromey@cygnus.com>
1062         * include/config.h.in: Rebuilt.
1063         * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
1064         GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
1065         HAVE_GETHOSTBYADDR_R): New defines.
1066         * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
1067         gethostbyaddr_r if available.
1068         Include <errno.h>.
1069         * configure: Rebuilt.
1070         * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
1072         * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
1073         Don't use JvFree.
1074         (lookup): Likewise.
1075         Include <jvm.h>.
1076         * include/jvm.h (_Jv_AllocBytesChecked): Declare.
1077         * prims.cc (_Jv_AllocBytesChecked): New function.
1079         * Makefile.in: Rebuilt.
1080         * Makefile.am (SUBDIRS): Removed `test'.
1081         * configure: Rebuilt.
1082         * configure.in: Don't build test/Makefile.
1083         * test/*: Removed all files.
1085 Thu Feb 25 17:27:37 1999  Warren Levy  <warrenl@cygnus.com>
1087         * java/lang/reflect/Constructor.java: Make class final to match spec.
1088         * java/lang/reflect/Method.java: Ditto.
1090 1999-02-25  Tom Tromey  <tromey@cygnus.com>
1092         * java/net/natInetAddress.cc: Include <sys/types.h> before
1093         <sys/socket.h>.
1094         * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
1095         <sys/socket.h>.
1097         * java/net/natInetAddress.cc: Declare gethostname if required.
1098         * include/config.h.in: Rebuilt.
1099         * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
1100         * configure: Rebuilt.
1101         * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
1102         declared in unistd.h.
1104 1999-02-24  Tom Tromey  <tromey@cygnus.com>
1106         * Makefile.in: Rebuilt.
1107         * Makefile.am (java/io/FileDescriptor.h): Removed target.
1108         * java/io/FileDescriptor.java (FileDescriptor): Changed protection
1109         from private to "none".
1111         * include/javaprims.h: Regenerated class declarations with new
1112         classes.pl.
1113         * classes.pl (scan): Only generate decls for java.lang, java.io,
1114         and java.util.
1116 1999-02-24  Tom Tromey  <tromey@cygnus.com>
1118         * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
1119         (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
1121 1999-02-23  Tom Tromey  <tromey@cygnus.com>
1123         * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
1124         not already defined.
1125         * java/io/natFile.cc (_REENTRANT): Only define if not already
1126         defined.
1127         * include/config.h.in: Rebuilt.
1128         * acconfig.h (HAVE_BOEHM_GC): New define.
1129         * configure: Rebuilt.
1130         * configure.in: Define HAVE_BOEHM_GC if using it.
1131         * posix-threads.cc: Include boehm-config.h and gc.h if
1132         HAVE_BOEHM_GC.
1133         * include/posix-threads.h: Added explanatory note about Boehm GC.
1135         * java/io/BufferedReader.java (readLine): Only return null when
1136         EOF seen before any characters read.  (In particular, an empty
1137         line should not return null.)
1139         * java/io/BufferedInputStream.java (read): Only refill once per
1140         invocation.
1142         * mauve-libjava: Added java.text.StringCharacterIterator.iter,
1143         java.lang.Character.classify12, java.lang.String.hash,
1144         java.text.FieldPosition.Test, java.text.ParsePosition.Test,
1145         java.text.SimpleDateFormat.getAndSet2DigitYearStart
1147         * java/text/StringCharacterIterator.java (setIndex): No error if
1148         index == end.
1149         (next): Check for `pos == end', not `end - 1'.
1150         (StringCharacterIterator): Allow `pos == end'.  Explicitly check
1151         for null text in each constructor.
1152         (clone): Fixed order of arguments to constructor.
1154 1999-02-22  Tom Tromey  <tromey@cygnus.com>
1156         * include/config.h.in: Rebuilt.
1157         * acconfig.h (HAVE_INET6): New define.
1158         (HAVE_SOCKLEN_T): Likewise.
1159         * java/net/PlainSocketImpl.java: Added copyright header.
1160         * java/net/natPlainSocketImpl.cc: Added copyright header.
1161         (union SockAddr): Use HAVE_INET6, not AF_INET6.
1162         (bind): Likewise.
1163         (connect): Likewise.
1164         (accept): Likewise.
1165         (socklen_t): New typedef.
1166         (accept): Use socklen_t.
1167         * java/net/natInetAddress.cc: Added copyright header.
1168         (HAVE_GETHOSTNAME): Don't define.
1169         (HAVE_INET_ADDR): Likewise.
1170         (lookup): Fixed typo.
1171         (aton): Don't use `address' as name of local variable.
1172         (lookup): Use HAVE_INET6, not AF_INET6.
1174         * configure: Rebuilt.
1175         * configure.in: Look for functions inet_aton, inet_addr,
1176         gethostname, inet_pton, uname.  Check for sockaddr_in6 structure.
1177         Check for socklen_t typedef.
1179         * exception.cc (__throw): Declare as __noreturn__.
1181 Mon Feb 22 15:27:35 1999  Per Bothner  <bothner@cygnus.com>
1183         * Makefile.am, Makefile.in:  Also build java/net.
1184         (java/io/FileDescriptor.h):  Add friend java::net::PlainSocketImpl.
1186         * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
1187         * java/util/natGregorianCalendar.cc:  #define _REENTRANT.
1189         * prims.cc (_Jv_malloc, _Jv_Free):  New functions.
1190         * include/cni.h (JvMalloc, JvFree):  New inline functions.
1191         (JvThrow):  Add __noreturn__ attribute.
1192         * include/javaprims.h (_Jv_Malloc, _Jv_Free):  New declarations.
1193         (_Jv_Throw):  Add __noreturn__ attribute.
1195         * java/net/PlainSocketImpl.java:  Init fnum to -1.
1196         * java/net/ServerSocket.java:  Add missing throws clauses.
1197         * java/lang/Socket.java:  For the constructor taking a SocketImpl,
1198         don't call create on the latter.  Instead, other constructors
1199         have to explicitly call SocketImpl.create.
1200         * java/net/natPlainSocketImpl.cc (accept):  Change variable addrlen
1201         from size_t to int, to match ::accept prototype.
1202         * java/net/natInetAddress.cc:  Use JvFree rather than free.
1205 1999-02-22  Tom Tromey  <tromey@cygnus.com>
1207         * include/javaprims.h: Added new classes.
1208         * java/text/StringCharacterIterator.java: New file.
1209         * java/text/CharacterIterator.java: New file.
1211         * java/text/ParseException.java (errorOffset): Now private.
1213 Mon Feb 22 12:54:53 1999  Per Bothner  <bothner@cygnus.com>
1215         * java/net:  New package.
1216         * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
1217         Socket.java,SocketException.java,SocketImpl.java,
1218         SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
1219         natPlainSocketImpl.cc}:  New classes.
1221         * configure.in (AC_CHECK_HEADERS):  Also check for <sys/socket.h>,
1222         <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
1223         * include/config.h.in:  Add place-holders for HAVE_ARPA_INET_H,
1224         HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
1226         * classes.pl:  Translate package into "namespace", not "class".
1227         * include/javaprims.h:  Update class list, using "namespace".
1229 1999-02-21  Tom Tromey  <tromey@cygnus.com>
1231         * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
1232         Define when appropriate.
1234 1999-02-20  Tom Tromey  <tromey@cygnus.com>
1236         * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
1237         as a single byte and \u07ff as two bytes.
1238         (_Jv_GetStringUTFLength): Likewise.
1239         * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
1240         with 0x0f, not 0x1f.
1242 1999-02-19  Tom Tromey  <tromey@cygnus.com>
1244         * java/io/DataOutputStream.java (writeUTF): When encoding
1245         character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
1246         * java/io/DataInputStream.java (readUTF): Mask second byte of
1247         3-byte character with 0x3f, not 0x1f.
1249         * java/io/DataInputStream.java (readLong): Cast result of
1250         readUnsignedByte to long before using.
1252         * java/io/FileInputStream.java (finalize): Only finalize `fd' if
1253         it is not null.
1255         * mauve-libjava: Re-enabled java.io.DataInputOutput.
1256         * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
1257         argument to avoid warning.
1258         * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
1259         argument to avoid warning.
1261 1999-02-18  Tom Tromey  <tromey@cygnus.com>
1263         * mauve-libjava: Omit java.io.DataInputOutput and
1264         java.io.Utf8Encoding.
1266 1999-02-17  Tom Tromey  <tromey@cygnus.com>
1268         * Makefile.in: Rebuilt.
1269         * Makefile.am (nat_headers): Added InterruptedIOException.h.
1270         * java/io/natFileDescriptorPosix.cc: Include
1271         InterruptedIOException.h, Thread.h.
1272         (write): Throw InterruptedIOException when required.
1273         (read): Likewise.
1274         * posix-threads.cc: Include <signal.h>.
1275         (_Jv_ThreadInterrupt): New function.
1276         (INTR): New define.
1277         (handle_intr): New function.
1278         (_Jv_InitThreads): Register handle_intr via sigaction.
1279         * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
1280         * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
1281         * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
1282         * include/no-threads.h (_Jv_ThreadInterrupt): New function.
1284 1999-02-19  Andrew Haley  <aph@cygnus.com>
1286         * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
1287         of subgroups.
1288         (ThreadGroup (int)): Set the maximum priority of the initial
1289         ThreadGroup.
1291 1999-02-18  Andrew Haley  <aph@cygnus.com>
1293         * java/lang/natClass.cc (forName): Check for the case where a
1294         classname is the name of an array and call FindClassFromSignature
1295         to find the Class.
1297 1999-02-18  Andrew Haley  <aph@cygnus.com>
1299         * java/lang/StringBuffer (insert (int, String)): Move up any
1300         characters above the insert position and increase the length of
1301         the string buffer by the length of the argument.
1302         (insert (int, char[])): Likewise.
1303         (insert (int, char)): Likewise.
1304         (StringBuffer (String)): The initial capacity of the string buffer
1305         is 16 plus the length of the argument.
1306         (getChars): Add a JDK 1.2 FIXME.
1308 1999-02-18  Andrew Haley  <aph@cygnus.com>
1310         * java/lang/Short.java (parseShort(String, int)): Pass radix to
1311         Integer.parseInt.
1313 1999-02-18  Andrew Haley  <aph@cygnus.com>
1315         * java/lang/Double.java (equals): Use a bit-by-bit comparision
1316         instead of floating-point equality.  This is necessary for
1317         correct floating-point Hashtables.
1318         * java/lang/Float.java (equals): Ditto.
1320 1999-02-16  Tom Tromey  <tromey@cygnus.com>
1322         * java/util/Properties.java (list): Truncate value to 37
1323         characters and add "...".
1325 1999-02-16  Tom Tromey  <tromey@cygnus.com>
1327         * java/util/Vector.java (Vector): Throw IllegalArgumentException
1328         if initCap is negative.
1329         (contains): Implement JDK1.2-style handling of null argument.
1330         (removeElement): Likewise.
1331         (indexOf): Likewise.  Also, correctly handle case where idx is
1332         negative.
1333         (lastIndexOf): Likewise.
1335 1999-02-16  Tom Tromey  <tromey@cygnus.com>
1337         * java/lang/natString.cc (init): Increment source pointer in
1338         loop.
1340 1999-02-16  Tom Tromey  <tromey@cygnus.com>
1342         * exception.cc: Include NullPointerException.h.
1343         (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
1345 1999-02-16  Tom Tromey  <tromey@cygnus.com>
1347         * Makefile.in: Rebuilt.
1348         * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
1350 Sat Feb 13 20:25:09 1999  Bonzo Armstrong  <bonzo@cygnus.com>
1352         * configure.in: Don't undefine EH_COMMON_INCLUDE just because
1353         we're compiling canadian.
1354         * configure: Regenerated.
1356 1999-02-12  Andrew Haley  <aph@cygnus.com>
1358         * java/lang/sf_rint.c: Resurrected.  This file shouldn't have been
1359         deleted from libgcj.
1361 1999-02-12  Tom Tromey  <tromey@cygnus.com>
1363         * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
1364         (_Jv_eh_free): Don't call free.
1365         Don't declare malloc or free.
1367 1999-02-11  Tom Tromey  <tromey@cygnus.com>
1369         * configure.host: Use `libgcj', not `libjava'.  Removed `echo'.
1371 1999-02-11  Andrew Haley  <aph@cygnus.com>
1373         * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
1374         wf_fmod.c: Deleted.  These are all files from fdlibm which aren't
1375         needed by java.lang.*.
1376         * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
1377         wf_fmod.o: Removed from libjava.a.
1379 1999-02-11  Tom Tromey  <tromey@cygnus.com>
1381         * include/javaprims.h: Reverted previous change; with it
1382         exception.cc can't compile.
1384         * include/javaprims.h (_Jv_Throw): Mark as noreturn.
1386         * include/config.h.in: Rebuilt.
1387         * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
1388         HAVE_SCHED_YIELD.
1389         * configure: Rebuilt.
1390         * configure.in: Check for sched_yield.  Look in thread library for
1391         all thread functions.
1393         * posix-threads.cc (_Jv_MutexInit): Handle case where system has
1394         no recursive mutexes.
1395         (_Jv_MutexDestroy): Define when required.
1396         (_Jv_MutexLock): Likewise.
1397         (_Jv_MutexUnlock): Likewise.
1398         (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
1399         * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
1400         (_Jv_Mutex_t): New structure.
1401         (_Jv_MutexDestroy): Only define if recursive mutexes available.
1402         (_Jv_MutexLock): Likewise.
1403         (_Jv_MutexUnlock): Likewise.
1405 1999-02-10  Tom Tromey  <tromey@cygnus.com>
1407         * aclocal.m4, configure, Makefile.in: Rebuilt.
1408         * acinclude.m4: Renamed libjava to libgcj.  Updated to use
1409         automake 1.4.
1410         * configure.in: Changed to track library changes.
1411         * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
1412         (AM_CXXFLAGS): Likewise.
1413         (data_DATA): Likewise.
1414         (AM_CFLAGS): Likewise.
1415         (JC1FLAGS): Likewise.
1416         (libgcj_a_SOURCES): Likewise.
1417         (EXTRA_libgcj_a_SOURCES): Likewise.
1418         (libgcj_a_DEPENDENCIES): Likewise.
1419         (libgcj_a_LIBADD): Likewise.
1420         (libgcj.zip): Likewise.
1421         (CLEANFILES): Likewise.
1422         ($(nat_headers)): Likewise.
1423         (java/lang/FirstThread.h): Likewise.
1424         (java/lang/ThreadGroup.h): Likewise.
1425         (java/lang/String.h): Likewise.
1426         (java/lang/reflect/Field.h): Likewise.
1427         (BUILT_SOURCES): Likewise.
1428         (maintainer-check): Likewise.
1429         (CONFIG_STATUS_DEPENDENCIES): Likewise.
1430 Tue Feb  9 11:06:38 1999  Anthony Green  <green@cygnus.com>
1432         * java/util/natGregorianCalendar.cc (computeFields): Only use
1433         gmtime_r and localtime_r when configured for posix threads.
1435         * java/io/natFile.cc (get_entry): Only use readdir_r when
1436         configured for posix threads.
1438         * java/util/natGregorianCalendar.cc: Update copyright notice.
1439         * java/util/TimeZone.java: Ditto.
1440         * java/util/SimpleTimeZone.java: Ditto.
1442 1999-02-08  Tom Tromey  <tromey@cygnus.com>
1444         * java/io/PrintStream.java (line_separator): New constant.
1445         (print): Use line_separator, not `file.separator' property.
1446         (println): Use line_separator.
1448         * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
1449         when trying to instantiate Class.
1451         * java/lang/ThreadGroup.java (ThreadGroup): Throw
1452         NullPointerException if argument is null.
1454         * java/lang/Thread.java (setName): Throw NullPointerException, not
1455         IllegalArgumentException.
1456         (Thread): Likewise.
1458 1999-02-08  Andrew Haley  <aph@cygnus.com>
1460         * java/lang/natClass.cc (newInstance): Don't allow anyone to
1461         create new Classes with Class.newInstance().
1463         * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
1464         semiciolon to end of an array Class's signature if the elements of
1465         the array aren't themselves arrays.
1467         * java/lang/natSystem.cc (arraycopy): The size of an element of an
1468         array of objects is always sizeof(jobject), not the size of the
1469         object to which the reference points.
1471 1999-02-08  Tom Tromey  <tromey@cygnus.com>
1473         * java/util/BitSet.java (and): Throw NullPointerException when
1474         required.
1475         (or): Likewise.
1476         (xor): Likewise.
1478         * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
1479         if argument is negative.
1480         (clear): Correctly compute `offset'.  Throw
1481         IndexOutOfBoundsException when required.
1482         (set): Likewise.
1483         (get): Likewise.  Also, return correct value.
1484         (ensure): Changed meaning of argument.
1485         (toString): Wrap contents in `{}'; put spaces after commas.
1486         (hashCode): Don't try to examine elements off the end of array.
1487         (or): Correctly include bits past the end of this bit set.
1488         (xor): Likewise.
1490 Thu Feb  4 12:48:03 1999  Warren Levy  <warrenl@cygnus.com>
1492         * configure.host (mips-tx39-*): Use jmr3904dram.ld link script 
1493         instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
1495 1999-02-04  Andrew Haley  <aph@cygnus.com>
1497         * java/lang/natClass.cc (Class::forName): Remove code which mapped
1498         '/' in signatures to '.'
1499         (Class::getName): Likewise,
1500         (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
1501         signature.
1502         * java/lang/natFirstThread.cc (run): Change '/' in main's
1503         signature to '.'.
1505 1999-02-03  Andrew Haley  <aph@cygnus.com>
1507         * configure.host: -ffloat-store added when compiling libjava on
1508         x86.  fdlibm apparently relies on this.
1510         * java/lang/ThreadGroup.java (add): throw an exception if the
1511         ThreadGroup has been destroyed.
1513         * java/lang/natMath.cc (round): Ensure correct NaN and overflow
1514         behaviour.
1516 1999-01-27  Tom Tromey  <tromey@cygnus.com>
1518         * java/lang/StringBuffer.java (StringBuffer): Handle null
1519         argument.
1521 1999-01-21  Tom Tromey  <tromey@cygnus.com>
1523         * java/lang/natFirstThread.cc (run): Don't require main to be
1524         public.
1526 Wed Jan 20 15:44:56 1999  Anthony Green  <green@cygnus.com>
1528         * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
1530 1999-01-20  Tom Tromey  <tromey@cygnus.com>
1532         * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
1533         StringClass.
1534         (rehash): Likewise.
1535         (intern): Likewise.
1536         (unintern): Likewise.
1537         (_Jv_NewStringUtf8Const): Likewise.
1539         * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
1540         Character.isLetter, to see if character is self-quoting.  Also,
1541         correctly handle quoted characters.
1542         (parse): Fixed typo.  Also now throws ParseException.
1544 1999-01-15  Tom Tromey  <tromey@cygnus.com>
1546         * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
1548         * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
1549         _Jv_SyncInfo has `init' member.
1551         * include/quick-threads.h (_Jv_MutexUnlock): Return result of
1552         coop_mutex_unlock.
1554         * java/lang/natObject.cc (_Jv_MonitorExit): Throw
1555         IllegalMonitorStateException if unlock fails.
1557         * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
1558         zero.
1559         (_Jv_NewObjectArray): Likewise.
1561 1999-01-14  Tom Tromey  <tromey@cygnus.com>
1563         * java/lang/Character.java (isJavaIdentifierPart): Allow
1564         LETTER_NUMBER characters.
1566         * chartables.pl (process_char): Fixed error messages.
1568         * include/java-chartables.h: Rebuilt with UniData 2.1.8.
1569         * chartables.pl: Updated comments.  Changed detection of non-digit
1570         numeric values (no longer miss \u00b2 and friends).
1572         * java/lang/Character.java (isJavaIdentifierPart): Recognize
1573         currency symbols and connector punctuation.
1574         (isIdentifierIgnorable): Make 7f-9f ignorable.
1576         * prims.cc (_Jv_NewObjectArray): Check for overflow.
1577         (_Jv_NewPrimArray): Likewise.
1578         (SIZE_T_MAX): New define.
1580         * java/lang/ClassLoader.java (system): Now private and final.
1582         * boehm.cc (_Jv_MarkObj): Handle case where object's class is
1583         null.
1585         * configure: Rebuilt.
1586         * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
1587         well.
1588         * exception.cc: Include gansidecl.h.
1590 1999-01-14  Andrew Haley  <aph@cygnus.com>
1592         * java/lang/Math.java, java/lang/natMath.cc: min and max routines
1593         corrected: they didn't treat -0.0 and NaNs correctly.
1595 Wed Jan 13 13:32:22 1999  Anthony Green  <green@cygnus.com>
1597         * nogc.cc: Use calloc to zero out memory.
1599 1999-01-11  Tom Tromey  <tromey@cygnus.com>
1601         * java/lang/natClass.cc (isInstance): Return false if this class
1602         is primitive, not if class of `obj' is primitive.
1603         (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
1605         * java/io/SequenceInputStream.java (close): Handle case where `in'
1606         is already null.
1608         * java/text/DateFormat.java (format): New method.
1610         * mauve-libjava: Omit java.text.DateFormat.
1612 1999-01-08  Tom Tromey  <tromey@cygnus.com>
1614         * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
1615         argument.
1616         * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
1617         argument.
1618         (_Jv_CondNotifyAll): Likewise.
1620         * configure: Rebuilt.
1621         * configure.in: Change --enable-source-compilation logic to work
1622         correctly.
1624 1999-01-07  Andrew Haley  <aph@cygnus.co.uk>
1626         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
1627         and RUNTESTFLAGS from AM_MAKEFLAGS.
1628         * configure.in: AM_RUNTESTFLAGS added.
1629         * configure.host: AM_RUNTESTFLAGS added.
1630         * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
1631         * configure: rebuilt.
1632         * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
1634         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
1635         argv[] made conditional because embedded targets may not have
1636         argv[].
1637         * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
1638         explanatory comments added in call to super.
1640         * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
1641         exception thrown in the test harness itself added.
1642         * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
1644 Wed Jan  6 17:27:39 1999  Per Bothner  <bothner@cygnus.com>
1646         * java/text/DateFormatSymbols.java (zoneStringsDefault):  Make static.
1648 1999-01-06  Tom Tromey  <tromey@cygnus.com>
1650         * java/io/natFile.cc (get_entry): New function.
1651         (performList): Use get_entry.
1652         * include/config.h.in: Rebuilt.
1653         * acconfig.h (HAVE_READDIR_R): New define.
1654         * configure: Rebuilt.
1655         * configure.in: Look for readdir_r.
1657         * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
1659         * java/util/natDate.cc: Added copyright header.
1661 1999-01-05  Tom Tromey  <tromey@cygnus.com>
1663         * include/config.h.in: Rebuilt.
1664         * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
1665         HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
1666         * configure: Rebuilt.
1667         * configure.in: Check for access, stat, mkdir, rename, rmdir,
1668         unlink, and realpath.
1669         * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
1670         (stat): Conditionalize on HAVE_STAT.
1671         (attr): Likewise.
1672         (getCanonicalPath): Conditionalize on HAVE_REALPATH.
1673         (performMkdir): Conditionalize on HAVE_MKDIR.
1674         (performRenameTo): Conditionalize on HAVE_RENAME.
1675         (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
1677         * include/config.h.in: Rebuilt.
1678         * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
1679         * configure: Rebuilt.
1680         * configure.in: Check for gmtime_r and localtime_r.  For cross
1681         builds, assume they exist.
1683         * mauve-libjava: Include java.text.DateFormatSymbols again.
1684         * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
1685         from setAmPmStrings.
1687         * mauve-libjava: Omit java.text.DateFormatSymbols.
1689 1999-01-04  Tom Tromey  <tromey@cygnus.com>
1691         * java/io/PushbackReader.java: `off' already includes `numBytes'.
1693         * java/io/LineNumberReader.java (read): Decrement `count' in
1694         loop.
1696         * java/io/BufferedWriter.java (write): Correctly determine when
1697         incoming data would overrun buffer.  Flush buffer if write causes
1698         it to become full.
1700         * java/io/BufferedOutputStream.java (write): Increment `count'
1701         after copying data into buffer.
1703         * java/io/FilterOutputStream.java (close): Call flush first.
1705         * java/io/PipedReader.java (read): If read causes `out' to catch
1706         up with `in', then set `in' to -1.
1708         * java/io/LineNumberInputStream.java (read): If no bytes read,
1709         return -1.  If no bytes requested, return 0.
1711         * java/lang/StringBuffer.java (insert): If `str' is null, use
1712         string "null".
1714 1998-12-30  Anthony Green  <green@cygnus.com>
1716         * README: Removed.
1717         * LIBJAVA_LICENSE, COPYING.LIB: Created.
1719 1998-12-23  Tom Tromey  <tromey@cygnus.com>
1721         * java/io/PushbackInputStream.java (read): `off' already includes
1722         `numBytes'.
1724 1998-12-17  Tom Tromey  <tromey@cygnus.com>
1726         * Makefile.in: Rebuilt.
1727         * Makefile.am (GCJ_canadian): Include target_alias.
1729         * java/lang/natFirstThread.cc (run): Require main's class to be
1730         public.
1732 1998-12-16  Tom Tromey  <tromey@cygnus.com>
1734         * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
1736         * java/util/ResourceBundle.java (getBundle): Throw
1737         NullPointerException if locale argument is null.
1739         * java/lang/natClass.cc (forName): Throw NullPointerException if
1740         argument is null.
1741         Include NullPointerException.h.
1743 1998-12-14  Tom Tromey  <tromey@cygnus.com>
1745         * java/lang/Character.java (Character): Implement Comparable.
1746         (compareTo): New methods.
1748         * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'.  Use
1749         correct country and language codes.
1750         (UK, US): New constants.
1751         (setDefault): Language codes are lower-case.
1753         * java/lang/natClass.cc (getDeclaredConstructor): New method.
1754         (getDeclaredConstructors): Likewise.
1755         (getDeclaredField): Likewise.
1756         (getDeclaredFields): Likewise.
1757         (getDeclaredMethod): Likewise.
1758         (getDeclaredMethods): Likewise.
1759         (getField): Likewise.
1760         (getFields): Likewise.
1761         (getMethod): Likewise.
1762         (getMethods): Likewise.
1763         * java/lang/Class.java: Declare new methods.
1764         * java/lang/Class.h: Declare new methods.
1766         * java/lang/natString.cc: Removed `#pragma implementation'.
1767         * include/cni.h (_Jv_GetStringChars): New function.
1768         * Makefile.in: Rebuilt.
1769         * Makefile.am (java/lang/String.h): Don't generate definition for
1770         _Jv_GetStringChars.
1772         * java/lang/natString.cc: Added `#pragma implementation'.
1774         * Makefile.in: Rebuilt.
1775         * Makefile.am (libjava.zip): Put build directory first in class
1776         path to avoid bug in compiler.
1778 1998-12-14  Anthony Green  <green@cygnus.com>
1780         * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
1782         * include/javaprims.h: Add EventObject, ListResourceBundle and
1783         ResourceBundle.
1785 1998-12-13  Anthony Green  <green@cygnus.com>
1787         * mauve-libjava: Run the ResourceBundle tests.
1789         * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
1790         NULL.
1792 Sun Dec 13 18:11:21 1998  Per Bothner  <bothner@cygnus.com>
1794         * configure.in, configure:  Make --enable-gcj-classes and
1795         --enable-source-compilation the default.  (Nervously...)  Yeah!
1796         Based on a patch from Tom Tromey.
1798 1998-12-13  Tom Tromey  <tromey@cygnus.com>
1800         * java/util/EventObject.java: New file.
1801         * java/util/EventListener.java: New file.
1803         * include/javaprims.h: Updated class declarations.
1804         * Makefile.in: Rebuilt.
1805         * Makefile.am (nat_headers): Added Constructor.h.
1806         (java/lang/String.h): Don't inline String::length().
1807         * java/lang/Class.h (getConstructor, getConstructors): Declare.
1808         * java/lang/Class.java (initializeClass, hackRunInitializers,
1809         hackTrampoline): No need to mark `final'.
1810         (getConstructor, getConstructors): Declare.
1811         * java/lang/reflect/Field.java (equals): New method.
1812         * java/lang/natClass.cc (getConstructor): New method.
1813         (getConstructors): Likewise.
1814         Include Method.h, Field.h, Constructor.h.
1815         * java/lang/reflect/Constructor.java: New file.
1816         * java/lang/reflect/Method.java (toString): No space before open
1817         paren.
1818         (equals): Simplified.
1820 1998-12-13  Anthony Green  <green@cygnus.com>
1822         * java/util/ResourceBundle.java: New file.
1823         * java/util/ListResourceBundle.java: New file.
1825 1998-12-12  Tom Tromey  <tromey@cygnus.com>
1827         * java/lang/System.java (in, out, err): Now buffered streams by
1828         default.
1830         * include/javaprims.h: Updated class declarations.
1831         * Makefile.in: Rebuilt.
1832         * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
1833         InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
1834         Long.h, Boolean.h.
1835         (nat_files): Added natMethod.o.
1836         * java/lang/reflect/natMethod.cc: New file.
1837         * java/lang/reflect/Field.java (Field): Now extends
1838         AccessibleObject.
1839         * java/lang/reflect/AccessibleObject.java: New file.
1840         * java/lang/reflect/InvocationTargetException.java: New file.
1842 1998-12-11  Tom Tromey  <tromey@cygnus.com>
1844         * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
1845         java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
1846         Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
1848         * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
1850 1998-12-09  Tom Tromey  <tromey@cygnus.com>
1852         * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
1853         HAVE_CTIME_R.
1855         * java/lang/natCharacter.cc (toTitleCase): Handle case where
1856         character is already titlecase.
1858         * java/lang/Character.java (isJavaLetter): Follow spec.
1859         (isJavaLetterOrDigit): Likewise.
1861         * java/util/GregorianCalendar.java (gregorianCutover): Append
1862         `L'.
1864         * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
1866 1998-12-08  Tom Tromey  <tromey@cygnus.com>
1868         * java/lang/reflect/Modifier.java (toString): Replace second
1869         `static' with `synchronized'.
1871         * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
1872         * java/lang/Object.h (Object::hack12_6): Declare.
1873         * java/lang/Object.java (hack12_6): New function.
1875 1998-12-07  Tom Tromey  <tromey@cygnus.com>
1877         * include/java-array.h (__JArray::clone): Removed decl.
1878         * prims.cc (__JArray::clone): Removed.
1879         * java/lang/natObject.cc (clone): Incorporate code to clone an
1880         array.
1882         * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
1883         (_Jv_FindArrayClass): Set dtable_method_count on new class.
1884         Correctly use dtable_method_count.
1886 1998-12-07  Andrew Haley  <aph@cygnus.co.uk>
1888         * java/lang/Double.java (isInfinite, isNaN): Handle correct
1889         IEEE754 values.
1891 1998-12-06  Anthony Green  <green@cygnus.com>
1893         * mauve-libjava: Don't test ResourceBundle.
1895 1998-12-04  Tom Tromey  <tromey@cygnus.com>
1897         More JDK 1.2 spec fixes:
1898         * java/util/Date.java (millis): Now private.
1899         * java/text/DateFormat.java (DateFormat): Constructor now
1900         protected.
1901         * java/lang/Void.java (Void): New private constructor.
1902         * java/lang/System.java (System): New private constructor.
1903         * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
1904         body.
1905         (currentClassLoader): New method.
1906         (currentLoadedClass): New method.
1907         * java/lang/Math.java (Math): New private constructor.
1908         * java/lang/Compiler.java (Compiler): New private constructor.
1909         * java/lang/Class.java (Class): New private constructor.
1910         * java/lang/Double.java (toString): Removed access specifier from
1911         two-argument `toString' method.
1913 1998-12-04  Andrew Haley  <aph@cygnus.co.uk>
1915         * java/lang/s_rint.c (rint): Make the variable w volatile; this
1916         causes it to be flushed from an fp register (where it may be
1917         longer than double precision) to a double in memory.  This is
1918         essential to ensure correct rounding behaviour.
1920 1998-12-04  Tom Tromey  <tromey@cygnus.com>
1922         * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
1923         function.
1925         * java/lang/Character.java (isIdentifierIgnorable): Added comment
1926         explaining apparent divergence from JDK 1.2.
1928 1998-12-04  Per Bothner  <bothner@cygnus.com>
1930         * include/no-threads.h:  Remove unused parameter names.
1931         This silences a bunch of warnings.
1933 1998-12-04  Tom Tromey  <tromey@cygnus.com>
1935         * include/config.h.in: Rebuilt.
1936         * acconfig.h (HAVE_CTIME_R): New symbol.
1938 1998-12-03  Tom Tromey  <tromey@cygnus.com>
1940         * mauve-libjava: Added many more categories to reject.
1942         Changes to follow JDK1.2 spec:
1943         * java/lang/System.java (arraycopy, init_properties, checkSetIO,
1944         setErr, setIn, setOut): No need to be `final'.
1945         * java/lang/natObject.cc (wait): `nanos' argument is an int.
1946         * java/lang/Object.h (Object::wait): `nanos' argument is an int.
1947         * java/lang/Object.java (wait): `nanos' argument is an int.
1948         * java/lang/VirtualMachineError.java: Class is abstract.
1949         * java/lang/ThreadDeath.java: Made constructors public.
1950         * java/io/FileDescriptor.java (FileDescriptor): Added missing
1951         constructor.
1953 Thu Dec  3 20:29:38 1998  Warren Levy  <warrenl@cygnus.com>
1955         * java/text/DateFormatSymbols.java (getAmPmStrings,
1956         getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
1958 Thu Dec  3 19:21:53 1998  Warren Levy  <warrenl@cygnus.com>
1960         * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
1961         writeDouble, writeByte, writeBytes, writeChar, writeChars,
1962         writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
1963         and 1.2.
1965         * java/lang/IllegalThreadStateException.java
1966         (IllegalThreadStateException): Changed extending class to match spec.
1968         * java/lang/NumberFormatException.java
1969         (java/lang/NumberFormatException): Changed extending class to match
1970         spec.
1972         * java/util/Observer.java (Observer): Changed sig to match JCL.
1974 Thu Dec  3 19:05:26 1998  Warren Levy  <warrenl@cygnus.com>
1976         * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
1977         writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
1978         signature to match JDK 1.1 and 1.2.
1980 Thu Dec  3 16:47:42 1998  Warren Levy  <warrenl@cygnus.com>
1982         * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
1983         * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
1984         * Makefile.in, configure: Rebuilt.
1986         * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
1987         name.
1989 1998-12-02  Tom Tromey  <tromey@cygnus.com>
1991         * mauve-libjava: New file.
1993         The remaining `-W -Wall' fixes:
1994         * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
1995         avoid warning.
1996         * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
1997         `else'.
1998         * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
1999         warning.
2000         * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
2001         avoid warning.
2002         * java/lang/e_log.c (__ieee754_log): Added braces to avoid
2003         ambiguous `else'.
2004         * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
2005         warning.
2006         * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
2007         suggestion.
2008         * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
2009         suggestion.
2010         * java/lang/mprec.c (Balloc): Removed unused variable.
2011         (mult): Added parentheses per gcc suggestion.
2012         (pow5mult): Likewise.
2013         (lshift): Likewise.
2014         (ulp): Likewise.
2015         (b2d): Likewise.
2016         (d2b): Likewise.
2017         * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
2018         suggestion.  Added cast to `int' to avoid signed/unsigned
2019         comparison.
2020         * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
2021         parameter.
2022         (IsAssignableFrom): Likewise.
2023         (_Jv_JNI_GetObjectField): Likewise.
2024         (_Jv_JNI_GetByteField): Likewise.
2025         (_Jv_JNI_GetShortField): Likewise.
2026         (_Jv_JNI_GetIntField): Likewise.
2027         (_Jv_JNI_GetLongField): Likewise.
2028         (_Jv_JNI_GetStringLength): Likewise.
2029         (_Jv_JNI_ToReflectedField): Likewise.
2030         (_Jv_JNI_FromReflectedField): Likewise.
2031         (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
2033         * Makefile.in: Rebuilt.
2034         * Makefile.am (AM_CFLAGS): Define conditionally.
2035         (WARNINGS): New macro.
2036         (AM_CXXFLAGS): Include WARNINGS.
2037         * configure: Rebuilt.
2038         * configure.in (USING_GCC): New conditional.
2040         * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
2042         * java/lang/Character.java: Changed classification constants to
2043         type `byte' to match JDK 1.2 docs.
2045 1998-12-01  Tom Tromey  <tromey@cygnus.com>
2047         Some fixes to be `-W -Wall' clean:
2048         * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
2049         (_Jv_MarkArray): Likewise.
2050         * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
2051         (to_upper_title): Likewise.
2052         (isTitleCase): Likewise.
2053         (toTitleCase): Likewise.
2054         (getNumericValue): Likewise.
2055         (isLowerCase): Likewise.
2056         * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
2057         (avoids compiler warning).
2058         * java/lang/natClass.cc (getDeclaredClasses): Always return a
2059         value.
2060         (getDeclaringClass): Likewise.
2061         (_Jv_LookupInterfaceMethod): Likewise.
2062         (_Jv_NewClass): Removed name of unused parameter.
2063         * exception.cc (_Jv_type_matcher): Removed unused variable.
2064         (_Jv_setup_eh_info): Removed name of unused parameter.
2065         * prims.cc (_Jv_NewArray): Always return a value.
2066         (_Jv_FindClassFromSignature): Likewise.
2067         * include/java-field.h (getNameUtf8Const): Removed name of unused
2068         parameter.
2069         * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
2070         unused parameter.
2071         (_Jv_ThreadSetPriority): Likewise.
2073         * java/lang/natString.cc (hashChars): Now static.
2075         * java/lang/FirstThread.java (FirstThread): Now final.
2077         * java/io/File.java (performMkdir, performRenameTo): Now private.
2079         * java/lang/natSystem.cc (currentTimeMillis): Return a value even
2080         if no time function defined.
2082         * configure: Rebuilt.
2083         * configure.in: Look for ctime_r, ctime.
2084         * java/util/Date.java (toString): Now native.
2085         * java/util/natDate.cc (toString): Rewrote.
2087 1998-11-27  Andrew Haley  <aph@viagra.cygnus.co.uk>
2089         * Add LDFLAGS line to allow TX39 test cases to link when cross
2090         compiling.
2092 1998-11-23  Anthony Green  <green@cygnus.com>
2094         * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
2095         no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
2096         quick-threads.cc, include/boehm-gc.h, include/cni.h,
2097         include/java-array.h, include/java-assert.h, include/java-field.h,
2098         include/javaprims.h, include/jni.h, include/jvm.h,
2099         include/no-gc.h, include/no-threads.h, include/posix-threads.h,
2100         include/quick-threads.h, java/io/BufferedInputStream.java,
2101         java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
2102         java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
2103         java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
2104         java/io/CharArrayWriter.java,
2105         java/io/CharConversionException.java, java/io/DataInput.java,
2106         java/io/DataInputStream.java, java/io/DataOutput.java,
2107         java/io/DataOutputStream.java, java/io/EOFException.java,
2108         java/io/File.java, java/io/FileDescriptor.java,
2109         java/io/FileInputStream.java, java/io/FileNotFoundException.java,
2110         java/io/FileOutputStream.java, java/io/FileReader.java,
2111         java/io/FileWriter.java, java/io/FilenameFilter.java,
2112         java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
2113         java/io/FilterReader.java, java/io/FilterWriter.java,
2114         java/io/IOException.java, java/io/InputStream.java,
2115         java/io/InputStreamReader.java,
2116         java/io/InterruptedIOException.java,
2117         java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
2118         java/io/OutputStream.java, java/io/OutputStreamWriter.java,
2119         java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
2120         java/io/PipedReader.java, java/io/PipedWriter.java,
2121         java/io/PrintStream.java, java/io/PrintWriter.java,
2122         java/io/PushbackInputStream.java, java/io/PushbackReader.java,
2123         java/io/RandomAccessFile.java, java/io/Reader.java,
2124         java/io/SequenceInputStream.java, java/io/Serializable.java,
2125         java/io/StreamTokenizer.java,
2126         java/io/StringBufferInputStream.java, java/io/StringReader.java,
2127         java/io/StringWriter.java, java/io/SyncFailedException.java,
2128         java/io/UTFDataFormatException.java,
2129         java/io/UnsupportedEncodingException.java, java/io/Writer.java,
2130         java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
2131         java/io/natFileDescriptorPosix.cc,
2132         java/lang/AbstractMethodError.java,
2133         java/lang/ArithmeticException.java,
2134         java/lang/ArrayIndexOutOfBoundsException.java,
2135         java/lang/ArrayStoreException.java, java/lang/Boolean.java,
2136         java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
2137         java/lang/Class.java, java/lang/ClassCastException.java,
2138         java/lang/ClassCircularityError.java,
2139         java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
2140         java/lang/ClassNotFoundException.java,
2141         java/lang/CloneNotSupportedException.java,
2142         java/lang/Cloneable.java, java/lang/Comparable.java,
2143         java/lang/Compiler.java, java/lang/Double.java,
2144         java/lang/Error.java, java/lang/Exception.java,
2145         java/lang/ExceptionInInitializerError.java,
2146         java/lang/FirstThread.java, java/lang/Float.java,
2147         java/lang/IllegalAccessError.java,
2148         java/lang/IllegalAccessException.java,
2149         java/lang/IllegalArgumentException.java,
2150         java/lang/IllegalMonitorStateException.java,
2151         java/lang/IllegalStateException.java,
2152         java/lang/IllegalThreadStateException.java,
2153         java/lang/IncompatibleClassChangeError.java,
2154         java/lang/IndexOutOfBoundsException.java,
2155         java/lang/InstantiationError.java,
2156         java/lang/InstantiationException.java, java/lang/Integer.java,
2157         java/lang/InternalError.java, java/lang/InterruptedException.java,
2158         java/lang/LinkageError.java, java/lang/Long.java,
2159         java/lang/Math.java, java/lang/NegativeArraySizeException.java,
2160         java/lang/NoClassDefFoundError.java,
2161         java/lang/NoSuchFieldError.java,
2162         java/lang/NoSuchFieldException.java,
2163         java/lang/NoSuchMethodError.java,
2164         java/lang/NoSuchMethodException.java,
2165         java/lang/NullPointerException.java, java/lang/Number.java,
2166         java/lang/NumberFormatException.java, java/lang/Object.h,
2167         java/lang/Object.java, java/lang/OutOfMemoryError.java,
2168         java/lang/Process.java, java/lang/Runnable.java,
2169         java/lang/Runtime.java, java/lang/RuntimeException.java,
2170         java/lang/SecurityException.java, java/lang/SecurityManager.java,
2171         java/lang/Short.java, java/lang/StackOverflowError.java,
2172         java/lang/String.java, java/lang/StringBuffer.java,
2173         java/lang/StringIndexOutOfBoundsException.java,
2174         java/lang/System.java, java/lang/Thread.java,
2175         java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
2176         java/lang/Throwable.java, java/lang/UnknownError.java,
2177         java/lang/UnsatisfiedLinkError.java,
2178         java/lang/UnsupportedOperationException.java,
2179         java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
2180         java/lang/Void.java, java/lang/natCharacter.cc,
2181         java/lang/natClass.cc, java/lang/natDouble.cc,
2182         java/lang/natFirstThread.cc, java/lang/natFloat.cc,
2183         java/lang/natMath.cc, java/lang/natObject.cc,
2184         java/lang/natRuntime.cc, java/lang/natString.cc,
2185         java/lang/natSystem.cc, java/lang/natThread.cc,
2186         java/lang/reflect/Field.java, java/lang/reflect/Member.java,
2187         java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
2188         java/text/DateFormat.java, java/text/DateFormatSymbols.java,
2189         java/text/FieldPosition.java, java/text/Format.java,
2190         java/text/NumberFormat.java, java/text/ParseException.java,
2191         java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
2192         java/util/BitSet.java, java/util/Calendar.java,
2193         java/util/ConcurrentModificationException.java,
2194         java/util/Date.java, java/util/Dictionary.java,
2195         java/util/EmptyStackException.java, java/util/Enumeration.java,
2196         java/util/GregorianCalendar.java, java/util/Hashtable.java,
2197         java/util/Locale.java, java/util/MissingResourceException.java,
2198         java/util/NoSuchElementException.java, java/util/Observable.java,
2199         java/util/Observer.java, java/util/Properties.java,
2200         java/util/Random.java, java/util/SimpleTimeZone.java,
2201         java/util/Stack.java, java/util/StringTokenizer.java,
2202         java/util/TimeZone.java, java/util/TooManyListenersException.java,
2203         java/util/Vector.java, java/util/natGregorianCalendar.cc:  Updated
2204         copyright notices.
2206         * exception.cc: Include eh-common.h instead of duplicating 
2207         code.
2209 1998-11-23  Tom Tromey  <tromey@cygnus.com>
2211         * configure.host: Don't add `-O2' to libjava_flags.  Only add
2212         `-Os' to libjava_flags once.
2214 1998-11-17  Andrew Haley  <aph@viagra.cygnus.co.uk>
2216         * Makefile.am: add LIBJAVA_JAVAFLAGS.
2217         * Makefile.in: likewise
2218         * acconfig.h: add ECOS conditional for configure.h
2219         * config.h.in: likewise
2220         * configure: add test for --with-ecos
2221         * configure.in: likewise
2222         * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
2223         rename call to avoid name clash.
2224         * java/lang/natSystem.cc: add eCos clock support.
2225         * java/util/natGregorianCalendar.cc: add eCos support.
2226         
2227 1998-11-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
2229         * Makefile.am, Makefile.in, configure.host: tx39 build option 
2230         "-G 0" added.
2232 Wed Nov 18 18:55:25 1998  Warren Levy  <warrenl@cygnus.com>
2234         * java/io/BufferedReader.java: Added more comments for clarity.
2235         (mark): Used more mnemonic name for local var extraBuffSpace.
2237         * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
2238         confusion with private method of same name in superclass.
2239         (skipRedundantLF): Set fields in special case to avoid infinite
2240         recursion.  Check if markPos has been invalidated in special case.
2241         (readLine): Rewritten to use readLine method of superclass.
2242         (skip): Incorporated code from lineEnd.
2244 Wed Nov 18 02:46:03 1998  Warren Levy  <warrenl@cygnus.com>
2246         * java/io/BufferedReader.java (readLine): New method.
2247         (lineEnd): new private method.
2248         (mark): Track special case for readLine of getting '\r' at the
2249         end of the buffer.
2250         (reset): Ditto.
2251         (read): Ditto.
2252         (fill): Ditto.
2253         (skip): Ditto.
2255         * java/io/InputStreamReader.java (read): Return number chars skipped
2256         rather than requested.
2258         * java/lang/StringBuffer.java (append): Update count and differentiate
2259         between field and local variable.
2261         * java/util/Date.java (parseTz): Evaluate in minutes rather than
2262         seconds.  Deal with military style time.
2263         (parse): Consistently treat all timezones in minutes until final
2264         calculation.  Flag as non-local timezone.  Return value in milliseconds.
2265         (setTime): Adjust for year offset from 1900.
2266         (UTC): Adjust for year offset from 1900.
2268 1998-11-17  Tom Tromey  <tromey@cygnus.com>
2270         * configure: Rebuilt.
2271         * configure.in: Switch on host, not target.
2273         * Makefile.in: Rebuilt.
2274         * Makefile.am (GCJ_no): New macro.
2275         (GCJ): Use @CANADIAN@.
2276         (GCJH_no): New macro
2277         (GCJH_canadian): New macro.
2278         (GCJH): Use @CANADIAN@.
2279         (ZIP_no): New macro.
2280         (ZIP_canadian): New macro.
2281         (ZIP): Use @CANADIAN@.
2282         * aclocal.m4, configure: Rebuilt.
2283         * configure.in (CANADIAN): Compute and subst.
2285 Tue Nov 17 12:44:37 1998  Anthony Green  <green@cygnus.com>
2287         * java/io/FileDescriptor.java (finalize): Only close file
2288         descriptor if valid.
2290 1998-11-17  Tom Tromey  <tromey@cygnus.com>
2292         * prims.cc (_Jv_InitRuntime): Removed.
2294 1998-11-16  Tom Tromey  <tromey@cygnus.com>
2296         * java/io/FileOutputStream.java (close): Only close file
2297         descriptor if valid.
2298         (finalize): New method.
2300         * prims.cc (_Jv_NewObjectArray): Set vtbl last.
2301         (_Jv_NewPrimArray): Likewise.
2302         * boehm.cc (_Jv_RegisterFinalizer): Use
2303         GC_REGISTER_FINALIZER_NO_ORDER.
2304         (GC_GENERIC_MALLOC): New define.
2305         (_Jv_AllocObj): Use it.
2306         (_Jv_AllocArray): Likewise.
2307         (_Jv_AllocBytes): Likewise.
2308         (_Jv_MarkObj): Just return if vtbl not set.
2309         (_Jv_MarkArray): Likewise.
2310         (MAYBE_MARK): New macro; use everywhere.
2311         (_Jv_MarkObj): Mark fields belonging to superclasses as well.
2313 Mon Nov 16 14:57:53 1998  Warren Levy  <warrenl@cygnus.com>
2315         * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
2316         to a jlong before calculation to prevent overflow.
2318 1998-11-16  Tom Tromey  <tromey@cygnus.com>
2320         * Makefile.in: Rebuilt.
2321         * Makefile.am (nat_headers): Fixed typo.
2323 1998-11-15  Tom Tromey  <tromey@cygnus.com>
2325         * java/lang/Class.h (Class::getName): Removed definition.
2326         * Makefile.in: Rebuilt.
2327         * Makefile.am (nat_headers): Added InstantiationException.h,
2328         NoSuchMethodException.h.
2329         * java/lang/natClass.cc (clinit_name): Renamed from init_name.
2330         (init_name): New global.
2331         (hackRunInitializers): Use clinit_name.
2332         Include InstantiationException.h, NoSuchMethodException.h.
2333         (newInstance): Do some error checking (but not all).  Call
2334         constructor.
2335         (forName): Throw exception if class not found.
2336         (getName): New method.
2337         (forName): Transform class name from external format to internal
2338         format before lookup.
2340 1998-11-15  Anthony Green  <green@cygnus.com>
2342         * java/lang/Class.h (Class::forName): Method is static.
2344         * java/lang/natClass.cc (newInstance): Add simple implementation.
2345         (forName): Ditto.
2347 Sat Nov 14 18:25:13 1998  Per Bothner  <bothner@cygnus.com>
2349         * java/lang/Class.h (Class::accflags):  Must be unsigned short (not
2350         int), for compatibility with jc1.
2352 1998-11-14  Tom Tromey  <tromey@cygnus.com>
2354         * include/config.h.in: Rebuilt.
2355         * acconfig.h (LINUX_THREADS): New define.
2356         * configure: Rebuilt.
2357         * configure.in: Define LINUX_THREADS if using POSIX threads on
2358         Linux.  Look for pthread_mutexattr_setkind_np function.
2359         * posix-threads.cc (throw_cleanup): New function.
2360         (really_start): Push cleanup function.
2361         (_Jv_ThreadCancel): New function.
2362         (daemon_mutex, daemon_cond, non_daemon_count): New globals.
2363         (_Jv_ThreadInitData): Set `exception' field in new structure.
2364         (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
2365         thread.
2366         (_Jv_ThreadWait): New function.
2367         (_Jv_InitThreads): Initialize daemon globals.
2368         (FLAG_DAEMON): New macro.
2369         (really_start): Notify daemon_cond when non-daemon thread exits.
2370         Include <java/lang/System.h>.
2371         (struct starter): `object' field now a thread.
2372         (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
2373         * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
2374         (_Jv_ThreadWait): Removed definition.
2375         (_Jv_Thread_t): Added `exception' field.
2376         (_Jv_ThreadCancel): Removed definition.
2378 1998-11-13  Tom Tromey  <tromey@cygnus.com>
2380         * Makefile.in: Rebuilt.
2381         * Makefile.am (libjava.zip): Compute javac before changing
2382         directory.
2384         * Makefile.in: Rebuilt.
2385         * Makefile.am (libjava.zip): Include directory entries.
2387         * Makefile.in: Rebuilt.
2388         * Makefile.am (expanded): New macro.
2389         (GCJ): Use it.
2391 1998-11-12  Tom Tromey  <tromey@cygnus.com>
2393         * prims.cc (clone): New function.
2394         * include/java-array.h (__JArray::clone): Removed definition.
2396         * java/lang/natObject.cc (clone): Don't assert that class is not
2397         an array; array's `clone' method just calls this one.
2399         * Makefile.in: Rebuilt.
2400         * Makefile.am (libjava.zip): Renamed target from classes.stamp.
2401         Now creates zip file.  Changed all users.
2402         (ZIP): New macro.
2403         (data_DATA): New macro.
2405 1998-11-11  Tom Tromey  <tromey@cygnus.com>
2407         * configure: Rebuilt.
2408         * configure.in: Recognize --enable-java-gc, not --enable-gc.
2410 Wed Nov 11 18:13:46 1998  Warren Levy  <warrenl@cygnus.com>
2412         * java/io/InputStream.java (reset): Add msg to thrown exception.
2414 Wed Nov 11 17:57:02 1998  Warren Levy  <warrenl@cygnus.com>
2416         * java/io/LineNumberInputStream.java: Rewritten.
2418         * java/io/StringBufferInputStream.java: Removed extraneous import.
2420 Wed Nov 11 15:19:33 1998  Warren Levy  <warrenl@cygnus.com>
2422         * java/io/StringBufferInputStream.java: Rewritten.
2424         * java/util/Date.java (parseMonth): Optimize.
2425         (parseDayOfWeek): Created.
2426         (parse): Optimize to use parseDayOfWeek.
2428 1998-11-11  Tom Tromey  <tromey@cygnus.com>
2430         * java/lang/StringBuffer.java (append): Handle case where STR is
2431         `null'.
2433         * include/javaprims.h: Regenerated class declarations.
2435         * configure: Rebuilt.
2436         * configure.in: Added --enable-gcj-classes,
2437         --enable-single-compilation, --enable-source-compilation flags.
2438         * Makefile.in: Rebuilt.
2439         * Makefile.am (java_io_files): New macro.
2440         (java_lang_files): Likewise.
2441         (java_text_files): Likewise.
2442         (java_util_files): Likewise.
2443         (java_files): Use new macros.
2444         (java-io.o): New target.
2445         (java-lang.o): Likewise.
2446         (java-text.o): Likewise.
2447         (java-util.o): Likewise.
2448         (src_io_files): New macro.
2449         (src_lang_files): Likewise.
2450         (src_text_files): Likewise.
2451         (src_util_files): Likewise.
2452         (class_io_files): New macro.
2453         (class_lang_files): Likewise.
2454         (class_text_files): Likewise.
2455         (class_util_files): Likewise.
2456         (class_files): Use new macros.
2457         (javao_files): Define conditionally.
2458         (.java.o): New target.
2459         ($(javao_files)): New target.
2460         (GCJ): new macro.
2461         (GCJH): Added $(EXEEXT).
2462         (CLASSPATH_ENV): Removed.
2463         (GCJCOMPILE): New macro.
2465 Wed Nov 11 12:03:15 1998  Warren Levy  <warrenl@cygnus.com>
2467         * java/util/Date.java (parse): Written from scratch.
2469 1998-11-11  Tom Tromey  <tromey@cygnus.com>
2471         * java/lang/Throwable.java (toString): Correct sense of test for
2472         determining when to include detail message in result.
2474         * java/lang/ThreadDeath.java (ThreadDeath): Added missing
2475         constructor.
2477 Fri Nov  6 16:30:20 1998  Tom Tromey  <tromey@ferrule.cygnus.com>
2479         * java/lang/Class.h: Use _Jv_RegisterClasses, not
2480         _Jv_RegisterClass.
2481         * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
2482         (_Jv_RegisterClass): Use it.
2483         * include/jvm.h (_Jv_RegisterClasses): Declare.
2484         * java/lang/natObject.cc (init): Removed.
2485         (sync_init): Never call _Jv_InitializeSyncMutex.
2486         (_Jv_InitializeSyncMutex): Don't set `init'.
2487         * prims.cc (JvRunMain): Don't run init functions.
2489 Thu Nov  5 17:14:37 1998  Tom Tromey  <tromey@sanguine.cygnus.com>
2491         * java/lang/natClass.cc (initializeClass): Set state before
2492         resolving constants.
2494         * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
2495         (STATE_RESOLVED): New macro.
2496         (initializeClass): Call resolveConstants.
2497         (hackRunInitializers): Don't call resolveConstants.
2498         (_Jv_FindArrayClass): Move short-circuit return for primitive
2499         element types earlier in function.
2501 1998-11-03  Tom Tromey  <tromey@hoser.cygnus.com>
2503         * prims.cc (no_memory): New global.
2504         (_Jv_makeUtf8Const): Throw no_memory.
2505         (_Jv_AllocObject): Likewise.
2506         (_Jv_NewObjectArray): Likewise.
2507         (_Jv_NewPrimArray): Likewise.
2508         (JvRunMain): Initialize no_memory.
2510 Tue Nov  3 17:15:45 1998  Warren Levy  <warrenl@cygnus.com>
2512         * java/io/FileInputStream.java: Corrected date comment.
2513         * java/io/SequenceInputStream.java: Rewritten.
2515 Mon Nov  2 17:20:31 1998  Tom Tromey  (tromey@cygnus.com)
2517         * java/lang/FirstThread.java (die): New method.
2518         * java/lang/natFirstThread.cc (die): Removed.
2519         (DIE): New macro.
2520         (run): Use `DIE', not `die'.
2522 Mon Nov  2 16:23:41 1998  Warren Levy  <warrenl@cygnus.com>
2524         * java/io/CharArrayReader.java (read): Move check into synchronized
2525         block to prevent a close while in progress.
2526         (reset): Ditto.
2527         (skip): Ditto.
2528         * java/io/PushbackReader.java (read): Ditto.
2529         (ready): Ditto.
2530         (unread): Ditto.
2531         * java/io/StringReader.java (mark): Ditto.
2532         (read): Ditto.
2533         (reset): Ditto.
2534         (skip): Ditto.
2536 Mon Nov  2 15:56:20 1998  Warren Levy  <warrenl@cygnus.com>
2538         * java/io/PipedInputStream.java: Updated status.
2539         (connect): Added code to prevent infinite recursion and to
2540         differentiate exception causes.
2541         (read): Added code to differentiate exception causes.
2542         (receive): Made exception pass string with the cause.
2544         * java/io/PipedOutputStream.java: Updated status.
2545         (connect): Added code to call connect at the other end of the pipe.
2547 Mon Nov  2 00:22:12 1998  Warren Levy  <warrenl@cygnus.com>
2548         
2549         * java/io/PipedInputStream.java (connect): Throw exception if
2550         already connected to the same output stream.
2551         (read): Do bounds checking first.
2553 Sun Nov  1 22:48:55 1998  Warren Levy  <warrenl@cygnus.com>
2555         * java/io/PipedInputStream.java: Added private boolean outClosed.
2556         (available): Removed check if output stream is open.
2557         (close): Mark the buffer as empty so available returns 0.
2558         (read): Check if the output stream was closed and then return EOF
2559         when the buffer is empty.
2560         (receive): Mark the output stream as closed when passed a -1.
2562         * java/io/PipedOutputStream.java (close): Notify the input stream
2563         that there's no more data coming.
2564         (connect): Added a FIXME comment to note more coordination needed
2565         with PipedInputStream.
2566         (flush): Added a FIXME comment to mark what this method might do
2567         instead of nothing.
2569 Fri Oct 30 14:27:21 1998  Warren Levy  <warrenl@cygnus.com>
2571         * java/io/PipedInputStream.java: Rewritten.
2573 1998-10-30  Tom Tromey  <tromey@cygnus.com>
2575         * java/lang/Throwable.java: Rewrote from scratch.
2577         * java/lang/Class.h (Class): Don't mention newMultiArray.
2578         * prims.cc (newMultiArray): Removed.
2579         (_Jv_NewMultiArray): Removed.
2580         (newArray): Removed.
2581         (new_multi_array): New function.
2582         (_Jv_NewMultiArray): Rewrote from scratch.
2584         * include/javaprims.h: Regenerated class declarations.
2585         * classes.pl (scan): Don't declare PrimClass.
2586         * include/cni.h (JvPrimClass): Use new names for classes.
2587         * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
2588         added _Jv_PrimClass.
2589         * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
2590         (_Jv_initPrimClass): Removed.
2591         (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
2592         (_Jv_AllocObject): Added comment.
2593         (_Jv_NewObjectArray): Likewise.
2594         (_Jv_NewPrimArray): Likewise.
2596 1998-10-29  Tom Tromey  <tromey@cygnus.com>
2598         * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
2599         (_Jv_FindArrayClass): Use dtable_method_count to compute size of
2600         new dtable.
2601         * java/lang/Class.h (Class): Added `dtable_method_count' field.
2603         * java/lang/natObject.cc (init): New global.
2604         (sync_init): Call _Jv_InitializeSyncMutex if required.
2606         * Makefile.in: Rebuilt.
2607         * Makefile.am (nat_headers): Added ClassLoader.h.
2608         * include/jvm.h (_Jv_FindClassFromSignature): Declare.
2609         * java/lang/Class.h (Class): simpleLookupClass, insertClass,
2610         internalAddClass, lookupArray no longer friends.
2611         _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
2612         _Jv_FindArrayClass now friends.
2613         * java/lang/natClass.cc (HASH_LEN): New macro.
2614         (HASH_UTF): Likewise.
2615         (loaded_classes): New global.
2616         (_Jv_FindClass): New function.
2617         (ClassClass): New define.
2618         (_Jv_FindClassInCache): New function.
2619         (_Jv_RegisterClass): Likewise.
2620         (_Jv_NewClass): Likewise.
2621         Include <string.h>
2622         (ObjectClass): New define.
2623         (CloneableClass): New define.
2624         * prims.cc (_Jv_FindClass): Removed.
2625         (simpleLookupClass): Removed.
2626         (insertClass): Removed.
2627         (CLASSHASHSZ): Removed.
2628         (classPool): Removed.
2629         (_Jv_RegisterClass): Removed.
2630         (internalAddClass): Removed.
2631         (ClassClass): Removed.
2632         (RuntimeClass): Removed.
2633         (lookupArray): Removed.
2634         (CloneableClass): Removed.
2635         (CLASSMAXSIG): Removed.
2636         Rearranged file to group related functions together.
2637         (_Jv_IsInstanceOf): Moved to natClass.cc.
2638         (abort_final): Removed.
2639         Removed some unused includes.
2640         (classFromSig): Removed.
2641         (_Jv_FindClassFromSignature): New function.
2642         (_Jv_initPrimClass): Renamed.
2643         (getClass): Removed.
2645 Thu Oct 29 23:17:17 1998  Warren Levy  <warrenl@cygnus.com>
2647         * java/io/FileDescriptor.java (finalize): Throws IOException
2648         instead of Throwable.
2650         * java/io/FileInputStream.java: Rewritten.
2652         * java/io/StreamTokenizer.java (nextToken): Unread newline character
2653         at the end of a comment.
2655 1998-10-29  Tom Tromey  <tromey@cygnus.com>
2657         * include/javaprims.h: Regenerated class declarations.
2658         * classes.pl (scan): Don't special-case ClassLoader.
2660         * prims.cc (processClass): Removed.
2661         (_Jv_InitClass): Removed.
2662         Removed all CSTATE_ macros.
2663         (resolveConstants): Removed.
2664         (MAXDIMS): Removed.
2665         (_Jv_NewMultiArray): Cleaned up.
2666         * Makefile.in: Rebuilt.
2667         * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
2668         * java/lang/Class.h (Class): Declare new methods.  processClass no
2669         longer a friend.
2670         * java/lang/Class.java (hackTrampoline): New method.
2671         (initializeClass): Declare.
2672         (hackRunInitializers): Declare.
2673         * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
2674         (initializeClass): New method.
2675         (hackRunInitializers): New method.
2676         (init_name, void_signature): Moved from prims.cc.
2677         (_Jv_InitClass): New function.
2678         (isAssignableFrom): Don't call processClass.
2679         (STATE_NOTHING): New macro.
2680         (resolveConstants): New function.
2681         Include Thread.h.
2682         (ErrorClass): New define.
2684         * java/lang/Class.java (getClassLoader): Declare.
2685         * java/lang/ClassLoader.java: Rewrote from scratch.
2687         * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
2688         AbstractMethodError.h, IllegalAccessError.h,
2689         NoClassDefFoundError.h.
2690         * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
2691         * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
2692         longer static.  Changed return type.
2693         * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
2694         * java/lang/Class.h (Class): findMethodLocal no longer a friend.
2695         * prims.cc (findMethodLocal): Removed.
2696         (processClass): Use _Jv_GetMethodLocal.
2698 1998-10-28  Tom Tromey  <tromey@cygnus.com>
2700         * prims.cc (_Jv_LookupInterfaceMethod): Removed.
2701         * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
2702         friend.
2703         * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
2704         (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
2706         * include/jni.h: Added copyright header.
2707         * include/javaprims.h: Added copyright header.
2708         * include/java-field.h: Added copyright header.
2709         * include/java-array.h: Added copyright header.
2710         * include/cni.h: Added copyright header.
2712         * include/javaprims.h: Regenerated class declarations using
2713         classes.pl; now they are complete.
2714         * classes.pl: New file.
2716         * java/lang/natMath.cc: Include <config.h>.
2717         * java/lang/reflect/natField.cc: Include <config.h>.
2718         * java/util/NativeUtil.java: Removed.
2719         * Makefile.in: Rebuilt.
2720         * Makefile.am (nat_headers): Added Math.h.
2721         * java/lang/Math.h: Removed.
2722         * java/util/natGregorianCalendar.cc: Added copyright header.
2723         Include <config.h>.
2724         * java/lang/natFloat.cc: Added copyright header.
2725         * java/lang/Byte.java: Added copyright header.
2726         * java/lang/Void.java: Added copyright header.
2727         * java/lang/Short.java: Added copyright header.
2729 Wed Oct 28 12:55:47 1998  Warren Levy  <warrenl@cygnus.com>
2731         * include/javaprims.h (java::io): Added bunch of missing classes.
2732         
2733         * java/io/DataInputStream.java (readLine): Added a special case
2734         for handling BufferedInputStream data to reduce the likelihood
2735         of a pushback error.
2736         (skipBytes): Added code to handle negative number of skip bytes.
2737         
2738         * java/io/StreamTokenizer.java: Rewritten.
2740 1998-10-28  Tom Tromey  <tromey@cygnus.com>
2742         * java/util/natGregorianCalendar.cc (computeFields): Call
2743         getRawOffset as a method.
2745         * include/javaprims.h (java::io): Added FilterOutputStream.
2746         * Makefile.in: Rebuilt.
2747         * Makefile.am (nat_headers): Added PrintStream.h,
2748         FilterOutputStream.h.
2749         * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
2750         PrintStream.h.
2751         (die): New function.
2752         (run): Die if `main' not found, is not public, or is not static.
2754         * boehm.cc (_Jv_MarkObj): Use new field names.
2755         * include/java-field.h (JvGetFirstInstanceField): Use new field
2756         names.
2757         (JvNumInstanceFields): Likewise.
2758         * java/lang/natClass.cc (isAssignableFrom): Use new field names.
2759         (getInterfaces): Likewise.
2760         * prims.cc (CLASS_CONSTANTS): Removed.
2761         (CLASS_CONST_SIZE): Likewise.
2762         (CLASS_CONST_TAG): Likewise.
2763         (CLASS_CONST_DATA): Likewise.
2764         (CLASS_CONST_UTF8): Likewise.
2765         (WORD2UTF): Likewise.
2766         (CLASS_CLASS): Likewise.
2767         (CLASS_PRIM_SIG): Likewise.
2768         (CLASS_ARRAY_CACHE): Likewise.
2769         (HASH_CHARS): Likewise.
2770         (hashClassName): Likewise.
2771         Many changes to use new field names.
2772         * java/lang/Class.h (Class): Renamed fields to track compiler.
2774 1998-10-27  Tom Tromey  <tromey@cygnus.com>
2776         * java/lang/natClass.cc: Use #pragma implementation.
2777         (getComponentType): Moved into header.
2778         (getModifiers): Likewise.
2779         (getName): Likewise.
2780         (getSuperclass): Likewise.
2781         (isArray): Likewise.
2782         (isPrimitive): Likewise.
2783         * include/jvm.h (_Jv_FindClass): Declare.
2784         * java/lang/natFirstThread.cc (run): Updated for new Class.h.
2785         * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
2786         * include/javaprims.h: Use _Jv_Method, not JvMethod.
2787         * java/lang/Class.h: Rewrote from scratch.
2788         * prims.cc: Many changes to work with new Class.h.
2789         * include/java-field.h (CLASS_FIELDS): Removed.
2790         (CLASS_SFIELDS): Likewise.
2791         (CLASS_IFIELDS): Likewise.
2792         (CLASS_NFIELDS): Likewise.
2793         (CLASS_NIFIELDS): Likewise.
2794         (CLASS_NSFIELDS): Likewise.
2795         (CLASS_FSIZE): Likewise.
2796         (JvGetFirstInstanceField): Rewrote.
2797         (JvNumInstanceFields): Likewise.
2799         * java/lang/Object.h: Added copyright comment.
2801 Wed Oct 28 00:32:23 1998  Per Bothner  <bothner@cygnus.com>
2803         * java/text:  New package directory.
2804         * java/text/FieldPosition.java:  New class.
2805         * java/text/ParsePosition.java:  New class. 
2806         * java/text/ParseException.java:  New Exception class.
2807         * java/text/Format.java:  New class.
2808         * java/text/NumberFormat.java:  New (empty placeholder) class.
2809         * java/text/DateFormatSymbols.java:  New class (no Locales support).
2810         * java/text/DateFormat.java:  New Format class (incomplete).
2811         * java/text/SimpleDateFormat.java:  New DateFormat class.
2812         
2813         * include/javaprims.h (java::test):  Added new package and classes.
2814         * java/util/Calendar.java (clone):  New method.
2815         * java/util/Date.java (toString):  Added non-native implementation.
2816         (parse):  Made public instead of synchronized.
2817         * java/util/natDate.cc (toString):  Removed.
2818         * java/util/natGregorianCalendar.cc (computeFields):
2819         Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
2821 1998-10-27  Tom Tromey  <tromey@cygnus.com>
2823         * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
2825         * prims.cc (lookupArray): Added explanatory comment.
2826         * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
2827         class.  Mark the class of each object.
2828         (_Jv_MarkArray): Mark the object's class.
2830         * configure: Rebuilt.
2831         * configure.in: Create java-gc.h.
2832         * include/boehm-gc.h: New file.
2833         * include/no-gc.h: New file.
2834         * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
2835         defined.
2836         * java/lang/Object.h: Include java-gc.h.
2837         (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
2838         friends, if defined.
2839         * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
2840         signature.
2841         (_Jv_MarkArray): Renamed from mark_array; changed signature.
2843 1998-10-26  Tom Tromey  <tromey@cygnus.com>
2845         * java/lang/natCharacter.cc (isSpaceChar): Look for line and
2846         paragraph separators, not numbers.
2848         * java/io/Writer.java (write): Removed write(char) to avoid
2849         ambiguity.
2850         * java/util/Properties.java: Rewrote from scratch.
2851         * include/javaprims.h (java::io): Added PrintWriter,
2852         BufferedWriter, PushbackReader.
2854 Mon Oct 26 13:13:28 1998  Anthony Green  <green@cygnus.com>
2856         * java/lang/System.java: exit() is a static method.
2858 1998-10-26  Tom Tromey  <tromey@cygnus.com>
2860         * java/lang/natString.cc (_Jv_NewStringUTF): Use
2861         _Jv_strLengthUtf8.
2862         (_Jv_NewStringUtf8Const): Likewise.
2863         * include/jvm.h (_Jv_strLengthUtf8): Declare.
2864         * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
2866         * java/lang/Object.h (Object): Add mark_array as friend function.
2867         * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
2868         _Jv_AllocBytes, to ensure that header is marked.
2869         * boehm.cc (mark_obj): Push sync_info field for all objects, not
2870         just Objects.
2871         (mark_array): Push sync_info field for array.
2873 1998-10-24  Tom Tromey  <tromey@cygnus.com>
2875         * java/lang/String.java (String): Updated for StringBuffer
2876         change.
2877         * java/util/BitSet.java: Renamed field (data->bits) to conform to
2878         serialization spec.
2879         * java/lang/StringBuffer.java: Renamed fields to conform to
2880         serialization spec: buffer->value, next->count, copy->shared.
2882 Wed Oct 21 18:24:57 1998  Per Bothner  <bothner@cygnus.com>
2884         * java/util/TimeZone.java:  New class.
2885         * java/util/SimpleTimeZone.java:  New class.
2886         * java/util/Locale.java:  New file.
2887         * java/util/Calendar.java:  Make almost complete.
2888         * java/util/GregorianCalendar.java
2889         * java/util/natGregorianCalendar.cc:  New file.
2890         * java/util/Date.java:  Re-written from scratch.
2891         * java/util/natDate.cc (setTime):  Removed - no longer native.
2892         * include/javaprims.h (java::util):  Add new classes.
2893         * Makefile.am (nat_files):  Add java/util/natGregorianCalendar.o.
2894         (nat_headers);  Add TimeZone.h, Calendar.h, GregorianCalendar.h.
2896 Sat Oct 24 22:58:25 1998  Warren Levy  <warrenl@cygnus.com>
2898         * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
2899         returning it as a jint.
2901 1998-10-23  Tom Tromey  <tromey@cygnus.com>
2903         * prims.cc (arg_vec, main_group, main_thread): New globals.
2904         (JvRunMain): Use them.
2906 Fri Oct 23 17:10:12 1998  Warren Levy  <warrenl@cygnus.com>
2908         * java/io/DataInputStream.java: Rewritten.
2910         * java/io/DataOutputStream.java (writeUTF): OR secondary and
2911         tertiary bytes with 0x80 per spec.
2913 1998-10-23  Tom Tromey  <tromey@cygnus.com>
2915         * java/lang/String.java (init): Changed name of `copy' argument.
2916         * java/lang/natString.cc (init): Inverted sense of `copy'
2917         argument.
2919         * java/lang/Object.h (Object): Declare mark_obj as a friend.
2920         * java/lang/Class.h (Class): Declare mark_obj as a friend.
2921         * boehm.cc (ObjectClass): New define.
2922         (ClassClass): Likewise.
2923         (mark_obj): Special-case Object and Class.
2925         * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
2927         * java/util/BitSet.java: Rewrote from scratch.
2929         * prims.cc (lookupArray): Removed useless cast.
2931         * java/lang/natObject.cc: Use `#pragma implementation'.
2933         * java/lang/String.java (init): Added `copy' argument.
2934         (String): Look in StringBuffer to find char array.
2935         * java/lang/natString.cc (init): Added `copy' argument.
2936         * java/lang/StringBuffer.java: Rewrote from scratch.
2938         * java/lang/Compiler.java: Rewrote from scratch.
2939         * java/lang/Throwable.java: Don't use NativeLang.
2940         * include/javaprims.h (java::lang): Don't mention NativeLang.
2941         * java/lang/Process.java: Rewrote from scratch.
2942         * java/lang/SecurityManager.java (classLoaderDepth): Commented
2943         out.
2944         (currentClassLoader): Likewise.
2945         (currentLoadedClass): Likewise.
2946         * java/lang/natClass.cc (getClassLoader): Commented out.
2947         * java/lang/Class.java (getClassLoader): Commented out.
2948         * java/lang/Compiler.java: Removed.
2949         * java/lang/NativeLang.java: Removed.
2951         * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
2952         * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
2953         * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
2954         (_Jv_hashUtf8String): Now static.
2955         * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
2956         name of return type.
2958         * java/lang/Class.h (Class): Declare checkMemberAccess.
2959         * Makefile.in: Rebuilt.
2960         * Makefile.am (nat_headers): Added Member.h.
2961         * java/lang/natClass.cc: Include Member.h.
2962         (getDeclaredClasses): Call checkMemberAccess.
2963         * java/lang/Class.java (checkMemberAccess): Call
2964         SecurityManager.checkMemberAccess.
2966 Fri Oct 23 08:01:54 1998  Anthony Green  <green@cygnus.com>
2968         * java/lang/SecurityManager.java: Rewritten.
2970 Thu Oct 22 17:16:10 1998  Anthony Green  <green@cygnus.com>
2972         * java/applet/Applet.java, java/applet/AppletContext.java,
2973         java/applet/AppletStub.java, java/applet/AudioClip.java,
2974         java/awt/AWTError.java, java/awt/AWTException.java,
2975         java/awt/BorderLayout.java, java/awt/Button.java,
2976         java/awt/Canvas.java, java/awt/CardLayout.java,
2977         java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
2978         java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
2979         java/awt/Color.java, java/awt/Component.java,
2980         java/awt/Container.java, java/awt/Dialog.java,
2981         java/awt/Dimension.java, java/awt/Event.java,
2982         java/awt/FileDialog.java, java/awt/FlowLayout.java,
2983         java/awt/Font.java, java/awt/FontMetrics.java,
2984         java/awt/Frame.java, java/awt/Graphics.java,
2985         java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
2986         java/awt/GridLayout.java, java/awt/Image.java,
2987         java/awt/Insets.java, java/awt/Label.java,
2988         java/awt/LayoutManager.java, java/awt/List.java,
2989         java/awt/MediaTracker.java, java/awt/Menu.java,
2990         java/awt/MenuBar.java, java/awt/MenuComponent.java,
2991         java/awt/MenuContainer.java, java/awt/MenuItem.java,
2992         java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
2993         java/awt/Rectangle.java, java/awt/Scrollbar.java,
2994         java/awt/TextArea.java, java/awt/TextComponent.java,
2995         java/awt/TextField.java, java/awt/Toolkit.java,
2996         java/awt/Window.java, java/awt/image/ColorModel.java,
2997         java/awt/image/CropImageFilter.java,
2998         java/awt/image/DirectColorModel.java,
2999         java/awt/image/FilteredImageSource.java,
3000         java/awt/image/ImageConsumer.java,
3001         java/awt/image/ImageFilter.java,
3002         java/awt/image/ImageObserver.java,
3003         java/awt/image/ImageProducer.java,
3004         java/awt/image/IndexColorModel.java,
3005         java/awt/image/MemoryImageSource.java,
3006         java/awt/image/PixelGrabber.java,
3007         java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
3008         java/awt/peer/CanvasPeer.java,
3009         java/awt/peer/CheckboxMenuItemPeer.java,
3010         java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
3011         java/awt/peer/ComponentPeer.java,
3012         java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
3013         java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
3014         java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
3015         java/awt/peer/MenuBarPeer.java,
3016         java/awt/peer/MenuComponentPeer.java,
3017         java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
3018         java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
3019         java/awt/peer/TextAreaPeer.java,
3020         java/awt/peer/TextComponentPeer.java,
3021         java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
3022         java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
3023         java/net/DatagramPacket.java, java/net/DatagramSocket.java,
3024         java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
3025         java/net/MalformedURLException.java, java/net/NativeNet.java,
3026         java/net/ProtocolException.java, java/net/ServerSocket.java,
3027         java/net/Socket.java, java/net/SocketException.java,
3028         java/net/SocketImpl.java, java/net/SocketImplFactory.java,
3029         java/net/URL.java, java/net/URLConnection.java,
3030         java/net/URLEncoder.java, java/net/URLStreamHandler.java,
3031         java/net/URLStreamHandlerFactory.java,
3032         java/net/UnknownHostException.java,
3033         java/net/UnknownServiceException.java: Removed.
3035 1998-10-22  Tom Tromey  <tromey@cygnus.com>
3037         * prims.cc (_Jv_AllocObject): Register finalizer if class'
3038         finalizer is not Object.finalize.
3039         (internalAddClass): Don't set `final' member of class.
3040         * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
3041         other places that know about finalize() location.
3042         * java/lang/Class.h (Class): Removed `final' field.
3044         * aclocal.m4, configure: Rebuilt.
3045         * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
3046         AC_CHECK_PROGS; otherwise the CXX cache variable might not be
3047         set.
3048         * configure.in (AC_OUTPUT): Pass CXX to config.status.
3049         * Makefile.in: Rebuilt.
3050         * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
3052 1998-10-21  Tom Tromey  <tromey@cygnus.com>
3054         * java/lang/Object.java (finalize): Move to be first method in
3055         class.
3057         * configure: Rebuilt.
3058         * configure.in (GCINCS): Include contents of boehm-cflags file.
3060 Tue Oct 20 13:11:04 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3062         * java/lang/ArrayIndexOutOfBoundsException.java
3063         (ArrayIndexOutOfBoundsException): Fixed string literal.
3064         * java/lang/StringIndexOutOfBoundsException.java
3065         (StringIndexOutOfBoundsException): Fixed string literal.
3067 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
3069         * natFileDescriptorEcos.cc added.
3070         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
3072 1998-10-20  Andrew Haley  <aph@viagra.cygnus.co.uk>
3074         * acconfig.h: test for __int32_t and __uint32_t added.
3075         * include/config.h.in: test for __int32_t and __uint32_t added.
3076         * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
3077         * java/lang/mprec.h: test for __int32_t and __uint32_t added.
3078         * configure.in: test for __int32_t and __uint32_t added.
3079         * configure: test for __int32_t and __uint32_t added.
3080         
3081         * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.  
3083         * configure.in: Test for --enable ecos and link
3084         natFileDescriptor.cc to natFileDescriptorEcos.cc or
3085         natFileDescriptorPosix.cc
3086         
3087         * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
3088         
3089 Mon Oct 19 18:13:58 1998  Warren Levy  <warrenl@cygnus.com>
3091         * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
3092         in isn't negative.
3094         * java/io/CharArrayReader.java (close): Synchronize on lock
3095         object per Reader contract.
3096         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
3097         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
3098         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
3099         Ensure that arg passed in isn't negative.
3101         * java/io/FilterReader.java (FilterReader): Use the lock obj when
3102         constructing the superclass.
3104         * java/io/PushbackReader.java (close): Synchronize on lock
3105         object per Reader contract.
3106         (read): Synchronize on lock obj.  Verify that reader wasn't closed.
3107         (ready): Synchronize on lock obj.  Throw IOException if reader
3108         wasn't closed.
3109         (reset): Synchronize on lock obj.  Verify that reader wasn't closed.
3110         (skip): Synchronize on lock obj.  Verify that reader wasn't closed.
3111         Ensure that arg passed in isn't negative.
3112         (unread): Synchronize on lock obj.  Verify that reader wasn't closed.
3114         * java/io/StringReader.java: Created.
3115         
3116 Sun Oct 18 02:19:11 1998  Warren Levy  <warrenl@cygnus.com>
3118         * java/io/CharArrayReader.java (mark): Removed synchronized modifier
3119         to match JCL.
3120         (read): Removed synchronized modifier to match JCL.
3121         (reset): Removed synchronized modifier to match JCL.
3122         (skip): Removed synchronized modifier to match JCL.
3124 Sun Oct 18 02:01:54 1998  Warren Levy  <warrenl@cygnus.com>
3126         * java/io/PushbackReader.java (PushbackReader): Made
3127         constructors public.
3129 1998-10-17  Tom Tromey  <tromey@cygnus.com>
3131         * java/io/PushbackInputStream.java (PushbackInputStream): Made
3132         constructors public.
3134 1998-10-16  Anthony Green  <green@cygnus.com>
3136         * aclocal.m4, configure: Rebuilt.
3137         * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
3138         configure.host.
3139         * configure.host: Rewrote.
3140         * Makefile.in: Rebuilt.
3141         * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
3142         (AM_CFLAGS): New macro.
3143         ($(c_files)): Use COMPILE macro.
3144         (EXTRA_libjava_a_SOURCES): Added dummy file to work around
3145         automake problem(s).
3147 Fri Oct 16 16:36:28 1998  Warren Levy  <warrenl@cygnus.com>
3149         * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
3151         * java/io/CharArrayReader.java: Created.
3153 Fri Oct 16 15:17:01 1998  Warren Levy  <warrenl@cygnus.com>
3155         * java/io/PushbackInputStream.java (PushbackInputStream): Changed
3156         size check to allow 0 per JCL.
3158         * java/io/PushbackReader.java: Created.
3160 1998-10-16  Tom Tromey  <tromey@cygnus.com>
3162         * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
3163         <sys/time.h> includes. 
3164         * java/io/natFile.cc: Conditionalize <unistd.h> include.
3165         * include/no-threads.h: Conditionalize <unistd.h> include on
3166         HAVE_UNISTD_H.
3168 Fri Oct 16 14:39:51 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
3170         * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
3171         is defined.
3173 Thu Oct 15 19:27:54 1998  Warren Levy  <warrenl@cygnus.com>
3175         * java/io/FilterReader.java: Created.
3177 Thu Oct 15 17:49:43 1998  Warren Levy  <warrenl@cygnus.com>
3179         * java/io/PushbackInputStream.java: Rewritten.
3181         * java/io/BufferedInputStream.java (BufferedInputStream): Check
3182         that size passed to constructor is legal.
3183         (read): Check that args passed in are legal.
3184         (skip): Rewritten to get rid of the temporary buffer.
3185         (refill): Added marklimit check to grow the buffer.
3187         * java/io/ByteArrayInputStream.java (read): Optimized invalid args
3188         check.
3189         (bytesAvail): Removed.
3190         (read): Changed bytesAvail to Math.min.
3191         (skip): Changed bytesAvail to Math.min.
3193         * java/io/InputStream.java (read): Got rid of extraneous exceptions
3194         from the throws clause.
3195         (skip): Rewritten to use a temporary buffer.
3197 Thu Oct 15 19:42:55 1998  Andrew Haley  <aph@madras.cygnus.co.uk>
3199         * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
3200         some target OSes
3202         * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
3204         * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
3205         to write the double one word at a time.
3207 Tue Oct 13 14:41:47 1998  Warren Levy  <warrenl@cygnus.com>
3209         * java/io/BufferedInputStream.java:  Rewritten.
3211 1998-10-12  Tom Tromey  <tromey@cygnus.com>
3213         * jni.cc: Include config.h and stddef.h.
3215         * java/lang/Class.h (_dispatchTable): Removed again.
3216         Removed all ACC_* defines again.
3218 Fri Oct  9 17:08:34 1998  Per Bothner  <bothner@cygnus.com>
3220         * Makefile.am (nat_files):  Add netField.o.
3221         (libjava_a_SOURCES):  Add jni.cc.
3222         (java/lang/reflect/Field.h):  New rule.
3223         * Makefile.in:  Re-generated.
3224         * include/javaprims.h:  Add some extra class and typedefs.
3225         * include/jni.h:  New file.
3226         * jni.cc:  New file.
3228         * include/java-field.h:  New file.
3229         * include/jvm.h:  #include <java-field.h>.
3230         * boehm.cc:  #include <java-field.h>.
3231         * java/lang/Class.h (JvField, inline numbers):  Moved to java-field.h.
3232         * java/lang/reflect/Member.java:  New class.
3233         * java/lang/reflect/Field.java:  New class.  (Very incomplete.)
3234         * java/lang/reflect/natField.cc:  New file.  (Very incomplete.)
3236 Sun Oct 11 00:34:44 1998  Anthony Green  <green@cygnus.com>
3238         * Makefile.in, aclocal.m4, configure, test/Makefile.in,
3239         testsuite/Makefile.in: Rebuilt.
3240         * Makefile.am, acinclude.m4, configure.in: Add multilib support.
3241         * configure.host: Created.
3243 1998-10-10  Tom Tromey  <tromey@cygnus.com>
3245         * java/lang/natObject.cc (sync_init): Always allocate a new
3246         sync_info.
3248 1998-10-09  Tom Tromey  <tromey@cygnus.com>
3250         * java/io/ByteArrayInputStream.java (mark): Renamed from
3251         `mark_FIXME'.
3253         * java/io/FileOutputStream.java (finalize): Removed.
3254         * java/io/FileDescriptor.java (finalize): New method.
3256 Thu Oct  8 17:59:43 1998  Warren Levy  <warrenl@cygnus.com>
3258         * ByteArrayInputStream.java: Corrected status comment.
3260 Thu Oct  8 17:22:49 1998  Warren Levy  <warrenl@cygnus.com>
3262         * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
3264 1998-10-08  Tom Tromey  <tromey@cygnus.com>
3266         * prims.cc (lookupArray): Use static array to initialize list of
3267         interfaces.
3269 Thu Oct  8 12:45:03 1998  Anthony Green  <green@cygnus.com>
3271         * prims.cc (lookupArray): Initialize the msize for new
3272         array classes.
3274 Wed Oct  7 12:13:59 1998  Anthony Green  <green@cygnus.com>
3276         * configure: Rebuilt.
3277         * configure.in: Check for fsync and sleep.
3278         * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
3280         * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
3281         HAVE_SLEEP. Include config.h.
3283         * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
3284         * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
3285         with HAVE_FSYNC.
3287 1998-10-08  Tom Tromey  <tromey@cygnus.com>
3289         * java/io/natFile.cc: Don't include SecurityManager.h.
3290         (performList): Renamed.
3291         (performMkdir): Likewise.
3292         (performRenameTo): Likewise.
3293         (performDelete): Likewise.
3294         Include <stdlib.h>.
3295         * java/io/File.java (performDelete): Renamed from natDelete.
3296         (list): Now written in Java.
3297         (performList): New method.
3298         (performMkdir): New method.
3299         (mkdir): Now written in Java.
3300         (performRenameTo): New method.
3301         (renameTo): Now written in Java.
3303 1998-10-06  Tom Tromey  <tromey@cygnus.com>
3305         * Makefile.in: Rebuilt.
3306         * Makefile.am (ETAGS_ARGS): New macro.
3307         (TAGS_DEPENDENCIES): Likewise.
3309 Tue Oct  6 22:04:44 PDT 1998 Anthony Green  <green@cygnus.com>
3311         * Makefile.in: Rebuilt.
3312         * Makefile.am: Use -classpath option with javac.
3313         
3314 Tue Oct  6 18:51:31 1998  Tom Tromey  <tromey@cygnus.com>
3316         * java/io/FileOutputStream.java (finalize): Call
3317         super.finalize().
3319 Tue Oct  6 16:02:45 1998  Anthony Green  <green@cygnus.com>
3321         * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
3322         with newlib's libm.
3323         * java/lang/mprec.c: Ditto.
3325         * java/lang/mprec.h: Include math.h for HUGE_VAL when
3326         cross-compiling.
3328 Tue Oct  6 14:27:00 1998  Warren Levy  <warrenl@cygnus.com>
3330         * java/io/InputStream.java (skip): Make local var i a long.
3332 Mon Oct  5 09:44:24 1998  Tom Tromey  <tromey@cygnus.com>
3334         * java/lang/natObject.cc (clone): Use memcpy, not memmove.
3335         * prims.cc (lookupArray): Use memcpy, not memmove.
3336         * include/config.h.in: Rebuilt.
3337         * acconfig.h (HAVE_MEMCPY): Added.
3338         * configure: Rebuilt.
3339         * configure.in: Check for memcpy again.
3341         * java/io/RandomAccessFile.java (RandomAccessFile): Use
3342         String.compareTo, not ==.
3344         * java/lang/Class.h (Class): Use _Jv_DispatchTable.
3345         (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
3346         * java/lang/natObject.cc (struct _dispatchTable): Removed.
3347         * include/jvm.h (struct _Jv_DispatchTable): New structure.
3348         * prims.cc (lookupArray): Removed dead code.  Copy Object's dtable
3349         into new array's dtable.
3350         (_Jv_AllocObject): Use _Jv_DispatchTable.
3351         (_Jv_NewPrimArray): Likewise.
3352         (_Jv_NewObjectArray): Likewise.
3354 Fri Oct  2 18:57:14 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
3356         * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
3357         offending index value.
3358         (_Jv_NewPrimArray): Throw NegativeArraySizeException when
3359         appropriate.
3360         * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
3361         * java/lang/Throwable.java: (Throwable): fixed argument to this().
3363 Fri Oct  2 15:58:23 1998  Warren Levy  <warrenl@cygnus.com>
3365         * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
3366         
3367         * java/io/OutputStream.java (write): Use off and len parameters to
3368         output partial byte array.
3369         
3370         * java/io/BufferedReader.java, java/io/FileReader.java,
3371         java/io/InputStreamReader.java, java/io/LineNumberReader.java,
3372         java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
3373         java/io/Reader.java, java/io/UnsupportedEncodingException.java,
3374         java/io/Writer.java: Added COPYRIGHT-TBD comment.
3376         * include/javaprims.h (java::lang): Added
3377         ExceptionInInitializerError, IllegalStateException,
3378         NoSuchFieldException, and UnsupportedOperationException.
3380 Fri Oct  2 01:05:38 1998  Tom Tromey  <tromey@cygnus.com>
3382         * java/lang/natObject.cc (CloneableClass): Is a Class, not a
3383         Class*.
3385         * include/java-array.h (__JArray): Added clone method.
3386         * prims.cc (CloneableClass): New define.
3387         (lookupArray): Initialize array class to indicate that it
3388         implements Cloneable.
3390         * java/lang/Class.h: Removed all ACC_* defines.
3391         * prims.cc: Include Modifier.h.
3392         (_Jv_LookupInterfaceMethod): Use methods in
3393         java.lang.reflect.Modifier, not ACC_ defines.
3395         * java/lang/Class.h (Class): Declare getClasses,
3396         getDeclaredClasses, getDeclaringClass, getModifiers, 
3397         * java/lang/Class.java: Rewrote from scratch.
3399         * include/javaprims.h (java::lang): Added reflect and
3400         reflect::Modifier.
3401         * Makefile.in: Rebuilt.
3402         * Makefile.am (nat_headers): Added Modifier.h.
3404         * prims.cc (_Jv_IsInstanceOf): Return false if class is
3405         primitive.
3407 Fri Oct 2 06:49:00 1998  Anthony Green  <green@cygnus.com>
3409         * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
3410         instead of test and abort.
3412         * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
3413         remove compiler warning.
3415 Fri Oct  2 12:33:44 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
3417         * java/lang/natDouble.cc: zero terminate string.
3418         * strtod.c: Set errno if no digits are found in fraction.
3420 Thu Oct  1 11:48:28 1998  Tom Tromey  <tromey@cygnus.com>
3422         * java/lang/reflect/Modifier.java: New file.
3424         * java/lang/VirtualMachineError.java: Rewrote from scratch.
3425         * java/lang/VerifyError.java: Rewrote from scratch.
3426         * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
3427         * java/lang/UnknownError.java: Rewrote from scratch.
3428         * java/lang/StackOverflowError.java: Rewrote from scratch.
3429         * java/lang/OutOfMemoryError.java: Rewrote from scratch.
3430         * java/lang/InternalError.java: Rewrote from scratch.
3431         * java/lang/IllegalAccessError.java: Rewrote from scratch.
3432         * java/lang/ExceptionInInitializerError.java: New file.
3433         * java/lang/Error.java: Rewrote from scratch.
3434         * java/lang/ClassFormatError.java: Rewrote from scratch.
3435         * java/lang/ClassCircularityError.java: Rewrote from scratch.
3436         * java/lang/AbstractMethodError.java: Rewrote from scratch.
3437         * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
3438         * java/lang/NoSuchFieldError.java: Rewrote from scratch.
3439         * java/lang/LinkageError.java: Rewrote from scratch.
3440         * java/lang/IncompatibleClassChangeError.java: Rewrote from
3441         scratch.
3442         * java/lang/NoSuchMethodError.java: Rewrote from scratch.
3444         * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
3445         * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
3446         friend.
3447         * include/cni.h (JvAllocObject): Moved from prims.cc.
3448         Include Class.h.
3449         * prims.cc (JvAllocObject): Moved to cni.h.
3450         (_Jv_AllocObject): Use _Jv_FinalizeObject.
3451         (finalize_name): Removed.
3453 Wed Sep 30 12:09:34 1998  Tom Tromey  <tromey@cygnus.com>
3455         * java/lang/Class.h (Class): Added size() method.
3456         * prims.cc (_Jv_MonitorEnter): Removed.
3457         (_Jv_MonitorExit): Removed.
3458         * java/lang/Object.h (JvSyncInfo): Removed.
3459         * Makefile.in: Rebuilt.
3460         * Makefile.am (nat_headers): Added Cloneable.h,
3461         CloneNotSupportedException.h.
3462         * java/lang/Object.h: Rewrote.
3463         * java/lang/natObject.cc: Rewrote from scratch.
3464         * java/lang/Object.java: Rewrote from scratch.
3466         * java/io/natFile.cc: Conditionally include <dirent.h>.
3467         (list): If no <dirent.h>, always return NULL.
3468         * configure: Rebuilt.
3469         * configure.in: Check for dirent.h.
3471         * prims.cc (lookupArray): Don't use sprintf.
3473         * java/util/Hashtable.java (containsKey): Use `abs' to compute
3474         initial index.
3475         (get): Likewise.
3476         (put): Likewise.
3477         (rehash): Likewise.
3478         (remove): Likewise.
3480         * java/util/Hashtable.java (hsize): Renamed from size to avoid
3481         name conflict with method.
3483         * include/javaprims.h (java::util): Added HashtableEntry.
3485 Tue Sep 29 16:48:01 1998  Warren Levy  <warrenl@cygnus.com>
3487         * java/util/Hashtable.java: Rewritten.
3489 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
3491         * java/io/natFileDescriptor.cc (write): Correctly test `write'
3492         return value.
3493         (write): Likewise.
3495         * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
3496         not `curr_nt'.
3498         * posix-threads.cc (_Jv_CondWait): Now returns int.
3499         * include/javaprims.h (java::lang): Added
3500         IllegalMonitorStateException.
3501         * Makefile.in: Rebuilt.
3502         * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
3503         * include/no-threads.h (_Jv_CondDestroy): Removed.
3504         (_Jv_MutexDestroy): Removed.
3505         (_Jv_CondWait): Now returns int.
3506         (_Jv_CondNotify): Likewise.  Added mutex argument.
3507         (_Jv_CondNotifyAll): Likewise.
3508         (_Jv_MutexLock): Always succeed.
3509         (_Jv_MutexUnlock): Likewise.
3510         * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
3511         (_Jv_HaveMutexDestroy): Define.
3512         (_Jv_CondNotify): Now returns int.  Added mutex argument.
3513         (_Jv_CondNotifyAll): Likewise.
3514         * include/quick-threads.h (_Jv_CondDestroy): Removed.
3515         (_Jv_MutexDestroy): Removed.
3516         (_Jv_CondWait): Now returns int.
3517         (_Jv_CondNotify): Likewise.  Added mutex argument.
3518         (_Jv_CondNotifyAll): Likewise.
3519         * java/lang/natObject.cc (finalize_sync_info): New function.
3520         (init_mutex): Initialize `init' and register finalizer if
3521         required.
3522         (CHECK): New macro.
3523         (init_mutex): Use it.
3524         (notify): Use it.
3525         (notifyAll): Use it.
3526         (wait): Use it.
3527         (notify): Throw IllegalMonitorStateException on failure.
3528         (notifyAll): Likewise.
3529         (wait): Likewise.  Also, throw InterruptedException if
3530         appropriate.
3531         Include cni.h, Thread.h, IllegalMonitorStateException.h,
3532         InterruptedException.h, IllegalArgumentException.h.
3533         * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
3535         * java/lang/natString.cc: Renamed all `JvPriv' functions.
3536         * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
3537         * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
3538         * java/lang/natObject.cc: Renamed all `JvPriv' functions.
3539         * java/lang/natThread.cc: Renamed all `JvPriv' functions.
3540         * quick-threads.cc: Renamed all `JvPriv' functions.
3541         * prims.cc: Renamed all `JvPriv' functions.
3542         * posix-threads.cc: Renamed all `JvPriv' functions.
3543         * nogc.cc: Renamed all `JvPriv' functions.
3544         * no-threads.cc: Renamed all `JvPriv' functions.
3545         * boehm.cc: Renamed all `JvPriv' functions.
3546         * include/quick-threads.h: Renamed all `JvPriv' functions.
3547         * include/posix-threads.h: Renamed all `JvPriv' functions.
3548         * include/no-threads.h: Renamed all `JvPriv' functions.
3549         * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
3551         * include/no-threads.h (JvPrivCondWait): Wrote minimal
3552         implementation.
3553         (JvPrivCondNotify): Do nothing.
3554         (JvPrivCondNotifyAll): Do nothing.
3556         * prims.cc (processClass): Handle case where state is
3557         DOING_CONSTINIT.
3559         * java/lang/natFirstThread.cc: Include <stdlib.h>
3561         * configure: Rebuilt.
3562         * configure.in: Fixed sense of --enable-libjava-debug.
3564         * java/lang/natThread.cc (join): Declare `t' outside the loop so
3565         it can be used afterward by the assertion.
3567         * configure: Rebuilt.
3568         * configure.in: When cross-compiling, assume alloca.
3570         * java/lang/natDouble.cc: Updated alloca magic to avoid use of
3571         __builtin_alloca (autoconf docs are wrong here).
3573         * java/io/natFileDescriptor.cc (close): Set fd to -1 before
3574         closing.
3575         (available): Use `FD_ZERO' (typo fix).
3577 Tue Sep 29 17:43:30 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
3579         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
3580         java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
3581         struct _Jv_Bigint.
3582         * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
3583         java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
3584         struct _Jv_reent.
3586         * java/lang/natDouble.cc: layout changed to match GNU coding standard.
3587         
3588 Tue Sep 29 07:57:13 1998  Anthony Green  <green@cygnus.com>
3590         * java/lang/natDouble.cc: Declare alloca safely.
3592         * configure, include/config.h.in: Rebuilt.
3593         * configure.in: Add alloca check.
3595 Tue Sep 29 00:28:42 1998  Tom Tromey  <tromey@cygnus.com>
3597         * java/lang/natThread.cc (finish_): Hold mutex for interrupt
3598         condition while calling notify.
3599         (join): Remove `curr_nt' from `nt's join list, not vice versa.
3600         (interrupt): Hold mutex for interrupt condition while calling
3601         notify.
3603         * java/lang/natString.cc (init): Allocate and try to read `count'
3604         characters, not `count - offset' characters.
3606         * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
3607         Correctly compute `count'.
3609         * java/lang/Boolean.java (getBoolean): Return false if property
3610         not found.
3612         * java/lang/System.java (setProperties): Set prop_init.
3614 Mon Sep 28 12:39:25 1998  Tom Tromey  <tromey@cygnus.com>
3616         * java/io/PrintStream.java (println): Use line.separator, not
3617         file.separator.
3618         * java/lang/System.java (out, err): Make both autoflush streams.
3619         * java/io/ByteArrayOutputStream.java (write): Increment `count'.
3621         * include/config.h.in: Rebuilt.
3622         * acconfig.h (HAVE_MEMCPY): Removed.
3623         * configure: Rebuilt.
3624         * configure.in: Never define HAVE_MEMCPY.
3626         * java/lang/natString.cc: Don't include OutOfMemoryError.h or
3627         Class.h.
3628         (_Jv_AllocString): Use JvAllocObject again.
3629         * java/lang/Class.h (thread): New field.
3630         (_Jv_AllocString): No longer a friend.
3631         * prims.cc (processClass): Removed dead code.  Changed to more
3632         closely follow the Java Language Specification.
3633         (processClass): Return early if already at the right state.
3635         * prims.cc (JvNewStringUTF): Removed.
3636         * include/cni.h (JvNewStringUTF): New function.
3637         (_Jv_NewStringUTF): Declare as `extern "C"'.
3638         * java/lang/natString.cc (_Jv_NewStringUTF): New function.
3640         * java/lang/natDouble.cc: Added copyright info and header
3641         comment.  Include <stdlib.h>.
3642         (doubleValueOf): Use alloca, not malloc.  Allocate 3 times as many
3643         bytes as are chars in string.
3645 Sat Sep 26 00:19:27 1998  Tom Tromey  <tromey@cygnus.com>
3647         * java/util/Hashtable.java (hkeys): Member renamed from to avoid
3648         clash with method.
3649         (hsize): Likewise.
3651         * java/lang/System.java (init_properties): Now native.
3652         * java/lang/natSystem.cc (init_properties): New method.
3653         Include java/util/Properties.h.
3655         * Makefile.in: Rebuilt.
3656         * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
3657         OutputStreamWriter.h, ByteArrayInputStream.h,
3658         InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
3659         Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
3660         SyncFailedException.h, EOFException.h, FileNotFoundException.h,
3661         Properties.h, Hashtable.h, Dictionary.h.
3662         (CFLAGS): Removed.
3664         * include/javaprims.h (java::io): Added Reader, Writer,
3665         InputStreamReader, OutputStreamWriter,
3666         UnsupportedEncodingException, ByteArrayInputStream,
3667         ByteArrayOutputStream, EOFException, SyncFailedException,
3668         PushbackInputStream.
3669         (java::lang): Added Cloneable.
3670         (java::util): Added NoSuchElementException, VectorEnumeration,
3671         Dictionary, HashtableEnumeration, PropertiesEnumeration.
3673         * java/io/PipedReader.java: New file.
3675 Fri Sep 25 00:11:25 1998  Tom Tromey  <tromey@cygnus.com>
3677         * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
3678         up A-Z.
3680         * java/io/io-defs.h: Removed.
3682         * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
3683         (FileInputStream): Use new constructor.  Can throw IOException.
3685         * java/lang/System.java (getProperty): Don't throw
3686         NullPointerException.
3688         * java/io/RandomAccessFile.java: Rewrote from scratch.
3690         * java/io/natFileDescriptor.cc: Include EOFException.h.
3691         (seek): New method.
3692         (length): New method.
3693         (getFilePointer): New method.
3694         (read): New method.
3695         (available): New method.
3696         * java/io/FileDescriptor.java (SET, CUR): New constants.
3697         (seek, length, getFilePointer, read, available): New decls.
3699         * java/io/PipedWriter.java: New file.
3700         * java/io/StringWriter.java: New file.
3701         * java/io/CharArrayWriter.java: New file.
3702         * java/io/CharConversionException.java: New file.
3703         * java/io/BufferedWriter.java: New file.
3704         * java/io/FilterWriter.java: New file.
3705         * java/io/FileWriter.java: New file.
3707         * java/lang/natString.cc: Include ByteArrayOutputStream.h,
3708         OutputStreamWriter.h, NullPointerException.h,
3709         ByteArrayInputStream.h, InputStreamReader.h.
3710         (getBytes): New method.
3711         (init): Throw NullPointerException.
3712         (init): New function.
3713         * java/lang/String.java (getBytes): Added missing decl.
3714         (getBytes): New method.
3715         (String): Added byte[]-based constructors.
3716         (copyValueOf): Wrote.
3717         (init): Declare variant which takes byte array and encoding.
3718         Import java.io.UnsupportedEncodingException.
3720         * java/io/File.java: Rewrote from scratch.
3721         * java/io/natFileDescriptor.cc: Rewrote from scratch.
3722         * java/io/FileDescriptor.java: Rewrote from scratch.
3723         * java/io/FilenameFilter.java: Rewrote from scratch.
3725 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
3727         * java/io/SyncFailedException.java: New file.
3728         * java/io/UTFDataFormatException.java: Rewrote from scratch.
3729         * java/io/InterruptedIOException.java: Rewrote from scratch.
3730         * java/io/FileNotFoundException.java: Rewrote from scratch.
3731         * java/io/EOFException.java: Rewrote from scratch.
3732         * java/io/IOException.java: Rewrote from scratch.
3733         * java/io/PrintStream.java: Rewrote from scratch.
3734         * java/io/DataOutputStream.java: Rewrote from scratch.
3735         * java/io/BufferedOutputStream.java: Rewrote from scratch.
3736         * java/io/FilterOutputStream.java: Rewrote from scratch.
3737         * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
3738         * java/io/PipedOutputStream.java: Rewrote from scratch.
3739         * java/io/FileOutputStream.java: Rewrote from scratch.
3740         * java/io/OutputStream.java: Rewrote from scratch.
3741         * java/io/DataOutput.java: Rewrote from scratch.
3743 Mon Sep 28 22:59:54 1998  Per Bothner  <bothner@cygnus.com>
3745         * prims.cc (_Jv_CheckCast):  Add missing ! operator.
3747 Mon Sep 28 15:50:06 1998  Anthony Green  <green@cygnus.com>
3749         * configure.in: Add --enable-libjava-debug
3751         * Makefile.am (nat_headers): Add java/lang/Float.h and 
3752         java/lang/Double.h
3754         * acconfig.h: Add DEBUG and HAVE_MEMCPY.
3756         * Makefile.in, configure, include/config.h.in: Rebuilt.
3758 Mon Sep 28 17:05:58 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
3760         * java/lang/Float.java: Rewritten
3761         * java/lang/Double.java: Rewritten
3762         * java/lang/natFloat.cc: toString() added.
3763         * java/lang/natDouble.cc: toString() added.
3764         * java/lang/natDouble.cc: doubleValueOf() added.
3765         * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h, 
3766         java/lang/strtod.c: added.
3767         * ieeefp.h: __sparc added.
3768         * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
3769         
3770 Thu Sep 24 13:30:16 1998  Tom Tromey  <tromey@cygnus.com>
3772         * include/javaprims.h (java::lang): Added
3773         CloneNotSupportedException.
3775         * java/lang/Object.java (clone): No longer native.  Implemented.
3776         * java/lang/natObject.cc (clone): Removed.
3778 Wed Sep 23 12:03:38 1998  Tom Tromey  <tromey@cygnus.com>
3780         * prims.cc: Don't make definitions `extern "C"'.
3781         (_Jv_RegisterClass): Renamed from registerClass.
3782         * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
3783         (_Jv_NewArray): Likewise.
3784         (_Jv_NewMultiArray): Likewise.
3785         (_Jv_CheckCast): Likewise.
3786         (_Jv_LookupInterfaceMethod): Likewise.
3787         (_Jv_CheckArrayStore): Likewise.
3788         (_Jv_RegisterClass): Likewise.
3790         * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
3791         * configure: Rebuilt.
3792         * configure.in: Don't check for fmod; it is provided by the fdlibm
3793         code.
3794         * prims.cc (fmod): Removed.
3796         * java/lang/natString.cc (charAt): Use _Jv_uint.
3797         * java/lang/Class.h (class JvField): Use _Jv_ushort.
3798         * prims.cc (HASH_CHARS): Use _Jv_ushort.
3799         (equalUtf8Consts): Likewise.
3800         (internalAddClass): Use _Jv_uint.
3801         (processClass): Likewise.
3802         * include/javaprims.h (_Jv_ushort): Renamed from uint16.
3803         (_Jv_uint): Renamed from uint32.
3804         (struct _Jv_Utf8Const): Changed members to use new type names.
3806         * configure: Rebuilt.
3807         * configure.in: Don't check for memcpy.  Require memmove and a way
3808         to get the time.
3809         * java/lang/natSystem.cc (arraycopy): Removed dead code, and
3810         #error.
3811         (currentTimeMillis): Don't use #error.
3813 Tue Sep 22 18:00:16 1998  Andrew Haley  <aph@korai.cygnus.co.uk>
3815         * java/lang/Math.java: static member random renamed to random_ to
3816         avoid conflict with member function of the same name.
3817         * include/javaprims.h: java.util.Random added.
3819 Tue Sep 22 13:53:14 1998  Tom Tromey  <tromey@cygnus.com>
3821         * include/java-chartables.h: Regenerated.
3822         * chartables.pl: End COMPACT_CHARACTER #if after fast tables
3823         printed.
3825 Tue Sep 22 17:17:52 1998  Andrew Haley  <aph@tikka.cygnus.co.uk>
3827         * java/lang/Math.java: Rewritten.
3828         * java/lang/natMath.cc: New file.
3829         * Files added from fdlibm:
3830           java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
3831           java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
3832           java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
3833           java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
3834           java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
3835           java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
3836           java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
3837           java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
3838           java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
3839           java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
3840           java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
3841           java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
3842           java/lang/k_cos.c, java/lang/sf_ceil.c,
3843           java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
3844           java/lang/ieeefp.h, java/lang/fdlibm.h
3845         * Makefile.am: rules added for compiling C files from fdlibm.
3846         
3847 Mon Sep 21 15:40:58 1998  Tom Tromey  <tromey@cygnus.com>
3849         * chartables.pl: Minor documentation fixes.
3851         * configure: Rebuilt.
3852         * configure.in: Fixed --help output for --enable-fast-character.
3854 Thu Sep 17 11:03:27 1998  Tom Tromey  <tromey@cygnus.com>
3856         * configure: Rebuilt.
3857         * configure.in: Recognize --enable-fast-character.
3858         * acconfig.h (COMPACT_CHARACTER): New define.
3859         * include/config.h.in: Rebuilt.
3860         * include/java-chartables.h: New file.
3861         * Makefile.in: Rebuilt.
3862         * Makefile.am (nat_files): Added natCharacter.o.
3863         * java/lang/natCharacter.cc: New file.
3864         * chartables.pl (set_attribute): New function.
3865         (@attributes, @second_attributes): New globals.
3866         ($ROMAN_START, $ROMAN_END): Likewise.
3867         (process_char): Call set_attribute when required.
3868         (print_char): Just print hex value.
3869         (print_block): Generate C++ syntax.
3870         (print_numerics): Likewise.
3871         (print_single_map): Likewise.
3872         (print_all_block): Likewise.
3873         (print_case_table): Likewise.
3874         (print_fast_tables): New function.
3875         Generate C++ code suitable for a header file.
3876         * java/lang/Character.java (table_search): Removed.
3877         (digit_value): Now native.
3878         (getNumericValue): Likewise.
3879         (getType): Likewise.
3880         Removed all automatically-generated tables.
3881         (Tamil_Digit_One): Removed.
3882         (isSpaceChar): Now native.
3883         (isTitleCase): Likewise.
3884         (isLowerCase): Likewise.
3885         (isUpperCase): Likewise.
3886         (toLowerCase): Likewise.
3887         (toTitleCase): Likewise.
3888         (toUpperCase): Likewise.
3889         (isDefined): Fixed sense of test.
3891 Wed Sep 16 12:00:19 1998  Tom Tromey  <tromey@cygnus.com>
3893         * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
3894         FIXME comment.
3895         (regionMatches): Likewise.
3897 Tue Sep 15 14:35:12 1998  Tom Tromey  <tromey@cygnus.com>
3899         * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
3901         * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
3902         a friend.
3903         * java/lang/natString.cc (_Jv_AllocString): For now, don't call
3904         _Jv_AllocObject.
3906         * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
3907         not a char.
3909         * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
3911 Fri Sep 11 14:01:08 1998  Tom Tromey  <tromey@cygnus.com>
3913         * prims.cc (instanceof_class): Removed.
3914         (instanceof_array): Likewise.
3915         (instanceof): Likewise.
3916         (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
3917         (_Jv_CheckCast): Likewise.
3918         * java/lang/natClass.cc (isAssignableFrom): New method.
3919         * java/lang/Class.java (isAssignableFrom): Now native.
3921         * include/cni.h (JvThrow): Use `extern inline'.
3922         (JvAllocObject): Likewise.
3923         (JvInitClass): Likewise.
3925         * java/lang/natSystem.cc (arraycopy): Only check class of source
3926         object if not null.
3928         * prims.cc (_Jv_CheckArrayStore): Wrote.
3929         (_Jv_MonitorEnter): Prefer `JvThrow'.
3930         Include ArrayStoreException.h.
3931         (_Jv_CheckCast): Indentation cleanup.
3933 Thu Sep 10 18:59:29 1998  Tom Tromey  <tromey@cygnus.com>
3935         * chartables.pl: New file.
3936         * java/lang/Character.java: Rewrote from scratch.
3938 Fri Sep 18 18:15:58 1998  Warren Levy  <warrenl@cygnus.com>
3940         * java/lang/ArithmeticException.java,
3941         java/lang/ArrayIndexOutOfBoundsException.java,
3942         java/lang/ArrayStoreException.java,
3943         java/lang/ClassCastException.java,
3944         java/lang/ClassNotFoundException.java,
3945         java/lang/CloneNotSupportedException.java,
3946         java/lang/Exception.java, java/lang/IllegalAccessException.java,
3947         java/lang/IllegalArgumentException.java,
3948         java/lang/IllegalMonitorStateException.java,
3949         java/lang/IllegalThreadStateException.java,
3950         java/lang/IndexOutOfBoundsException.java,
3951         java/lang/InstantiationException.java,
3952         java/lang/InterruptedException.java,
3953         java/lang/NegativeArraySizeException.java,
3954         java/lang/NoSuchMethodException.java,
3955         java/lang/NullPointerException.java,
3956         java/lang/NumberFormatException.java,
3957         java/lang/RuntimeException.java, java/lang/SecurityException.java,
3958         java/lang/StringIndexOutOfBoundsException.java: Rewritten.
3960         * java/lang/IllegalStateException.java,
3961         java/lang/NoSuchFieldException.java,
3962         java/lang/UnsupportedOperationException.java: Created.
3964 Fri Sep 18 15:01:42 1998  Warren Levy  <warrenl@cygnus.com>
3966         * java/lang/Integer.java, java/lang/Long.java: Rewritten.
3967         * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
3969 Fri Sep 11 16:49:19 1998  Per Bothner  <bothner@cygnus.com>
3971         * prims.cc (JvRunMain):  No longer need to call _Jv_InitClass.
3973 Thu Sep 10 12:23:55 1998  Warren Levy  <warrenl@cygnus.com>
3975         * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
3977         * Makefile.in: Rebuilt.
3979         * include/javaprims.h (java::lang): Added
3980         StringIndexOutOfBoundsException.
3982         * java/lang/String.java: Added header comment and FIXME comment for 
3983         missing constructors/methods.
3984         (endsWith): Adjusted offset into string to look at just the last chars.
3985         Commented out undocumented method.
3987         * java/lang/natString.cc: Added includes for
3988         ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
3989         (String::init): Throw StringIndexOutOfBoundsException.
3990         (String::charAt): Throw StringIndexOutOfBoundsException.
3991         (String::substring): Throw StringIndexOutOfBoundsException.
3992         (String::getChars): Throw ArrayIndexOutOfBoundsException.
3993         (String::getBytes): Throw ArrayIndexOutOfBoundsException.
3994         (String::compareTo): Return difference/offset between chars/strings.
3996 Tue Sep  8 13:22:33 1998  Warren Levy  <warrenl@cygnus.com>
3998         * java/lang/Boolean.java (TYPE): Added comment.
3999         
4000         * java/lang/Byte.java (decode): Added - commented out until dependent
4001         code for Integer is written.
4002         (compareTo): JDK 1.2 methods written.
4003         (hashCode): Added comment to note that values have been verified.
4004         
4005         * java/lang/Short.java (decode): Added - commented out until dependent
4006         code for Integer is written.
4007         (compareTo): JDK 1.2 methods written.
4008         (hashCode): Added comment to note that values have been verified.
4010         * java/lang/Comparable.java: Created - JDK 1.2 interface.
4012 Fri Sep  4 10:36:35 1998  Tom Tromey  <tromey@cygnus.com>
4014         * include/javaprims.h (java::lang): Added VirtualMachineError,
4015         OutOfMemoryError.
4016         * Makefile.in: Rebuilt.
4017         * Makefile.am (nat_headers): Added OutOfMemoryError.h,
4018         VirtualMachineError.h.
4019         * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
4020         (lookupArray): Likewise.
4021         (makeUtf8Const): Likewise.
4022         (_Jv_AllocObject): Likewise.
4023         (_Jv_NewObjectArray): Likewise.
4024         Include OutOfMemoryError.h.
4026         * java/io/natFileDescriptor.cc (newstr): Removed.  Changed callers
4027         to use JvNewStringLatin1.
4029         * java/io/io-defs.h: Include java/lang/IOException.h.
4030         * Makefile.in: Rebuilt.
4031         * Makefile.am (nat_headers): Added
4032         ArrayIndexOutOfBoundsException.h,
4033         ClassFormatError.h,ClassNotFoundException.h,
4034         ClassCircularityError.h, ClassCastException.h,
4035         IncompatibleClassChangeError.h, AbstractMethodError.h,
4036         IllegalAccessError.h, LinkageError.h, Error.h,
4037         NegativeArraySizeException.h, IOException.h.
4038         * include/cni.h (SignalError): Removed declaration.
4039         * java/util/natDate.cc (setTime): Use JvFail, not sorry.
4040         * java/lang/natObject.cc (clone): Use JvFail, not sorry.
4041         * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
4042         (newInstance): Likewise.
4043         (forName): Likewise.
4044         * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
4045         sorry.
4046         (read): Use JvThrow, not SignalError.
4047         (read): Likewise.
4048         (write): Likewise.
4049         (skip): Likewise.
4050         (close): Likewise.
4051         (open_read): Likewise.
4052         (open_write): Likewise.
4053         (ftell): Likewise.
4054         (fseek): Likewise.
4055         (newstr): New function.
4056         * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
4057         sorry.
4058         (lastModifiedUnchecked): Likewise.
4059         (lengthUnchecked): Likewise.
4060         * include/javaprims.h (sorry): Removed declaration.
4061         (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
4062         ClassFormatError, ClassNotFoundException, ClassCircularityError,
4063         ClassCastException, IncompatibleClassChangeError,
4064         AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
4065         * prims.cc (instanceof_array): Use JvFail, not sorry.
4066         (sorry): Removed.
4067         Include ArrayIndexOutOfBoundsException.h,
4068         ClassFormatError.h,ClassNotFoundException.h,
4069         ClassCircularityError.h, ClassCastException.h,
4070         IncompatibleClassChangeError.h, AbstractMethodError.h,
4071         IllegalAccessError.h, NegativeArraySizeException.h.
4072         (_Jv_ThrowBadArrayIndex): Implemented.
4073         (JvNewStringUTF): Use JvFail, not sorry.
4074         (_Jv_FindClass): Likewise.
4075         (_Jv_NewArray): Likewise.
4076         (throwException): Removed.
4077         (getClass): Use JvThrow.
4078         (processClass): Likewise.
4079         (_Jv_NewObjectArray): Likewise.
4080         (_Jv_NewMultiArray): Likewise.
4081         (_Jv_CheckCast): Likewise.
4082         (_Jv_LookupInterfaceMethod): Likewise.
4083         (SignalError): Removed.
4084         (getClass): Use _Jv_NewStringUtf8Const to create String.
4086         * java/lang/natSystem.cc (arraycopy): Throw
4087         ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
4089         * Makefile.in: Rebuilt.
4090         * Makefile.am (GCJH): Renamed.  Now use `gcjh'.  Changed all
4091         users.
4092         * include/java-array.h: Mention gcjh, not gjavah.
4094         * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
4095         (canReadUnchecked): Likewise.
4096         (canWriteUnchecked): Likewise.
4097         (isFileUnchecked): Likewise.
4098         * java/io/natFileDescriptor.cc: Don't include cni.h.
4100         * java/lang/Thread.java (run__): Declare.
4101         * java/lang/natThread.cc (run__): New method, to avoid compiler
4102         warning.
4103         (start): Use run__, not run_.
4105         * java/io/io-defs.h: Include cni.h and jvm.h.
4107 Thu Sep  3 18:20:08 1998  Per Bothner  <bothner@cygnus.com>
4109         Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
4110         * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1):  Moved
4111         to natString.cc (with suitable renaming, inlines etc).
4112         (javaString2CString):  Removed.  Subsumed by _Jv_GetStringUTFRegion.
4113         * java/lang/Class.h:  Renamed Utf8Const to _Jv_Utf8Const.
4114         * java/lang/String.h:  Removed - now generated using gjavah.
4115         * java/lang/String.java:  Re-written from scratch. Many native methods.
4116         * java/lang/natDouble.cc, java/util/natDate.cc:  #include <cni.h>.
4117         * java/lang/natString.cc:  Many functions re-written for "compact
4118         strings" representation, or native java.lang.String methods added.
4119         (Utf8Const2JavaString):  Renamed to _Jv_NewStringUtf8Const.
4120         (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion):  New methods.
4121         * java/lang/natClass.cc (getName):  Use new _Jv_NewStringUtf8Const.
4122         * java/io/natFileDescriptor.cc:  Use new JvGetStringUTFRegion.
4123         * include/cni.h:  Add inline method.
4124         * include/java-array.h (jobjectArrayjchar):  gjavah bug work-around.
4125         * include/javaprims.h:  Moved some stuff frm String.h.
4126         * include/jvm.h (UTF8_GET, Utf8Const, StringClass):  Moved here.
4127         * Makefile.am (nat_header):  Added Character.h and String.h.
4128         (String.h):  Add new rule.
4130 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
4132         * no-threads.cc: Include config.h, cni.h, jvm.h.  Don't include
4133         java-assert.h.
4134         * posix-threads.cc: Include cni.h, jvm.h.
4135         * quick-threads.cc: Include cni.h, jvm.h.
4136         * nogc.cc: Include cni.h, not javaprims.h.
4137         * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
4138         * java/lang/natThread.cc: Rearranged #include ordering.  Don't
4139         include java-assert.h.
4140         * java/lang/natSystem.cc: Include cni.h.  Don't include
4141         java-assert.h.
4142         * java/lang/natRuntime.cc: Include cni.h.  Don't include
4143         java-assert.h.
4144         * prims.cc: Rearranged #include ordering.  Don't include
4145         java-array.h or java-assert.h.
4146         * boehm.cc: Include config.h, cni.h.
4147         * exception.cc: Include config.h, cni.h.
4148         * include/jvm.h: Include java-assert.h.
4149         * include/cni.h: Include java/lang/Object.h.  Don't include
4150         java-threads.h or java-array.h.
4152 Thu Sep  3 16:03:08 1998  Warren Levy  <warrenl@cygnus.com>
4154         * java/lang/Boolean.java: Rewritten.
4156 Thu Sep  3 10:28:16 1998  Tom Tromey  <tromey@cygnus.com>
4158         * java/lang/natFirstThread.cc (main_func): New typedef.
4159         (run): Use main_func, not JvPrivThreadStartFunc.
4160         * include/no-threads.h (JvPrivThreadStartFunc): Use correct
4161         argument type.
4162         * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
4163         argument type.
4164         * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
4165         argument type.
4167         Can't throw Java exceptions with C++ `throw':
4168         * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
4169         * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
4170         (setPriority): Likewise.
4171         (sleep): Likewise.
4172         (start): Likewise.
4173         (stop): Likewise.
4174         * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
4175         * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
4177         Can't catch Java exceptions from C++:
4178         * java/lang/natThread.cc (finish_): New method.
4179         (run_): Removed.
4180         * java/lang/Thread.java (run_): Rewrote in Java.
4181         (finish_): New native method.
4183 Wed Sep  2 17:30:39 1998  Warren Levy  <warrenl@cygnus.com>
4185         * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
4187         * include/javaprims.h (java::io): Added Serializable.
4189 Wed Sep  2 15:22:00 1998  Warren Levy  <warrenl@cygnus.com>
4191         * java/util/EmptyStackException.java,
4192         java/util/NoSuchElementException.java: Rewritten.
4193         
4194         * java/util/ConcurrentModificationException.java,
4195         java/util/MissingResourceException.java,
4196         java/util/TooManyListenersException.java: Created.
4198 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
4200         * include/cni.h (JvThrow): New function.
4201         * include/javaprims.h (_Jv_Throw): Declare.
4203 Wed Sep  2 14:07:48 1998  Warren Levy  <warrenl@cygnus.com>
4205         * java/util/Observable.java: Rewritten.
4207 Wed Sep  2 13:36:57 1998  Tom Tromey  <tromey@cygnus.com>
4209         * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
4210         (_Jv_MonitorEnter): Throw NullPointerException if object is null.
4211         Include NullPointerException.h.
4213 Tue Sep  1 12:07:35 1998  Tom Tromey  <tromey@cygnus.com>
4215         * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
4216         assignability checks.  Don't bother using memcpy.
4218         * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
4219         (started): Removed.
4220         * include/quick-threads.h (JvPrivThreadWait): New function.
4221         * include/no-threads.h (JvPrivThreadWait): New function.
4222         * include/posix-threads.h (JvPrivThreadWait): New function.
4223         * prims.cc (JvRunMain): Call JvPrivThreadWait.
4225         * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
4227         * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
4228         offsets by size of type that is being copied.
4230         * java/lang/natThread.cc (start): Don't pass `object' argument to
4231         JvPrivThreadStart.
4232         * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
4233         * posix-threads.cc (JvPrivThreadStart): Removed `object'
4234         argument.
4235         * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
4236         always pass thread as object.
4237         * include/quick-threads.h, include/posix-threads.h,
4238         include/no-threads.h (JvPrivThreadStart): Removed `object'
4239         argument.
4241 Mon Aug 31 19:11:53 1998  Warren Levy  <warrenl@cygnus.com>
4243         * java/util/Dictionary.java: Rewritten.
4245 Mon Aug 31 14:35:55 1998  Tom Tromey  <tromey@cygnus.com>
4247         * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
4248         (JvPrivThreadDestroy): Likewise.
4249         
4250 Mon Aug 31 12:56:01 1998  Warren Levy  <warrenl@cygnus.com>
4252         * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
4254 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
4256         * java/lang/natSystem.cc: Rewrote from scratch.
4257         * java/lang/System.java: Rewrote from scratch.
4258         * java/lang/Class.h (Class): Declare isAssignableFrom.
4259         * include/javaprims.h (java::lang): Added ArrayStoreException,
4260         IndexOutOfBoundsException.
4261         * Makefile.in: Rebuilt.
4262         * Makefile.am (nat_headers): Added ArrayStoreException.h,
4263         IndexOutOfBoundsException.h.
4264         * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
4265         * include/jvm.h (_Jv_HashCode): New function.
4267         * java/lang/natThread.cc (suspend): Call checkAccess.
4268         (resume): Likewise.
4269         * java/lang/Thread.java (setDaemon): Call checkAccess.
4271 Thu Aug 27 12:24:40 1998  Tom Tromey  <tromey@cygnus.com>
4273         * java/lang/Runtime.java: Rewrote from scratch.
4274         * java/lang/natRuntime.cc: Rewrote from scratch.
4276         * nogc.cc (JvPrivGCTotalMemory): New function.
4277         (JvPrivGCFreeMemory): Likewise.
4278         (total): New global.
4279         (JvPrivAllocObj): Increment total.
4280         (JvPrivAllocArray): Likewise.
4281         (JvPrivAllocBytes): Likewise.
4282         * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
4283         * boehm.cc (JvPrivGCTotalMemory): New function.
4284         (sum_blocks): Likewise.
4285         (JvPrivGCFreeMemory): Likewise.
4287 Wed Aug 26 12:30:32 1998  Tom Tromey  <tromey@cygnus.com>
4289         * include/javaprims.h (java::lang): Added FirstThread.
4290         * java/lang/natFirstThread.cc: New file.
4291         * java/lang/FirstThread.java: New file.
4292         * prims.cc (main_signature): Removed.
4293         (main_name): Removed.
4294         #include FirstThread.h.
4295         * Makefile.in: Rebuilt.
4296         * Makefile.am (TFRIEND): Removed.
4297         (java/lang/Thread.h): Likewise.
4298         (FTFRIEND): New macro.
4299         (java/lang/FirstThread.h): New target.
4300         (nat_files): Added natFirstThread.o.
4301         (nat_headers): Added FirstThread.h.
4302         * include/jvm.h (_Jv_StartFirstThread): Don't declare.
4303         * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
4305         * java/lang/Thread.java (setName): Throw IllegalArgumentException
4306         if name is null.
4307         (Thread): Likewise.
4309         * java/lang/natThread.cc (start): Synchronize the thread.
4310         (stop): Synchronize the thread.
4312         * java/lang/ThreadDeath.java: Rewrote from scratch.
4314         * Makefile.in: Rebuilt.
4315         * Makefile.am (TGFRIEND): New macro.
4316         (java/lang/ThreadGroup.h): New target.
4317         ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
4318         native headers.
4319         ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
4321         * nogc.cc: Include config.h.
4323         * java/lang/ThreadGroup.java: Rewrote from scratch.
4325 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
4327         * java/lang/Thread.java (checkAccess): Only call in to security
4328         manager if it exists.
4329         (Thread): Don't check access when creating the first thread.  Add
4330         this thread to the appropriate ThreadGroup.
4332         * java/lang/natThread.cc (run_): Call uncaughtException method on
4333         the ThreadGroup.
4335         * java/lang/Runnable.java: Rewrote from scratch.
4336         * java/lang/Thread.java: Updated copyright comment to correct
4337         form.
4339 Wed Aug 26 15:16:18 1998  Warren Levy  <warrenl@cygnus.com>
4341         * java/util/Random.java: Rewritten.
4343 Wed Aug 26 14:25:39 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
4345         * prims.cc (_Jv_NewMultiArray): Need one more slot to store
4346         trailing 0 in array[].
4348 Wed Aug 26 12:21:06 1998  Anthony Green  <green@cygnus.com>
4350         * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, 
4351         and RUNTESTFLAGS from AM_MAKEFLAGS.
4352         (SUBDIRS): Conditionally include testsuite.
4353         * Makefile.in: Rebuilt.
4355 Tue Aug 25 18:14:53 1998  Anthony Green  <green@cygnus.com>
4357         * java/lang/Object.h: Include java-assert.h.
4359 Tue Aug 25 17:33:57 1998  Anthony Green  <green@cygnus.com>
4361         * Makefile.am: Add testsuite directory.
4362         * configure.in: Build testsuite/Makefile.
4363         * Makefile.in, configure: Rebuilt.
4364         
4365 Tue Aug 25 00:12:54 1998  Tom Tromey  <tromey@cygnus.com>
4367         * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
4368         * include/jvm.h (_Jv_StartFirstThread): Declare.
4370         * include/javaprims.h (java::lang): Added Exception,
4371         RuntimeException.
4373         * Makefile.in: Rebuilt.
4374         * Makefile.am (nat_headers): Added NullPointerException.h,
4375         InterruptedException.h, IllegalArgumentException.h, Exception.h,
4376         Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
4377         (java/lang/Thread.h): New target.
4378         (TFRIEND): New macro
4380         * include/java-assert.h (JvFail): Use 0 and not NULL.
4382         * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
4383         instead of assuming we are a friend of Thread.
4384         * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
4385         instead of assuming we are a friend of Thread.
4387 Mon Aug 24 15:58:36 1998  Tom Tromey  <tromey@cygnus.com>
4389         * java/lang/natThread.cc: Rewrote from scratch.
4390         * java/lang/Thread.java: Rewrote from scratch.
4391         * prims.cc (JvRunMain): Use new Thread constructor.
4392         * include/javaprims.h (java::lang): Added InterruptedException.
4393         * Makefile.in: Rebuilt.
4394         * Makefile.am (nat_headers): Added java/lang/Thread.h.
4395         * java/lang/Thread.h: Removed.
4396         * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
4397         * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
4398         argument.
4399         * posix-threads.cc (JvPrivThreadJoin): Removed.
4400         (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
4401         (really_start): Don't notify join_cond.
4402         (JvPrivThreadStart): Added `data' argument.
4403         * include/no-threads.h (JvPrivThreadInterrupt): Removed.
4404         (JvPrivThreadJoin): Likewise.
4405         Use JvFail instead of sorry.
4406         (JvPrivThreadSuspend): Removed.
4407         (JvPrivThreadResume): Removed.
4408         * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
4409         (JvPrivThreadJoin): Likewise.
4410         (JvPrivThreadSuspend): Use JvFail.
4411         (JvPrivThreadResume): Likewise.
4412         (JvPrivThreadSuspend): Removed.
4413         (JvPrivThreadResume): Likewise.
4414         * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
4415         (JvPrivThread_t): Removed join_mutex, join_cond.
4416         Use JvFail instead of sorry.
4417         (JvPrivThreadSuspend): Removed.
4418         (JvPrivThreadResume): Likewise.
4420 Tue Aug 25 12:50:13 1998  Warren Levy  <warrenl@cygnus.com>
4422         * java/util/Observer.java: Rewritten
4423         * java/util/Enumeration.java: Rewritten
4425 Tue Aug 25 11:33:54 1998  Warren Levy  <warrenl@cygnus.com>
4427         * java/util/StringTokenizer.java: Rewritten
4428         * java/util/Stack.java: Added COPYRIGHT-TBD comment
4429         * java/util/Vector.java: Added COPYRIGHT-TBD comment
4430         * java/io/Serializable.java: Added COPYRIGHT-TBD comment
4431         
4432 Fri Aug 21 10:14:22 1998  Tom Tromey  <tromey@cygnus.com>
4434         * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
4435         not defined.
4437         * no-threads.cc (JvPrivThreadStart): Use JvAssert.
4438         Include java-assert.h.
4439         * include/java-assert.h: New file.
4440         * prims.cc (_Jv_Abort): New function.
4441         Include java-assert.h, not assert.h.
4442         (_Jv_MonitorExit): Use JvAssert.
4443         (resolveConstants): Likewise.
4444         (processClass): Likewise.
4445         (JvRunMain): Assert that method is found.
4447         * configure: Rebuilt.
4448         * configure.in: Check for test subdir.
4449         * Makefile.in: Rebuilt.
4450         * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
4452         * prims.cc (JvRunMain): Use NORM_PRIORITY.
4453         * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
4455         * prims.cc (resolveConstants): Removed unused variables.
4456         (processClass): Likewise.
4458         * include/quick-threads.h (JvPrivThreadCurrent): Use
4459         coop_getspecific.
4460         * quick-threads.cc (destroy_data): New function.
4461         (JvPrivInitThreads): Create key.
4462         (JvPrivThreadKey): New global.
4463         (JvPrivThreadStart): Use coop_setspecific.
4465         * include/quick-threads.h, include/posix-threads.h,
4466         include/no-threads.h, no-threads.cc, quick-threads.cc,
4467         posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
4469 Thu Aug 20 10:57:30 1998  Tom Tromey  <tromey@cygnus.com>
4471         * include/no-threads.h (JvPrivThreadInitData): Don't set
4472         JvPrivOnlyThread.
4474         * include/quick-threads.h (JvPrivCondWait): coop function now
4475         takes microseconds.
4476         (JvPrivThreadJoin): Likewise.
4478         * java/lang/Thread.h (Thread): Updated declaration of
4479         JvPrivThreadStart.
4480         * include/quick-threads.h, include/posix-threads.h: Updated
4481         declaration of JvPrivThreadStart.
4482         * include/no-threads.h (JvPrivThreadStart): Changed definition
4483         into declaration.
4484         * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
4485         * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
4486         * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
4488 Wed Aug 19 14:53:59 1998  Tom Tromey  <tromey@cygnus.com>
4490         * quick-threads.cc (qthrow): New function.
4491         (JvPrivInitThreads): New function.
4492         (started): New global.
4493         (JvPrivThreadStart): Call coop_start if required.
4494         * include/quick-threads.h (JvPrivThreadCancel): Implement.
4495         (JvPrivThreadDestroy): Likewise.
4496         (JvPrivInitThreads): Removed.
4497         * include/posix-threads.h (JvPrivThreadCancel): Added error
4498         argument.
4499         * java/lang/natThread.cc (stop_): Pass exception to
4500         JvPrivThreadCancel.
4502 Tue Aug 18 12:58:22 1998  Tom Tromey  <tromey@cygnus.com>
4504         * include/javaprims.h (java::lang): Added
4505         IllegalArgumentException, IllegalThreadStateException, Math,
4506         NullPointerException, ThreadDeath.
4507         (java::util): Added Enumeration.
4509         * Makefile.in: Rebuilt.
4510         * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
4512         * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
4513         now public.
4514         (threadsv): Renamed from threads to avoid clash in C++ header.
4515         (groupsv): Likewise.
4516         * include/no-threads.h (JvPrivThreadStart): Removed.
4517         * no-threads.cc (JvPrivThreadStart): New function.
4518         * java/lang/Thread.java (Thread): New constructor for internal use.
4519         * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
4520         (Thread): Declare constructor.
4521         * prims.cc (JvRunMain): Create the initial Thread and
4522         ThreadGroup.
4523         Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
4524         * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
4525         Removed `daemon' argument.
4527         * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
4528         * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
4529         a friend.
4530         * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
4532         * Makefile.in: Rebuilt.
4533         * Makefile.am (INCLUDES): Include THREADINCS.
4535         * configure: Rebuilt.
4536         * configure.in: Recognize `qt' as a threads package.
4538 Thu Aug 20 12:42:32 1998  Warren Levy  <warrenl@cygnus.com>
4540         * java/util/Stack.java (pop): Null out topmost node for robustness.
4542 Thu Aug 20 12:30:30 1998  Warren Levy  <warrenl@cygnus.com>
4544         * java/util/Stack.java: Rewritten.
4545         * java/util/Vector.java (isEmpty): Simplified expression.
4547 Wed Aug 19 18:02:19 1998  Warren Levy  <warrenl@cygnus.com>
4549         * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
4550         (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
4552         * include/java-array.h (JvNewObjectArray): Created inline to
4553         _Jv_NewObjectArray.
4555         * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
4556         JvNewObjectArray.
4557         
4558 Wed Aug 19 14:12:02 1998  Warren Levy  <warrenl@cygnus.com>
4560         * java/util/Vector.java: Rewritten.
4561         * java/io/Serializable.java: Created.
4563 Fri Aug 14 10:31:54 1998  Tom Tromey  <tromey@cygnus.com>
4565         * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
4566         Infinity is 1/0, not 1/1.
4568         * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
4570         * configure: Rebuilt.
4571         * configure.in: Removed duplicate AC_ARG_WITH.
4573 Thu Aug 13 14:51:47 1998  Warren Levy  <warrenl@cygnus.com>
4575         * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
4576         soft_badarrayindex.
4577         (_Jv_InitClass): Renamed from soft_initialise_class.
4578         (_Jv_NewMultiArray): Renamed from soft_multianewarray.
4579         (_Jv_CheckCast): Renamed from soft_checkcast.
4580         (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
4581         (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
4582         (JvRunMain): Call JvInitClass instead of soft_initialise_class.
4583         * include/cni.h (JvInitClass): New function.
4584         (_Jv_InitClass): Renamed from soft_initialise_class.
4586 Wed Aug 12 10:07:04 1998  Tom Tromey  <tromey@cygnus.com>
4588         * configure: Rebuilt.
4589         * configure.in (CXX): Don't set.
4590         * Makefile.in: Rebuilt.
4591         * Makefile.am (AM_CXXFLAGS): New macro.
4593         * Makefile.in: Rebuilt.
4594         * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
4595         nogc.o): New target.
4597         * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
4598         GC.
4599         (mark_array): Likewise.
4601 Tue Aug 11 11:44:53 1998  Per Bothner  <bothner@cygnus.com>
4603         * java/lang/Class.h (JvMethod):  Removed some unused fields.
4604         (JvField.info):  Removed unused idx union variant.
4606 Mon Aug 10 15:00:14 1998  Tom Tromey  <tromey@cygnus.com>
4608         * prims.cc (makeUtf8Const): Mask off high bits of hash value to
4609         match compiler.
4611 Mon Aug  3 16:13:54 1998  Per Bothner  <bothner@cygnus.com>
4613         * configure.in, configure (CXX):  Add -fvtable-thunks.
4615 Thu Jul 30 14:34:47 1998  Per Bothner  <bothner@cygnus.com>
4617         * java/lang/Object.java (finalize):  Move first.
4618         * java/lang/Object.h (_JvObjectPrefix):  New dummy base class.
4619         (Object):  Re-arrange order to match Object.java.
4621 Tue Jul 28 21:42:16 1998  Per Bothner  <bothner@cygnus.com>
4623         * prims.cc (hashUtf8String):  Fix - use new JavaSoft specification.
4624         * java/lang/natString.cc (hashChars):  Likewise.
4626         * prims.cc (RuntimeClass):  New macro.
4627         (JvRunMain):  Do soft_initialise_class of RuntimeClass before exit.
4629 Mon Jul 27 22:20:10 1998  Tom Tromey  <tromey@cygnus.com>
4631         * Makefile.in: Rebuilt.
4632         * Makefile.am (AM_MAKEFLAGS): New macro.
4634 Fri Jul 24 11:21:24 1998  Tom Tromey  <tromey@cygnus.com>
4636         * nogc.cc: Include <javaprims.h>.
4638         * Makefile.in: Rebuilt.
4639         * Makefile.am (GJAVAH): gjavah no longer in java subdir.
4641 Thu Jul 23 11:38:40 1998  Tom Tromey  <tromey@cygnus.com>
4643         * exception.cc (terminate): Removed.
4644         (unexpected): Removed.
4646         * configure: Rebuilt.
4647         * configure.in: Handle case where target subdir is ".".
4649         * configure: Rebuilt.
4650         * configure.in: Compute COMPPATH based on --with-target-subdir
4651         option.  Added --with-target-subdir and --with-cross-host.  Use
4652         --with-cross-host to determine when a cross compiler is in use.
4654         * Makefile.in: Rebuilt.
4655         * Makefile.am (GJAVAH): Include COMPPATH.
4656         * configure: Rebuilt.
4657         * configure.in: Subst COMPPATH.
4659 Mon Jul 20 16:13:43 1998  Tom Tromey  <tromey@cygnus.com>
4661         * prims.cc (lockMutex): Removed.
4662         (unlockMutex): Likewise.
4663         (processClass): Lock the class using a JvSynchronize object.
4665 Fri Jul 17 11:27:48 1998  Tom Tromey  <tromey@cygnus.com>
4667         * java/lang/natString.cc (gc_calloc_fixed): Removed.
4668         (gc_free_fixed): Removed.
4669         (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
4670         freeing old value of strhash.
4672         * exception.cc (_Jv_type_matcher): Cast first argument to
4673         _Jv_IsInstanceOf.
4675 Thu Jul 16 14:51:44 1998  Tom Tromey  <tromey@cygnus.com>
4677         * include/java-array.h (jstringArray): New type.
4678         * java/lang/natSystem.cc (setProperty): Removed.
4679         (initProperties): Directly call JvNewStringLatin1 for arguments.
4680         * java/util/natDate.cc: Include java/util/Date.h, not
4681         java-util.h.
4682         (setTime): Removed.
4683         * java/io/FileDescriptor.java (available): No longer static.
4684         * java/lang/natDouble.cc (Double): Removed class definition.
4685         * include/javaprims.h (java::lang::Number): Declare.
4686         (java::lang::NumberFormatException): Likewise.
4687         (java::io::FilenameFilter): Likewise.
4688         (java::lang::Character): Likewise.
4689         (java::lang::Error): Likewise.
4690         (java::lang::SecurityManager): Likewise.
4691         (java::util::Vector): Likewise.
4692         (java::io::FileNotFoundException): Likewise.
4693         (java::io::IOException): Likewise.
4694         (java::lang::NativeLang): Likewise.
4695         (java::lang::UnsatisfiedLinkError): Likewise.
4696         (java::util::StringTokenizer): Likewise.
4697         (java::io::InputStream, java::io::OutputStream): Likewise.
4698         (java::io::PrintStream, java::lang::SecurityException): Likewise.
4699         (java::util::Hashtable): Likewise.
4700         * Makefile.in: Rebuilt.
4701         * Makefile.am (nat_headers): Added java/lang/Double.h,
4702         java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
4703         (MOSTLYCLEANFILES): Added nat_headers.
4704         * include/jvm.h: Moved many defines, declarations, and functions
4705         to java/lang/Class.h.
4706         (struct JvSyncInfo): Moved to java/lang/Object.h.
4707         (UTF8_GET): Moved to java/lang/String.h.
4709 Wed Jul 15 09:02:31 1998  Tom Tromey  <tromey@cygnus.com>
4711         * java/io/io-defs.h: Don't include java-io.h.
4712         * include/java-io.h: Removed.
4713         * include/javaprims.h: Include java::io.
4715 Tue Jul 14 17:04:26 1998  Tom Tromey  <tromey@cygnus.com>
4717         * include/java-io.h (File): Removed
4718         (FileDescriptor): Likewise.
4720         * java/io/io-defs.h: Include java/io/File.h and
4721         java/io/FileDescriptor.h.
4723         * Makefile.in: Rebuilt.
4724         * Makefile.am (GJAVAH): New macro.
4725         (.class.h): New rule.
4726         (SUFFIXES): Added .h.
4727         (nat_headers): New macro.
4728         ($(nat_headers)): New target.
4729         (BUILT_SOURCES): Added nat_headers.
4731         * include/java-util.h: Removed.
4733 Fri Jul  3 10:17:14 1998  Tom Tromey  <tromey@cygnus.com>
4735         * include/java-io.h: Changed to avoid java-lang.h.
4736         * java/lang/natThread.cc: Include java/lang/Thread.h, not
4737         java-lang.h.
4738         * java/lang/natSystem.cc: Include java/lang/System.h, not
4739         java-lang.h.
4740         * java/lang/natString.cc: Include java/lang/String.h, not
4741         java-lang.h.
4742         * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
4743         java-lang.h.
4744         * java/lang/natClass.cc: Include java/lang/Class.h, not
4745         java-lang.h.
4746         * java/lang/natDouble.cc: Include java/lang/Object.h, not
4747         java-lang.h.
4748         * java/lang/natObject.cc: Include java/lang/Object.h, not
4749         java-lang.h.
4750         * exception.cc: Don't include java-lang.h.
4751         * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
4752         * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
4753         * nogc.cc: Don't include java-lang.h.
4754         * boehm.cc: Include java/lang/Class.h, not java-lang.h.
4755         * prims.cc (processClass): Don't use `init_type'; just cast to
4756         type directly.
4757         Include java/lang/Class.h and jvm.h, not java-lang.h.
4758         (JvAllocObject): Wrote single-argument version.
4759         (PrimClass): Inherit from Class.
4760         (initPrimClass): Removed.
4761         * include/java-lang.h: Removed.
4762         * include/jvm.h: Declare struct _dispatchTable.
4763         * include/cni.h: Don't declare _Jv_MonitorEnter,
4764         _Jv_MonitorExit, struct _dispatchTable.
4765         * include/javaprims.h: Moved all typedefs here, from cni.h.
4766         * java/lang/Class.h: New file.
4767         * include/java-array.h: New file.
4768         * java/lang/Object.h: New file.
4770         * prims.cc (classFromSig): Now static.
4772 Wed Jul  1 12:28:48 1998  Tom Tromey  <tromey@cygnus.com>
4774         * include/cni.h: Don't mention soft_new.
4775         * include/java-lang.h (Object): Don't mention soft_new.  Mention
4776         _Jv_NewPrimArray, not newPrimArray.
4777         * prims.cc (soft_new): Removed.
4778         (_Jv_NewArray): Renamed from soft_newarray.
4779         (soft_anewarray): Use JvNewObjectArray.
4780         (newArray): Likewise.
4781         (newRefArray): Removed.
4782         (_Jv_NewPrimArray): Renamed from newPrimArray.
4783         (equalUtf8Consts): Now static.
4784         (soft_instanceof): Removed.
4785         * java/lang/natDouble.cc (doubleToString): Now static.
4787         * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
4788         java_lang_Double_longBitsToDouble, java_lang_Double_toString):
4789         Removed.
4791 Tue Jun 30 10:54:57 1998  Tom Tromey  <tromey@cygnus.com>
4793         * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
4794         _Jv_MonitorExit.
4795         * include/cni.h: Renamed functions to _Jv_MonitorEnter and
4796         _Jv_MonitorExit.
4797         * include/no-threads.h (JvPrivMutexLock): Always return -1.
4798         (JvPrivMutexUnlock): Likewise.
4799         * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
4800         Return value now jint.
4801         (_Jv_MonitorExit): Renamed from soft_monitorexit.  Return value
4802         now jint.
4804         * Makefile.in: Rebuilt.
4805         * Makefile.am: Don't allow `jV' names.
4806         (maintainer-check): Depend on libjava.a.
4807         * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
4809         * Makefile.in: Rebuilt.
4810         * Makefile.am (NM): New macro.
4811         (maintainer-check): New target.
4813         * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
4815         * configure: Rebuilt.
4816         * configure.in: Use --enable-threads, not --enable-gc.  Fix
4817         documentation for --enable-threads.  Changed option to work like
4818         identical option in gcc/configure.
4820 Mon Jun 29 10:44:29 1998  Tom Tromey  <tromey@cygnus.com>
4822         * boehm.cc (mark_array): Use JvGetArrayLength.
4824 Thu Jun 25 11:56:21 1998  Per Bothner  <bothner@cygnus.com>
4826         * exception.cc:  New file (mostly written by Andrew MacLeod),
4827         exception handling support.
4828         * Makefile.am (libjava_a_SOURCES), Makefile.in:  Add exception.cc.
4829         Remove -fexceptions - it is now the default.
4831         * prims.cc (JvIsInstanceOf):  Renamed to _Jv_IsInstanceOf.
4832         (JvAllocObject):  Renamed to _Jv_AllocObject.
4833         (soft_athrow):  Removed.  Replaced by _Jv_Throw in exception.cc.
4834         (loadClass):  Renamed to _Jv_FindClass.
4835         * include/cni.h (JvIsInstanceOf, JvAllocObject).  Make into
4836         inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
4837         * include/java-lang.h (JvGetArrayLength):  New CNI function.
4838         * include/jvm.h (_Jv_FindClass):  Added declaration.
4840         * java/lang/natString.cc:  More implementation if COMPACT_STRINGS.
4842 Wed Jun 24 16:41:30 1998  Per Bothner  <bothner@cygnus.com>
4844         * java/lang/natClass.cc (getName):  Add implementation.
4845         * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
4847 Tue Jun 23 15:56:24 1998  Tom Tromey  <tromey@cygnus.com>
4849         * Makefile.in: Rebuilt.
4850         * Makefile.am (.class.o): Added -fexceptions.
4852 Mon Jun 15 14:54:06 1998  Tom Tromey  <tromey@cygnus.com>
4854         * configure: Rebuilt.
4855         * configure.in: Don't check for __nanosleep.
4856         * posix-threads.cc (nanosleep): Never define.
4858 Sun Jun 14 22:37:23 1998  Tom Tromey  <tromey@cygnus.com>
4860         * posix-threads.cc (JvPrivCondWait): Fixed computation of
4861         timespec.
4863 Thu Jun 11 10:51:44 1998  Tom Tromey  <tromey@cygnus.com>
4865         * java/lang/natThread.cc (enumerate): Uncommented.
4866         * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
4867         (interrupt): Call it.
4869 Wed Jun 10 15:57:16 1998  Tom Tromey  <tromey@cygnus.com>
4871         * configure: Rebuilt.
4872         * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
4874 Mon Jun  8 12:04:11 1998  Tom Tromey  <tromey@cygnus.com>
4876         * include/no-threads.h (JvPrivThreadInterrupt): New method.
4877         * include/java-lang.h (Thread): Added `interrupted_' method.
4878         * java/lang/Thread.java (interrupted_): New method.
4879         * java/lang/natThread.cc (join): Possibly throw interrupted
4880         exception after join finishes.
4881         (interrupted_): New method.
4882         * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
4883         join_cond.
4884         (JvPrivThreadJoin): New function.
4885         (really_start): Notify all threads waiting for this thread.
4886         (struct starter): Added `data' member.
4887         (JvPrivThreadStart): Set it.
4888         * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
4889         join_cond.
4890         (JvPrivThreadJoin): No longer inline.
4891         (JvPrivThreadInterrupt): New function.
4893         * include/no-threads.h (JvPrivThreadSleep): Removed.
4894         * posix-threads.cc (JvPrivThreadSleep): Removed.
4896 Fri Jun  5 13:51:25 1998  Tom Tromey  <tromey@cygnus.com>
4898         * configure: Rebuilt.
4899         * configure.in (THREADOBJS): Initialize to no-threads.o in
4900         no-threads case.
4901         * posix-threads.cc (key): New global.
4902         (JvPrivInitThreads): New function.
4903         (really_start): Set thread-specific data to point to object.
4904         (JvPrivThreadStart): Added `daemon' argument.
4905         (JvPrivThreadSleep): Added `data' argument.
4906         * include/posix-threads.h (JvPrivInitThreads): Removed
4907         implementation.
4908         (JvPrivThreadCurrent): New function.
4909         * include/no-threads.h (JvPrivThreadInitData): Initialize
4910         JvPrivOnlyThread.  Added `thread' argument.
4911         (JvPrivThreadCurrent): New function.
4912         (JvPrivThreadStart): Added `daemon' argument.
4913         * no-threads.cc: New file.
4914         * java/lang/natThread.cc (init_data): New function.
4915         (isAlive): Removed.
4916         (start): Set `alive' member.
4917         (stop_): Clear `alive' member.
4918         (destroy): Likewise.
4919         (currentThread): Implemented.
4920         (start): Pass `daemon' argument to JvPrivThreadStart.
4921         (sleep): Rewrote.
4922         * include/java-lang.h (Thread): Added `alive', `tsync' members.
4923         (Thread): Added `init_data' method.
4924         * java/lang/Thread.java (alive, data): New instance variables.
4925         (init_data): New private method.
4926         (isAlive): No longer native.
4928 Thu Jun  4 14:09:32 1998  Tom Tromey  <tromey@cygnus.com>
4930         * include/java-lang.h (JvRunMain): Declare.
4931         * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
4932         * prims.cc (JvRunMain): New function.
4933         (main_signature, main_name): New globals.
4935         * boehm.cc (mark_array): Use `elements' function and not
4936         operator[] on jarray.
4938         * posix-threads.cc: Include <config.h>.  Define nanosleep if
4939         required.
4941         * configure: Rebuilt.
4942         * configure.in: Check for _nanosleep.
4944         * configure: Rebuilt.
4945         * configure.in: Check for pthread_mutexattr_settype.
4947         * include/cni.h (class JvSynchronize): New class.
4948         * java/lang/Thread.java (sleep): Throws InterruptedException.
4949         (join): Throws InterruptedException.
4950         (resume): Not native.
4951         (resume_): New method.
4952         (start): Now synchronized.
4953         (stop_): New method.
4954         (Thread): Synchronize when accessing threadNumber.
4955         (misc): Removed.
4956         * java/lang/natThread.cc (throwException): New macro.
4957         (sleep): Throw InterruptedException.
4958         (resume_): Renamed.
4959         (stop_): Renamed.
4960         * include/java-lang.h (Runtime): Added interrupted().
4962         * boehm.cc (call_finalizer): Correctly initialize jobj.
4963         * include/java-lang.h (Runtime): Added getRuntime() and exit().
4965         * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
4966         `#elseif'.
4968         * configure: Rebuilt.
4969         * configure.in: Added support for --disable-threads.
4970         * include/no-threads.h: New file.
4972         * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
4974         * Makefile.in: Rebuilt.
4975         * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
4976         (libjava_a_DEPENDENCIES): Added THREADOBJS.
4977         (libjava_a_LIBADD): Added THREADOBJS.
4978         * configure: Rebuilt.
4979         * configure.in: Added --with-threads option.
4980         * posix-threads.cc: New file.
4981         * include/posix-threads.h: New file.
4982         * include/java-lang.h (Object): Added static member sync_mutex,
4983         member sync_info, method init_mutex.
4984         (struct JvSyncInfo): New struct.
4985         Include "java-threads.h".
4986         * prims.cc (soft_monitorenter): Wrote.
4987         (soft_monitorexit): Likewise.
4988         * java/lang/natObject.cc (init_mutex): New method.
4989         (notify): Wrote.
4990         (notifyAll): Wrote.
4991         (wait): Wrote.
4992         (sync_mutex): Define.
4993         Include "java-threads.h".
4995 Tue Jun  2 15:24:33 1998  Per Bothner  <bothner@cygnus.com>
4997         * include/java-lang.h (JvPrivInitGC):  Make extern "C".
4998         * include/jvm.h (JvConvertArgv, JvNewObjectArray):  Likewise.
5000 Mon Jun  1 11:21:34 1998  Per Bothner  <bothner@cygnus.com>
5002         * include/cni.h (jbyte etc):  Re-define using __java_byte etc.
5003         Added extern "Java" in places to tell G++ Object is a "Java" type.
5004         Other minor renaming and fixes.
5005         * include/java-io.h (FileDescriptor):  Add friend class declarations.
5006         G++ no longer allows non-Java types in method parameters and results
5007         of Java classes.  Converted most offending methods to friends.
5008         * java/lang/natDouble.cc (Double::toString):  Rename to doubleToString.
5009         * java/lang/natSystem.cc (setProperty):  Make friend.
5010         * java/lang/natString.cc, include/java-lang.h (String):  Rename
5011         methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
5012         * include/java-lang.h (JArray):  Remove getData and eoprator[].
5013         Add elements friend function instead.
5014         * java/lang/natSystem.cc (arraycopy):  Use elements function.
5015         * java/io/natFileDescriptor.cc (read, write):  Likewise.
5016         * include/java-lang.h (Object):  Remove unused make method.
5017         (System::setProperty(char*,char*)): Turn into friend function.
5018         (Class):  Rename newObject by JvAllocObject.
5019         * prims.cc:  Update to use JvAllocObject, and elements.
5021         * java/lang/natDouble.cc:  Fix double -> jdouble.
5023 Wed May 20 16:50:06 1998  Per Bothner  <bothner@cygnus.com>
5025         * Makefile.am (INCLUDES):  Add -Iinclude (to get config.h).
5027 Mon May 18 13:46:02 1998  Tom Tromey  <tromey@cygnus.com>
5029         * java/lang/natRuntime.cc (finalize_on_exit): Define.
5030         * include/java-lang.h (Runtime): finalize_on_exit and
5031         runFinalizersOnExit now static.
5032         * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
5033         match JDK 1.2b3.
5034         (finalize_on_exit): Now static.
5036         * boehm.cc (mark_obj): Get class using getClass() method on
5037         object.
5038         (_dispatchTable): Removed.
5040 Mon May 11 15:26:52 1998  Tom Tromey  <tromey@cygnus.com>
5042         * java/io/natFileDescriptor.cc (open_read): Only call open if
5043         HAVE_OPEN defined.
5044         (open_write): Likewise.
5046         * Makefile.in: Rebuilt.
5047         * Makefile.am ($(nat_files)): Depend on config.h.
5049 Thu May  7 16:22:00 1998  Tom Tromey  <tromey@cygnus.com>
5051         * prims.cc (ObjectClass): Now a macro; updated for new class name
5052         mangling scheme.
5053         (StringClass): Likewise.
5054         (ClassClass): Likewise.
5056 Wed May  6 00:26:44 1998  Tom Tromey  <tromey@cygnus.com>
5058         * java/io/natFileDescriptor.cc (available): Do nothing unless
5059         HAVE_SELECT defined.
5060         * java/util/natDate.cc (setTime): Conditional on
5061         HAVE_GETTIMEOFDAY.
5062         (toString): Conditional on HAVE_TIME.
5063         * aclocal.m4, configure: Rebuilt.
5064         * acinclude.m4: New file.
5065         * configure.in: Don't actually call AM_EXEEXT.  Call
5066         AC_CANONICAL_HOST.  Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX.  Added
5067         --with-target-subdir option.  Check for select and open
5068         functions.
5070 Tue May  5 00:10:45 1998  Tom Tromey  <tromey@cygnus.com>
5072         * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
5073         (call_finalizer): Likewise.
5074         * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
5075         * prims.cc (newObject): Pass actual method pointer to
5076         JvPrivRegisterFinalizer.
5077         * include/jvm.h (JvPrivFinalizerFunc): New typedef.
5078         (JvPrivRegisterFinalizer): Changed interface.
5080         * Makefile.in: Rebuilt.
5081         * Makefile.am (MOSTLYCLEANFILES): New macro.
5082         (CLEANFILES): Removed javao_files.
5084 Fri May  1 22:52:24 1998  Tom Tromey  <tromey@cygnus.com>
5086         * nogc.cc: New file.
5087         * Makefile.in: Rebuilt.
5088         * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
5089         (EXTRA_libjava_a_SOURCES): New macro.
5090         (libjava_a_SOURCES): Removed boehm.cc.
5091         (libjava_a_DEPENDENCIES): Added GCOBJS.
5092         (libjava_a_LIBADD): Likewise.
5093         * configure: Rebuilt.
5094         * configure.in: Added code for --enable-gc=TYPE.
5096 Thu Apr 30 14:54:00 1998  Tom Tromey  <tromey@cygnus.com>
5098         * boehm.cc (mark_array): Don't further dereference pointer from
5099         array.
5101         * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
5102         * Makefile.in: Rebuilt.
5103         * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
5104         one for boehm-gc build directory.
5106 Wed Apr 29 09:45:19 1998  Tom Tromey  <tromey@cygnus.com>
5108         * include/java-lang.h (finalize_on_exit): New instance variable in
5109         java::lang::Runtime.
5110         (runFinalizersOnExit): New method.
5111         * java/lang/Runtime.java (finalize_on_exit): New instance
5112         variable.
5113         (runAllFinalizers_): New private method.
5114         (runFinalizersOnExit): New method.
5115         * boehm.cc (JvPrivRunFinalizers): New function.
5116         (JvPrivRunAllFinalizers): Likewise.
5117         (JvPrivRunGC): Likewise.
5118         * java/lang/natRuntime.cc: Include "jvm.h".
5119         (gc): Call JvPrivRunGC.
5120         (runFinalization): Call JvPrivRunFinalizers.
5121         (runFinalizersOnExit): New method.
5122         (exit_): Call JvPrivRunAllFinalizers if required.
5123         * include/jvm.h: Declare JvPrivRunFinalizers,
5124         JvPrivRunAllFinalizers, JvPrivRunGC.
5126 Tue Apr 28 15:06:50 1998  Tom Tromey  <tromey@cygnus.com>
5128         * boehm.cc (JvPrivRegisterFinalizer): New function.
5129         (call_finalizer): Likewise.
5130         * include/jvm.h: Declare JvPrivRegisterFinalizer.
5131         * prims.cc (finalize_name): New global.
5132         (newObject): Just call other newObject.
5133         (newObject): Register finalizer if it exists.
5135 Mon Apr 27 12:47:03 1998  Tom Tromey  <tromey@cygnus.com>
5137         * prims.cc (gc_malloc): Removed.
5138         (makeUtf8Const): Use JvPrivAllocBytes.
5139         (lookupArray): Likewise.
5140         (newPrimArray): Likewise.
5141         (JvNewObjectArray): Use JvPrivAllocArray.
5142         (newObject): Use JvPrivAllocObj.
5143         (newObject): Likewise.
5144         Changed Method -> JvMethod everywhere.
5145         Changed Field -> JvField everywhere.
5146         * include/java-lang.h (Object): Changed type of `fields' to
5147         JvField*.
5148         (jmethodID, jfieldID): New typedefs.
5149         (Object): JvGetFirstInstanceField and JvNumInstanceFields now
5150         friends.
5151         * include/jvm.h (struct JvMethod): Renamed from Method, and moved
5152         from java-lang.h.
5153         (METHOD_NATIVECODE): Moved from java-lang.h.
5154         (class JvField): New class.
5155         (JvGetFirstInstanceField): New function.
5156         (JvFieldIsRef): Likewise.
5157         (JvGetObjectField): Likewise.
5158         (JvNumInstanceFields): Likewise.
5160 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
5162         * boehm.cc: New file.
5163         * Makefile.in: Rebuilt.
5164         * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
5165         (INCLUDES): Added -I options to find boehm-gc files.
5167 Wed Apr 29 15:11:37 1998  Tom Tromey  <tromey@cygnus.com>
5169         * configure: Rebuilt.
5170         * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
5172         * Makefile.in: Rebuilt.
5173         * Makefile.am (nat_files): New macro.
5174         (libjava_a_DEPENDENCIES): Use it.
5175         (libjava_a_LIBADD): Likewise.
5176         ($(nat_files)): New static pattern rule.
5177         (class_files): Run separate find to find .class files.
5178         (javao_files): Compute based on class_files.
5179         (BUILT_SOURCES): New macro.
5181 Thu Apr 23 16:42:11 1998  Tom Tromey  <tromey@cygnus.com>
5183         * Makefile.am (java_files): New macro.
5184         (class_files): Likewise.
5185         (javao_files): Likewise.
5186         (libjava_a_DEPENDENCIES): Include $(javao_files).
5187         (libjava_a_LIBADD): Likewise.
5188         (classes.stamp): Depend on $(java_files); only recompile changed
5189         files.
5190         (here): New macro.
5191         (CLEANFILES): Don't run find; use macros.  Don't mention
5192         libjava.a.
5193         (.class.o): New target.
5194         (compiled.stamp): Removed.
5196 Thu Apr 23 14:17:43 1998  Per Bothner  <bothner@cygnus.com>
5198         * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
5199         LineNumberReader}>java:  Newly-implemented standard classes.
5201 Thu Apr 23 14:02:04 1998  Tom Tromey  <tromey@cygnus.com>
5203         * Makefile.in: Rebuilt.
5204         * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
5206         * Makefile.in: Rebuilt.
5207         * Makefile.am (hack): New macro.
5208         (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
5210 Wed Apr 22 16:49:57 1998  Tom Tromey  <tromey@cygnus.com>
5212         * include/config.h.in: New file.
5213         * include/config.h: Removed.
5214         * acconfig.h: New file.
5215         * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
5216         (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
5217         libjava_a_LIBADD): New macros.
5218         (INCLUDES): New macro.
5219         (prims.o): Removed.
5220         (.cc.o): Removed.
5221         (SUFFIXES): Removed.
5222         (all): Removed.
5223         (libjava.a): Removed.
5225         * configure: Rebuilt.
5226         * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
5227         Look for headers and functions we require.  Create
5228         include/config.h.
5230 Mon Apr 20 22:25:00 1998  Per Bothner  <bothner@cygnus.com>
5232         * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
5233         soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
5234         soft_lookupinterfacemethod):  New functions.
5235         (PrimClass):  Actually initialize the primitive classes.
5236         (Utf8Const2JavaString):  Moved to java/lang/natString.cc.
5238         * include/java-util.h:  Removed java::util definition.
5239         * include/cni.h:  Moved java::util here and added Properties.
5240         Added more function prototypes.
5241         * include/java-lang.h:  Added mroe methods and friend declarations.
5242         * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME):  Added.
5243         * include/jvm.h (strLengthUtf8):  Add declaration.
5244         
5245         * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
5246         New static field.
5247         * java/lang/{Byte,Short,Void}.java:  New classes.
5248         * java/lang/Character.java (isJavaIdentifierStart,
5249         JavaIdentifierPart):  New static methods.
5250         * java/lang/Number.java (byteValue, shortValue):  New methods.
5252         * java/lang/String.java (intern, hashCode):  Make native.
5253         * java/lang/natString.cc:  New file.  Handle the string pool.
5254         * Makefile.am:  Build natString.o.  Use CXXFLAGS.
5256         * java/lang/Class.java (isArray, isPrimitive, getComponentType,
5257         isInstance, isAssignableFrom), java/lang/natClass.cc:  New methods.
5258         * java/lang/Throwable.java (<init>):  Don't fillInStackTrace yet.
5259         * java/lang/System.java (setProperty):  New private method.
5260         (initProperties):  Take argument, and make native.
5261         * java/lang/natSystem.cc:  Implement (preliminary) initProperties.
5262         (currentTimeMillis):  Make more robust.
5264         * java/io/{Writer,PrintWriter,OutputStreamWriter}.java:  New classes.
5265         * java/io/UnsupportedEncodingException.java:  New exception class.
5267         * java/io/DataInputStream.java:  Don't use a PushbackInputStream.
5268         * java/io/FilterOutputStream.java:  Add missing 'extends OutputStream'.
5269         
5270 Fri Apr 10 11:52:10 1998  Per Bothner  <bothner@cygnus.com>
5272         * Makefile.am (CXXFLAGS, JC1FLAGS):  New macro.
5273         * prims.cc:  Added bunch of stuff.
5274         * include/cni.h:  Added various definitions.
5275         * include/java-lang.h:  Added Method, various friends, some macros.
5277         * include/config.h:  Added HAVA_MEMMOVE and HAVE_MEMCPY.
5278         * java/lang/System.java (arraycopy):  Make native.
5280 Sun Apr  5 23:58:51 1998  Per Bothner  <bothner@cygnus.com>
5282         * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
5283         natSystem.cc,natThread.cc}:  Native (C++) methods for various classes.
5284         * java/lang/ClassLoader.java (defineClass):  Now takes extra argument.
5285         * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
5286         Make native.
5287         * java/lang/Runtime.java:  Declare methods as native instead of
5288         using NativeLang.
5289         * java/lang/SecurityManager.java (getClassContext):  Just throw Error.
5290         * java/lang/System.java:  Comment out some stuff, for now.
5291         * java/lang/Thread.java:  Re-write.  Use native methods.
5292         * java/lang/NativeLang.java:  Remove most of it.
5293         
5294         * java/util/natDate.cc:  Native (C++) methods for Date.
5295         * java/util/{Calendar.java,GregorianCalendar.java}:  New classes.
5296         * java/util/Date.java:  Complete re-write.
5298         * java/io/io-defs.h:  New header file.
5299         * java/io/FileDescriptor.java:  Add a bunch of private methods,
5300         mostly moved from NativeIO.java and natNativeIO.cc.
5301         * java/io/{natFile.cc,java/io/natFileDescriptor.cc}:  New native code.
5302         * java/io/File.java:  Use new code.
5303         * java/io/{FileInputStream.java.FileOutputStream.java,
5304         RandomAccessFile.java}:  Use new private FileDescriptor methods.
5305         * java/io/NativeIO.java:  Removed, no longer used.
5307         * java/io/StreamTokenizer.java (numericChars):  Make char array.
5309         * include/*.h:  Various header files used by the C++ native code.
5311         * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
5312         New autoconf+automake-based setup.
5313         * prims.cc:  New file for Java "primitives".