OSDN Git Service

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