OSDN Git Service

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