OSDN Git Service

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