OSDN Git Service

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