OSDN Git Service

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