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