OSDN Git Service

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