1 1999-04-30 Tom Tromey <tromey@cygnus.com>
3 * Makefile.in: Rebuilt.
4 * Makefile.am (jv_convert_LDADD): Added -lgcc.
6 1999-04-29 Tom Tromey <tromey@cygnus.com>
8 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
11 * java/util/Locale.java (Locale(String,String)): Implement in
12 terms of 3-argument version; variant now defaults to empty
14 (toString): Assume variant is not null.
15 (equals): Assume all strings are not null.
16 (Locale): Throw NullPointerException if any argument is null.
18 * java/util/ResourceBundle.java (getBundle): Don't try the base
19 name; now implicit in partialGetBundle call.
20 (trySomeGetBundle): Search for parent bundles and call setParent
22 (partialGetBundle): Added `langStop' argument. Use
23 `Locale.toString' to compute bundleName.
24 (resource_cache): New static field.
25 (partialGetBundle): Cache the returned resource bundle. Now
28 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
31 * mauve-libgcj: Enable Collator and RuleBasedCollator.
32 * java/text/natCollator.cc (decomposeCharacter): `base' now
34 * Makefile.in: Rebuilt.
35 * Makefile.am (ordinary_java_source_files): Added
36 CollationElementIterator, CollationKey, Collator,
38 (nat_source_files): Added natCollator.cc.
39 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
40 (compare): Pass `this' to CollationElementIterator constructor.
41 (getCollationElementIterator): Likewise.
42 (ceiNext): Fix off-by-one error when finding initial substring.
43 (next): Correctly mask off bits when computing return value.
44 Fixed return values when one string is shorter than the other.
45 * java/text/CollationElementIterator.java (collator): New field.
46 (CollationElementIterator): Added collator argument.
47 (next): Call ceiNext on collator object.
49 1999-04-26 Tom Tromey <tromey@cygnus.com>
51 * natCollator.cc: New file.
53 * java/util/GregorianCalendar.java (setDefaultTime): New method.
54 (GregorianCalendar): Use it in all constructors.
55 * java/util/Calendar.java (Calendar): Changed argument name to
58 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
59 * java/text/CollationKey.java: New file.
60 * java/text/CollationElementIterator.java: New file.
61 * java/text/Collator.java: New file.
62 * java/text/RuleBasedCollator.java: New file.
64 * Makefile.in: Rebuilt.
65 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
66 (jv_convert_LDADD): Explicltly add -lm -lc.
68 1999-04-26 Tom Tromey <tromey@cygnus.com>
70 * configure, Makefile.in: Rebuilt.
71 * configure.in: Added AM_PROG_LIBTOOL.
72 (GCOBJS): Use `.lo' form of files.
73 (THREADOBJS): Likewise.
74 (GCDEPS): Use `.la' form of library.
75 (GCLIBS): Set to be the same as GCDEPS.
76 (THREADDEPS): Use `.la' form of library.
77 (THREADLIBS): Set to be the same as THREADDEPS.
78 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
79 toolexeclib_LIBRARIES.
80 (libgcj_la_SOURCES): Renamed for libtoolization.
81 (EXTRA_libgcj_la_SOURCES): Likewise.
82 (libgcj_la_DEPENDENCIES): Likewise.
83 (libgcj_la_LIBADD): Likewise.
84 ($(nat_files)): Use LTCXXCOMPILE.
85 ($(c_files)): Use LTCOMPILE.
86 (GCJCOMPILE): New macro.
89 ($(javao_files)): Likewise.
90 (jv_convert_LINK): Use LIBTOOL.
91 (nat_files): Use `.lo' files.
93 (javao_files): Likewise.
96 ($(nat_files)): Depend on %.lo.
97 ($(c_files)): Likewise.
98 ($(javao_files)): Likewise.
99 (jv_convert_LDADD): Link against .lo files.
100 (jv_convert_DEPENDENCIES): Depend on .lo files.
101 (maintainer-check): Depend on libgcj.la, but examine .a file.
102 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
103 (libgcj_la_LDFLAGS): New macro.
105 1999-04-23 Warren Levy <warrenl@cygnus.com>
107 * Makefile.am: Added URLDecoder and URLEncoder.
108 * Makefile.in: Rebuilt.
110 * java/net/ServerSocket.java (setSocketFactory): Renamed from
111 setSocketImplFactory to match spec.
112 * java/net/Socket.java (getSoLinger): Changed return type to
115 * java/net/URLDecoder.java: New file.
116 * java/net/URLEncoder.java: New file.
118 1999-04-21 Tom Tromey <tromey@cygnus.com>
120 * java/lang/natString.cc (getBytes): Reverted earlier change and
121 applied correct fix from Per Bothner.
123 * java/lang/String.java: Don't throw
124 UnsupportedEncodingException.
126 * java/lang/natString.cc (getBytes): Correctly size result
127 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
129 1999-04-20 Andrew Haley <aph@cygnus.com>
131 * include/sparc-signal.h: new file.
132 * configure.in: include/sparc-signal.h added.
133 * configure: regenerated.
134 * prims.cc (JvRunMain): signal handling code rewritten to be more
138 * include/i386-signal.h: reorganized.
139 * include/default-signal.h: reorganized.
141 1999-04-19 Tom Tromey <tromey@cygnus.com>
143 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
144 once. From Anthony Green.
146 1999-04-19 Andrew Haley <aph@cygnus.com>
148 * Makefile.in: Processed with new automake.
150 1999-04-19 Tom Tromey <tromey@cygnus.com>
152 * include/javaprims.h: Removed security namespace.
154 1999-04-20 Anthony Green <green@cygnus.com>
156 * java/io/PrintStream.java (println): Remove extra println.
158 1999-04-19 Anthony Green <green@cygnus.com>
160 * Makefile.in: Rebuilt.
161 * Makefile.am (ordinary_java_source_files): Add new security files.
163 * java/security/NoSuchAlgorithmException.java,
164 java/security/MessageDigest.java: New files.
166 * include/javaprims.h: Add security namespace.
168 1999-04-16 Per Bothner <bothner@cygnus.com>
170 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
171 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
172 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
173 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
174 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
175 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
176 * gnu/gcj/convert/natInput_SJIS.cc: New file.
177 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
178 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
179 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
180 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
181 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
182 * Makefile.am: Various changes for new files and conversions.
184 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
185 New overloading, allows greater efficiency.
186 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
187 New overloading (for efficiency - avoids copying).
189 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
190 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
192 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
193 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
194 (writeChars): Don't be quite so eager to flush.
195 * java/io/PrintStream.java: Rewrite. Now more similar to
196 OutputStreamWriter, using explicit UnicodeToBytes converter.
197 Also, autoflush does not need to flush so often.
198 * java/lang/natString.cc (getBytes): More efficient algorithm.
199 (init(jbyteArray,jint,jint,jstring)): More efficient.
201 1999-04-15 Warren Levy <warrenl@cygnus.com>
203 * Makefile.am (ordinary_java_source_files): Added new Connection
204 and Handler classes in gnu.gcj.protocol.file package.
205 * Makefile.in: Rebuilt.
207 * gnu/gcj/protocol/file/Connection.java: New file.
208 * gnu/gcj/protocol/file/Handler.java: New file.
209 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
210 if doInput allows input.
211 (getOutputStream): Check if doOutput allows output.
212 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
214 1999-04-14 Tom Tromey <tromey@cygnus.com>
216 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
217 buffer larger to work around bug.
218 From Bryce McKinlay <bryce@albatross.co.nz>.
220 1999-04-14 Andrew Haley <aph@cygnus.com>
222 * java/lang/natDouble.java (doubleToLongBits): ensure that all
223 NaNs are always converted to the same long value.
224 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
227 1999-04-13 Tom Tromey <tromey@cygnus.com>
229 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
230 instead switch on actual element type.
232 * Makefile.in: Rebuilt.
233 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
235 1999-04-13 Andrew Haley <aph@cygnus.com>
237 * include/i386-signal.h, include/default-signal.h: New files.
238 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
240 (catch_fpe): New function.
241 * configure.in: Make link to appropriate include/java-signal.h.
242 * configure: Rebuilt.
243 * Makefile.am: include/java-signal.h added to dependency list.
244 * Makefile.in: Rebuilt.
246 1999-04-12 Urban Widmark <urban@svenskatest.se>
248 * java/io/DataInputStream.java (readLine): Corrected handling of
249 empty lines, from null to "".
251 1999-04-12 Tom Tromey <tromey@cygnus.com>
253 * Makefile.in: Rebuilt.
254 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
256 * java/lang/natSystem.cc (SystemClass): New define.
257 (init_properties): Synchronize.
259 1999-04-08 Geoff Berry <gcb@gnu.org>
261 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
262 * natPlainSocketImpl.cc (accept): Add missing else if check
265 1999-04-08 Tom Tromey <tromey@cygnus.com>
267 * java/lang/Long.java (parseLong): Corrected overflow detection
269 * java/lang/Integer.java (parseInt): Corrected overflow detection
272 * java/io/PrintStream.java (print): Handle null string argument.
275 1999-04-07 Warren Levy <warrenl@cygnus.com>
277 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
278 Set count to 0 when InputStreamReader returns -1 for EOF.
280 1999-04-07 Tom Tromey <tromey@cygnus.com>
282 * mauve-libgcj: Omit java.text.Collator,
283 java.text.RuleBasedCollator.
285 1999-04-06 Tom Tromey <tromey@cygnus.com>
287 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
288 IOException from getHttpHeaders().
289 (getHeaderFieldKey): Likewise.
291 * include/javaprims.h: Regenerated declarations.
293 * Makefile.in: Rebuilt.
294 * Makefile.am (ordinary_java_source_files): Updated for removed
297 1999-04-06 Per Bothner <bothner@cygnus.com>
299 * java/util/zip/Adler32.java: New class.
300 * java/util/zip/CRC32.java: Add working method bodies.
301 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
302 * Makefile.in: Re-generate.
304 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
306 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
307 from version in removed www hierarchy.
308 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
309 version in removed www hierarchy.
311 * gnu/gcj/www/protocol/http/Connection.java: Removed.
312 * gnu/gcj/www/protocol/http/Handler.java: Removed.
313 * gnu/gcj/www/protocol/http: Removed dir.
314 * gnu/gcj/www/protocol: Removed dir.
315 * gnu/gcj/www: Removed dir.
317 * java/net/HttpURLConnection.java: Revised comments to indicate
318 missing JDK 1.2 methods.
320 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
321 hierarchy rather than the gnu/gcj/www/protocol one.
322 * java/net/URLConnection.java: Updated status comments.
323 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
324 the gnu/gcj/www/content one.
326 1999-04-06 Per Bothner <bothner@cygnus.com>
328 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
329 The gen-from-JIS program is in $(CONVERT_DIR).
331 1999-04-06 Tom Tromey <tromey@cygnus.com>
333 * mauve-libgcj: Renamed from mauve-libjava.
335 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
337 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
338 (getResponseMessage): Implemented.
339 (getResponseVals): New private method.
341 * java/net/URLConnection.java (getContent): Implemented.
342 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
344 1999-04-05 Tom Tromey <tromey@cygnus.com>
346 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
347 (jv_convert_SOURCES): Renamed.
348 (EXTRA_jv_convert_SOURCES): Likewise.
349 (jv_convert_LDFLAGS): Likewise.
350 (jv_convert_LINK): Likewise.
351 (jv_convert_LDADD): Likewise.
352 (jv_convert_DEPENDENCIES): Likewise.
354 * Makefile.in: Rebuilt.
355 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
358 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
360 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
361 method for comparison.
363 * java/net/URLConnection.java (getContentLength): Implemented.
364 (getContentType): Implemented.
365 (getContentEncoding): Implemented.
366 (getExpiration): Implemented.
367 (getDate): Implemented.
368 (getLastModified): Implemented.
369 (getHeaderFieldInt): Implemented.
370 (getHeaderFieldDate): Implemented.
372 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
374 * java/net/URLConnection.java (toString): Implemented.
375 (setContentHandlerFactory): Implemented.
376 (setContentHandler): Wrote new private helper method.
378 1999-04-01 Tom Tromey <tromey@cygnus.com>
380 * Makefile.in: Rebuilt.
381 * Makefile.am ($(java_source_files:.java=.class): Reverted change
382 of 1999-03-31; we always want to build all the .class files.
383 Depend on java_source_files, not libgcj.zip.
384 (nat_headers): Define in terms of ordinary_java_source_files.
386 1999-03-31 Tom Tromey <tromey@cygnus.com>
388 * Makefile.in: Rebuilt.
389 * Makefile.am (special_java_source_files): New macro.
390 (java_source_files): Use it.
391 (ordinary_java_source_files): New macro.
392 (java_source_files): Use it.
393 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
394 creating headers for those files with hand-maintained headers.
396 * include/javaprims.h: Regenerated namespace declarations.
397 * classes.pl (scan): Include [0-9] in regexp for matching class
398 names; for java.util.zip.CRC32.
400 * Makefile.in: Rebuilt.
401 * Makefile.am (nat_headers): Redefined to generate all possible
404 * java/util/zip/ZipException.java: In package java.util.zip, not
407 1999-03-30 Tom Tromey <tromey@cygnus.com>
409 * configure: Rebuilt.
410 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
411 eh-common.h when not building in tree with gcc.
413 * Makefile.in: Rebuilt.
414 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
415 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
417 ($(java_source_files:.java=.class)): New target.
419 * Makefile.in: Rebuilt.
420 * Makefile.am (java_source_files): Added
421 java/net/HttpURLConnection.java and
422 gnu/gcj/www/protocol/http/Connection.java.
424 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
426 * gnu/gcj/www/protocol/http/Connection.java: New file.
427 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
428 * java/net/HttpURLConnection.java: New file.
429 * java/net/URLConnection.java (getHeaderField): Implemented default.
430 (getHeaderFieldKey): Implemented default method.
432 1999-03-30 Tom Tromey <tromey@cygnus.com>
434 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
436 * java/util/zip/Deflater.java: Added copyright header.
437 * java/util/zip/CRC32.java: Added copyright header.
439 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
440 that it is automatically generated.
441 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
443 * gnu/gcj/convert/BytesToUnicode.java,
444 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
445 gnu/gcj/convert/Input_EUCJIS.java,
446 gnu/gcj/convert/Input_UTF8.java,
447 gnu/gcj/convert/JIS0208_to_Unicode.cc,
448 gnu/gcj/convert/JIS0212_to_Unicode.cc,
449 gnu/gcj/convert/Output_8859_1.java,
450 gnu/gcj/convert/Output_JavaSrc.java,
451 gnu/gcj/convert/Output_UTF8.java,
452 gnu/gcj/convert/UnicodeToBytes.java,
453 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
455 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
457 * Makefile.in, configure: Rebuilt.
458 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
459 not if test subdir exists.
460 (--enable-gcj-classes): Removed; gcj always used to generate
462 (JAVA, JAVAC): Removed.
463 (--enable-single-compilation, --enable-source-compilation):
466 (NATIVE): New conditional.
467 * Makefile.am (toolexecdir): Renamed from tooldir to allow
468 `install-exec' to work.
469 (toolexeclibdir): Likewise.
470 (toollib_LIBRARIES): Likewise.
471 (AM_MAKEFLAGS): Don't pass tooldir.
473 (javao_files): Redefined.
474 (java_source_files): New macro.
475 (c_source_files): New macro.
476 (c_files): Redefined in terms of c_source_files.
477 (java_io_files, java_lang_files, java_net_files, java_text_files,
478 java_util_files, gnu_files, java_files): Removed.
479 (class_io_files, class_lang_files, class_net_files,
480 class_text_files, class_util_files, class_gnu_files, class_files):
482 (nat_source_files): New macro.
483 (nat_files): Redefined in terms of nat_source_files.
484 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
485 java_source_files. Removed no-such-file.c.
487 (ETAGS_ARGS): Removed.
488 (TAGS_DEPENDENCIES): Likewise.
489 (libgcj.zip): Depend on java_source_files. Use $(here) and not
491 (src_io_files, src_lang_files, src_text_files, src_util_files,
492 src_gnu_files): Removed.
493 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
494 (BUILT_SOURCES): Removed.
495 (header-check): New target.
497 (noinst_PROGRAMS): New macro.
498 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
500 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
501 (gen-from-JIS): Build in top directory.
502 (convert_source_files): New macro.
503 (convert_SOURCES): New macro.
504 (convert_LDFLAGS): Likewise.
505 (convert_LINK): Likewise.
506 (convert_LDADD): Likewise.
507 (convert_DEPENDENCIES): Likewise.
509 (gen-from-JIS): Removed.
510 (gen_from_JIS_SOURCES): New macro.
511 (gen_from_JIS_LDADD): Likewise.
512 (gen_from_JIS_DEPENDENCIES): Likewise.
514 * configure: Rebuilt.
515 * configure.in (CANADIAN): Set to `yes', not `canadian'.
516 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
517 when defining conditional.
519 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
521 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
522 The Unicode Consortium does not permit their re-distribution.
523 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
524 (JIS0208.h, JIS0212.h): Do not depend on removed files.
526 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
528 * natSystem.c (init_properties): Use malloc, realloc, free after all.
530 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
532 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
533 from Unicode Consortium.
534 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
535 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
536 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
537 New tables, generated using gen-from-JIS.
538 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
539 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
540 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
541 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
543 * gnu/gcj/convert/Convert.java: New application.
544 * Makefile.am, Makefile.in (convert): New program, using Convert.
545 Build the various JIS conversion tables (in maintainer mode).
547 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
549 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
551 * java/net/URL.java (URL): Deal with null property value. Use "."
552 as separator in building class name.
553 * java/net/URLConnection.java: Implemented majority of stubbed methods.
554 * java/net/URLStreamHandler.java (parseURL): Use "" in string
555 manipulations instead of 'null'. Comment cleanup. Use 0 for the
556 beginning of the substring rather than 'start'.
558 1999-03-26 Tom Tromey <tromey@cygnus.com>
560 * include/java-chartables.h: Rebuilt.
561 * include/java-chardecomp.h: New file.
562 * chartables.pl: Generate output files directly. Added support
563 for generating decomposition header.
564 (canonical_decomposition, full_decomposition): New globals.
565 (DECOMPOSITION): New constant.
566 (process_char): Call add_decomposition.
567 (add_decomposition): New sub.
568 (write_decompositions): New sub.
570 1999-03-25 Tom Tromey <tromey@cygnus.com>
572 * java/text/CollationElementIterator.java: New file.
574 * mauve-libjava: Omit StringTest.
576 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
578 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
579 without a '/' when parsing protocol. Handle ref outside of parseURL.
580 (hashCode): Implemented.
581 (set): Don't expand -1 to default port.
582 (getDefaultPort): Removed.
584 * java/net/URLStreamHandler.java (parseURL): Implemented.
585 (toExternalForm): Implemented.
587 1999-03-23 Tom Tromey <tromey@cygnus.com>
589 * java/text/BreakIterator.java (getSentenceInstance):
591 * gnu/gcj/text/SentenceBreakIterator.java: New file.
593 * Makefile.in: Rebuilt.
594 * Makefile.am (nat_headers): Added IllegalAccessException.
595 * java/lang/natClass.cc (newInstance): Throw
596 IllegalAccessException, not IllegalAccessError.
597 Include IllegalAccessException.h.
599 1999-03-22 Tom Tromey <tromey@cygnus.com>
601 * gnu/gcj/text/LineBreakIterator.java: New file.
602 * java/text/BreakIterator.java (getLineInstance): Implemented.
604 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
605 copy constructor private.
606 (previous, next): Removed erroneous comment about line
608 (previous): Correctly recognize break between non-letter on the
609 left and letter on the right. Handle apostrophes correctly.
611 * java/text/BreakIterator.java (getWordInstance): Implemented.
612 * gnu/gcj/text/WordBreakIterator.java: New file.
613 * gnu/gcj/text/CharacterBreakIterator.java: Extend
615 * gnu/gcj/text/BaseBreakIterator.java: New file.
617 1999-03-19 Tom Tromey <tromey@cygnus.com>
619 * java/text/BreakIterator.java: New file (partially stubbed out).
620 * gnu/gcj/text/CharacterBreakIterator.java: New file.
622 * include/config.h.in: Rebuilt.
623 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
624 (HAVE_TIMEZONE): Likewise.
625 * configure: Rebuilt.
626 * configure.in: Added timezone checks.
627 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
630 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
632 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
633 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
634 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
635 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
636 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
637 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
638 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
639 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
641 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
642 (BSD_COMP): Kludge needed for Solaris2.
644 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
646 * java/net/URL.java (URL(java.net.URL, string): Moved code to
647 URL(java.net.URL, string, URLStreamHandler) and call it with a
648 null handler. In latter constructor, added SecurityManager check.
649 (set): Expect null handler on bad protocol rather than an exception.
650 (setURLStreamHandler): Simplified exception handling; return null
653 1999-03-18 Tom Tromey <tromey@cygnus.com>
655 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
657 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
659 Include PrintStream.h, InputStream.h.
660 * java/lang/System.java (ForwardingInputStream,
661 ForwardingOutputStream): Removed.
662 (setErr, setIn, setOut): Now native.
664 Reverted patch from 1999-02-12 to work around problem in
666 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
667 (_Jv_eh_free): Use free.
669 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
670 for path name. Minor formatting fixes.
672 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
674 * prims.cc (fail_on_finalization): New function.
675 (_Jv_GCWatch): Likewise.
677 * prims.cc (JvRunMain): Initialize `nullp'.
679 (catch_segv): Throw nullp.
681 * Makefile.in: Rebuilt.
682 * Makefile.am (ZIP): In "null target" case, zip is found in the
685 * prims.cc (_Jv_PrimClass): Initialize all elements of class
689 * java/lang/StringBuffer.java (StringBuffer): Don't use
690 ensureCapacity to set initial capacity.
691 (capacity): Subtract `length' from return result.
693 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
695 * java/io/natFileDescriptorPosix.cc (open): Throw
696 FileNotFoundException, but with filename and errno in msg.
698 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
700 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
701 functionality folded into java/net/URL.java per spec.
703 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
704 than EEXIST for throwing FileNotFoundException.
706 * java/net/URL.java: Folded in default URLStreamHandlerFactory
707 algorithm per JDK 1.2 doc. Added SecurityManager checks.
709 * java/net/URLStreamHandler.java (parseURL): Added stub.
711 1999-03-15 Andrew Haley <aph@cygnus.com>
713 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
716 1999-03-15 Andrew Haley <aph@cygnus.com>
718 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
721 1999-03-12 Tom Tromey <tromey@cygnus.com>
723 * prims.cc (catch_segv): New function.
724 Include <signal.h> if HANDLE_SEGV defined. Include
725 NullPointerException.h.
726 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
729 * java/text/SimpleDateFormat.java (equals): Ensure that object is
730 a SimpleDateFormat, not just a DateFormat.
731 (defaultCenturyStart, formatData, pattern): Now private.
732 (append): Now `final'. Use `NumberFormat.format'.
734 (SimpleDateFormat): Turn off groupin in NumberFormat object.
736 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
739 * java/text/MessageFormat.java (format): Use default MessageFormat
741 (parse, parseObject): Wrote.
743 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
746 1999-03-12 Andrew Haley <aph@cygnus.com>
748 * java/lang/String.java (indexOf): Replace with native method for
750 * java/lang/natString.cc (IndexOf): As above.
752 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
753 Argument check corrected.
754 (init(jbyteArray,jint,jint,jstring)): Likewise.
756 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
757 1.2 compliant method.
759 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
761 * java/lang/Float.java (byteValue, shortValue): Likewise.
763 1999-03-11 Tom Tromey <tromey@cygnus.com>
765 * java/text/DecimalFormat.java (parse): Wrote.
767 * java/text/ChoiceFormat.java (parse): Set error index on
768 ParsePosition object.
770 * java/lang/Integer.java (parseInt): Throw exception on overflow
771 when intermediate result is most negative number. Changed
772 overflow detection as well.
773 * java/lang/Long.java (parseLong): Likewise.
775 * configure, Makefile.in: Rebuilt.
776 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
777 CANADIAN when building in source tree that doesn't include gcc.
778 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
781 * java/text/ChoiceFormat.java (nextDouble): Correct some
782 off-by-one errors when masking or adding.
784 * java/text/DecimalFormat.java (format): Fill in FieldPosition
785 parameter, if given. Use `%', not IEEEremainder.
786 (scanFix): Throw error if multiplier already set.
787 (computePattern): Wrote.
789 1999-03-11 Andrew Haley <aph@cygnus.com>
791 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
793 (nextDouble): Corrected masking logic. Handle interaction between
794 `next' and negative numbers.
796 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
798 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
799 * java/net/URL.java: Added general comments.
801 1999-03-10 Tom Tromey <tromey@cygnus.com>
803 * java/text/ChoiceFormat.java (parse): Wrote.
805 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
807 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
808 Create ChoiceFormat objects.
809 (format): Special-case ChoiceFormat.
810 (scanFormatElement): Include { and } in generated style string.
812 1999-03-09 Tom Tromey <tromey@cygnus.com>
814 * java/text/ChoiceFormat.java: New file.
816 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
818 * java/net/BindException.java: Created.
819 * java/net/ConnectException.java: Created.
820 * java/net/ContentHandler.java: Created.
821 * java/net/ContentHandlerFactory.java: Created.
822 * java/net/FileNameMap.java: Created.
823 * java/net/MalformedURLException.java: Created.
824 * java/net/NoRouteToHostException.java: Created.
825 * java/net/ProtocolException.java: Created.
826 * java/net/ServerSocket.java (@author): Fixed typo.
827 * java/net/Socket.java (@author): Fixed typo.
828 * java/net/SocketImpl.java (@author): Fixed typo.
829 * java/net/SocketImplFactory.java (@author): Fixed typo.
830 * java/net/URL.java: Created - nearly complete.
831 * java/net/URLConnection.java: Created - near-empty stub.
832 * java/net/URLStreamHandler.java: Created - incomplete stub.
833 * java/net/URLStreamHandlerFactory.java: Created.
834 * java/net/UnknownServiceException.java: Created.
836 1999-03-09 Tom Tromey <tromey@cygnus.com>
838 * java/lang/System.java (ForwardingInputStream): New class.
839 (ForwardingOutputStream): Likewise.
840 (in, out, err): Now `final' forwarding streams.
841 (setIn, setOut, setErr): Use appropriate method on forwarding
844 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
847 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
849 * java/util/zip/CRC32.java: New class (just an incomplete stub).
850 * java/util/zip/Checksum.java: New interface (complete).
851 * java/util/zip/Deflater.java: New class (near-empty stub).
852 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
853 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
854 * java/util/zip/ZipEntry.java: New class (complete).
855 * java/util/zip/ZipException.java: New class (complete).
856 * java/util/zip/ZipFile.java: New class (incomplete stub).
857 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
859 1999-03-09 Tom Tromey <tromey@cygnus.com>
861 * java/text/MessageFormat.java (MessageFormatElement): Removed
864 * java/text/DecimalFormat.java (scanFormat): Increment index
865 before processing exponential format. Fixed a couple typos in
867 (format): Correct normalization of exponent.
869 1999-03-08 Tom Tromey <tromey@cygnus.com>
871 * java/text/SimpleDateFormat.java (parse): Throw
872 IllegalArgumentException, not ParseException.
874 1999-03-05 Tom Tromey <tromey@cygnus.com>
876 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
877 when constructing DateFormatSymbols. Initialize numberFormat
880 * java/text/DateFormat.java (equals): Rewrote.
881 (getAvailableLocales): New method.
882 (getDateInstance): New methods.
883 (getDateTimeInstance): Likewise.
884 (getTimeInstance): Likewise.
885 (getInstance): New method.
886 (computeInstance): New method.
888 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
890 (safeGetResource): New method.
891 (DateFormatSymbols): Use Locale paramater.
892 (equals): Now protected.
893 Made instance variables private.
895 1999-03-04 Tom Tromey <tromey@cygnus.com>
897 * java/text/DecimalFormat.java: New file.
899 * java/text/NumberFormat.java (groupingUsed,
900 maximumFractionDigits, maximumIntegerDigits,
901 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
903 (setDecimalSeparatorAlwaysShown, setMultiplier,
904 setPositivePrefix): Removed.
905 (setMinimumFractionDigits, setMaximumFractionDigits):
908 Added many new methods.
910 * Makefile.in: Rebuilt.
911 * Makefile.am (gnu_files): New macro.
912 (java_files): Added gnu_files.
913 (class_gnu_files): New macro.
914 (class_files): Use it.
915 (src_gnu_files): New macro.
917 (javao_files): Added gnu.o.
919 * gnu/gcj/text/LocaleData_en_US.java: New file.
920 * gnu/gcj/text/LocaleData_en.java: New file.
921 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
922 (DecimalFormatSymbols): Use ResourceBundle to find resources.
923 (safeGetString): New method.
924 (safeGetChar): Likewise.
926 1999-03-03 Tom Tromey <tromey@cygnus.com>
928 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
931 * java/text/FieldPosition.java (equals): Don't check for null
932 object; instanceof does this.
934 * java/util/Locale.java (clone): New method.
937 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
939 * doc/cni.sgml: New file.
941 1999-03-03 Tom Tromey <tromey@cygnus.com>
943 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
945 * java/text/DecimalFormatSymbols.java: New file.
947 1999-03-02 Tom Tromey <tromey@cygnus.com>
949 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
951 * configure: Rebuilt.
952 * configure.in: Check for sys/filio.h.
954 * java/lang/Runtime.java (checkLink): Throw NullPointerException
956 (load): Always throw UnsatisfiedLinkError.
957 (loadLibrary): Likewise.
959 1999-03-02 Anthony Green <green@cygnus.com>
961 * LIBGCJ_LICENSE: New file.
962 * LIBJAVA_LICENSE: Removed.
963 * Many files: libjava now libgcj.
965 1999-03-02 Tom Tromey <tromey@cygnus.com>
967 * include/java-chartables.h: Rebuilt.
968 * chartables.pl (print_block): Make table `const'.
969 (print_numerics): Likewise.
970 (print_single_map): Likewise.
971 (print_all_block): Likewise.
972 (print_case_table): Likewise.
973 (print_fast_tables): Likewise.
974 * java/lang/natCharacter.cc (table_search): `table' argument now
977 1999-03-01 Tom Tromey <tromey@cygnus.com>
979 * java/util/Date.java (before, after): Inverted logic.
981 * java/util/Date.java (parse): Handle case where first character
982 in string is open parenthesis.
983 (skipParens): Rewrote.
985 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
986 * java/lang/reflect/natField.cc: Include <stdlib.h>.
988 * java/util/Date.java (parse): Correctly compute beginning of
991 * java/util/Hashtable.java (get): Throw NullPointerException if
993 (containsKey): Likewise.
995 * java/util/Properties.java (list): Truncate value to 37
996 characters and add `...'.
998 * java/lang/Byte.java (parseByte): Pass `radix' to
1001 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
1003 Include System.h, PrintStream.h.
1005 * java/lang/natSystem.cc (init_properties): Don't use malloc,
1008 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
1010 * configure: Rebuilt.
1011 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
1014 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
1016 * java/lang/SecurityManager.java: Import java.net.*.
1017 (checkMulticast): New methods.
1019 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
1021 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
1022 (nat_files): Add java/lang/reflect/natArray.o.
1023 (nat_headers): Add Field.h and NoSuchFieldException.h.
1025 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
1026 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
1027 (_Jv_FromReflectedField): Fix buglet.
1028 * include/jvm.h (_Jv_NewMultiArray): New declaration.
1029 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
1030 * prims.cc (_Jv_Abort): Include message in print-out.
1032 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
1033 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
1034 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
1036 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
1037 * include/config.h.in (HAVE_PWD_H): New feature macro.
1038 * java/lang/natSystem.cc (init_properties): Set file.encoding,
1039 user.name, user.home, user.dir.
1041 * java/lang/reflect/Array.java: New class.
1042 * java/lang/reflect/natArray.cc: New native methods.
1043 * include/javaprims.h: Declare java::lang::reflect::Array.
1045 * java/lang/Class.h (getField): New private method. Add friends.
1046 * java/lang/Class.java (getField): Add private overload.
1047 * java/lang/natClass.cc (getField, getField, getDeclaredField,
1048 getDeclaredMethods): Add working implementations.
1049 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
1050 Finish implementation, except for access control.
1052 * java/lang/reflect/Modifier.java (toString): New overload.
1053 * include/java-method.h: New file.
1054 * java/lang/reflect/Method.java (index): Replaced by offset field.
1055 Remove various private fields - get them from _Jv_Field instead.
1056 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
1057 New method implementations.
1059 * java/text/NumberFormat.java: Add a bunch of methods.
1061 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
1063 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
1065 1999-02-26 Tom Tromey <tromey@cygnus.com>
1067 * include/config.h.in: Rebuilt.
1068 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
1069 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
1070 HAVE_GETHOSTBYADDR_R): New defines.
1071 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
1072 gethostbyaddr_r if available.
1074 * configure: Rebuilt.
1075 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
1077 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
1081 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
1082 * prims.cc (_Jv_AllocBytesChecked): New function.
1084 * Makefile.in: Rebuilt.
1085 * Makefile.am (SUBDIRS): Removed `test'.
1086 * configure: Rebuilt.
1087 * configure.in: Don't build test/Makefile.
1088 * test/*: Removed all files.
1090 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
1092 * java/lang/reflect/Constructor.java: Make class final to match spec.
1093 * java/lang/reflect/Method.java: Ditto.
1095 1999-02-25 Tom Tromey <tromey@cygnus.com>
1097 * java/net/natInetAddress.cc: Include <sys/types.h> before
1099 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
1102 * java/net/natInetAddress.cc: Declare gethostname if required.
1103 * include/config.h.in: Rebuilt.
1104 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
1105 * configure: Rebuilt.
1106 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
1107 declared in unistd.h.
1109 1999-02-24 Tom Tromey <tromey@cygnus.com>
1111 * Makefile.in: Rebuilt.
1112 * Makefile.am (java/io/FileDescriptor.h): Removed target.
1113 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
1114 from private to "none".
1116 * include/javaprims.h: Regenerated class declarations with new
1118 * classes.pl (scan): Only generate decls for java.lang, java.io,
1121 1999-02-24 Tom Tromey <tromey@cygnus.com>
1123 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
1124 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
1126 1999-02-23 Tom Tromey <tromey@cygnus.com>
1128 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
1129 not already defined.
1130 * java/io/natFile.cc (_REENTRANT): Only define if not already
1132 * include/config.h.in: Rebuilt.
1133 * acconfig.h (HAVE_BOEHM_GC): New define.
1134 * configure: Rebuilt.
1135 * configure.in: Define HAVE_BOEHM_GC if using it.
1136 * posix-threads.cc: Include boehm-config.h and gc.h if
1138 * include/posix-threads.h: Added explanatory note about Boehm GC.
1140 * java/io/BufferedReader.java (readLine): Only return null when
1141 EOF seen before any characters read. (In particular, an empty
1142 line should not return null.)
1144 * java/io/BufferedInputStream.java (read): Only refill once per
1147 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
1148 java.lang.Character.classify12, java.lang.String.hash,
1149 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
1150 java.text.SimpleDateFormat.getAndSet2DigitYearStart
1152 * java/text/StringCharacterIterator.java (setIndex): No error if
1154 (next): Check for `pos == end', not `end - 1'.
1155 (StringCharacterIterator): Allow `pos == end'. Explicitly check
1156 for null text in each constructor.
1157 (clone): Fixed order of arguments to constructor.
1159 1999-02-22 Tom Tromey <tromey@cygnus.com>
1161 * include/config.h.in: Rebuilt.
1162 * acconfig.h (HAVE_INET6): New define.
1163 (HAVE_SOCKLEN_T): Likewise.
1164 * java/net/PlainSocketImpl.java: Added copyright header.
1165 * java/net/natPlainSocketImpl.cc: Added copyright header.
1166 (union SockAddr): Use HAVE_INET6, not AF_INET6.
1168 (connect): Likewise.
1170 (socklen_t): New typedef.
1171 (accept): Use socklen_t.
1172 * java/net/natInetAddress.cc: Added copyright header.
1173 (HAVE_GETHOSTNAME): Don't define.
1174 (HAVE_INET_ADDR): Likewise.
1175 (lookup): Fixed typo.
1176 (aton): Don't use `address' as name of local variable.
1177 (lookup): Use HAVE_INET6, not AF_INET6.
1179 * configure: Rebuilt.
1180 * configure.in: Look for functions inet_aton, inet_addr,
1181 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
1182 Check for socklen_t typedef.
1184 * exception.cc (__throw): Declare as __noreturn__.
1186 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
1188 * Makefile.am, Makefile.in: Also build java/net.
1189 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
1191 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
1192 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
1194 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
1195 * include/cni.h (JvMalloc, JvFree): New inline functions.
1196 (JvThrow): Add __noreturn__ attribute.
1197 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
1198 (_Jv_Throw): Add __noreturn__ attribute.
1200 * java/net/PlainSocketImpl.java: Init fnum to -1.
1201 * java/net/ServerSocket.java: Add missing throws clauses.
1202 * java/lang/Socket.java: For the constructor taking a SocketImpl,
1203 don't call create on the latter. Instead, other constructors
1204 have to explicitly call SocketImpl.create.
1205 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
1206 from size_t to int, to match ::accept prototype.
1207 * java/net/natInetAddress.cc: Use JvFree rather than free.
1210 1999-02-22 Tom Tromey <tromey@cygnus.com>
1212 * include/javaprims.h: Added new classes.
1213 * java/text/StringCharacterIterator.java: New file.
1214 * java/text/CharacterIterator.java: New file.
1216 * java/text/ParseException.java (errorOffset): Now private.
1218 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
1220 * java/net: New package.
1221 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
1222 Socket.java,SocketException.java,SocketImpl.java,
1223 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
1224 natPlainSocketImpl.cc}: New classes.
1226 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
1227 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
1228 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
1229 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
1231 * classes.pl: Translate package into "namespace", not "class".
1232 * include/javaprims.h: Update class list, using "namespace".
1234 1999-02-21 Tom Tromey <tromey@cygnus.com>
1236 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
1237 Define when appropriate.
1239 1999-02-20 Tom Tromey <tromey@cygnus.com>
1241 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
1242 as a single byte and \u07ff as two bytes.
1243 (_Jv_GetStringUTFLength): Likewise.
1244 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
1245 with 0x0f, not 0x1f.
1247 1999-02-19 Tom Tromey <tromey@cygnus.com>
1249 * java/io/DataOutputStream.java (writeUTF): When encoding
1250 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
1251 * java/io/DataInputStream.java (readUTF): Mask second byte of
1252 3-byte character with 0x3f, not 0x1f.
1254 * java/io/DataInputStream.java (readLong): Cast result of
1255 readUnsignedByte to long before using.
1257 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
1260 * mauve-libjava: Re-enabled java.io.DataInputOutput.
1261 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
1262 argument to avoid warning.
1263 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
1264 argument to avoid warning.
1266 1999-02-18 Tom Tromey <tromey@cygnus.com>
1268 * mauve-libjava: Omit java.io.DataInputOutput and
1269 java.io.Utf8Encoding.
1271 1999-02-17 Tom Tromey <tromey@cygnus.com>
1273 * Makefile.in: Rebuilt.
1274 * Makefile.am (nat_headers): Added InterruptedIOException.h.
1275 * java/io/natFileDescriptorPosix.cc: Include
1276 InterruptedIOException.h, Thread.h.
1277 (write): Throw InterruptedIOException when required.
1279 * posix-threads.cc: Include <signal.h>.
1280 (_Jv_ThreadInterrupt): New function.
1282 (handle_intr): New function.
1283 (_Jv_InitThreads): Register handle_intr via sigaction.
1284 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
1285 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
1286 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
1287 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
1289 1999-02-19 Andrew Haley <aph@cygnus.com>
1291 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
1293 (ThreadGroup (int)): Set the maximum priority of the initial
1296 1999-02-18 Andrew Haley <aph@cygnus.com>
1298 * java/lang/natClass.cc (forName): Check for the case where a
1299 classname is the name of an array and call FindClassFromSignature
1302 1999-02-18 Andrew Haley <aph@cygnus.com>
1304 * java/lang/StringBuffer (insert (int, String)): Move up any
1305 characters above the insert position and increase the length of
1306 the string buffer by the length of the argument.
1307 (insert (int, char[])): Likewise.
1308 (insert (int, char)): Likewise.
1309 (StringBuffer (String)): The initial capacity of the string buffer
1310 is 16 plus the length of the argument.
1311 (getChars): Add a JDK 1.2 FIXME.
1313 1999-02-18 Andrew Haley <aph@cygnus.com>
1315 * java/lang/Short.java (parseShort(String, int)): Pass radix to
1318 1999-02-18 Andrew Haley <aph@cygnus.com>
1320 * java/lang/Double.java (equals): Use a bit-by-bit comparision
1321 instead of floating-point equality. This is necessary for
1322 correct floating-point Hashtables.
1323 * java/lang/Float.java (equals): Ditto.
1325 1999-02-16 Tom Tromey <tromey@cygnus.com>
1327 * java/util/Properties.java (list): Truncate value to 37
1328 characters and add "...".
1330 1999-02-16 Tom Tromey <tromey@cygnus.com>
1332 * java/util/Vector.java (Vector): Throw IllegalArgumentException
1333 if initCap is negative.
1334 (contains): Implement JDK1.2-style handling of null argument.
1335 (removeElement): Likewise.
1336 (indexOf): Likewise. Also, correctly handle case where idx is
1338 (lastIndexOf): Likewise.
1340 1999-02-16 Tom Tromey <tromey@cygnus.com>
1342 * java/lang/natString.cc (init): Increment source pointer in
1345 1999-02-16 Tom Tromey <tromey@cygnus.com>
1347 * exception.cc: Include NullPointerException.h.
1348 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
1350 1999-02-16 Tom Tromey <tromey@cygnus.com>
1352 * Makefile.in: Rebuilt.
1353 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
1355 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
1357 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
1358 we're compiling canadian.
1359 * configure: Regenerated.
1361 1999-02-12 Andrew Haley <aph@cygnus.com>
1363 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
1364 deleted from libgcj.
1366 1999-02-12 Tom Tromey <tromey@cygnus.com>
1368 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
1369 (_Jv_eh_free): Don't call free.
1370 Don't declare malloc or free.
1372 1999-02-11 Tom Tromey <tromey@cygnus.com>
1374 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
1376 1999-02-11 Andrew Haley <aph@cygnus.com>
1378 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
1379 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
1380 needed by java.lang.*.
1381 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
1382 wf_fmod.o: Removed from libjava.a.
1384 1999-02-11 Tom Tromey <tromey@cygnus.com>
1386 * include/javaprims.h: Reverted previous change; with it
1387 exception.cc can't compile.
1389 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
1391 * include/config.h.in: Rebuilt.
1392 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
1394 * configure: Rebuilt.
1395 * configure.in: Check for sched_yield. Look in thread library for
1396 all thread functions.
1398 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
1399 no recursive mutexes.
1400 (_Jv_MutexDestroy): Define when required.
1401 (_Jv_MutexLock): Likewise.
1402 (_Jv_MutexUnlock): Likewise.
1403 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
1404 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
1405 (_Jv_Mutex_t): New structure.
1406 (_Jv_MutexDestroy): Only define if recursive mutexes available.
1407 (_Jv_MutexLock): Likewise.
1408 (_Jv_MutexUnlock): Likewise.
1410 1999-02-10 Tom Tromey <tromey@cygnus.com>
1412 * aclocal.m4, configure, Makefile.in: Rebuilt.
1413 * acinclude.m4: Renamed libjava to libgcj. Updated to use
1415 * configure.in: Changed to track library changes.
1416 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
1417 (AM_CXXFLAGS): Likewise.
1418 (data_DATA): Likewise.
1419 (AM_CFLAGS): Likewise.
1420 (JC1FLAGS): Likewise.
1421 (libgcj_a_SOURCES): Likewise.
1422 (EXTRA_libgcj_a_SOURCES): Likewise.
1423 (libgcj_a_DEPENDENCIES): Likewise.
1424 (libgcj_a_LIBADD): Likewise.
1425 (libgcj.zip): Likewise.
1426 (CLEANFILES): Likewise.
1427 ($(nat_headers)): Likewise.
1428 (java/lang/FirstThread.h): Likewise.
1429 (java/lang/ThreadGroup.h): Likewise.
1430 (java/lang/String.h): Likewise.
1431 (java/lang/reflect/Field.h): Likewise.
1432 (BUILT_SOURCES): Likewise.
1433 (maintainer-check): Likewise.
1434 (CONFIG_STATUS_DEPENDENCIES): Likewise.
1435 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
1437 * java/util/natGregorianCalendar.cc (computeFields): Only use
1438 gmtime_r and localtime_r when configured for posix threads.
1440 * java/io/natFile.cc (get_entry): Only use readdir_r when
1441 configured for posix threads.
1443 * java/util/natGregorianCalendar.cc: Update copyright notice.
1444 * java/util/TimeZone.java: Ditto.
1445 * java/util/SimpleTimeZone.java: Ditto.
1447 1999-02-08 Tom Tromey <tromey@cygnus.com>
1449 * java/io/PrintStream.java (line_separator): New constant.
1450 (print): Use line_separator, not `file.separator' property.
1451 (println): Use line_separator.
1453 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
1454 when trying to instantiate Class.
1456 * java/lang/ThreadGroup.java (ThreadGroup): Throw
1457 NullPointerException if argument is null.
1459 * java/lang/Thread.java (setName): Throw NullPointerException, not
1460 IllegalArgumentException.
1463 1999-02-08 Andrew Haley <aph@cygnus.com>
1465 * java/lang/natClass.cc (newInstance): Don't allow anyone to
1466 create new Classes with Class.newInstance().
1468 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
1469 semiciolon to end of an array Class's signature if the elements of
1470 the array aren't themselves arrays.
1472 * java/lang/natSystem.cc (arraycopy): The size of an element of an
1473 array of objects is always sizeof(jobject), not the size of the
1474 object to which the reference points.
1476 1999-02-08 Tom Tromey <tromey@cygnus.com>
1478 * java/util/BitSet.java (and): Throw NullPointerException when
1483 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
1484 if argument is negative.
1485 (clear): Correctly compute `offset'. Throw
1486 IndexOutOfBoundsException when required.
1488 (get): Likewise. Also, return correct value.
1489 (ensure): Changed meaning of argument.
1490 (toString): Wrap contents in `{}'; put spaces after commas.
1491 (hashCode): Don't try to examine elements off the end of array.
1492 (or): Correctly include bits past the end of this bit set.
1495 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
1497 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
1498 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
1500 1999-02-04 Andrew Haley <aph@cygnus.com>
1502 * java/lang/natClass.cc (Class::forName): Remove code which mapped
1503 '/' in signatures to '.'
1504 (Class::getName): Likewise,
1505 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
1507 * java/lang/natFirstThread.cc (run): Change '/' in main's
1510 1999-02-03 Andrew Haley <aph@cygnus.com>
1512 * configure.host: -ffloat-store added when compiling libjava on
1513 x86. fdlibm apparently relies on this.
1515 * java/lang/ThreadGroup.java (add): throw an exception if the
1516 ThreadGroup has been destroyed.
1518 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
1521 1999-01-27 Tom Tromey <tromey@cygnus.com>
1523 * java/lang/StringBuffer.java (StringBuffer): Handle null
1526 1999-01-21 Tom Tromey <tromey@cygnus.com>
1528 * java/lang/natFirstThread.cc (run): Don't require main to be
1531 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
1533 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
1535 1999-01-20 Tom Tromey <tromey@cygnus.com>
1537 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
1541 (unintern): Likewise.
1542 (_Jv_NewStringUtf8Const): Likewise.
1544 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
1545 Character.isLetter, to see if character is self-quoting. Also,
1546 correctly handle quoted characters.
1547 (parse): Fixed typo. Also now throws ParseException.
1549 1999-01-15 Tom Tromey <tromey@cygnus.com>
1551 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
1553 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
1554 _Jv_SyncInfo has `init' member.
1556 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
1559 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
1560 IllegalMonitorStateException if unlock fails.
1562 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
1564 (_Jv_NewObjectArray): Likewise.
1566 1999-01-14 Tom Tromey <tromey@cygnus.com>
1568 * java/lang/Character.java (isJavaIdentifierPart): Allow
1569 LETTER_NUMBER characters.
1571 * chartables.pl (process_char): Fixed error messages.
1573 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
1574 * chartables.pl: Updated comments. Changed detection of non-digit
1575 numeric values (no longer miss \u00b2 and friends).
1577 * java/lang/Character.java (isJavaIdentifierPart): Recognize
1578 currency symbols and connector punctuation.
1579 (isIdentifierIgnorable): Make 7f-9f ignorable.
1581 * prims.cc (_Jv_NewObjectArray): Check for overflow.
1582 (_Jv_NewPrimArray): Likewise.
1583 (SIZE_T_MAX): New define.
1585 * java/lang/ClassLoader.java (system): Now private and final.
1587 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
1590 * configure: Rebuilt.
1591 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
1593 * exception.cc: Include gansidecl.h.
1595 1999-01-14 Andrew Haley <aph@cygnus.com>
1597 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
1598 corrected: they didn't treat -0.0 and NaNs correctly.
1600 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
1602 * nogc.cc: Use calloc to zero out memory.
1604 1999-01-11 Tom Tromey <tromey@cygnus.com>
1606 * java/lang/natClass.cc (isInstance): Return false if this class
1607 is primitive, not if class of `obj' is primitive.
1608 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
1610 * java/io/SequenceInputStream.java (close): Handle case where `in'
1613 * java/text/DateFormat.java (format): New method.
1615 * mauve-libjava: Omit java.text.DateFormat.
1617 1999-01-08 Tom Tromey <tromey@cygnus.com>
1619 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
1621 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
1623 (_Jv_CondNotifyAll): Likewise.
1625 * configure: Rebuilt.
1626 * configure.in: Change --enable-source-compilation logic to work
1629 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
1631 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
1632 and RUNTESTFLAGS from AM_MAKEFLAGS.
1633 * configure.in: AM_RUNTESTFLAGS added.
1634 * configure.host: AM_RUNTESTFLAGS added.
1635 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
1636 * configure: rebuilt.
1637 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
1639 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
1640 argv[] made conditional because embedded targets may not have
1642 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
1643 explanatory comments added in call to super.
1645 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
1646 exception thrown in the test harness itself added.
1647 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
1649 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
1651 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
1653 1999-01-06 Tom Tromey <tromey@cygnus.com>
1655 * java/io/natFile.cc (get_entry): New function.
1656 (performList): Use get_entry.
1657 * include/config.h.in: Rebuilt.
1658 * acconfig.h (HAVE_READDIR_R): New define.
1659 * configure: Rebuilt.
1660 * configure.in: Look for readdir_r.
1662 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
1664 * java/util/natDate.cc: Added copyright header.
1666 1999-01-05 Tom Tromey <tromey@cygnus.com>
1668 * include/config.h.in: Rebuilt.
1669 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
1670 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
1671 * configure: Rebuilt.
1672 * configure.in: Check for access, stat, mkdir, rename, rmdir,
1673 unlink, and realpath.
1674 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
1675 (stat): Conditionalize on HAVE_STAT.
1677 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
1678 (performMkdir): Conditionalize on HAVE_MKDIR.
1679 (performRenameTo): Conditionalize on HAVE_RENAME.
1680 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
1682 * include/config.h.in: Rebuilt.
1683 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
1684 * configure: Rebuilt.
1685 * configure.in: Check for gmtime_r and localtime_r. For cross
1686 builds, assume they exist.
1688 * mauve-libjava: Include java.text.DateFormatSymbols again.
1689 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
1690 from setAmPmStrings.
1692 * mauve-libjava: Omit java.text.DateFormatSymbols.
1694 1999-01-04 Tom Tromey <tromey@cygnus.com>
1696 * java/io/PushbackReader.java: `off' already includes `numBytes'.
1698 * java/io/LineNumberReader.java (read): Decrement `count' in
1701 * java/io/BufferedWriter.java (write): Correctly determine when
1702 incoming data would overrun buffer. Flush buffer if write causes
1705 * java/io/BufferedOutputStream.java (write): Increment `count'
1706 after copying data into buffer.
1708 * java/io/FilterOutputStream.java (close): Call flush first.
1710 * java/io/PipedReader.java (read): If read causes `out' to catch
1711 up with `in', then set `in' to -1.
1713 * java/io/LineNumberInputStream.java (read): If no bytes read,
1714 return -1. If no bytes requested, return 0.
1716 * java/lang/StringBuffer.java (insert): If `str' is null, use
1719 1998-12-30 Anthony Green <green@cygnus.com>
1722 * LIBJAVA_LICENSE, COPYING.LIB: Created.
1724 1998-12-23 Tom Tromey <tromey@cygnus.com>
1726 * java/io/PushbackInputStream.java (read): `off' already includes
1729 1998-12-17 Tom Tromey <tromey@cygnus.com>
1731 * Makefile.in: Rebuilt.
1732 * Makefile.am (GCJ_canadian): Include target_alias.
1734 * java/lang/natFirstThread.cc (run): Require main's class to be
1737 1998-12-16 Tom Tromey <tromey@cygnus.com>
1739 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
1741 * java/util/ResourceBundle.java (getBundle): Throw
1742 NullPointerException if locale argument is null.
1744 * java/lang/natClass.cc (forName): Throw NullPointerException if
1746 Include NullPointerException.h.
1748 1998-12-14 Tom Tromey <tromey@cygnus.com>
1750 * java/lang/Character.java (Character): Implement Comparable.
1751 (compareTo): New methods.
1753 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
1754 correct country and language codes.
1755 (UK, US): New constants.
1756 (setDefault): Language codes are lower-case.
1758 * java/lang/natClass.cc (getDeclaredConstructor): New method.
1759 (getDeclaredConstructors): Likewise.
1760 (getDeclaredField): Likewise.
1761 (getDeclaredFields): Likewise.
1762 (getDeclaredMethod): Likewise.
1763 (getDeclaredMethods): Likewise.
1764 (getField): Likewise.
1765 (getFields): Likewise.
1766 (getMethod): Likewise.
1767 (getMethods): Likewise.
1768 * java/lang/Class.java: Declare new methods.
1769 * java/lang/Class.h: Declare new methods.
1771 * java/lang/natString.cc: Removed `#pragma implementation'.
1772 * include/cni.h (_Jv_GetStringChars): New function.
1773 * Makefile.in: Rebuilt.
1774 * Makefile.am (java/lang/String.h): Don't generate definition for
1777 * java/lang/natString.cc: Added `#pragma implementation'.
1779 * Makefile.in: Rebuilt.
1780 * Makefile.am (libjava.zip): Put build directory first in class
1781 path to avoid bug in compiler.
1783 1998-12-14 Anthony Green <green@cygnus.com>
1785 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
1787 * include/javaprims.h: Add EventObject, ListResourceBundle and
1790 1998-12-13 Anthony Green <green@cygnus.com>
1792 * mauve-libjava: Run the ResourceBundle tests.
1794 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
1797 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
1799 * configure.in, configure: Make --enable-gcj-classes and
1800 --enable-source-compilation the default. (Nervously...) Yeah!
1801 Based on a patch from Tom Tromey.
1803 1998-12-13 Tom Tromey <tromey@cygnus.com>
1805 * java/util/EventObject.java: New file.
1806 * java/util/EventListener.java: New file.
1808 * include/javaprims.h: Updated class declarations.
1809 * Makefile.in: Rebuilt.
1810 * Makefile.am (nat_headers): Added Constructor.h.
1811 (java/lang/String.h): Don't inline String::length().
1812 * java/lang/Class.h (getConstructor, getConstructors): Declare.
1813 * java/lang/Class.java (initializeClass, hackRunInitializers,
1814 hackTrampoline): No need to mark `final'.
1815 (getConstructor, getConstructors): Declare.
1816 * java/lang/reflect/Field.java (equals): New method.
1817 * java/lang/natClass.cc (getConstructor): New method.
1818 (getConstructors): Likewise.
1819 Include Method.h, Field.h, Constructor.h.
1820 * java/lang/reflect/Constructor.java: New file.
1821 * java/lang/reflect/Method.java (toString): No space before open
1823 (equals): Simplified.
1825 1998-12-13 Anthony Green <green@cygnus.com>
1827 * java/util/ResourceBundle.java: New file.
1828 * java/util/ListResourceBundle.java: New file.
1830 1998-12-12 Tom Tromey <tromey@cygnus.com>
1832 * java/lang/System.java (in, out, err): Now buffered streams by
1835 * include/javaprims.h: Updated class declarations.
1836 * Makefile.in: Rebuilt.
1837 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
1838 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
1840 (nat_files): Added natMethod.o.
1841 * java/lang/reflect/natMethod.cc: New file.
1842 * java/lang/reflect/Field.java (Field): Now extends
1844 * java/lang/reflect/AccessibleObject.java: New file.
1845 * java/lang/reflect/InvocationTargetException.java: New file.
1847 1998-12-11 Tom Tromey <tromey@cygnus.com>
1849 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
1850 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
1851 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
1853 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
1855 1998-12-09 Tom Tromey <tromey@cygnus.com>
1857 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
1860 * java/lang/natCharacter.cc (toTitleCase): Handle case where
1861 character is already titlecase.
1863 * java/lang/Character.java (isJavaLetter): Follow spec.
1864 (isJavaLetterOrDigit): Likewise.
1866 * java/util/GregorianCalendar.java (gregorianCutover): Append
1869 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
1871 1998-12-08 Tom Tromey <tromey@cygnus.com>
1873 * java/lang/reflect/Modifier.java (toString): Replace second
1874 `static' with `synchronized'.
1876 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
1877 * java/lang/Object.h (Object::hack12_6): Declare.
1878 * java/lang/Object.java (hack12_6): New function.
1880 1998-12-07 Tom Tromey <tromey@cygnus.com>
1882 * include/java-array.h (__JArray::clone): Removed decl.
1883 * prims.cc (__JArray::clone): Removed.
1884 * java/lang/natObject.cc (clone): Incorporate code to clone an
1887 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
1888 (_Jv_FindArrayClass): Set dtable_method_count on new class.
1889 Correctly use dtable_method_count.
1891 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
1893 * java/lang/Double.java (isInfinite, isNaN): Handle correct
1896 1998-12-06 Anthony Green <green@cygnus.com>
1898 * mauve-libjava: Don't test ResourceBundle.
1900 1998-12-04 Tom Tromey <tromey@cygnus.com>
1902 More JDK 1.2 spec fixes:
1903 * java/util/Date.java (millis): Now private.
1904 * java/text/DateFormat.java (DateFormat): Constructor now
1906 * java/lang/Void.java (Void): New private constructor.
1907 * java/lang/System.java (System): New private constructor.
1908 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
1910 (currentClassLoader): New method.
1911 (currentLoadedClass): New method.
1912 * java/lang/Math.java (Math): New private constructor.
1913 * java/lang/Compiler.java (Compiler): New private constructor.
1914 * java/lang/Class.java (Class): New private constructor.
1915 * java/lang/Double.java (toString): Removed access specifier from
1916 two-argument `toString' method.
1918 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
1920 * java/lang/s_rint.c (rint): Make the variable w volatile; this
1921 causes it to be flushed from an fp register (where it may be
1922 longer than double precision) to a double in memory. This is
1923 essential to ensure correct rounding behaviour.
1925 1998-12-04 Tom Tromey <tromey@cygnus.com>
1927 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
1930 * java/lang/Character.java (isIdentifierIgnorable): Added comment
1931 explaining apparent divergence from JDK 1.2.
1933 1998-12-04 Per Bothner <bothner@cygnus.com>
1935 * include/no-threads.h: Remove unused parameter names.
1936 This silences a bunch of warnings.
1938 1998-12-04 Tom Tromey <tromey@cygnus.com>
1940 * include/config.h.in: Rebuilt.
1941 * acconfig.h (HAVE_CTIME_R): New symbol.
1943 1998-12-03 Tom Tromey <tromey@cygnus.com>
1945 * mauve-libjava: Added many more categories to reject.
1947 Changes to follow JDK1.2 spec:
1948 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
1949 setErr, setIn, setOut): No need to be `final'.
1950 * java/lang/natObject.cc (wait): `nanos' argument is an int.
1951 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
1952 * java/lang/Object.java (wait): `nanos' argument is an int.
1953 * java/lang/VirtualMachineError.java: Class is abstract.
1954 * java/lang/ThreadDeath.java: Made constructors public.
1955 * java/io/FileDescriptor.java (FileDescriptor): Added missing
1958 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
1960 * java/text/DateFormatSymbols.java (getAmPmStrings,
1961 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
1963 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
1965 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
1966 writeDouble, writeByte, writeBytes, writeChar, writeChars,
1967 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
1970 * java/lang/IllegalThreadStateException.java
1971 (IllegalThreadStateException): Changed extending class to match spec.
1973 * java/lang/NumberFormatException.java
1974 (java/lang/NumberFormatException): Changed extending class to match
1977 * java/util/Observer.java (Observer): Changed sig to match JCL.
1979 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
1981 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
1982 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
1983 signature to match JDK 1.1 and 1.2.
1985 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
1987 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
1988 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
1989 * Makefile.in, configure: Rebuilt.
1991 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
1994 1998-12-02 Tom Tromey <tromey@cygnus.com>
1996 * mauve-libjava: New file.
1998 The remaining `-W -Wall' fixes:
1999 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
2001 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
2003 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
2005 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
2007 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
2009 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
2011 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
2013 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
2015 * java/lang/mprec.c (Balloc): Removed unused variable.
2016 (mult): Added parentheses per gcc suggestion.
2017 (pow5mult): Likewise.
2022 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
2023 suggestion. Added cast to `int' to avoid signed/unsigned
2025 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
2027 (IsAssignableFrom): Likewise.
2028 (_Jv_JNI_GetObjectField): Likewise.
2029 (_Jv_JNI_GetByteField): Likewise.
2030 (_Jv_JNI_GetShortField): Likewise.
2031 (_Jv_JNI_GetIntField): Likewise.
2032 (_Jv_JNI_GetLongField): Likewise.
2033 (_Jv_JNI_GetStringLength): Likewise.
2034 (_Jv_JNI_ToReflectedField): Likewise.
2035 (_Jv_JNI_FromReflectedField): Likewise.
2036 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
2038 * Makefile.in: Rebuilt.
2039 * Makefile.am (AM_CFLAGS): Define conditionally.
2040 (WARNINGS): New macro.
2041 (AM_CXXFLAGS): Include WARNINGS.
2042 * configure: Rebuilt.
2043 * configure.in (USING_GCC): New conditional.
2045 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
2047 * java/lang/Character.java: Changed classification constants to
2048 type `byte' to match JDK 1.2 docs.
2050 1998-12-01 Tom Tromey <tromey@cygnus.com>
2052 Some fixes to be `-W -Wall' clean:
2053 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
2054 (_Jv_MarkArray): Likewise.
2055 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
2056 (to_upper_title): Likewise.
2057 (isTitleCase): Likewise.
2058 (toTitleCase): Likewise.
2059 (getNumericValue): Likewise.
2060 (isLowerCase): Likewise.
2061 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
2062 (avoids compiler warning).
2063 * java/lang/natClass.cc (getDeclaredClasses): Always return a
2065 (getDeclaringClass): Likewise.
2066 (_Jv_LookupInterfaceMethod): Likewise.
2067 (_Jv_NewClass): Removed name of unused parameter.
2068 * exception.cc (_Jv_type_matcher): Removed unused variable.
2069 (_Jv_setup_eh_info): Removed name of unused parameter.
2070 * prims.cc (_Jv_NewArray): Always return a value.
2071 (_Jv_FindClassFromSignature): Likewise.
2072 * include/java-field.h (getNameUtf8Const): Removed name of unused
2074 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
2076 (_Jv_ThreadSetPriority): Likewise.
2078 * java/lang/natString.cc (hashChars): Now static.
2080 * java/lang/FirstThread.java (FirstThread): Now final.
2082 * java/io/File.java (performMkdir, performRenameTo): Now private.
2084 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
2085 if no time function defined.
2087 * configure: Rebuilt.
2088 * configure.in: Look for ctime_r, ctime.
2089 * java/util/Date.java (toString): Now native.
2090 * java/util/natDate.cc (toString): Rewrote.
2092 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
2094 * Add LDFLAGS line to allow TX39 test cases to link when cross
2097 1998-11-23 Anthony Green <green@cygnus.com>
2099 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
2100 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
2101 quick-threads.cc, include/boehm-gc.h, include/cni.h,
2102 include/java-array.h, include/java-assert.h, include/java-field.h,
2103 include/javaprims.h, include/jni.h, include/jvm.h,
2104 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
2105 include/quick-threads.h, java/io/BufferedInputStream.java,
2106 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
2107 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
2108 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
2109 java/io/CharArrayWriter.java,
2110 java/io/CharConversionException.java, java/io/DataInput.java,
2111 java/io/DataInputStream.java, java/io/DataOutput.java,
2112 java/io/DataOutputStream.java, java/io/EOFException.java,
2113 java/io/File.java, java/io/FileDescriptor.java,
2114 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
2115 java/io/FileOutputStream.java, java/io/FileReader.java,
2116 java/io/FileWriter.java, java/io/FilenameFilter.java,
2117 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
2118 java/io/FilterReader.java, java/io/FilterWriter.java,
2119 java/io/IOException.java, java/io/InputStream.java,
2120 java/io/InputStreamReader.java,
2121 java/io/InterruptedIOException.java,
2122 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
2123 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
2124 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
2125 java/io/PipedReader.java, java/io/PipedWriter.java,
2126 java/io/PrintStream.java, java/io/PrintWriter.java,
2127 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
2128 java/io/RandomAccessFile.java, java/io/Reader.java,
2129 java/io/SequenceInputStream.java, java/io/Serializable.java,
2130 java/io/StreamTokenizer.java,
2131 java/io/StringBufferInputStream.java, java/io/StringReader.java,
2132 java/io/StringWriter.java, java/io/SyncFailedException.java,
2133 java/io/UTFDataFormatException.java,
2134 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
2135 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
2136 java/io/natFileDescriptorPosix.cc,
2137 java/lang/AbstractMethodError.java,
2138 java/lang/ArithmeticException.java,
2139 java/lang/ArrayIndexOutOfBoundsException.java,
2140 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
2141 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
2142 java/lang/Class.java, java/lang/ClassCastException.java,
2143 java/lang/ClassCircularityError.java,
2144 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
2145 java/lang/ClassNotFoundException.java,
2146 java/lang/CloneNotSupportedException.java,
2147 java/lang/Cloneable.java, java/lang/Comparable.java,
2148 java/lang/Compiler.java, java/lang/Double.java,
2149 java/lang/Error.java, java/lang/Exception.java,
2150 java/lang/ExceptionInInitializerError.java,
2151 java/lang/FirstThread.java, java/lang/Float.java,
2152 java/lang/IllegalAccessError.java,
2153 java/lang/IllegalAccessException.java,
2154 java/lang/IllegalArgumentException.java,
2155 java/lang/IllegalMonitorStateException.java,
2156 java/lang/IllegalStateException.java,
2157 java/lang/IllegalThreadStateException.java,
2158 java/lang/IncompatibleClassChangeError.java,
2159 java/lang/IndexOutOfBoundsException.java,
2160 java/lang/InstantiationError.java,
2161 java/lang/InstantiationException.java, java/lang/Integer.java,
2162 java/lang/InternalError.java, java/lang/InterruptedException.java,
2163 java/lang/LinkageError.java, java/lang/Long.java,
2164 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
2165 java/lang/NoClassDefFoundError.java,
2166 java/lang/NoSuchFieldError.java,
2167 java/lang/NoSuchFieldException.java,
2168 java/lang/NoSuchMethodError.java,
2169 java/lang/NoSuchMethodException.java,
2170 java/lang/NullPointerException.java, java/lang/Number.java,
2171 java/lang/NumberFormatException.java, java/lang/Object.h,
2172 java/lang/Object.java, java/lang/OutOfMemoryError.java,
2173 java/lang/Process.java, java/lang/Runnable.java,
2174 java/lang/Runtime.java, java/lang/RuntimeException.java,
2175 java/lang/SecurityException.java, java/lang/SecurityManager.java,
2176 java/lang/Short.java, java/lang/StackOverflowError.java,
2177 java/lang/String.java, java/lang/StringBuffer.java,
2178 java/lang/StringIndexOutOfBoundsException.java,
2179 java/lang/System.java, java/lang/Thread.java,
2180 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
2181 java/lang/Throwable.java, java/lang/UnknownError.java,
2182 java/lang/UnsatisfiedLinkError.java,
2183 java/lang/UnsupportedOperationException.java,
2184 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
2185 java/lang/Void.java, java/lang/natCharacter.cc,
2186 java/lang/natClass.cc, java/lang/natDouble.cc,
2187 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
2188 java/lang/natMath.cc, java/lang/natObject.cc,
2189 java/lang/natRuntime.cc, java/lang/natString.cc,
2190 java/lang/natSystem.cc, java/lang/natThread.cc,
2191 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
2192 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
2193 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
2194 java/text/FieldPosition.java, java/text/Format.java,
2195 java/text/NumberFormat.java, java/text/ParseException.java,
2196 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
2197 java/util/BitSet.java, java/util/Calendar.java,
2198 java/util/ConcurrentModificationException.java,
2199 java/util/Date.java, java/util/Dictionary.java,
2200 java/util/EmptyStackException.java, java/util/Enumeration.java,
2201 java/util/GregorianCalendar.java, java/util/Hashtable.java,
2202 java/util/Locale.java, java/util/MissingResourceException.java,
2203 java/util/NoSuchElementException.java, java/util/Observable.java,
2204 java/util/Observer.java, java/util/Properties.java,
2205 java/util/Random.java, java/util/SimpleTimeZone.java,
2206 java/util/Stack.java, java/util/StringTokenizer.java,
2207 java/util/TimeZone.java, java/util/TooManyListenersException.java,
2208 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
2211 * exception.cc: Include eh-common.h instead of duplicating
2214 1998-11-23 Tom Tromey <tromey@cygnus.com>
2216 * configure.host: Don't add `-O2' to libjava_flags. Only add
2217 `-Os' to libjava_flags once.
2219 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
2221 * Makefile.am: add LIBJAVA_JAVAFLAGS.
2222 * Makefile.in: likewise
2223 * acconfig.h: add ECOS conditional for configure.h
2224 * config.h.in: likewise
2225 * configure: add test for --with-ecos
2226 * configure.in: likewise
2227 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
2228 rename call to avoid name clash.
2229 * java/lang/natSystem.cc: add eCos clock support.
2230 * java/util/natGregorianCalendar.cc: add eCos support.
2232 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
2234 * Makefile.am, Makefile.in, configure.host: tx39 build option
2237 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
2239 * java/io/BufferedReader.java: Added more comments for clarity.
2240 (mark): Used more mnemonic name for local var extraBuffSpace.
2242 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
2243 confusion with private method of same name in superclass.
2244 (skipRedundantLF): Set fields in special case to avoid infinite
2245 recursion. Check if markPos has been invalidated in special case.
2246 (readLine): Rewritten to use readLine method of superclass.
2247 (skip): Incorporated code from lineEnd.
2249 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
2251 * java/io/BufferedReader.java (readLine): New method.
2252 (lineEnd): new private method.
2253 (mark): Track special case for readLine of getting '\r' at the
2260 * java/io/InputStreamReader.java (read): Return number chars skipped
2261 rather than requested.
2263 * java/lang/StringBuffer.java (append): Update count and differentiate
2264 between field and local variable.
2266 * java/util/Date.java (parseTz): Evaluate in minutes rather than
2267 seconds. Deal with military style time.
2268 (parse): Consistently treat all timezones in minutes until final
2269 calculation. Flag as non-local timezone. Return value in milliseconds.
2270 (setTime): Adjust for year offset from 1900.
2271 (UTC): Adjust for year offset from 1900.
2273 1998-11-17 Tom Tromey <tromey@cygnus.com>
2275 * configure: Rebuilt.
2276 * configure.in: Switch on host, not target.
2278 * Makefile.in: Rebuilt.
2279 * Makefile.am (GCJ_no): New macro.
2280 (GCJ): Use @CANADIAN@.
2281 (GCJH_no): New macro
2282 (GCJH_canadian): New macro.
2283 (GCJH): Use @CANADIAN@.
2284 (ZIP_no): New macro.
2285 (ZIP_canadian): New macro.
2286 (ZIP): Use @CANADIAN@.
2287 * aclocal.m4, configure: Rebuilt.
2288 * configure.in (CANADIAN): Compute and subst.
2290 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
2292 * java/io/FileDescriptor.java (finalize): Only close file
2293 descriptor if valid.
2295 1998-11-17 Tom Tromey <tromey@cygnus.com>
2297 * prims.cc (_Jv_InitRuntime): Removed.
2299 1998-11-16 Tom Tromey <tromey@cygnus.com>
2301 * java/io/FileOutputStream.java (close): Only close file
2302 descriptor if valid.
2303 (finalize): New method.
2305 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
2306 (_Jv_NewPrimArray): Likewise.
2307 * boehm.cc (_Jv_RegisterFinalizer): Use
2308 GC_REGISTER_FINALIZER_NO_ORDER.
2309 (GC_GENERIC_MALLOC): New define.
2310 (_Jv_AllocObj): Use it.
2311 (_Jv_AllocArray): Likewise.
2312 (_Jv_AllocBytes): Likewise.
2313 (_Jv_MarkObj): Just return if vtbl not set.
2314 (_Jv_MarkArray): Likewise.
2315 (MAYBE_MARK): New macro; use everywhere.
2316 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
2318 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
2320 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
2321 to a jlong before calculation to prevent overflow.
2323 1998-11-16 Tom Tromey <tromey@cygnus.com>
2325 * Makefile.in: Rebuilt.
2326 * Makefile.am (nat_headers): Fixed typo.
2328 1998-11-15 Tom Tromey <tromey@cygnus.com>
2330 * java/lang/Class.h (Class::getName): Removed definition.
2331 * Makefile.in: Rebuilt.
2332 * Makefile.am (nat_headers): Added InstantiationException.h,
2333 NoSuchMethodException.h.
2334 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
2335 (init_name): New global.
2336 (hackRunInitializers): Use clinit_name.
2337 Include InstantiationException.h, NoSuchMethodException.h.
2338 (newInstance): Do some error checking (but not all). Call
2340 (forName): Throw exception if class not found.
2341 (getName): New method.
2342 (forName): Transform class name from external format to internal
2343 format before lookup.
2345 1998-11-15 Anthony Green <green@cygnus.com>
2347 * java/lang/Class.h (Class::forName): Method is static.
2349 * java/lang/natClass.cc (newInstance): Add simple implementation.
2352 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
2354 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
2355 int), for compatibility with jc1.
2357 1998-11-14 Tom Tromey <tromey@cygnus.com>
2359 * include/config.h.in: Rebuilt.
2360 * acconfig.h (LINUX_THREADS): New define.
2361 * configure: Rebuilt.
2362 * configure.in: Define LINUX_THREADS if using POSIX threads on
2363 Linux. Look for pthread_mutexattr_setkind_np function.
2364 * posix-threads.cc (throw_cleanup): New function.
2365 (really_start): Push cleanup function.
2366 (_Jv_ThreadCancel): New function.
2367 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
2368 (_Jv_ThreadInitData): Set `exception' field in new structure.
2369 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
2371 (_Jv_ThreadWait): New function.
2372 (_Jv_InitThreads): Initialize daemon globals.
2373 (FLAG_DAEMON): New macro.
2374 (really_start): Notify daemon_cond when non-daemon thread exits.
2375 Include <java/lang/System.h>.
2376 (struct starter): `object' field now a thread.
2377 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
2378 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
2379 (_Jv_ThreadWait): Removed definition.
2380 (_Jv_Thread_t): Added `exception' field.
2381 (_Jv_ThreadCancel): Removed definition.
2383 1998-11-13 Tom Tromey <tromey@cygnus.com>
2385 * Makefile.in: Rebuilt.
2386 * Makefile.am (libjava.zip): Compute javac before changing
2389 * Makefile.in: Rebuilt.
2390 * Makefile.am (libjava.zip): Include directory entries.
2392 * Makefile.in: Rebuilt.
2393 * Makefile.am (expanded): New macro.
2396 1998-11-12 Tom Tromey <tromey@cygnus.com>
2398 * prims.cc (clone): New function.
2399 * include/java-array.h (__JArray::clone): Removed definition.
2401 * java/lang/natObject.cc (clone): Don't assert that class is not
2402 an array; array's `clone' method just calls this one.
2404 * Makefile.in: Rebuilt.
2405 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
2406 Now creates zip file. Changed all users.
2408 (data_DATA): New macro.
2410 1998-11-11 Tom Tromey <tromey@cygnus.com>
2412 * configure: Rebuilt.
2413 * configure.in: Recognize --enable-java-gc, not --enable-gc.
2415 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
2417 * java/io/InputStream.java (reset): Add msg to thrown exception.
2419 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
2421 * java/io/LineNumberInputStream.java: Rewritten.
2423 * java/io/StringBufferInputStream.java: Removed extraneous import.
2425 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
2427 * java/io/StringBufferInputStream.java: Rewritten.
2429 * java/util/Date.java (parseMonth): Optimize.
2430 (parseDayOfWeek): Created.
2431 (parse): Optimize to use parseDayOfWeek.
2433 1998-11-11 Tom Tromey <tromey@cygnus.com>
2435 * java/lang/StringBuffer.java (append): Handle case where STR is
2438 * include/javaprims.h: Regenerated class declarations.
2440 * configure: Rebuilt.
2441 * configure.in: Added --enable-gcj-classes,
2442 --enable-single-compilation, --enable-source-compilation flags.
2443 * Makefile.in: Rebuilt.
2444 * Makefile.am (java_io_files): New macro.
2445 (java_lang_files): Likewise.
2446 (java_text_files): Likewise.
2447 (java_util_files): Likewise.
2448 (java_files): Use new macros.
2449 (java-io.o): New target.
2450 (java-lang.o): Likewise.
2451 (java-text.o): Likewise.
2452 (java-util.o): Likewise.
2453 (src_io_files): New macro.
2454 (src_lang_files): Likewise.
2455 (src_text_files): Likewise.
2456 (src_util_files): Likewise.
2457 (class_io_files): New macro.
2458 (class_lang_files): Likewise.
2459 (class_text_files): Likewise.
2460 (class_util_files): Likewise.
2461 (class_files): Use new macros.
2462 (javao_files): Define conditionally.
2463 (.java.o): New target.
2464 ($(javao_files)): New target.
2466 (GCJH): Added $(EXEEXT).
2467 (CLASSPATH_ENV): Removed.
2468 (GCJCOMPILE): New macro.
2470 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
2472 * java/util/Date.java (parse): Written from scratch.
2474 1998-11-11 Tom Tromey <tromey@cygnus.com>
2476 * java/lang/Throwable.java (toString): Correct sense of test for
2477 determining when to include detail message in result.
2479 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
2482 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
2484 * java/lang/Class.h: Use _Jv_RegisterClasses, not
2486 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
2487 (_Jv_RegisterClass): Use it.
2488 * include/jvm.h (_Jv_RegisterClasses): Declare.
2489 * java/lang/natObject.cc (init): Removed.
2490 (sync_init): Never call _Jv_InitializeSyncMutex.
2491 (_Jv_InitializeSyncMutex): Don't set `init'.
2492 * prims.cc (JvRunMain): Don't run init functions.
2494 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
2496 * java/lang/natClass.cc (initializeClass): Set state before
2497 resolving constants.
2499 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
2500 (STATE_RESOLVED): New macro.
2501 (initializeClass): Call resolveConstants.
2502 (hackRunInitializers): Don't call resolveConstants.
2503 (_Jv_FindArrayClass): Move short-circuit return for primitive
2504 element types earlier in function.
2506 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
2508 * prims.cc (no_memory): New global.
2509 (_Jv_makeUtf8Const): Throw no_memory.
2510 (_Jv_AllocObject): Likewise.
2511 (_Jv_NewObjectArray): Likewise.
2512 (_Jv_NewPrimArray): Likewise.
2513 (JvRunMain): Initialize no_memory.
2515 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
2517 * java/io/FileInputStream.java: Corrected date comment.
2518 * java/io/SequenceInputStream.java: Rewritten.
2520 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
2522 * java/lang/FirstThread.java (die): New method.
2523 * java/lang/natFirstThread.cc (die): Removed.
2525 (run): Use `DIE', not `die'.
2527 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
2529 * java/io/CharArrayReader.java (read): Move check into synchronized
2530 block to prevent a close while in progress.
2533 * java/io/PushbackReader.java (read): Ditto.
2536 * java/io/StringReader.java (mark): Ditto.
2541 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
2543 * java/io/PipedInputStream.java: Updated status.
2544 (connect): Added code to prevent infinite recursion and to
2545 differentiate exception causes.
2546 (read): Added code to differentiate exception causes.
2547 (receive): Made exception pass string with the cause.
2549 * java/io/PipedOutputStream.java: Updated status.
2550 (connect): Added code to call connect at the other end of the pipe.
2552 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
2554 * java/io/PipedInputStream.java (connect): Throw exception if
2555 already connected to the same output stream.
2556 (read): Do bounds checking first.
2558 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
2560 * java/io/PipedInputStream.java: Added private boolean outClosed.
2561 (available): Removed check if output stream is open.
2562 (close): Mark the buffer as empty so available returns 0.
2563 (read): Check if the output stream was closed and then return EOF
2564 when the buffer is empty.
2565 (receive): Mark the output stream as closed when passed a -1.
2567 * java/io/PipedOutputStream.java (close): Notify the input stream
2568 that there's no more data coming.
2569 (connect): Added a FIXME comment to note more coordination needed
2570 with PipedInputStream.
2571 (flush): Added a FIXME comment to mark what this method might do
2574 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
2576 * java/io/PipedInputStream.java: Rewritten.
2578 1998-10-30 Tom Tromey <tromey@cygnus.com>
2580 * java/lang/Throwable.java: Rewrote from scratch.
2582 * java/lang/Class.h (Class): Don't mention newMultiArray.
2583 * prims.cc (newMultiArray): Removed.
2584 (_Jv_NewMultiArray): Removed.
2585 (newArray): Removed.
2586 (new_multi_array): New function.
2587 (_Jv_NewMultiArray): Rewrote from scratch.
2589 * include/javaprims.h: Regenerated class declarations.
2590 * classes.pl (scan): Don't declare PrimClass.
2591 * include/cni.h (JvPrimClass): Use new names for classes.
2592 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
2593 added _Jv_PrimClass.
2594 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
2595 (_Jv_initPrimClass): Removed.
2596 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
2597 (_Jv_AllocObject): Added comment.
2598 (_Jv_NewObjectArray): Likewise.
2599 (_Jv_NewPrimArray): Likewise.
2601 1998-10-29 Tom Tromey <tromey@cygnus.com>
2603 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
2604 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
2606 * java/lang/Class.h (Class): Added `dtable_method_count' field.
2608 * java/lang/natObject.cc (init): New global.
2609 (sync_init): Call _Jv_InitializeSyncMutex if required.
2611 * Makefile.in: Rebuilt.
2612 * Makefile.am (nat_headers): Added ClassLoader.h.
2613 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
2614 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
2615 internalAddClass, lookupArray no longer friends.
2616 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
2617 _Jv_FindArrayClass now friends.
2618 * java/lang/natClass.cc (HASH_LEN): New macro.
2619 (HASH_UTF): Likewise.
2620 (loaded_classes): New global.
2621 (_Jv_FindClass): New function.
2622 (ClassClass): New define.
2623 (_Jv_FindClassInCache): New function.
2624 (_Jv_RegisterClass): Likewise.
2625 (_Jv_NewClass): Likewise.
2627 (ObjectClass): New define.
2628 (CloneableClass): New define.
2629 * prims.cc (_Jv_FindClass): Removed.
2630 (simpleLookupClass): Removed.
2631 (insertClass): Removed.
2632 (CLASSHASHSZ): Removed.
2633 (classPool): Removed.
2634 (_Jv_RegisterClass): Removed.
2635 (internalAddClass): Removed.
2636 (ClassClass): Removed.
2637 (RuntimeClass): Removed.
2638 (lookupArray): Removed.
2639 (CloneableClass): Removed.
2640 (CLASSMAXSIG): Removed.
2641 Rearranged file to group related functions together.
2642 (_Jv_IsInstanceOf): Moved to natClass.cc.
2643 (abort_final): Removed.
2644 Removed some unused includes.
2645 (classFromSig): Removed.
2646 (_Jv_FindClassFromSignature): New function.
2647 (_Jv_initPrimClass): Renamed.
2648 (getClass): Removed.
2650 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
2652 * java/io/FileDescriptor.java (finalize): Throws IOException
2653 instead of Throwable.
2655 * java/io/FileInputStream.java: Rewritten.
2657 * java/io/StreamTokenizer.java (nextToken): Unread newline character
2658 at the end of a comment.
2660 1998-10-29 Tom Tromey <tromey@cygnus.com>
2662 * include/javaprims.h: Regenerated class declarations.
2663 * classes.pl (scan): Don't special-case ClassLoader.
2665 * prims.cc (processClass): Removed.
2666 (_Jv_InitClass): Removed.
2667 Removed all CSTATE_ macros.
2668 (resolveConstants): Removed.
2670 (_Jv_NewMultiArray): Cleaned up.
2671 * Makefile.in: Rebuilt.
2672 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
2673 * java/lang/Class.h (Class): Declare new methods. processClass no
2675 * java/lang/Class.java (hackTrampoline): New method.
2676 (initializeClass): Declare.
2677 (hackRunInitializers): Declare.
2678 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
2679 (initializeClass): New method.
2680 (hackRunInitializers): New method.
2681 (init_name, void_signature): Moved from prims.cc.
2682 (_Jv_InitClass): New function.
2683 (isAssignableFrom): Don't call processClass.
2684 (STATE_NOTHING): New macro.
2685 (resolveConstants): New function.
2687 (ErrorClass): New define.
2689 * java/lang/Class.java (getClassLoader): Declare.
2690 * java/lang/ClassLoader.java: Rewrote from scratch.
2692 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
2693 AbstractMethodError.h, IllegalAccessError.h,
2694 NoClassDefFoundError.h.
2695 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
2696 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
2697 longer static. Changed return type.
2698 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
2699 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
2700 * prims.cc (findMethodLocal): Removed.
2701 (processClass): Use _Jv_GetMethodLocal.
2703 1998-10-28 Tom Tromey <tromey@cygnus.com>
2705 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
2706 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
2708 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
2709 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
2711 * include/jni.h: Added copyright header.
2712 * include/javaprims.h: Added copyright header.
2713 * include/java-field.h: Added copyright header.
2714 * include/java-array.h: Added copyright header.
2715 * include/cni.h: Added copyright header.
2717 * include/javaprims.h: Regenerated class declarations using
2718 classes.pl; now they are complete.
2719 * classes.pl: New file.
2721 * java/lang/natMath.cc: Include <config.h>.
2722 * java/lang/reflect/natField.cc: Include <config.h>.
2723 * java/util/NativeUtil.java: Removed.
2724 * Makefile.in: Rebuilt.
2725 * Makefile.am (nat_headers): Added Math.h.
2726 * java/lang/Math.h: Removed.
2727 * java/util/natGregorianCalendar.cc: Added copyright header.
2729 * java/lang/natFloat.cc: Added copyright header.
2730 * java/lang/Byte.java: Added copyright header.
2731 * java/lang/Void.java: Added copyright header.
2732 * java/lang/Short.java: Added copyright header.
2734 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
2736 * include/javaprims.h (java::io): Added bunch of missing classes.
2738 * java/io/DataInputStream.java (readLine): Added a special case
2739 for handling BufferedInputStream data to reduce the likelihood
2740 of a pushback error.
2741 (skipBytes): Added code to handle negative number of skip bytes.
2743 * java/io/StreamTokenizer.java: Rewritten.
2745 1998-10-28 Tom Tromey <tromey@cygnus.com>
2747 * java/util/natGregorianCalendar.cc (computeFields): Call
2748 getRawOffset as a method.
2750 * include/javaprims.h (java::io): Added FilterOutputStream.
2751 * Makefile.in: Rebuilt.
2752 * Makefile.am (nat_headers): Added PrintStream.h,
2753 FilterOutputStream.h.
2754 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
2756 (die): New function.
2757 (run): Die if `main' not found, is not public, or is not static.
2759 * boehm.cc (_Jv_MarkObj): Use new field names.
2760 * include/java-field.h (JvGetFirstInstanceField): Use new field
2762 (JvNumInstanceFields): Likewise.
2763 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
2764 (getInterfaces): Likewise.
2765 * prims.cc (CLASS_CONSTANTS): Removed.
2766 (CLASS_CONST_SIZE): Likewise.
2767 (CLASS_CONST_TAG): Likewise.
2768 (CLASS_CONST_DATA): Likewise.
2769 (CLASS_CONST_UTF8): Likewise.
2770 (WORD2UTF): Likewise.
2771 (CLASS_CLASS): Likewise.
2772 (CLASS_PRIM_SIG): Likewise.
2773 (CLASS_ARRAY_CACHE): Likewise.
2774 (HASH_CHARS): Likewise.
2775 (hashClassName): Likewise.
2776 Many changes to use new field names.
2777 * java/lang/Class.h (Class): Renamed fields to track compiler.
2779 1998-10-27 Tom Tromey <tromey@cygnus.com>
2781 * java/lang/natClass.cc: Use #pragma implementation.
2782 (getComponentType): Moved into header.
2783 (getModifiers): Likewise.
2784 (getName): Likewise.
2785 (getSuperclass): Likewise.
2786 (isArray): Likewise.
2787 (isPrimitive): Likewise.
2788 * include/jvm.h (_Jv_FindClass): Declare.
2789 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
2790 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
2791 * include/javaprims.h: Use _Jv_Method, not JvMethod.
2792 * java/lang/Class.h: Rewrote from scratch.
2793 * prims.cc: Many changes to work with new Class.h.
2794 * include/java-field.h (CLASS_FIELDS): Removed.
2795 (CLASS_SFIELDS): Likewise.
2796 (CLASS_IFIELDS): Likewise.
2797 (CLASS_NFIELDS): Likewise.
2798 (CLASS_NIFIELDS): Likewise.
2799 (CLASS_NSFIELDS): Likewise.
2800 (CLASS_FSIZE): Likewise.
2801 (JvGetFirstInstanceField): Rewrote.
2802 (JvNumInstanceFields): Likewise.
2804 * java/lang/Object.h: Added copyright comment.
2806 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
2808 * java/text: New package directory.
2809 * java/text/FieldPosition.java: New class.
2810 * java/text/ParsePosition.java: New class.
2811 * java/text/ParseException.java: New Exception class.
2812 * java/text/Format.java: New class.
2813 * java/text/NumberFormat.java: New (empty placeholder) class.
2814 * java/text/DateFormatSymbols.java: New class (no Locales support).
2815 * java/text/DateFormat.java: New Format class (incomplete).
2816 * java/text/SimpleDateFormat.java: New DateFormat class.
2818 * include/javaprims.h (java::test): Added new package and classes.
2819 * java/util/Calendar.java (clone): New method.
2820 * java/util/Date.java (toString): Added non-native implementation.
2821 (parse): Made public instead of synchronized.
2822 * java/util/natDate.cc (toString): Removed.
2823 * java/util/natGregorianCalendar.cc (computeFields):
2824 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
2826 1998-10-27 Tom Tromey <tromey@cygnus.com>
2828 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
2830 * prims.cc (lookupArray): Added explanatory comment.
2831 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
2832 class. Mark the class of each object.
2833 (_Jv_MarkArray): Mark the object's class.
2835 * configure: Rebuilt.
2836 * configure.in: Create java-gc.h.
2837 * include/boehm-gc.h: New file.
2838 * include/no-gc.h: New file.
2839 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
2841 * java/lang/Object.h: Include java-gc.h.
2842 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
2843 friends, if defined.
2844 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
2846 (_Jv_MarkArray): Renamed from mark_array; changed signature.
2848 1998-10-26 Tom Tromey <tromey@cygnus.com>
2850 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
2851 paragraph separators, not numbers.
2853 * java/io/Writer.java (write): Removed write(char) to avoid
2855 * java/util/Properties.java: Rewrote from scratch.
2856 * include/javaprims.h (java::io): Added PrintWriter,
2857 BufferedWriter, PushbackReader.
2859 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
2861 * java/lang/System.java: exit() is a static method.
2863 1998-10-26 Tom Tromey <tromey@cygnus.com>
2865 * java/lang/natString.cc (_Jv_NewStringUTF): Use
2867 (_Jv_NewStringUtf8Const): Likewise.
2868 * include/jvm.h (_Jv_strLengthUtf8): Declare.
2869 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
2871 * java/lang/Object.h (Object): Add mark_array as friend function.
2872 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
2873 _Jv_AllocBytes, to ensure that header is marked.
2874 * boehm.cc (mark_obj): Push sync_info field for all objects, not
2876 (mark_array): Push sync_info field for array.
2878 1998-10-24 Tom Tromey <tromey@cygnus.com>
2880 * java/lang/String.java (String): Updated for StringBuffer
2882 * java/util/BitSet.java: Renamed field (data->bits) to conform to
2884 * java/lang/StringBuffer.java: Renamed fields to conform to
2885 serialization spec: buffer->value, next->count, copy->shared.
2887 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
2889 * java/util/TimeZone.java: New class.
2890 * java/util/SimpleTimeZone.java: New class.
2891 * java/util/Locale.java: New file.
2892 * java/util/Calendar.java: Make almost complete.
2893 * java/util/GregorianCalendar.java
2894 * java/util/natGregorianCalendar.cc: New file.
2895 * java/util/Date.java: Re-written from scratch.
2896 * java/util/natDate.cc (setTime): Removed - no longer native.
2897 * include/javaprims.h (java::util): Add new classes.
2898 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
2899 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
2901 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
2903 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
2904 returning it as a jint.
2906 1998-10-23 Tom Tromey <tromey@cygnus.com>
2908 * prims.cc (arg_vec, main_group, main_thread): New globals.
2909 (JvRunMain): Use them.
2911 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
2913 * java/io/DataInputStream.java: Rewritten.
2915 * java/io/DataOutputStream.java (writeUTF): OR secondary and
2916 tertiary bytes with 0x80 per spec.
2918 1998-10-23 Tom Tromey <tromey@cygnus.com>
2920 * java/lang/String.java (init): Changed name of `copy' argument.
2921 * java/lang/natString.cc (init): Inverted sense of `copy'
2924 * java/lang/Object.h (Object): Declare mark_obj as a friend.
2925 * java/lang/Class.h (Class): Declare mark_obj as a friend.
2926 * boehm.cc (ObjectClass): New define.
2927 (ClassClass): Likewise.
2928 (mark_obj): Special-case Object and Class.
2930 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
2932 * java/util/BitSet.java: Rewrote from scratch.
2934 * prims.cc (lookupArray): Removed useless cast.
2936 * java/lang/natObject.cc: Use `#pragma implementation'.
2938 * java/lang/String.java (init): Added `copy' argument.
2939 (String): Look in StringBuffer to find char array.
2940 * java/lang/natString.cc (init): Added `copy' argument.
2941 * java/lang/StringBuffer.java: Rewrote from scratch.
2943 * java/lang/Compiler.java: Rewrote from scratch.
2944 * java/lang/Throwable.java: Don't use NativeLang.
2945 * include/javaprims.h (java::lang): Don't mention NativeLang.
2946 * java/lang/Process.java: Rewrote from scratch.
2947 * java/lang/SecurityManager.java (classLoaderDepth): Commented
2949 (currentClassLoader): Likewise.
2950 (currentLoadedClass): Likewise.
2951 * java/lang/natClass.cc (getClassLoader): Commented out.
2952 * java/lang/Class.java (getClassLoader): Commented out.
2953 * java/lang/Compiler.java: Removed.
2954 * java/lang/NativeLang.java: Removed.
2956 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
2957 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
2958 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
2959 (_Jv_hashUtf8String): Now static.
2960 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
2961 name of return type.
2963 * java/lang/Class.h (Class): Declare checkMemberAccess.
2964 * Makefile.in: Rebuilt.
2965 * Makefile.am (nat_headers): Added Member.h.
2966 * java/lang/natClass.cc: Include Member.h.
2967 (getDeclaredClasses): Call checkMemberAccess.
2968 * java/lang/Class.java (checkMemberAccess): Call
2969 SecurityManager.checkMemberAccess.
2971 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
2973 * java/lang/SecurityManager.java: Rewritten.
2975 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
2977 * java/applet/Applet.java, java/applet/AppletContext.java,
2978 java/applet/AppletStub.java, java/applet/AudioClip.java,
2979 java/awt/AWTError.java, java/awt/AWTException.java,
2980 java/awt/BorderLayout.java, java/awt/Button.java,
2981 java/awt/Canvas.java, java/awt/CardLayout.java,
2982 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
2983 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
2984 java/awt/Color.java, java/awt/Component.java,
2985 java/awt/Container.java, java/awt/Dialog.java,
2986 java/awt/Dimension.java, java/awt/Event.java,
2987 java/awt/FileDialog.java, java/awt/FlowLayout.java,
2988 java/awt/Font.java, java/awt/FontMetrics.java,
2989 java/awt/Frame.java, java/awt/Graphics.java,
2990 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
2991 java/awt/GridLayout.java, java/awt/Image.java,
2992 java/awt/Insets.java, java/awt/Label.java,
2993 java/awt/LayoutManager.java, java/awt/List.java,
2994 java/awt/MediaTracker.java, java/awt/Menu.java,
2995 java/awt/MenuBar.java, java/awt/MenuComponent.java,
2996 java/awt/MenuContainer.java, java/awt/MenuItem.java,
2997 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
2998 java/awt/Rectangle.java, java/awt/Scrollbar.java,
2999 java/awt/TextArea.java, java/awt/TextComponent.java,
3000 java/awt/TextField.java, java/awt/Toolkit.java,
3001 java/awt/Window.java, java/awt/image/ColorModel.java,
3002 java/awt/image/CropImageFilter.java,
3003 java/awt/image/DirectColorModel.java,
3004 java/awt/image/FilteredImageSource.java,
3005 java/awt/image/ImageConsumer.java,
3006 java/awt/image/ImageFilter.java,
3007 java/awt/image/ImageObserver.java,
3008 java/awt/image/ImageProducer.java,
3009 java/awt/image/IndexColorModel.java,
3010 java/awt/image/MemoryImageSource.java,
3011 java/awt/image/PixelGrabber.java,
3012 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
3013 java/awt/peer/CanvasPeer.java,
3014 java/awt/peer/CheckboxMenuItemPeer.java,
3015 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
3016 java/awt/peer/ComponentPeer.java,
3017 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
3018 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
3019 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
3020 java/awt/peer/MenuBarPeer.java,
3021 java/awt/peer/MenuComponentPeer.java,
3022 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
3023 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
3024 java/awt/peer/TextAreaPeer.java,
3025 java/awt/peer/TextComponentPeer.java,
3026 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
3027 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
3028 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
3029 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
3030 java/net/MalformedURLException.java, java/net/NativeNet.java,
3031 java/net/ProtocolException.java, java/net/ServerSocket.java,
3032 java/net/Socket.java, java/net/SocketException.java,
3033 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
3034 java/net/URL.java, java/net/URLConnection.java,
3035 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
3036 java/net/URLStreamHandlerFactory.java,
3037 java/net/UnknownHostException.java,
3038 java/net/UnknownServiceException.java: Removed.
3040 1998-10-22 Tom Tromey <tromey@cygnus.com>
3042 * prims.cc (_Jv_AllocObject): Register finalizer if class'
3043 finalizer is not Object.finalize.
3044 (internalAddClass): Don't set `final' member of class.
3045 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
3046 other places that know about finalize() location.
3047 * java/lang/Class.h (Class): Removed `final' field.
3049 * aclocal.m4, configure: Rebuilt.
3050 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
3051 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
3053 * configure.in (AC_OUTPUT): Pass CXX to config.status.
3054 * Makefile.in: Rebuilt.
3055 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
3057 1998-10-21 Tom Tromey <tromey@cygnus.com>
3059 * java/lang/Object.java (finalize): Move to be first method in
3062 * configure: Rebuilt.
3063 * configure.in (GCINCS): Include contents of boehm-cflags file.
3065 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
3067 * java/lang/ArrayIndexOutOfBoundsException.java
3068 (ArrayIndexOutOfBoundsException): Fixed string literal.
3069 * java/lang/StringIndexOutOfBoundsException.java
3070 (StringIndexOutOfBoundsException): Fixed string literal.
3072 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3074 * natFileDescriptorEcos.cc added.
3075 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
3077 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3079 * acconfig.h: test for __int32_t and __uint32_t added.
3080 * include/config.h.in: test for __int32_t and __uint32_t added.
3081 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
3082 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
3083 * configure.in: test for __int32_t and __uint32_t added.
3084 * configure: test for __int32_t and __uint32_t added.
3086 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
3088 * configure.in: Test for --enable ecos and link
3089 natFileDescriptor.cc to natFileDescriptorEcos.cc or
3090 natFileDescriptorPosix.cc
3092 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
3094 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
3096 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
3099 * java/io/CharArrayReader.java (close): Synchronize on lock
3100 object per Reader contract.
3101 (read): Synchronize on lock obj. Verify that reader wasn't closed.
3102 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
3103 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
3104 Ensure that arg passed in isn't negative.
3106 * java/io/FilterReader.java (FilterReader): Use the lock obj when
3107 constructing the superclass.
3109 * java/io/PushbackReader.java (close): Synchronize on lock
3110 object per Reader contract.
3111 (read): Synchronize on lock obj. Verify that reader wasn't closed.
3112 (ready): Synchronize on lock obj. Throw IOException if reader
3114 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
3115 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
3116 Ensure that arg passed in isn't negative.
3117 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
3119 * java/io/StringReader.java: Created.
3121 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
3123 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
3125 (read): Removed synchronized modifier to match JCL.
3126 (reset): Removed synchronized modifier to match JCL.
3127 (skip): Removed synchronized modifier to match JCL.
3129 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
3131 * java/io/PushbackReader.java (PushbackReader): Made
3132 constructors public.
3134 1998-10-17 Tom Tromey <tromey@cygnus.com>
3136 * java/io/PushbackInputStream.java (PushbackInputStream): Made
3137 constructors public.
3139 1998-10-16 Anthony Green <green@cygnus.com>
3141 * aclocal.m4, configure: Rebuilt.
3142 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
3144 * configure.host: Rewrote.
3145 * Makefile.in: Rebuilt.
3146 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
3147 (AM_CFLAGS): New macro.
3148 ($(c_files)): Use COMPILE macro.
3149 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
3150 automake problem(s).
3152 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
3154 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
3156 * java/io/CharArrayReader.java: Created.
3158 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
3160 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
3161 size check to allow 0 per JCL.
3163 * java/io/PushbackReader.java: Created.
3165 1998-10-16 Tom Tromey <tromey@cygnus.com>
3167 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
3168 <sys/time.h> includes.
3169 * java/io/natFile.cc: Conditionalize <unistd.h> include.
3170 * include/no-threads.h: Conditionalize <unistd.h> include on
3173 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
3175 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
3178 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
3180 * java/io/FilterReader.java: Created.
3182 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
3184 * java/io/PushbackInputStream.java: Rewritten.
3186 * java/io/BufferedInputStream.java (BufferedInputStream): Check
3187 that size passed to constructor is legal.
3188 (read): Check that args passed in are legal.
3189 (skip): Rewritten to get rid of the temporary buffer.
3190 (refill): Added marklimit check to grow the buffer.
3192 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
3194 (bytesAvail): Removed.
3195 (read): Changed bytesAvail to Math.min.
3196 (skip): Changed bytesAvail to Math.min.
3198 * java/io/InputStream.java (read): Got rid of extraneous exceptions
3199 from the throws clause.
3200 (skip): Rewritten to use a temporary buffer.
3202 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
3204 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
3207 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
3209 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
3210 to write the double one word at a time.
3212 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
3214 * java/io/BufferedInputStream.java: Rewritten.
3216 1998-10-12 Tom Tromey <tromey@cygnus.com>
3218 * jni.cc: Include config.h and stddef.h.
3220 * java/lang/Class.h (_dispatchTable): Removed again.
3221 Removed all ACC_* defines again.
3223 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
3225 * Makefile.am (nat_files): Add netField.o.
3226 (libjava_a_SOURCES): Add jni.cc.
3227 (java/lang/reflect/Field.h): New rule.
3228 * Makefile.in: Re-generated.
3229 * include/javaprims.h: Add some extra class and typedefs.
3230 * include/jni.h: New file.
3233 * include/java-field.h: New file.
3234 * include/jvm.h: #include <java-field.h>.
3235 * boehm.cc: #include <java-field.h>.
3236 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
3237 * java/lang/reflect/Member.java: New class.
3238 * java/lang/reflect/Field.java: New class. (Very incomplete.)
3239 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
3241 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
3243 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
3244 testsuite/Makefile.in: Rebuilt.
3245 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
3246 * configure.host: Created.
3248 1998-10-10 Tom Tromey <tromey@cygnus.com>
3250 * java/lang/natObject.cc (sync_init): Always allocate a new
3253 1998-10-09 Tom Tromey <tromey@cygnus.com>
3255 * java/io/ByteArrayInputStream.java (mark): Renamed from
3258 * java/io/FileOutputStream.java (finalize): Removed.
3259 * java/io/FileDescriptor.java (finalize): New method.
3261 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
3263 * ByteArrayInputStream.java: Corrected status comment.
3265 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
3267 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
3269 1998-10-08 Tom Tromey <tromey@cygnus.com>
3271 * prims.cc (lookupArray): Use static array to initialize list of
3274 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
3276 * prims.cc (lookupArray): Initialize the msize for new
3279 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
3281 * configure: Rebuilt.
3282 * configure.in: Check for fsync and sleep.
3283 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
3285 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
3286 HAVE_SLEEP. Include config.h.
3288 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
3289 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
3292 1998-10-08 Tom Tromey <tromey@cygnus.com>
3294 * java/io/natFile.cc: Don't include SecurityManager.h.
3295 (performList): Renamed.
3296 (performMkdir): Likewise.
3297 (performRenameTo): Likewise.
3298 (performDelete): Likewise.
3300 * java/io/File.java (performDelete): Renamed from natDelete.
3301 (list): Now written in Java.
3302 (performList): New method.
3303 (performMkdir): New method.
3304 (mkdir): Now written in Java.
3305 (performRenameTo): New method.
3306 (renameTo): Now written in Java.
3308 1998-10-06 Tom Tromey <tromey@cygnus.com>
3310 * Makefile.in: Rebuilt.
3311 * Makefile.am (ETAGS_ARGS): New macro.
3312 (TAGS_DEPENDENCIES): Likewise.
3314 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
3316 * Makefile.in: Rebuilt.
3317 * Makefile.am: Use -classpath option with javac.
3319 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
3321 * java/io/FileOutputStream.java (finalize): Call
3324 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
3326 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
3328 * java/lang/mprec.c: Ditto.
3330 * java/lang/mprec.h: Include math.h for HUGE_VAL when
3333 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
3335 * java/io/InputStream.java (skip): Make local var i a long.
3337 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
3339 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
3340 * prims.cc (lookupArray): Use memcpy, not memmove.
3341 * include/config.h.in: Rebuilt.
3342 * acconfig.h (HAVE_MEMCPY): Added.
3343 * configure: Rebuilt.
3344 * configure.in: Check for memcpy again.
3346 * java/io/RandomAccessFile.java (RandomAccessFile): Use
3347 String.compareTo, not ==.
3349 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
3350 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
3351 * java/lang/natObject.cc (struct _dispatchTable): Removed.
3352 * include/jvm.h (struct _Jv_DispatchTable): New structure.
3353 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
3354 into new array's dtable.
3355 (_Jv_AllocObject): Use _Jv_DispatchTable.
3356 (_Jv_NewPrimArray): Likewise.
3357 (_Jv_NewObjectArray): Likewise.
3359 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
3361 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
3362 offending index value.
3363 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
3365 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
3366 * java/lang/Throwable.java: (Throwable): fixed argument to this().
3368 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
3370 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
3372 * java/io/OutputStream.java (write): Use off and len parameters to
3373 output partial byte array.
3375 * java/io/BufferedReader.java, java/io/FileReader.java,
3376 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
3377 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
3378 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
3379 java/io/Writer.java: Added COPYRIGHT-TBD comment.
3381 * include/javaprims.h (java::lang): Added
3382 ExceptionInInitializerError, IllegalStateException,
3383 NoSuchFieldException, and UnsupportedOperationException.
3385 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
3387 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
3390 * include/java-array.h (__JArray): Added clone method.
3391 * prims.cc (CloneableClass): New define.
3392 (lookupArray): Initialize array class to indicate that it
3393 implements Cloneable.
3395 * java/lang/Class.h: Removed all ACC_* defines.
3396 * prims.cc: Include Modifier.h.
3397 (_Jv_LookupInterfaceMethod): Use methods in
3398 java.lang.reflect.Modifier, not ACC_ defines.
3400 * java/lang/Class.h (Class): Declare getClasses,
3401 getDeclaredClasses, getDeclaringClass, getModifiers,
3402 * java/lang/Class.java: Rewrote from scratch.
3404 * include/javaprims.h (java::lang): Added reflect and
3406 * Makefile.in: Rebuilt.
3407 * Makefile.am (nat_headers): Added Modifier.h.
3409 * prims.cc (_Jv_IsInstanceOf): Return false if class is
3412 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
3414 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
3415 instead of test and abort.
3417 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
3418 remove compiler warning.
3420 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3422 * java/lang/natDouble.cc: zero terminate string.
3423 * strtod.c: Set errno if no digits are found in fraction.
3425 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
3427 * java/lang/reflect/Modifier.java: New file.
3429 * java/lang/VirtualMachineError.java: Rewrote from scratch.
3430 * java/lang/VerifyError.java: Rewrote from scratch.
3431 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
3432 * java/lang/UnknownError.java: Rewrote from scratch.
3433 * java/lang/StackOverflowError.java: Rewrote from scratch.
3434 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
3435 * java/lang/InternalError.java: Rewrote from scratch.
3436 * java/lang/IllegalAccessError.java: Rewrote from scratch.
3437 * java/lang/ExceptionInInitializerError.java: New file.
3438 * java/lang/Error.java: Rewrote from scratch.
3439 * java/lang/ClassFormatError.java: Rewrote from scratch.
3440 * java/lang/ClassCircularityError.java: Rewrote from scratch.
3441 * java/lang/AbstractMethodError.java: Rewrote from scratch.
3442 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
3443 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
3444 * java/lang/LinkageError.java: Rewrote from scratch.
3445 * java/lang/IncompatibleClassChangeError.java: Rewrote from
3447 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
3449 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
3450 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
3452 * include/cni.h (JvAllocObject): Moved from prims.cc.
3454 * prims.cc (JvAllocObject): Moved to cni.h.
3455 (_Jv_AllocObject): Use _Jv_FinalizeObject.
3456 (finalize_name): Removed.
3458 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
3460 * java/lang/Class.h (Class): Added size() method.
3461 * prims.cc (_Jv_MonitorEnter): Removed.
3462 (_Jv_MonitorExit): Removed.
3463 * java/lang/Object.h (JvSyncInfo): Removed.
3464 * Makefile.in: Rebuilt.
3465 * Makefile.am (nat_headers): Added Cloneable.h,
3466 CloneNotSupportedException.h.
3467 * java/lang/Object.h: Rewrote.
3468 * java/lang/natObject.cc: Rewrote from scratch.
3469 * java/lang/Object.java: Rewrote from scratch.
3471 * java/io/natFile.cc: Conditionally include <dirent.h>.
3472 (list): If no <dirent.h>, always return NULL.
3473 * configure: Rebuilt.
3474 * configure.in: Check for dirent.h.
3476 * prims.cc (lookupArray): Don't use sprintf.
3478 * java/util/Hashtable.java (containsKey): Use `abs' to compute
3485 * java/util/Hashtable.java (hsize): Renamed from size to avoid
3486 name conflict with method.
3488 * include/javaprims.h (java::util): Added HashtableEntry.
3490 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
3492 * java/util/Hashtable.java: Rewritten.
3494 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
3496 * java/io/natFileDescriptor.cc (write): Correctly test `write'
3500 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
3503 * posix-threads.cc (_Jv_CondWait): Now returns int.
3504 * include/javaprims.h (java::lang): Added
3505 IllegalMonitorStateException.
3506 * Makefile.in: Rebuilt.
3507 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
3508 * include/no-threads.h (_Jv_CondDestroy): Removed.
3509 (_Jv_MutexDestroy): Removed.
3510 (_Jv_CondWait): Now returns int.
3511 (_Jv_CondNotify): Likewise. Added mutex argument.
3512 (_Jv_CondNotifyAll): Likewise.
3513 (_Jv_MutexLock): Always succeed.
3514 (_Jv_MutexUnlock): Likewise.
3515 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
3516 (_Jv_HaveMutexDestroy): Define.
3517 (_Jv_CondNotify): Now returns int. Added mutex argument.
3518 (_Jv_CondNotifyAll): Likewise.
3519 * include/quick-threads.h (_Jv_CondDestroy): Removed.
3520 (_Jv_MutexDestroy): Removed.
3521 (_Jv_CondWait): Now returns int.
3522 (_Jv_CondNotify): Likewise. Added mutex argument.
3523 (_Jv_CondNotifyAll): Likewise.
3524 * java/lang/natObject.cc (finalize_sync_info): New function.
3525 (init_mutex): Initialize `init' and register finalizer if
3528 (init_mutex): Use it.
3530 (notifyAll): Use it.
3532 (notify): Throw IllegalMonitorStateException on failure.
3533 (notifyAll): Likewise.
3534 (wait): Likewise. Also, throw InterruptedException if
3536 Include cni.h, Thread.h, IllegalMonitorStateException.h,
3537 InterruptedException.h, IllegalArgumentException.h.
3538 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
3540 * java/lang/natString.cc: Renamed all `JvPriv' functions.
3541 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
3542 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
3543 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
3544 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
3545 * quick-threads.cc: Renamed all `JvPriv' functions.
3546 * prims.cc: Renamed all `JvPriv' functions.
3547 * posix-threads.cc: Renamed all `JvPriv' functions.
3548 * nogc.cc: Renamed all `JvPriv' functions.
3549 * no-threads.cc: Renamed all `JvPriv' functions.
3550 * boehm.cc: Renamed all `JvPriv' functions.
3551 * include/quick-threads.h: Renamed all `JvPriv' functions.
3552 * include/posix-threads.h: Renamed all `JvPriv' functions.
3553 * include/no-threads.h: Renamed all `JvPriv' functions.
3554 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
3556 * include/no-threads.h (JvPrivCondWait): Wrote minimal
3558 (JvPrivCondNotify): Do nothing.
3559 (JvPrivCondNotifyAll): Do nothing.
3561 * prims.cc (processClass): Handle case where state is
3564 * java/lang/natFirstThread.cc: Include <stdlib.h>
3566 * configure: Rebuilt.
3567 * configure.in: Fixed sense of --enable-libjava-debug.
3569 * java/lang/natThread.cc (join): Declare `t' outside the loop so
3570 it can be used afterward by the assertion.
3572 * configure: Rebuilt.
3573 * configure.in: When cross-compiling, assume alloca.
3575 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
3576 __builtin_alloca (autoconf docs are wrong here).
3578 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
3580 (available): Use `FD_ZERO' (typo fix).
3582 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
3584 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
3585 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
3587 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
3588 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
3591 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
3593 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
3595 * java/lang/natDouble.cc: Declare alloca safely.
3597 * configure, include/config.h.in: Rebuilt.
3598 * configure.in: Add alloca check.
3600 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
3602 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
3603 condition while calling notify.
3604 (join): Remove `curr_nt' from `nt's join list, not vice versa.
3605 (interrupt): Hold mutex for interrupt condition while calling
3608 * java/lang/natString.cc (init): Allocate and try to read `count'
3609 characters, not `count - offset' characters.
3611 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
3612 Correctly compute `count'.
3614 * java/lang/Boolean.java (getBoolean): Return false if property
3617 * java/lang/System.java (setProperties): Set prop_init.
3619 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
3621 * java/io/PrintStream.java (println): Use line.separator, not
3623 * java/lang/System.java (out, err): Make both autoflush streams.
3624 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
3626 * include/config.h.in: Rebuilt.
3627 * acconfig.h (HAVE_MEMCPY): Removed.
3628 * configure: Rebuilt.
3629 * configure.in: Never define HAVE_MEMCPY.
3631 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
3633 (_Jv_AllocString): Use JvAllocObject again.
3634 * java/lang/Class.h (thread): New field.
3635 (_Jv_AllocString): No longer a friend.
3636 * prims.cc (processClass): Removed dead code. Changed to more
3637 closely follow the Java Language Specification.
3638 (processClass): Return early if already at the right state.
3640 * prims.cc (JvNewStringUTF): Removed.
3641 * include/cni.h (JvNewStringUTF): New function.
3642 (_Jv_NewStringUTF): Declare as `extern "C"'.
3643 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
3645 * java/lang/natDouble.cc: Added copyright info and header
3646 comment. Include <stdlib.h>.
3647 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
3648 bytes as are chars in string.
3650 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
3652 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
3656 * java/lang/System.java (init_properties): Now native.
3657 * java/lang/natSystem.cc (init_properties): New method.
3658 Include java/util/Properties.h.
3660 * Makefile.in: Rebuilt.
3661 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
3662 OutputStreamWriter.h, ByteArrayInputStream.h,
3663 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
3664 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
3665 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
3666 Properties.h, Hashtable.h, Dictionary.h.
3669 * include/javaprims.h (java::io): Added Reader, Writer,
3670 InputStreamReader, OutputStreamWriter,
3671 UnsupportedEncodingException, ByteArrayInputStream,
3672 ByteArrayOutputStream, EOFException, SyncFailedException,
3673 PushbackInputStream.
3674 (java::lang): Added Cloneable.
3675 (java::util): Added NoSuchElementException, VectorEnumeration,
3676 Dictionary, HashtableEnumeration, PropertiesEnumeration.
3678 * java/io/PipedReader.java: New file.
3680 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
3682 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
3685 * java/io/io-defs.h: Removed.
3687 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
3688 (FileInputStream): Use new constructor. Can throw IOException.
3690 * java/lang/System.java (getProperty): Don't throw
3691 NullPointerException.
3693 * java/io/RandomAccessFile.java: Rewrote from scratch.
3695 * java/io/natFileDescriptor.cc: Include EOFException.h.
3697 (length): New method.
3698 (getFilePointer): New method.
3700 (available): New method.
3701 * java/io/FileDescriptor.java (SET, CUR): New constants.
3702 (seek, length, getFilePointer, read, available): New decls.
3704 * java/io/PipedWriter.java: New file.
3705 * java/io/StringWriter.java: New file.
3706 * java/io/CharArrayWriter.java: New file.
3707 * java/io/CharConversionException.java: New file.
3708 * java/io/BufferedWriter.java: New file.
3709 * java/io/FilterWriter.java: New file.
3710 * java/io/FileWriter.java: New file.
3712 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
3713 OutputStreamWriter.h, NullPointerException.h,
3714 ByteArrayInputStream.h, InputStreamReader.h.
3715 (getBytes): New method.
3716 (init): Throw NullPointerException.
3717 (init): New function.
3718 * java/lang/String.java (getBytes): Added missing decl.
3719 (getBytes): New method.
3720 (String): Added byte[]-based constructors.
3721 (copyValueOf): Wrote.
3722 (init): Declare variant which takes byte array and encoding.
3723 Import java.io.UnsupportedEncodingException.
3725 * java/io/File.java: Rewrote from scratch.
3726 * java/io/natFileDescriptor.cc: Rewrote from scratch.
3727 * java/io/FileDescriptor.java: Rewrote from scratch.
3728 * java/io/FilenameFilter.java: Rewrote from scratch.
3730 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
3732 * java/io/SyncFailedException.java: New file.
3733 * java/io/UTFDataFormatException.java: Rewrote from scratch.
3734 * java/io/InterruptedIOException.java: Rewrote from scratch.
3735 * java/io/FileNotFoundException.java: Rewrote from scratch.
3736 * java/io/EOFException.java: Rewrote from scratch.
3737 * java/io/IOException.java: Rewrote from scratch.
3738 * java/io/PrintStream.java: Rewrote from scratch.
3739 * java/io/DataOutputStream.java: Rewrote from scratch.
3740 * java/io/BufferedOutputStream.java: Rewrote from scratch.
3741 * java/io/FilterOutputStream.java: Rewrote from scratch.
3742 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
3743 * java/io/PipedOutputStream.java: Rewrote from scratch.
3744 * java/io/FileOutputStream.java: Rewrote from scratch.
3745 * java/io/OutputStream.java: Rewrote from scratch.
3746 * java/io/DataOutput.java: Rewrote from scratch.
3748 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
3750 * prims.cc (_Jv_CheckCast): Add missing ! operator.
3752 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
3754 * configure.in: Add --enable-libjava-debug
3756 * Makefile.am (nat_headers): Add java/lang/Float.h and
3759 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
3761 * Makefile.in, configure, include/config.h.in: Rebuilt.
3763 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3765 * java/lang/Float.java: Rewritten
3766 * java/lang/Double.java: Rewritten
3767 * java/lang/natFloat.cc: toString() added.
3768 * java/lang/natDouble.cc: toString() added.
3769 * java/lang/natDouble.cc: doubleValueOf() added.
3770 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
3771 java/lang/strtod.c: added.
3772 * ieeefp.h: __sparc added.
3773 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
3775 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
3777 * include/javaprims.h (java::lang): Added
3778 CloneNotSupportedException.
3780 * java/lang/Object.java (clone): No longer native. Implemented.
3781 * java/lang/natObject.cc (clone): Removed.
3783 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
3785 * prims.cc: Don't make definitions `extern "C"'.
3786 (_Jv_RegisterClass): Renamed from registerClass.
3787 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
3788 (_Jv_NewArray): Likewise.
3789 (_Jv_NewMultiArray): Likewise.
3790 (_Jv_CheckCast): Likewise.
3791 (_Jv_LookupInterfaceMethod): Likewise.
3792 (_Jv_CheckArrayStore): Likewise.
3793 (_Jv_RegisterClass): Likewise.
3795 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
3796 * configure: Rebuilt.
3797 * configure.in: Don't check for fmod; it is provided by the fdlibm
3799 * prims.cc (fmod): Removed.
3801 * java/lang/natString.cc (charAt): Use _Jv_uint.
3802 * java/lang/Class.h (class JvField): Use _Jv_ushort.
3803 * prims.cc (HASH_CHARS): Use _Jv_ushort.
3804 (equalUtf8Consts): Likewise.
3805 (internalAddClass): Use _Jv_uint.
3806 (processClass): Likewise.
3807 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
3808 (_Jv_uint): Renamed from uint32.
3809 (struct _Jv_Utf8Const): Changed members to use new type names.
3811 * configure: Rebuilt.
3812 * configure.in: Don't check for memcpy. Require memmove and a way
3814 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
3816 (currentTimeMillis): Don't use #error.
3818 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3820 * java/lang/Math.java: static member random renamed to random_ to
3821 avoid conflict with member function of the same name.
3822 * include/javaprims.h: java.util.Random added.
3824 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
3826 * include/java-chartables.h: Regenerated.
3827 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
3830 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
3832 * java/lang/Math.java: Rewritten.
3833 * java/lang/natMath.cc: New file.
3834 * Files added from fdlibm:
3835 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
3836 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
3837 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
3838 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
3839 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
3840 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
3841 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
3842 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
3843 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
3844 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
3845 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
3846 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
3847 java/lang/k_cos.c, java/lang/sf_ceil.c,
3848 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
3849 java/lang/ieeefp.h, java/lang/fdlibm.h
3850 * Makefile.am: rules added for compiling C files from fdlibm.
3852 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
3854 * chartables.pl: Minor documentation fixes.
3856 * configure: Rebuilt.
3857 * configure.in: Fixed --help output for --enable-fast-character.
3859 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
3861 * configure: Rebuilt.
3862 * configure.in: Recognize --enable-fast-character.
3863 * acconfig.h (COMPACT_CHARACTER): New define.
3864 * include/config.h.in: Rebuilt.
3865 * include/java-chartables.h: New file.
3866 * Makefile.in: Rebuilt.
3867 * Makefile.am (nat_files): Added natCharacter.o.
3868 * java/lang/natCharacter.cc: New file.
3869 * chartables.pl (set_attribute): New function.
3870 (@attributes, @second_attributes): New globals.
3871 ($ROMAN_START, $ROMAN_END): Likewise.
3872 (process_char): Call set_attribute when required.
3873 (print_char): Just print hex value.
3874 (print_block): Generate C++ syntax.
3875 (print_numerics): Likewise.
3876 (print_single_map): Likewise.
3877 (print_all_block): Likewise.
3878 (print_case_table): Likewise.
3879 (print_fast_tables): New function.
3880 Generate C++ code suitable for a header file.
3881 * java/lang/Character.java (table_search): Removed.
3882 (digit_value): Now native.
3883 (getNumericValue): Likewise.
3884 (getType): Likewise.
3885 Removed all automatically-generated tables.
3886 (Tamil_Digit_One): Removed.
3887 (isSpaceChar): Now native.
3888 (isTitleCase): Likewise.
3889 (isLowerCase): Likewise.
3890 (isUpperCase): Likewise.
3891 (toLowerCase): Likewise.
3892 (toTitleCase): Likewise.
3893 (toUpperCase): Likewise.
3894 (isDefined): Fixed sense of test.
3896 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
3898 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
3900 (regionMatches): Likewise.
3902 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
3904 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
3906 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
3908 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
3911 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
3914 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
3916 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
3918 * prims.cc (instanceof_class): Removed.
3919 (instanceof_array): Likewise.
3920 (instanceof): Likewise.
3921 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
3922 (_Jv_CheckCast): Likewise.
3923 * java/lang/natClass.cc (isAssignableFrom): New method.
3924 * java/lang/Class.java (isAssignableFrom): Now native.
3926 * include/cni.h (JvThrow): Use `extern inline'.
3927 (JvAllocObject): Likewise.
3928 (JvInitClass): Likewise.
3930 * java/lang/natSystem.cc (arraycopy): Only check class of source
3933 * prims.cc (_Jv_CheckArrayStore): Wrote.
3934 (_Jv_MonitorEnter): Prefer `JvThrow'.
3935 Include ArrayStoreException.h.
3936 (_Jv_CheckCast): Indentation cleanup.
3938 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
3940 * chartables.pl: New file.
3941 * java/lang/Character.java: Rewrote from scratch.
3943 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
3945 * java/lang/ArithmeticException.java,
3946 java/lang/ArrayIndexOutOfBoundsException.java,
3947 java/lang/ArrayStoreException.java,
3948 java/lang/ClassCastException.java,
3949 java/lang/ClassNotFoundException.java,
3950 java/lang/CloneNotSupportedException.java,
3951 java/lang/Exception.java, java/lang/IllegalAccessException.java,
3952 java/lang/IllegalArgumentException.java,
3953 java/lang/IllegalMonitorStateException.java,
3954 java/lang/IllegalThreadStateException.java,
3955 java/lang/IndexOutOfBoundsException.java,
3956 java/lang/InstantiationException.java,
3957 java/lang/InterruptedException.java,
3958 java/lang/NegativeArraySizeException.java,
3959 java/lang/NoSuchMethodException.java,
3960 java/lang/NullPointerException.java,
3961 java/lang/NumberFormatException.java,
3962 java/lang/RuntimeException.java, java/lang/SecurityException.java,
3963 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
3965 * java/lang/IllegalStateException.java,
3966 java/lang/NoSuchFieldException.java,
3967 java/lang/UnsupportedOperationException.java: Created.
3969 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
3971 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
3972 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
3974 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
3976 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
3978 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
3980 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
3982 * Makefile.in: Rebuilt.
3984 * include/javaprims.h (java::lang): Added
3985 StringIndexOutOfBoundsException.
3987 * java/lang/String.java: Added header comment and FIXME comment for
3988 missing constructors/methods.
3989 (endsWith): Adjusted offset into string to look at just the last chars.
3990 Commented out undocumented method.
3992 * java/lang/natString.cc: Added includes for
3993 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
3994 (String::init): Throw StringIndexOutOfBoundsException.
3995 (String::charAt): Throw StringIndexOutOfBoundsException.
3996 (String::substring): Throw StringIndexOutOfBoundsException.
3997 (String::getChars): Throw ArrayIndexOutOfBoundsException.
3998 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
3999 (String::compareTo): Return difference/offset between chars/strings.
4001 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
4003 * java/lang/Boolean.java (TYPE): Added comment.
4005 * java/lang/Byte.java (decode): Added - commented out until dependent
4006 code for Integer is written.
4007 (compareTo): JDK 1.2 methods written.
4008 (hashCode): Added comment to note that values have been verified.
4010 * java/lang/Short.java (decode): Added - commented out until dependent
4011 code for Integer is written.
4012 (compareTo): JDK 1.2 methods written.
4013 (hashCode): Added comment to note that values have been verified.
4015 * java/lang/Comparable.java: Created - JDK 1.2 interface.
4017 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
4019 * include/javaprims.h (java::lang): Added VirtualMachineError,
4021 * Makefile.in: Rebuilt.
4022 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
4023 VirtualMachineError.h.
4024 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
4025 (lookupArray): Likewise.
4026 (makeUtf8Const): Likewise.
4027 (_Jv_AllocObject): Likewise.
4028 (_Jv_NewObjectArray): Likewise.
4029 Include OutOfMemoryError.h.
4031 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
4032 to use JvNewStringLatin1.
4034 * java/io/io-defs.h: Include java/lang/IOException.h.
4035 * Makefile.in: Rebuilt.
4036 * Makefile.am (nat_headers): Added
4037 ArrayIndexOutOfBoundsException.h,
4038 ClassFormatError.h,ClassNotFoundException.h,
4039 ClassCircularityError.h, ClassCastException.h,
4040 IncompatibleClassChangeError.h, AbstractMethodError.h,
4041 IllegalAccessError.h, LinkageError.h, Error.h,
4042 NegativeArraySizeException.h, IOException.h.
4043 * include/cni.h (SignalError): Removed declaration.
4044 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
4045 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
4046 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
4047 (newInstance): Likewise.
4048 (forName): Likewise.
4049 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
4051 (read): Use JvThrow, not SignalError.
4056 (open_read): Likewise.
4057 (open_write): Likewise.
4060 (newstr): New function.
4061 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
4063 (lastModifiedUnchecked): Likewise.
4064 (lengthUnchecked): Likewise.
4065 * include/javaprims.h (sorry): Removed declaration.
4066 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
4067 ClassFormatError, ClassNotFoundException, ClassCircularityError,
4068 ClassCastException, IncompatibleClassChangeError,
4069 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
4070 * prims.cc (instanceof_array): Use JvFail, not sorry.
4072 Include ArrayIndexOutOfBoundsException.h,
4073 ClassFormatError.h,ClassNotFoundException.h,
4074 ClassCircularityError.h, ClassCastException.h,
4075 IncompatibleClassChangeError.h, AbstractMethodError.h,
4076 IllegalAccessError.h, NegativeArraySizeException.h.
4077 (_Jv_ThrowBadArrayIndex): Implemented.
4078 (JvNewStringUTF): Use JvFail, not sorry.
4079 (_Jv_FindClass): Likewise.
4080 (_Jv_NewArray): Likewise.
4081 (throwException): Removed.
4082 (getClass): Use JvThrow.
4083 (processClass): Likewise.
4084 (_Jv_NewObjectArray): Likewise.
4085 (_Jv_NewMultiArray): Likewise.
4086 (_Jv_CheckCast): Likewise.
4087 (_Jv_LookupInterfaceMethod): Likewise.
4088 (SignalError): Removed.
4089 (getClass): Use _Jv_NewStringUtf8Const to create String.
4091 * java/lang/natSystem.cc (arraycopy): Throw
4092 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
4094 * Makefile.in: Rebuilt.
4095 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
4097 * include/java-array.h: Mention gcjh, not gjavah.
4099 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
4100 (canReadUnchecked): Likewise.
4101 (canWriteUnchecked): Likewise.
4102 (isFileUnchecked): Likewise.
4103 * java/io/natFileDescriptor.cc: Don't include cni.h.
4105 * java/lang/Thread.java (run__): Declare.
4106 * java/lang/natThread.cc (run__): New method, to avoid compiler
4108 (start): Use run__, not run_.
4110 * java/io/io-defs.h: Include cni.h and jvm.h.
4112 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
4114 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
4115 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
4116 to natString.cc (with suitable renaming, inlines etc).
4117 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
4118 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
4119 * java/lang/String.h: Removed - now generated using gjavah.
4120 * java/lang/String.java: Re-written from scratch. Many native methods.
4121 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
4122 * java/lang/natString.cc: Many functions re-written for "compact
4123 strings" representation, or native java.lang.String methods added.
4124 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
4125 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
4126 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
4127 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
4128 * include/cni.h: Add inline method.
4129 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
4130 * include/javaprims.h: Moved some stuff frm String.h.
4131 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
4132 * Makefile.am (nat_header): Added Character.h and String.h.
4133 (String.h): Add new rule.
4135 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
4137 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
4139 * posix-threads.cc: Include cni.h, jvm.h.
4140 * quick-threads.cc: Include cni.h, jvm.h.
4141 * nogc.cc: Include cni.h, not javaprims.h.
4142 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
4143 * java/lang/natThread.cc: Rearranged #include ordering. Don't
4144 include java-assert.h.
4145 * java/lang/natSystem.cc: Include cni.h. Don't include
4147 * java/lang/natRuntime.cc: Include cni.h. Don't include
4149 * prims.cc: Rearranged #include ordering. Don't include
4150 java-array.h or java-assert.h.
4151 * boehm.cc: Include config.h, cni.h.
4152 * exception.cc: Include config.h, cni.h.
4153 * include/jvm.h: Include java-assert.h.
4154 * include/cni.h: Include java/lang/Object.h. Don't include
4155 java-threads.h or java-array.h.
4157 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
4159 * java/lang/Boolean.java: Rewritten.
4161 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
4163 * java/lang/natFirstThread.cc (main_func): New typedef.
4164 (run): Use main_func, not JvPrivThreadStartFunc.
4165 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
4167 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
4169 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
4172 Can't throw Java exceptions with C++ `throw':
4173 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
4174 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
4175 (setPriority): Likewise.
4179 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
4180 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
4182 Can't catch Java exceptions from C++:
4183 * java/lang/natThread.cc (finish_): New method.
4185 * java/lang/Thread.java (run_): Rewrote in Java.
4186 (finish_): New native method.
4188 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
4190 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
4192 * include/javaprims.h (java::io): Added Serializable.
4194 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
4196 * java/util/EmptyStackException.java,
4197 java/util/NoSuchElementException.java: Rewritten.
4199 * java/util/ConcurrentModificationException.java,
4200 java/util/MissingResourceException.java,
4201 java/util/TooManyListenersException.java: Created.
4203 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
4205 * include/cni.h (JvThrow): New function.
4206 * include/javaprims.h (_Jv_Throw): Declare.
4208 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
4210 * java/util/Observable.java: Rewritten.
4212 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
4214 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
4215 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
4216 Include NullPointerException.h.
4218 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
4220 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
4221 assignability checks. Don't bother using memcpy.
4223 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
4225 * include/quick-threads.h (JvPrivThreadWait): New function.
4226 * include/no-threads.h (JvPrivThreadWait): New function.
4227 * include/posix-threads.h (JvPrivThreadWait): New function.
4228 * prims.cc (JvRunMain): Call JvPrivThreadWait.
4230 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
4232 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
4233 offsets by size of type that is being copied.
4235 * java/lang/natThread.cc (start): Don't pass `object' argument to
4237 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
4238 * posix-threads.cc (JvPrivThreadStart): Removed `object'
4240 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
4241 always pass thread as object.
4242 * include/quick-threads.h, include/posix-threads.h,
4243 include/no-threads.h (JvPrivThreadStart): Removed `object'
4246 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
4248 * java/util/Dictionary.java: Rewritten.
4250 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
4252 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
4253 (JvPrivThreadDestroy): Likewise.
4255 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
4257 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
4259 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
4261 * java/lang/natSystem.cc: Rewrote from scratch.
4262 * java/lang/System.java: Rewrote from scratch.
4263 * java/lang/Class.h (Class): Declare isAssignableFrom.
4264 * include/javaprims.h (java::lang): Added ArrayStoreException,
4265 IndexOutOfBoundsException.
4266 * Makefile.in: Rebuilt.
4267 * Makefile.am (nat_headers): Added ArrayStoreException.h,
4268 IndexOutOfBoundsException.h.
4269 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
4270 * include/jvm.h (_Jv_HashCode): New function.
4272 * java/lang/natThread.cc (suspend): Call checkAccess.
4274 * java/lang/Thread.java (setDaemon): Call checkAccess.
4276 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
4278 * java/lang/Runtime.java: Rewrote from scratch.
4279 * java/lang/natRuntime.cc: Rewrote from scratch.
4281 * nogc.cc (JvPrivGCTotalMemory): New function.
4282 (JvPrivGCFreeMemory): Likewise.
4283 (total): New global.
4284 (JvPrivAllocObj): Increment total.
4285 (JvPrivAllocArray): Likewise.
4286 (JvPrivAllocBytes): Likewise.
4287 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
4288 * boehm.cc (JvPrivGCTotalMemory): New function.
4289 (sum_blocks): Likewise.
4290 (JvPrivGCFreeMemory): Likewise.
4292 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
4294 * include/javaprims.h (java::lang): Added FirstThread.
4295 * java/lang/natFirstThread.cc: New file.
4296 * java/lang/FirstThread.java: New file.
4297 * prims.cc (main_signature): Removed.
4298 (main_name): Removed.
4299 #include FirstThread.h.
4300 * Makefile.in: Rebuilt.
4301 * Makefile.am (TFRIEND): Removed.
4302 (java/lang/Thread.h): Likewise.
4303 (FTFRIEND): New macro.
4304 (java/lang/FirstThread.h): New target.
4305 (nat_files): Added natFirstThread.o.
4306 (nat_headers): Added FirstThread.h.
4307 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
4308 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
4310 * java/lang/Thread.java (setName): Throw IllegalArgumentException
4314 * java/lang/natThread.cc (start): Synchronize the thread.
4315 (stop): Synchronize the thread.
4317 * java/lang/ThreadDeath.java: Rewrote from scratch.
4319 * Makefile.in: Rebuilt.
4320 * Makefile.am (TGFRIEND): New macro.
4321 (java/lang/ThreadGroup.h): New target.
4322 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
4324 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
4326 * nogc.cc: Include config.h.
4328 * java/lang/ThreadGroup.java: Rewrote from scratch.
4330 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
4332 * java/lang/Thread.java (checkAccess): Only call in to security
4333 manager if it exists.
4334 (Thread): Don't check access when creating the first thread. Add
4335 this thread to the appropriate ThreadGroup.
4337 * java/lang/natThread.cc (run_): Call uncaughtException method on
4340 * java/lang/Runnable.java: Rewrote from scratch.
4341 * java/lang/Thread.java: Updated copyright comment to correct
4344 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
4346 * java/util/Random.java: Rewritten.
4348 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4350 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
4351 trailing 0 in array[].
4353 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
4355 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4356 and RUNTESTFLAGS from AM_MAKEFLAGS.
4357 (SUBDIRS): Conditionally include testsuite.
4358 * Makefile.in: Rebuilt.
4360 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
4362 * java/lang/Object.h: Include java-assert.h.
4364 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
4366 * Makefile.am: Add testsuite directory.
4367 * configure.in: Build testsuite/Makefile.
4368 * Makefile.in, configure: Rebuilt.
4370 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
4372 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
4373 * include/jvm.h (_Jv_StartFirstThread): Declare.
4375 * include/javaprims.h (java::lang): Added Exception,
4378 * Makefile.in: Rebuilt.
4379 * Makefile.am (nat_headers): Added NullPointerException.h,
4380 InterruptedException.h, IllegalArgumentException.h, Exception.h,
4381 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
4382 (java/lang/Thread.h): New target.
4383 (TFRIEND): New macro
4385 * include/java-assert.h (JvFail): Use 0 and not NULL.
4387 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
4388 instead of assuming we are a friend of Thread.
4389 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
4390 instead of assuming we are a friend of Thread.
4392 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
4394 * java/lang/natThread.cc: Rewrote from scratch.
4395 * java/lang/Thread.java: Rewrote from scratch.
4396 * prims.cc (JvRunMain): Use new Thread constructor.
4397 * include/javaprims.h (java::lang): Added InterruptedException.
4398 * Makefile.in: Rebuilt.
4399 * Makefile.am (nat_headers): Added java/lang/Thread.h.
4400 * java/lang/Thread.h: Removed.
4401 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
4402 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
4404 * posix-threads.cc (JvPrivThreadJoin): Removed.
4405 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
4406 (really_start): Don't notify join_cond.
4407 (JvPrivThreadStart): Added `data' argument.
4408 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
4409 (JvPrivThreadJoin): Likewise.
4410 Use JvFail instead of sorry.
4411 (JvPrivThreadSuspend): Removed.
4412 (JvPrivThreadResume): Removed.
4413 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
4414 (JvPrivThreadJoin): Likewise.
4415 (JvPrivThreadSuspend): Use JvFail.
4416 (JvPrivThreadResume): Likewise.
4417 (JvPrivThreadSuspend): Removed.
4418 (JvPrivThreadResume): Likewise.
4419 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
4420 (JvPrivThread_t): Removed join_mutex, join_cond.
4421 Use JvFail instead of sorry.
4422 (JvPrivThreadSuspend): Removed.
4423 (JvPrivThreadResume): Likewise.
4425 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
4427 * java/util/Observer.java: Rewritten
4428 * java/util/Enumeration.java: Rewritten
4430 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
4432 * java/util/StringTokenizer.java: Rewritten
4433 * java/util/Stack.java: Added COPYRIGHT-TBD comment
4434 * java/util/Vector.java: Added COPYRIGHT-TBD comment
4435 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
4437 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
4439 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
4442 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
4443 Include java-assert.h.
4444 * include/java-assert.h: New file.
4445 * prims.cc (_Jv_Abort): New function.
4446 Include java-assert.h, not assert.h.
4447 (_Jv_MonitorExit): Use JvAssert.
4448 (resolveConstants): Likewise.
4449 (processClass): Likewise.
4450 (JvRunMain): Assert that method is found.
4452 * configure: Rebuilt.
4453 * configure.in: Check for test subdir.
4454 * Makefile.in: Rebuilt.
4455 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
4457 * prims.cc (JvRunMain): Use NORM_PRIORITY.
4458 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
4460 * prims.cc (resolveConstants): Removed unused variables.
4461 (processClass): Likewise.
4463 * include/quick-threads.h (JvPrivThreadCurrent): Use
4465 * quick-threads.cc (destroy_data): New function.
4466 (JvPrivInitThreads): Create key.
4467 (JvPrivThreadKey): New global.
4468 (JvPrivThreadStart): Use coop_setspecific.
4470 * include/quick-threads.h, include/posix-threads.h,
4471 include/no-threads.h, no-threads.cc, quick-threads.cc,
4472 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
4474 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
4476 * include/no-threads.h (JvPrivThreadInitData): Don't set
4479 * include/quick-threads.h (JvPrivCondWait): coop function now
4481 (JvPrivThreadJoin): Likewise.
4483 * java/lang/Thread.h (Thread): Updated declaration of
4485 * include/quick-threads.h, include/posix-threads.h: Updated
4486 declaration of JvPrivThreadStart.
4487 * include/no-threads.h (JvPrivThreadStart): Changed definition
4489 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
4490 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
4491 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
4493 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
4495 * quick-threads.cc (qthrow): New function.
4496 (JvPrivInitThreads): New function.
4497 (started): New global.
4498 (JvPrivThreadStart): Call coop_start if required.
4499 * include/quick-threads.h (JvPrivThreadCancel): Implement.
4500 (JvPrivThreadDestroy): Likewise.
4501 (JvPrivInitThreads): Removed.
4502 * include/posix-threads.h (JvPrivThreadCancel): Added error
4504 * java/lang/natThread.cc (stop_): Pass exception to
4507 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
4509 * include/javaprims.h (java::lang): Added
4510 IllegalArgumentException, IllegalThreadStateException, Math,
4511 NullPointerException, ThreadDeath.
4512 (java::util): Added Enumeration.
4514 * Makefile.in: Rebuilt.
4515 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
4517 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
4519 (threadsv): Renamed from threads to avoid clash in C++ header.
4520 (groupsv): Likewise.
4521 * include/no-threads.h (JvPrivThreadStart): Removed.
4522 * no-threads.cc (JvPrivThreadStart): New function.
4523 * java/lang/Thread.java (Thread): New constructor for internal use.
4524 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
4525 (Thread): Declare constructor.
4526 * prims.cc (JvRunMain): Create the initial Thread and
4528 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
4529 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
4530 Removed `daemon' argument.
4532 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
4533 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
4535 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
4537 * Makefile.in: Rebuilt.
4538 * Makefile.am (INCLUDES): Include THREADINCS.
4540 * configure: Rebuilt.
4541 * configure.in: Recognize `qt' as a threads package.
4543 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
4545 * java/util/Stack.java (pop): Null out topmost node for robustness.
4547 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
4549 * java/util/Stack.java: Rewritten.
4550 * java/util/Vector.java (isEmpty): Simplified expression.
4552 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
4554 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
4555 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
4557 * include/java-array.h (JvNewObjectArray): Created inline to
4560 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
4563 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
4565 * java/util/Vector.java: Rewritten.
4566 * java/io/Serializable.java: Created.
4568 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
4570 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
4571 Infinity is 1/0, not 1/1.
4573 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
4575 * configure: Rebuilt.
4576 * configure.in: Removed duplicate AC_ARG_WITH.
4578 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
4580 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
4582 (_Jv_InitClass): Renamed from soft_initialise_class.
4583 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
4584 (_Jv_CheckCast): Renamed from soft_checkcast.
4585 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
4586 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
4587 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
4588 * include/cni.h (JvInitClass): New function.
4589 (_Jv_InitClass): Renamed from soft_initialise_class.
4591 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
4593 * configure: Rebuilt.
4594 * configure.in (CXX): Don't set.
4595 * Makefile.in: Rebuilt.
4596 * Makefile.am (AM_CXXFLAGS): New macro.
4598 * Makefile.in: Rebuilt.
4599 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
4600 nogc.o): New target.
4602 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
4604 (mark_array): Likewise.
4606 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
4608 * java/lang/Class.h (JvMethod): Removed some unused fields.
4609 (JvField.info): Removed unused idx union variant.
4611 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
4613 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
4616 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
4618 * configure.in, configure (CXX): Add -fvtable-thunks.
4620 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
4622 * java/lang/Object.java (finalize): Move first.
4623 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
4624 (Object): Re-arrange order to match Object.java.
4626 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
4628 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
4629 * java/lang/natString.cc (hashChars): Likewise.
4631 * prims.cc (RuntimeClass): New macro.
4632 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
4634 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
4636 * Makefile.in: Rebuilt.
4637 * Makefile.am (AM_MAKEFLAGS): New macro.
4639 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
4641 * nogc.cc: Include <javaprims.h>.
4643 * Makefile.in: Rebuilt.
4644 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
4646 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
4648 * exception.cc (terminate): Removed.
4649 (unexpected): Removed.
4651 * configure: Rebuilt.
4652 * configure.in: Handle case where target subdir is ".".
4654 * configure: Rebuilt.
4655 * configure.in: Compute COMPPATH based on --with-target-subdir
4656 option. Added --with-target-subdir and --with-cross-host. Use
4657 --with-cross-host to determine when a cross compiler is in use.
4659 * Makefile.in: Rebuilt.
4660 * Makefile.am (GJAVAH): Include COMPPATH.
4661 * configure: Rebuilt.
4662 * configure.in: Subst COMPPATH.
4664 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
4666 * prims.cc (lockMutex): Removed.
4667 (unlockMutex): Likewise.
4668 (processClass): Lock the class using a JvSynchronize object.
4670 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
4672 * java/lang/natString.cc (gc_calloc_fixed): Removed.
4673 (gc_free_fixed): Removed.
4674 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
4675 freeing old value of strhash.
4677 * exception.cc (_Jv_type_matcher): Cast first argument to
4680 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
4682 * include/java-array.h (jstringArray): New type.
4683 * java/lang/natSystem.cc (setProperty): Removed.
4684 (initProperties): Directly call JvNewStringLatin1 for arguments.
4685 * java/util/natDate.cc: Include java/util/Date.h, not
4688 * java/io/FileDescriptor.java (available): No longer static.
4689 * java/lang/natDouble.cc (Double): Removed class definition.
4690 * include/javaprims.h (java::lang::Number): Declare.
4691 (java::lang::NumberFormatException): Likewise.
4692 (java::io::FilenameFilter): Likewise.
4693 (java::lang::Character): Likewise.
4694 (java::lang::Error): Likewise.
4695 (java::lang::SecurityManager): Likewise.
4696 (java::util::Vector): Likewise.
4697 (java::io::FileNotFoundException): Likewise.
4698 (java::io::IOException): Likewise.
4699 (java::lang::NativeLang): Likewise.
4700 (java::lang::UnsatisfiedLinkError): Likewise.
4701 (java::util::StringTokenizer): Likewise.
4702 (java::io::InputStream, java::io::OutputStream): Likewise.
4703 (java::io::PrintStream, java::lang::SecurityException): Likewise.
4704 (java::util::Hashtable): Likewise.
4705 * Makefile.in: Rebuilt.
4706 * Makefile.am (nat_headers): Added java/lang/Double.h,
4707 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
4708 (MOSTLYCLEANFILES): Added nat_headers.
4709 * include/jvm.h: Moved many defines, declarations, and functions
4710 to java/lang/Class.h.
4711 (struct JvSyncInfo): Moved to java/lang/Object.h.
4712 (UTF8_GET): Moved to java/lang/String.h.
4714 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
4716 * java/io/io-defs.h: Don't include java-io.h.
4717 * include/java-io.h: Removed.
4718 * include/javaprims.h: Include java::io.
4720 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
4722 * include/java-io.h (File): Removed
4723 (FileDescriptor): Likewise.
4725 * java/io/io-defs.h: Include java/io/File.h and
4726 java/io/FileDescriptor.h.
4728 * Makefile.in: Rebuilt.
4729 * Makefile.am (GJAVAH): New macro.
4730 (.class.h): New rule.
4731 (SUFFIXES): Added .h.
4732 (nat_headers): New macro.
4733 ($(nat_headers)): New target.
4734 (BUILT_SOURCES): Added nat_headers.
4736 * include/java-util.h: Removed.
4738 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
4740 * include/java-io.h: Changed to avoid java-lang.h.
4741 * java/lang/natThread.cc: Include java/lang/Thread.h, not
4743 * java/lang/natSystem.cc: Include java/lang/System.h, not
4745 * java/lang/natString.cc: Include java/lang/String.h, not
4747 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
4749 * java/lang/natClass.cc: Include java/lang/Class.h, not
4751 * java/lang/natDouble.cc: Include java/lang/Object.h, not
4753 * java/lang/natObject.cc: Include java/lang/Object.h, not
4755 * exception.cc: Don't include java-lang.h.
4756 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
4757 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
4758 * nogc.cc: Don't include java-lang.h.
4759 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
4760 * prims.cc (processClass): Don't use `init_type'; just cast to
4762 Include java/lang/Class.h and jvm.h, not java-lang.h.
4763 (JvAllocObject): Wrote single-argument version.
4764 (PrimClass): Inherit from Class.
4765 (initPrimClass): Removed.
4766 * include/java-lang.h: Removed.
4767 * include/jvm.h: Declare struct _dispatchTable.
4768 * include/cni.h: Don't declare _Jv_MonitorEnter,
4769 _Jv_MonitorExit, struct _dispatchTable.
4770 * include/javaprims.h: Moved all typedefs here, from cni.h.
4771 * java/lang/Class.h: New file.
4772 * include/java-array.h: New file.
4773 * java/lang/Object.h: New file.
4775 * prims.cc (classFromSig): Now static.
4777 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
4779 * include/cni.h: Don't mention soft_new.
4780 * include/java-lang.h (Object): Don't mention soft_new. Mention
4781 _Jv_NewPrimArray, not newPrimArray.
4782 * prims.cc (soft_new): Removed.
4783 (_Jv_NewArray): Renamed from soft_newarray.
4784 (soft_anewarray): Use JvNewObjectArray.
4785 (newArray): Likewise.
4786 (newRefArray): Removed.
4787 (_Jv_NewPrimArray): Renamed from newPrimArray.
4788 (equalUtf8Consts): Now static.
4789 (soft_instanceof): Removed.
4790 * java/lang/natDouble.cc (doubleToString): Now static.
4792 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
4793 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
4796 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
4798 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
4800 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
4802 * include/no-threads.h (JvPrivMutexLock): Always return -1.
4803 (JvPrivMutexUnlock): Likewise.
4804 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
4805 Return value now jint.
4806 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
4809 * Makefile.in: Rebuilt.
4810 * Makefile.am: Don't allow `jV' names.
4811 (maintainer-check): Depend on libjava.a.
4812 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
4814 * Makefile.in: Rebuilt.
4815 * Makefile.am (NM): New macro.
4816 (maintainer-check): New target.
4818 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
4820 * configure: Rebuilt.
4821 * configure.in: Use --enable-threads, not --enable-gc. Fix
4822 documentation for --enable-threads. Changed option to work like
4823 identical option in gcc/configure.
4825 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
4827 * boehm.cc (mark_array): Use JvGetArrayLength.
4829 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
4831 * exception.cc: New file (mostly written by Andrew MacLeod),
4832 exception handling support.
4833 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
4834 Remove -fexceptions - it is now the default.
4836 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
4837 (JvAllocObject): Renamed to _Jv_AllocObject.
4838 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
4839 (loadClass): Renamed to _Jv_FindClass.
4840 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
4841 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
4842 * include/java-lang.h (JvGetArrayLength): New CNI function.
4843 * include/jvm.h (_Jv_FindClass): Added declaration.
4845 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
4847 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
4849 * java/lang/natClass.cc (getName): Add implementation.
4850 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
4852 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
4854 * Makefile.in: Rebuilt.
4855 * Makefile.am (.class.o): Added -fexceptions.
4857 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
4859 * configure: Rebuilt.
4860 * configure.in: Don't check for __nanosleep.
4861 * posix-threads.cc (nanosleep): Never define.
4863 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
4865 * posix-threads.cc (JvPrivCondWait): Fixed computation of
4868 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
4870 * java/lang/natThread.cc (enumerate): Uncommented.
4871 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
4872 (interrupt): Call it.
4874 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
4876 * configure: Rebuilt.
4877 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
4879 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
4881 * include/no-threads.h (JvPrivThreadInterrupt): New method.
4882 * include/java-lang.h (Thread): Added `interrupted_' method.
4883 * java/lang/Thread.java (interrupted_): New method.
4884 * java/lang/natThread.cc (join): Possibly throw interrupted
4885 exception after join finishes.
4886 (interrupted_): New method.
4887 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
4889 (JvPrivThreadJoin): New function.
4890 (really_start): Notify all threads waiting for this thread.
4891 (struct starter): Added `data' member.
4892 (JvPrivThreadStart): Set it.
4893 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
4895 (JvPrivThreadJoin): No longer inline.
4896 (JvPrivThreadInterrupt): New function.
4898 * include/no-threads.h (JvPrivThreadSleep): Removed.
4899 * posix-threads.cc (JvPrivThreadSleep): Removed.
4901 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
4903 * configure: Rebuilt.
4904 * configure.in (THREADOBJS): Initialize to no-threads.o in
4906 * posix-threads.cc (key): New global.
4907 (JvPrivInitThreads): New function.
4908 (really_start): Set thread-specific data to point to object.
4909 (JvPrivThreadStart): Added `daemon' argument.
4910 (JvPrivThreadSleep): Added `data' argument.
4911 * include/posix-threads.h (JvPrivInitThreads): Removed
4913 (JvPrivThreadCurrent): New function.
4914 * include/no-threads.h (JvPrivThreadInitData): Initialize
4915 JvPrivOnlyThread. Added `thread' argument.
4916 (JvPrivThreadCurrent): New function.
4917 (JvPrivThreadStart): Added `daemon' argument.
4918 * no-threads.cc: New file.
4919 * java/lang/natThread.cc (init_data): New function.
4921 (start): Set `alive' member.
4922 (stop_): Clear `alive' member.
4923 (destroy): Likewise.
4924 (currentThread): Implemented.
4925 (start): Pass `daemon' argument to JvPrivThreadStart.
4927 * include/java-lang.h (Thread): Added `alive', `tsync' members.
4928 (Thread): Added `init_data' method.
4929 * java/lang/Thread.java (alive, data): New instance variables.
4930 (init_data): New private method.
4931 (isAlive): No longer native.
4933 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
4935 * include/java-lang.h (JvRunMain): Declare.
4936 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
4937 * prims.cc (JvRunMain): New function.
4938 (main_signature, main_name): New globals.
4940 * boehm.cc (mark_array): Use `elements' function and not
4941 operator[] on jarray.
4943 * posix-threads.cc: Include <config.h>. Define nanosleep if
4946 * configure: Rebuilt.
4947 * configure.in: Check for _nanosleep.
4949 * configure: Rebuilt.
4950 * configure.in: Check for pthread_mutexattr_settype.
4952 * include/cni.h (class JvSynchronize): New class.
4953 * java/lang/Thread.java (sleep): Throws InterruptedException.
4954 (join): Throws InterruptedException.
4955 (resume): Not native.
4956 (resume_): New method.
4957 (start): Now synchronized.
4958 (stop_): New method.
4959 (Thread): Synchronize when accessing threadNumber.
4961 * java/lang/natThread.cc (throwException): New macro.
4962 (sleep): Throw InterruptedException.
4965 * include/java-lang.h (Runtime): Added interrupted().
4967 * boehm.cc (call_finalizer): Correctly initialize jobj.
4968 * include/java-lang.h (Runtime): Added getRuntime() and exit().
4970 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
4973 * configure: Rebuilt.
4974 * configure.in: Added support for --disable-threads.
4975 * include/no-threads.h: New file.
4977 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
4979 * Makefile.in: Rebuilt.
4980 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
4981 (libjava_a_DEPENDENCIES): Added THREADOBJS.
4982 (libjava_a_LIBADD): Added THREADOBJS.
4983 * configure: Rebuilt.
4984 * configure.in: Added --with-threads option.
4985 * posix-threads.cc: New file.
4986 * include/posix-threads.h: New file.
4987 * include/java-lang.h (Object): Added static member sync_mutex,
4988 member sync_info, method init_mutex.
4989 (struct JvSyncInfo): New struct.
4990 Include "java-threads.h".
4991 * prims.cc (soft_monitorenter): Wrote.
4992 (soft_monitorexit): Likewise.
4993 * java/lang/natObject.cc (init_mutex): New method.
4997 (sync_mutex): Define.
4998 Include "java-threads.h".
5000 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
5002 * include/java-lang.h (JvPrivInitGC): Make extern "C".
5003 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
5005 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
5007 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
5008 Added extern "Java" in places to tell G++ Object is a "Java" type.
5009 Other minor renaming and fixes.
5010 * include/java-io.h (FileDescriptor): Add friend class declarations.
5011 G++ no longer allows non-Java types in method parameters and results
5012 of Java classes. Converted most offending methods to friends.
5013 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
5014 * java/lang/natSystem.cc (setProperty): Make friend.
5015 * java/lang/natString.cc, include/java-lang.h (String): Rename
5016 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
5017 * include/java-lang.h (JArray): Remove getData and eoprator[].
5018 Add elements friend function instead.
5019 * java/lang/natSystem.cc (arraycopy): Use elements function.
5020 * java/io/natFileDescriptor.cc (read, write): Likewise.
5021 * include/java-lang.h (Object): Remove unused make method.
5022 (System::setProperty(char*,char*)): Turn into friend function.
5023 (Class): Rename newObject by JvAllocObject.
5024 * prims.cc: Update to use JvAllocObject, and elements.
5026 * java/lang/natDouble.cc: Fix double -> jdouble.
5028 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
5030 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
5032 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
5034 * java/lang/natRuntime.cc (finalize_on_exit): Define.
5035 * include/java-lang.h (Runtime): finalize_on_exit and
5036 runFinalizersOnExit now static.
5037 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
5039 (finalize_on_exit): Now static.
5041 * boehm.cc (mark_obj): Get class using getClass() method on
5043 (_dispatchTable): Removed.
5045 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
5047 * java/io/natFileDescriptor.cc (open_read): Only call open if
5049 (open_write): Likewise.
5051 * Makefile.in: Rebuilt.
5052 * Makefile.am ($(nat_files)): Depend on config.h.
5054 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
5056 * prims.cc (ObjectClass): Now a macro; updated for new class name
5058 (StringClass): Likewise.
5059 (ClassClass): Likewise.
5061 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
5063 * java/io/natFileDescriptor.cc (available): Do nothing unless
5064 HAVE_SELECT defined.
5065 * java/util/natDate.cc (setTime): Conditional on
5067 (toString): Conditional on HAVE_TIME.
5068 * aclocal.m4, configure: Rebuilt.
5069 * acinclude.m4: New file.
5070 * configure.in: Don't actually call AM_EXEEXT. Call
5071 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
5072 --with-target-subdir option. Check for select and open
5075 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
5077 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
5078 (call_finalizer): Likewise.
5079 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
5080 * prims.cc (newObject): Pass actual method pointer to
5081 JvPrivRegisterFinalizer.
5082 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
5083 (JvPrivRegisterFinalizer): Changed interface.
5085 * Makefile.in: Rebuilt.
5086 * Makefile.am (MOSTLYCLEANFILES): New macro.
5087 (CLEANFILES): Removed javao_files.
5089 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
5091 * nogc.cc: New file.
5092 * Makefile.in: Rebuilt.
5093 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
5094 (EXTRA_libjava_a_SOURCES): New macro.
5095 (libjava_a_SOURCES): Removed boehm.cc.
5096 (libjava_a_DEPENDENCIES): Added GCOBJS.
5097 (libjava_a_LIBADD): Likewise.
5098 * configure: Rebuilt.
5099 * configure.in: Added code for --enable-gc=TYPE.
5101 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
5103 * boehm.cc (mark_array): Don't further dereference pointer from
5106 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
5107 * Makefile.in: Rebuilt.
5108 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
5109 one for boehm-gc build directory.
5111 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
5113 * include/java-lang.h (finalize_on_exit): New instance variable in
5114 java::lang::Runtime.
5115 (runFinalizersOnExit): New method.
5116 * java/lang/Runtime.java (finalize_on_exit): New instance
5118 (runAllFinalizers_): New private method.
5119 (runFinalizersOnExit): New method.
5120 * boehm.cc (JvPrivRunFinalizers): New function.
5121 (JvPrivRunAllFinalizers): Likewise.
5122 (JvPrivRunGC): Likewise.
5123 * java/lang/natRuntime.cc: Include "jvm.h".
5124 (gc): Call JvPrivRunGC.
5125 (runFinalization): Call JvPrivRunFinalizers.
5126 (runFinalizersOnExit): New method.
5127 (exit_): Call JvPrivRunAllFinalizers if required.
5128 * include/jvm.h: Declare JvPrivRunFinalizers,
5129 JvPrivRunAllFinalizers, JvPrivRunGC.
5131 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
5133 * boehm.cc (JvPrivRegisterFinalizer): New function.
5134 (call_finalizer): Likewise.
5135 * include/jvm.h: Declare JvPrivRegisterFinalizer.
5136 * prims.cc (finalize_name): New global.
5137 (newObject): Just call other newObject.
5138 (newObject): Register finalizer if it exists.
5140 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
5142 * prims.cc (gc_malloc): Removed.
5143 (makeUtf8Const): Use JvPrivAllocBytes.
5144 (lookupArray): Likewise.
5145 (newPrimArray): Likewise.
5146 (JvNewObjectArray): Use JvPrivAllocArray.
5147 (newObject): Use JvPrivAllocObj.
5148 (newObject): Likewise.
5149 Changed Method -> JvMethod everywhere.
5150 Changed Field -> JvField everywhere.
5151 * include/java-lang.h (Object): Changed type of `fields' to
5153 (jmethodID, jfieldID): New typedefs.
5154 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
5156 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
5158 (METHOD_NATIVECODE): Moved from java-lang.h.
5159 (class JvField): New class.
5160 (JvGetFirstInstanceField): New function.
5161 (JvFieldIsRef): Likewise.
5162 (JvGetObjectField): Likewise.
5163 (JvNumInstanceFields): Likewise.
5165 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
5167 * boehm.cc: New file.
5168 * Makefile.in: Rebuilt.
5169 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
5170 (INCLUDES): Added -I options to find boehm-gc files.
5172 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
5174 * configure: Rebuilt.
5175 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
5177 * Makefile.in: Rebuilt.
5178 * Makefile.am (nat_files): New macro.
5179 (libjava_a_DEPENDENCIES): Use it.
5180 (libjava_a_LIBADD): Likewise.
5181 ($(nat_files)): New static pattern rule.
5182 (class_files): Run separate find to find .class files.
5183 (javao_files): Compute based on class_files.
5184 (BUILT_SOURCES): New macro.
5186 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
5188 * Makefile.am (java_files): New macro.
5189 (class_files): Likewise.
5190 (javao_files): Likewise.
5191 (libjava_a_DEPENDENCIES): Include $(javao_files).
5192 (libjava_a_LIBADD): Likewise.
5193 (classes.stamp): Depend on $(java_files); only recompile changed
5196 (CLEANFILES): Don't run find; use macros. Don't mention
5198 (.class.o): New target.
5199 (compiled.stamp): Removed.
5201 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
5203 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
5204 LineNumberReader}>java: Newly-implemented standard classes.
5206 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
5208 * Makefile.in: Rebuilt.
5209 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
5211 * Makefile.in: Rebuilt.
5212 * Makefile.am (hack): New macro.
5213 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
5215 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
5217 * include/config.h.in: New file.
5218 * include/config.h: Removed.
5219 * acconfig.h: New file.
5220 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
5221 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
5222 libjava_a_LIBADD): New macros.
5223 (INCLUDES): New macro.
5226 (SUFFIXES): Removed.
5228 (libjava.a): Removed.
5230 * configure: Rebuilt.
5231 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
5232 Look for headers and functions we require. Create
5235 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
5237 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
5238 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
5239 soft_lookupinterfacemethod): New functions.
5240 (PrimClass): Actually initialize the primitive classes.
5241 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
5243 * include/java-util.h: Removed java::util definition.
5244 * include/cni.h: Moved java::util here and added Properties.
5245 Added more function prototypes.
5246 * include/java-lang.h: Added mroe methods and friend declarations.
5247 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
5248 * include/jvm.h (strLengthUtf8): Add declaration.
5250 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
5252 * java/lang/{Byte,Short,Void}.java: New classes.
5253 * java/lang/Character.java (isJavaIdentifierStart,
5254 JavaIdentifierPart): New static methods.
5255 * java/lang/Number.java (byteValue, shortValue): New methods.
5257 * java/lang/String.java (intern, hashCode): Make native.
5258 * java/lang/natString.cc: New file. Handle the string pool.
5259 * Makefile.am: Build natString.o. Use CXXFLAGS.
5261 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
5262 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
5263 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
5264 * java/lang/System.java (setProperty): New private method.
5265 (initProperties): Take argument, and make native.
5266 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
5267 (currentTimeMillis): Make more robust.
5269 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
5270 * java/io/UnsupportedEncodingException.java: New exception class.
5272 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
5273 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
5275 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
5277 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
5278 * prims.cc: Added bunch of stuff.
5279 * include/cni.h: Added various definitions.
5280 * include/java-lang.h: Added Method, various friends, some macros.
5282 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
5283 * java/lang/System.java (arraycopy): Make native.
5285 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
5287 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
5288 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
5289 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
5290 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
5292 * java/lang/Runtime.java: Declare methods as native instead of
5294 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
5295 * java/lang/System.java: Comment out some stuff, for now.
5296 * java/lang/Thread.java: Re-write. Use native methods.
5297 * java/lang/NativeLang.java: Remove most of it.
5299 * java/util/natDate.cc: Native (C++) methods for Date.
5300 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
5301 * java/util/Date.java: Complete re-write.
5303 * java/io/io-defs.h: New header file.
5304 * java/io/FileDescriptor.java: Add a bunch of private methods,
5305 mostly moved from NativeIO.java and natNativeIO.cc.
5306 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
5307 * java/io/File.java: Use new code.
5308 * java/io/{FileInputStream.java.FileOutputStream.java,
5309 RandomAccessFile.java}: Use new private FileDescriptor methods.
5310 * java/io/NativeIO.java: Removed, no longer used.
5312 * java/io/StreamTokenizer.java (numericChars): Make char array.
5314 * include/*.h: Various header files used by the C++ native code.
5316 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
5317 New autoconf+automake-based setup.
5318 * prims.cc: New file for Java "primitives".