OSDN Git Service

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