OSDN Git Service

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