OSDN Git Service

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