1 1999-05-07 Tom Tromey <tromey@cygnus.com>
3 * acconfig.h (GCJVERSION): New undef.
4 * java/lang/natSystem.cc (init_properties): Define java.version,
5 java.class.version, os.name, os.arch, os.version.
6 Include <sys/utsname.h> if required.
8 * configure.in: Compute and define GCJVERSION.
10 * java/lang/natSystem.cc (default_file_encoding): Now static.
12 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
14 * libtool-version: New file.
15 * Makefile.in: Rebuilt.
16 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
19 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
20 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
23 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
24 (we pick those up already).
26 1999-05-05 Per Bothner <bothner@cygnus.com>
28 * java/awt/*: Check a bunch of classes, a few complete, but mostly
29 stub classes. (This is enough to get Kawa to compile against libgcj.)
31 * gnu/gcj/RawData.java: New class.
32 * doc/cni.sgml: Document RawData.
34 * java/util/zip/InflaterInputStream.java: New stub class.
35 * java/util/zip/ZipInputStream.java: New class. Partly works.
36 * java/util/zip/ZipConstants.java: Add two (internal) constants.
37 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
38 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
39 * java/util/zip/ZipOutputStream.java: Start implementation.
41 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
42 (default_file_encoding): New global, initial value is above macro.
43 (init_properties): Default file.encoding to default_file_encoding.
45 * Makefile.am: Add new classes.
47 1999-05-05 Tom Tromey <tromey@cygnus.com>
49 * Makefile.in: Rebuilt.
50 * Makefile.am (CLEANFILES): Don't mention $(class_files).
51 (clean-local): New target
53 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
54 (load, loadLibrary): Now native.
56 * java/lang/Runtime.java (load, loadLibrary): Now native.
57 (init): New native method.
59 * prims.cc: Include <ltdl.h> if required.
60 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
62 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
64 * configure.in: Switch from irix threads to posix threads
65 * configure: Regenerate.
67 1999-04-30 Tom Tromey <tromey@cygnus.com>
69 * Makefile.in: Rebuilt.
70 * Makefile.am (jv_convert_LDADD): Added -lgcc.
72 1999-04-29 Tom Tromey <tromey@cygnus.com>
74 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
77 * java/util/Locale.java (Locale(String,String)): Implement in
78 terms of 3-argument version; variant now defaults to empty
80 (toString): Assume variant is not null.
81 (equals): Assume all strings are not null.
82 (Locale): Throw NullPointerException if any argument is null.
84 * java/util/ResourceBundle.java (getBundle): Don't try the base
85 name; now implicit in partialGetBundle call.
86 (trySomeGetBundle): Search for parent bundles and call setParent
88 (partialGetBundle): Added `langStop' argument. Use
89 `Locale.toString' to compute bundleName.
90 (resource_cache): New static field.
91 (partialGetBundle): Cache the returned resource bundle. Now
94 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
97 * mauve-libgcj: Enable Collator and RuleBasedCollator.
98 * java/text/natCollator.cc (decomposeCharacter): `base' now
100 * Makefile.in: Rebuilt.
101 * Makefile.am (ordinary_java_source_files): Added
102 CollationElementIterator, CollationKey, Collator,
104 (nat_source_files): Added natCollator.cc.
105 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
106 (compare): Pass `this' to CollationElementIterator constructor.
107 (getCollationElementIterator): Likewise.
108 (ceiNext): Fix off-by-one error when finding initial substring.
109 (next): Correctly mask off bits when computing return value.
110 Fixed return values when one string is shorter than the other.
111 * java/text/CollationElementIterator.java (collator): New field.
112 (CollationElementIterator): Added collator argument.
113 (next): Call ceiNext on collator object.
115 1999-04-26 Tom Tromey <tromey@cygnus.com>
117 * natCollator.cc: New file.
119 * java/util/GregorianCalendar.java (setDefaultTime): New method.
120 (GregorianCalendar): Use it in all constructors.
121 * java/util/Calendar.java (Calendar): Changed argument name to
122 `zone' to match code.
124 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
125 * java/text/CollationKey.java: New file.
126 * java/text/CollationElementIterator.java: New file.
127 * java/text/Collator.java: New file.
128 * java/text/RuleBasedCollator.java: New file.
130 * Makefile.in: Rebuilt.
131 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
132 (jv_convert_LDADD): Explicltly add -lm -lc.
134 1999-04-26 Tom Tromey <tromey@cygnus.com>
136 * configure, Makefile.in: Rebuilt.
137 * configure.in: Added AM_PROG_LIBTOOL.
138 (GCOBJS): Use `.lo' form of files.
139 (THREADOBJS): Likewise.
140 (GCDEPS): Use `.la' form of library.
141 (GCLIBS): Set to be the same as GCDEPS.
142 (THREADDEPS): Use `.la' form of library.
143 (THREADLIBS): Set to be the same as THREADDEPS.
144 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
145 toolexeclib_LIBRARIES.
146 (libgcj_la_SOURCES): Renamed for libtoolization.
147 (EXTRA_libgcj_la_SOURCES): Likewise.
148 (libgcj_la_DEPENDENCIES): Likewise.
149 (libgcj_la_LIBADD): Likewise.
150 ($(nat_files)): Use LTCXXCOMPILE.
151 ($(c_files)): Use LTCOMPILE.
152 (GCJCOMPILE): New macro.
155 ($(javao_files)): Likewise.
156 (jv_convert_LINK): Use LIBTOOL.
157 (nat_files): Use `.lo' files.
159 (javao_files): Likewise.
160 (.class.lo): Renamed.
161 (.java.lo): Likewise.
162 ($(nat_files)): Depend on %.lo.
163 ($(c_files)): Likewise.
164 ($(javao_files)): Likewise.
165 (jv_convert_LDADD): Link against .lo files.
166 (jv_convert_DEPENDENCIES): Depend on .lo files.
167 (maintainer-check): Depend on libgcj.la, but examine .a file.
168 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
169 (libgcj_la_LDFLAGS): New macro.
171 1999-04-23 Warren Levy <warrenl@cygnus.com>
173 * Makefile.am: Added URLDecoder and URLEncoder.
174 * Makefile.in: Rebuilt.
176 * java/net/ServerSocket.java (setSocketFactory): Renamed from
177 setSocketImplFactory to match spec.
178 * java/net/Socket.java (getSoLinger): Changed return type to
181 * java/net/URLDecoder.java: New file.
182 * java/net/URLEncoder.java: New file.
184 1999-04-21 Tom Tromey <tromey@cygnus.com>
186 * java/lang/natString.cc (getBytes): Reverted earlier change and
187 applied correct fix from Per Bothner.
189 * java/lang/String.java: Don't throw
190 UnsupportedEncodingException.
192 * java/lang/natString.cc (getBytes): Correctly size result
193 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
195 1999-04-20 Andrew Haley <aph@cygnus.com>
197 * include/sparc-signal.h: new file.
198 * configure.in: include/sparc-signal.h added.
199 * configure: regenerated.
200 * prims.cc (JvRunMain): signal handling code rewritten to be more
204 * include/i386-signal.h: reorganized.
205 * include/default-signal.h: reorganized.
207 1999-04-19 Tom Tromey <tromey@cygnus.com>
209 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
210 once. From Anthony Green.
212 1999-04-19 Andrew Haley <aph@cygnus.com>
214 * Makefile.in: Processed with new automake.
216 1999-04-19 Tom Tromey <tromey@cygnus.com>
218 * include/javaprims.h: Removed security namespace.
220 1999-04-20 Anthony Green <green@cygnus.com>
222 * java/io/PrintStream.java (println): Remove extra println.
224 1999-04-19 Anthony Green <green@cygnus.com>
226 * Makefile.in: Rebuilt.
227 * Makefile.am (ordinary_java_source_files): Add new security files.
229 * java/security/NoSuchAlgorithmException.java,
230 java/security/MessageDigest.java: New files.
232 * include/javaprims.h: Add security namespace.
234 1999-04-16 Per Bothner <bothner@cygnus.com>
236 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
237 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
238 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
239 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
240 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
241 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
242 * gnu/gcj/convert/natInput_SJIS.cc: New file.
243 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
244 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
245 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
246 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
247 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
248 * Makefile.am: Various changes for new files and conversions.
250 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
251 New overloading, allows greater efficiency.
252 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
253 New overloading (for efficiency - avoids copying).
255 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
256 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
258 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
259 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
260 (writeChars): Don't be quite so eager to flush.
261 * java/io/PrintStream.java: Rewrite. Now more similar to
262 OutputStreamWriter, using explicit UnicodeToBytes converter.
263 Also, autoflush does not need to flush so often.
264 * java/lang/natString.cc (getBytes): More efficient algorithm.
265 (init(jbyteArray,jint,jint,jstring)): More efficient.
267 1999-04-15 Warren Levy <warrenl@cygnus.com>
269 * Makefile.am (ordinary_java_source_files): Added new Connection
270 and Handler classes in gnu.gcj.protocol.file package.
271 * Makefile.in: Rebuilt.
273 * gnu/gcj/protocol/file/Connection.java: New file.
274 * gnu/gcj/protocol/file/Handler.java: New file.
275 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
276 if doInput allows input.
277 (getOutputStream): Check if doOutput allows output.
278 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
280 1999-04-14 Tom Tromey <tromey@cygnus.com>
282 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
283 buffer larger to work around bug.
284 From Bryce McKinlay <bryce@albatross.co.nz>.
286 1999-04-14 Andrew Haley <aph@cygnus.com>
288 * java/lang/natDouble.java (doubleToLongBits): ensure that all
289 NaNs are always converted to the same long value.
290 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
293 1999-04-13 Tom Tromey <tromey@cygnus.com>
295 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
296 instead switch on actual element type.
298 * Makefile.in: Rebuilt.
299 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
301 1999-04-13 Andrew Haley <aph@cygnus.com>
303 * include/i386-signal.h, include/default-signal.h: New files.
304 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
306 (catch_fpe): New function.
307 * configure.in: Make link to appropriate include/java-signal.h.
308 * configure: Rebuilt.
309 * Makefile.am: include/java-signal.h added to dependency list.
310 * Makefile.in: Rebuilt.
312 1999-04-12 Urban Widmark <urban@svenskatest.se>
314 * java/io/DataInputStream.java (readLine): Corrected handling of
315 empty lines, from null to "".
317 1999-04-12 Tom Tromey <tromey@cygnus.com>
319 * Makefile.in: Rebuilt.
320 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
322 * java/lang/natSystem.cc (SystemClass): New define.
323 (init_properties): Synchronize.
325 1999-04-08 Geoff Berry <gcb@gnu.org>
327 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
328 * natPlainSocketImpl.cc (accept): Add missing else if check
331 1999-04-08 Tom Tromey <tromey@cygnus.com>
333 * java/lang/Long.java (parseLong): Corrected overflow detection
335 * java/lang/Integer.java (parseInt): Corrected overflow detection
338 * java/io/PrintStream.java (print): Handle null string argument.
341 1999-04-07 Warren Levy <warrenl@cygnus.com>
343 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
344 Set count to 0 when InputStreamReader returns -1 for EOF.
346 1999-04-07 Tom Tromey <tromey@cygnus.com>
348 * mauve-libgcj: Omit java.text.Collator,
349 java.text.RuleBasedCollator.
351 1999-04-06 Tom Tromey <tromey@cygnus.com>
353 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
354 IOException from getHttpHeaders().
355 (getHeaderFieldKey): Likewise.
357 * include/javaprims.h: Regenerated declarations.
359 * Makefile.in: Rebuilt.
360 * Makefile.am (ordinary_java_source_files): Updated for removed
363 1999-04-06 Per Bothner <bothner@cygnus.com>
365 * java/util/zip/Adler32.java: New class.
366 * java/util/zip/CRC32.java: Add working method bodies.
367 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
368 * Makefile.in: Re-generate.
370 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
372 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
373 from version in removed www hierarchy.
374 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
375 version in removed www hierarchy.
377 * gnu/gcj/www/protocol/http/Connection.java: Removed.
378 * gnu/gcj/www/protocol/http/Handler.java: Removed.
379 * gnu/gcj/www/protocol/http: Removed dir.
380 * gnu/gcj/www/protocol: Removed dir.
381 * gnu/gcj/www: Removed dir.
383 * java/net/HttpURLConnection.java: Revised comments to indicate
384 missing JDK 1.2 methods.
386 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
387 hierarchy rather than the gnu/gcj/www/protocol one.
388 * java/net/URLConnection.java: Updated status comments.
389 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
390 the gnu/gcj/www/content one.
392 1999-04-06 Per Bothner <bothner@cygnus.com>
394 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
395 The gen-from-JIS program is in $(CONVERT_DIR).
397 1999-04-06 Tom Tromey <tromey@cygnus.com>
399 * mauve-libgcj: Renamed from mauve-libjava.
401 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
403 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
404 (getResponseMessage): Implemented.
405 (getResponseVals): New private method.
407 * java/net/URLConnection.java (getContent): Implemented.
408 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
410 1999-04-05 Tom Tromey <tromey@cygnus.com>
412 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
413 (jv_convert_SOURCES): Renamed.
414 (EXTRA_jv_convert_SOURCES): Likewise.
415 (jv_convert_LDFLAGS): Likewise.
416 (jv_convert_LINK): Likewise.
417 (jv_convert_LDADD): Likewise.
418 (jv_convert_DEPENDENCIES): Likewise.
420 * Makefile.in: Rebuilt.
421 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
424 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
426 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
427 method for comparison.
429 * java/net/URLConnection.java (getContentLength): Implemented.
430 (getContentType): Implemented.
431 (getContentEncoding): Implemented.
432 (getExpiration): Implemented.
433 (getDate): Implemented.
434 (getLastModified): Implemented.
435 (getHeaderFieldInt): Implemented.
436 (getHeaderFieldDate): Implemented.
438 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
440 * java/net/URLConnection.java (toString): Implemented.
441 (setContentHandlerFactory): Implemented.
442 (setContentHandler): Wrote new private helper method.
444 1999-04-01 Tom Tromey <tromey@cygnus.com>
446 * Makefile.in: Rebuilt.
447 * Makefile.am ($(java_source_files:.java=.class): Reverted change
448 of 1999-03-31; we always want to build all the .class files.
449 Depend on java_source_files, not libgcj.zip.
450 (nat_headers): Define in terms of ordinary_java_source_files.
452 1999-03-31 Tom Tromey <tromey@cygnus.com>
454 * Makefile.in: Rebuilt.
455 * Makefile.am (special_java_source_files): New macro.
456 (java_source_files): Use it.
457 (ordinary_java_source_files): New macro.
458 (java_source_files): Use it.
459 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
460 creating headers for those files with hand-maintained headers.
462 * include/javaprims.h: Regenerated namespace declarations.
463 * classes.pl (scan): Include [0-9] in regexp for matching class
464 names; for java.util.zip.CRC32.
466 * Makefile.in: Rebuilt.
467 * Makefile.am (nat_headers): Redefined to generate all possible
470 * java/util/zip/ZipException.java: In package java.util.zip, not
473 1999-03-30 Tom Tromey <tromey@cygnus.com>
475 * configure: Rebuilt.
476 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
477 eh-common.h when not building in tree with gcc.
479 * Makefile.in: Rebuilt.
480 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
481 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
483 ($(java_source_files:.java=.class)): New target.
485 * Makefile.in: Rebuilt.
486 * Makefile.am (java_source_files): Added
487 java/net/HttpURLConnection.java and
488 gnu/gcj/www/protocol/http/Connection.java.
490 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
492 * gnu/gcj/www/protocol/http/Connection.java: New file.
493 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
494 * java/net/HttpURLConnection.java: New file.
495 * java/net/URLConnection.java (getHeaderField): Implemented default.
496 (getHeaderFieldKey): Implemented default method.
498 1999-03-30 Tom Tromey <tromey@cygnus.com>
500 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
502 * java/util/zip/Deflater.java: Added copyright header.
503 * java/util/zip/CRC32.java: Added copyright header.
505 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
506 that it is automatically generated.
507 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
509 * gnu/gcj/convert/BytesToUnicode.java,
510 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
511 gnu/gcj/convert/Input_EUCJIS.java,
512 gnu/gcj/convert/Input_UTF8.java,
513 gnu/gcj/convert/JIS0208_to_Unicode.cc,
514 gnu/gcj/convert/JIS0212_to_Unicode.cc,
515 gnu/gcj/convert/Output_8859_1.java,
516 gnu/gcj/convert/Output_JavaSrc.java,
517 gnu/gcj/convert/Output_UTF8.java,
518 gnu/gcj/convert/UnicodeToBytes.java,
519 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
521 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
523 * Makefile.in, configure: Rebuilt.
524 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
525 not if test subdir exists.
526 (--enable-gcj-classes): Removed; gcj always used to generate
528 (JAVA, JAVAC): Removed.
529 (--enable-single-compilation, --enable-source-compilation):
532 (NATIVE): New conditional.
533 * Makefile.am (toolexecdir): Renamed from tooldir to allow
534 `install-exec' to work.
535 (toolexeclibdir): Likewise.
536 (toollib_LIBRARIES): Likewise.
537 (AM_MAKEFLAGS): Don't pass tooldir.
539 (javao_files): Redefined.
540 (java_source_files): New macro.
541 (c_source_files): New macro.
542 (c_files): Redefined in terms of c_source_files.
543 (java_io_files, java_lang_files, java_net_files, java_text_files,
544 java_util_files, gnu_files, java_files): Removed.
545 (class_io_files, class_lang_files, class_net_files,
546 class_text_files, class_util_files, class_gnu_files, class_files):
548 (nat_source_files): New macro.
549 (nat_files): Redefined in terms of nat_source_files.
550 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
551 java_source_files. Removed no-such-file.c.
553 (ETAGS_ARGS): Removed.
554 (TAGS_DEPENDENCIES): Likewise.
555 (libgcj.zip): Depend on java_source_files. Use $(here) and not
557 (src_io_files, src_lang_files, src_text_files, src_util_files,
558 src_gnu_files): Removed.
559 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
560 (BUILT_SOURCES): Removed.
561 (header-check): New target.
563 (noinst_PROGRAMS): New macro.
564 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
566 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
567 (gen-from-JIS): Build in top directory.
568 (convert_source_files): New macro.
569 (convert_SOURCES): New macro.
570 (convert_LDFLAGS): Likewise.
571 (convert_LINK): Likewise.
572 (convert_LDADD): Likewise.
573 (convert_DEPENDENCIES): Likewise.
575 (gen-from-JIS): Removed.
576 (gen_from_JIS_SOURCES): New macro.
577 (gen_from_JIS_LDADD): Likewise.
578 (gen_from_JIS_DEPENDENCIES): Likewise.
580 * configure: Rebuilt.
581 * configure.in (CANADIAN): Set to `yes', not `canadian'.
582 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
583 when defining conditional.
585 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
587 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
588 The Unicode Consortium does not permit their re-distribution.
589 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
590 (JIS0208.h, JIS0212.h): Do not depend on removed files.
592 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
594 * natSystem.c (init_properties): Use malloc, realloc, free after all.
596 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
598 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
599 from Unicode Consortium.
600 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
601 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
602 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
603 New tables, generated using gen-from-JIS.
604 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
605 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
606 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
607 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
609 * gnu/gcj/convert/Convert.java: New application.
610 * Makefile.am, Makefile.in (convert): New program, using Convert.
611 Build the various JIS conversion tables (in maintainer mode).
613 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
615 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
617 * java/net/URL.java (URL): Deal with null property value. Use "."
618 as separator in building class name.
619 * java/net/URLConnection.java: Implemented majority of stubbed methods.
620 * java/net/URLStreamHandler.java (parseURL): Use "" in string
621 manipulations instead of 'null'. Comment cleanup. Use 0 for the
622 beginning of the substring rather than 'start'.
624 1999-03-26 Tom Tromey <tromey@cygnus.com>
626 * include/java-chartables.h: Rebuilt.
627 * include/java-chardecomp.h: New file.
628 * chartables.pl: Generate output files directly. Added support
629 for generating decomposition header.
630 (canonical_decomposition, full_decomposition): New globals.
631 (DECOMPOSITION): New constant.
632 (process_char): Call add_decomposition.
633 (add_decomposition): New sub.
634 (write_decompositions): New sub.
636 1999-03-25 Tom Tromey <tromey@cygnus.com>
638 * java/text/CollationElementIterator.java: New file.
640 * mauve-libjava: Omit StringTest.
642 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
644 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
645 without a '/' when parsing protocol. Handle ref outside of parseURL.
646 (hashCode): Implemented.
647 (set): Don't expand -1 to default port.
648 (getDefaultPort): Removed.
650 * java/net/URLStreamHandler.java (parseURL): Implemented.
651 (toExternalForm): Implemented.
653 1999-03-23 Tom Tromey <tromey@cygnus.com>
655 * java/text/BreakIterator.java (getSentenceInstance):
657 * gnu/gcj/text/SentenceBreakIterator.java: New file.
659 * Makefile.in: Rebuilt.
660 * Makefile.am (nat_headers): Added IllegalAccessException.
661 * java/lang/natClass.cc (newInstance): Throw
662 IllegalAccessException, not IllegalAccessError.
663 Include IllegalAccessException.h.
665 1999-03-22 Tom Tromey <tromey@cygnus.com>
667 * gnu/gcj/text/LineBreakIterator.java: New file.
668 * java/text/BreakIterator.java (getLineInstance): Implemented.
670 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
671 copy constructor private.
672 (previous, next): Removed erroneous comment about line
674 (previous): Correctly recognize break between non-letter on the
675 left and letter on the right. Handle apostrophes correctly.
677 * java/text/BreakIterator.java (getWordInstance): Implemented.
678 * gnu/gcj/text/WordBreakIterator.java: New file.
679 * gnu/gcj/text/CharacterBreakIterator.java: Extend
681 * gnu/gcj/text/BaseBreakIterator.java: New file.
683 1999-03-19 Tom Tromey <tromey@cygnus.com>
685 * java/text/BreakIterator.java: New file (partially stubbed out).
686 * gnu/gcj/text/CharacterBreakIterator.java: New file.
688 * include/config.h.in: Rebuilt.
689 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
690 (HAVE_TIMEZONE): Likewise.
691 * configure: Rebuilt.
692 * configure.in: Added timezone checks.
693 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
696 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
698 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
699 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
700 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
701 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
702 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
703 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
704 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
705 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
707 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
708 (BSD_COMP): Kludge needed for Solaris2.
710 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
712 * java/net/URL.java (URL(java.net.URL, string): Moved code to
713 URL(java.net.URL, string, URLStreamHandler) and call it with a
714 null handler. In latter constructor, added SecurityManager check.
715 (set): Expect null handler on bad protocol rather than an exception.
716 (setURLStreamHandler): Simplified exception handling; return null
719 1999-03-18 Tom Tromey <tromey@cygnus.com>
721 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
723 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
725 Include PrintStream.h, InputStream.h.
726 * java/lang/System.java (ForwardingInputStream,
727 ForwardingOutputStream): Removed.
728 (setErr, setIn, setOut): Now native.
730 Reverted patch from 1999-02-12 to work around problem in
732 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
733 (_Jv_eh_free): Use free.
735 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
736 for path name. Minor formatting fixes.
738 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
740 * prims.cc (fail_on_finalization): New function.
741 (_Jv_GCWatch): Likewise.
743 * prims.cc (JvRunMain): Initialize `nullp'.
745 (catch_segv): Throw nullp.
747 * Makefile.in: Rebuilt.
748 * Makefile.am (ZIP): In "null target" case, zip is found in the
751 * prims.cc (_Jv_PrimClass): Initialize all elements of class
755 * java/lang/StringBuffer.java (StringBuffer): Don't use
756 ensureCapacity to set initial capacity.
757 (capacity): Subtract `length' from return result.
759 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
761 * java/io/natFileDescriptorPosix.cc (open): Throw
762 FileNotFoundException, but with filename and errno in msg.
764 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
766 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
767 functionality folded into java/net/URL.java per spec.
769 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
770 than EEXIST for throwing FileNotFoundException.
772 * java/net/URL.java: Folded in default URLStreamHandlerFactory
773 algorithm per JDK 1.2 doc. Added SecurityManager checks.
775 * java/net/URLStreamHandler.java (parseURL): Added stub.
777 1999-03-15 Andrew Haley <aph@cygnus.com>
779 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
782 1999-03-15 Andrew Haley <aph@cygnus.com>
784 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
787 1999-03-12 Tom Tromey <tromey@cygnus.com>
789 * prims.cc (catch_segv): New function.
790 Include <signal.h> if HANDLE_SEGV defined. Include
791 NullPointerException.h.
792 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
795 * java/text/SimpleDateFormat.java (equals): Ensure that object is
796 a SimpleDateFormat, not just a DateFormat.
797 (defaultCenturyStart, formatData, pattern): Now private.
798 (append): Now `final'. Use `NumberFormat.format'.
800 (SimpleDateFormat): Turn off groupin in NumberFormat object.
802 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
805 * java/text/MessageFormat.java (format): Use default MessageFormat
807 (parse, parseObject): Wrote.
809 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
812 1999-03-12 Andrew Haley <aph@cygnus.com>
814 * java/lang/String.java (indexOf): Replace with native method for
816 * java/lang/natString.cc (IndexOf): As above.
818 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
819 Argument check corrected.
820 (init(jbyteArray,jint,jint,jstring)): Likewise.
822 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
823 1.2 compliant method.
825 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
827 * java/lang/Float.java (byteValue, shortValue): Likewise.
829 1999-03-11 Tom Tromey <tromey@cygnus.com>
831 * java/text/DecimalFormat.java (parse): Wrote.
833 * java/text/ChoiceFormat.java (parse): Set error index on
834 ParsePosition object.
836 * java/lang/Integer.java (parseInt): Throw exception on overflow
837 when intermediate result is most negative number. Changed
838 overflow detection as well.
839 * java/lang/Long.java (parseLong): Likewise.
841 * configure, Makefile.in: Rebuilt.
842 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
843 CANADIAN when building in source tree that doesn't include gcc.
844 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
847 * java/text/ChoiceFormat.java (nextDouble): Correct some
848 off-by-one errors when masking or adding.
850 * java/text/DecimalFormat.java (format): Fill in FieldPosition
851 parameter, if given. Use `%', not IEEEremainder.
852 (scanFix): Throw error if multiplier already set.
853 (computePattern): Wrote.
855 1999-03-11 Andrew Haley <aph@cygnus.com>
857 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
859 (nextDouble): Corrected masking logic. Handle interaction between
860 `next' and negative numbers.
862 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
864 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
865 * java/net/URL.java: Added general comments.
867 1999-03-10 Tom Tromey <tromey@cygnus.com>
869 * java/text/ChoiceFormat.java (parse): Wrote.
871 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
873 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
874 Create ChoiceFormat objects.
875 (format): Special-case ChoiceFormat.
876 (scanFormatElement): Include { and } in generated style string.
878 1999-03-09 Tom Tromey <tromey@cygnus.com>
880 * java/text/ChoiceFormat.java: New file.
882 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
884 * java/net/BindException.java: Created.
885 * java/net/ConnectException.java: Created.
886 * java/net/ContentHandler.java: Created.
887 * java/net/ContentHandlerFactory.java: Created.
888 * java/net/FileNameMap.java: Created.
889 * java/net/MalformedURLException.java: Created.
890 * java/net/NoRouteToHostException.java: Created.
891 * java/net/ProtocolException.java: Created.
892 * java/net/ServerSocket.java (@author): Fixed typo.
893 * java/net/Socket.java (@author): Fixed typo.
894 * java/net/SocketImpl.java (@author): Fixed typo.
895 * java/net/SocketImplFactory.java (@author): Fixed typo.
896 * java/net/URL.java: Created - nearly complete.
897 * java/net/URLConnection.java: Created - near-empty stub.
898 * java/net/URLStreamHandler.java: Created - incomplete stub.
899 * java/net/URLStreamHandlerFactory.java: Created.
900 * java/net/UnknownServiceException.java: Created.
902 1999-03-09 Tom Tromey <tromey@cygnus.com>
904 * java/lang/System.java (ForwardingInputStream): New class.
905 (ForwardingOutputStream): Likewise.
906 (in, out, err): Now `final' forwarding streams.
907 (setIn, setOut, setErr): Use appropriate method on forwarding
910 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
913 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
915 * java/util/zip/CRC32.java: New class (just an incomplete stub).
916 * java/util/zip/Checksum.java: New interface (complete).
917 * java/util/zip/Deflater.java: New class (near-empty stub).
918 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
919 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
920 * java/util/zip/ZipEntry.java: New class (complete).
921 * java/util/zip/ZipException.java: New class (complete).
922 * java/util/zip/ZipFile.java: New class (incomplete stub).
923 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
925 1999-03-09 Tom Tromey <tromey@cygnus.com>
927 * java/text/MessageFormat.java (MessageFormatElement): Removed
930 * java/text/DecimalFormat.java (scanFormat): Increment index
931 before processing exponential format. Fixed a couple typos in
933 (format): Correct normalization of exponent.
935 1999-03-08 Tom Tromey <tromey@cygnus.com>
937 * java/text/SimpleDateFormat.java (parse): Throw
938 IllegalArgumentException, not ParseException.
940 1999-03-05 Tom Tromey <tromey@cygnus.com>
942 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
943 when constructing DateFormatSymbols. Initialize numberFormat
946 * java/text/DateFormat.java (equals): Rewrote.
947 (getAvailableLocales): New method.
948 (getDateInstance): New methods.
949 (getDateTimeInstance): Likewise.
950 (getTimeInstance): Likewise.
951 (getInstance): New method.
952 (computeInstance): New method.
954 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
956 (safeGetResource): New method.
957 (DateFormatSymbols): Use Locale paramater.
958 (equals): Now protected.
959 Made instance variables private.
961 1999-03-04 Tom Tromey <tromey@cygnus.com>
963 * java/text/DecimalFormat.java: New file.
965 * java/text/NumberFormat.java (groupingUsed,
966 maximumFractionDigits, maximumIntegerDigits,
967 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
969 (setDecimalSeparatorAlwaysShown, setMultiplier,
970 setPositivePrefix): Removed.
971 (setMinimumFractionDigits, setMaximumFractionDigits):
974 Added many new methods.
976 * Makefile.in: Rebuilt.
977 * Makefile.am (gnu_files): New macro.
978 (java_files): Added gnu_files.
979 (class_gnu_files): New macro.
980 (class_files): Use it.
981 (src_gnu_files): New macro.
983 (javao_files): Added gnu.o.
985 * gnu/gcj/text/LocaleData_en_US.java: New file.
986 * gnu/gcj/text/LocaleData_en.java: New file.
987 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
988 (DecimalFormatSymbols): Use ResourceBundle to find resources.
989 (safeGetString): New method.
990 (safeGetChar): Likewise.
992 1999-03-03 Tom Tromey <tromey@cygnus.com>
994 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
997 * java/text/FieldPosition.java (equals): Don't check for null
998 object; instanceof does this.
1000 * java/util/Locale.java (clone): New method.
1003 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
1005 * doc/cni.sgml: New file.
1007 1999-03-03 Tom Tromey <tromey@cygnus.com>
1009 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
1011 * java/text/DecimalFormatSymbols.java: New file.
1013 1999-03-02 Tom Tromey <tromey@cygnus.com>
1015 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
1017 * configure: Rebuilt.
1018 * configure.in: Check for sys/filio.h.
1020 * java/lang/Runtime.java (checkLink): Throw NullPointerException
1022 (load): Always throw UnsatisfiedLinkError.
1023 (loadLibrary): Likewise.
1025 1999-03-02 Anthony Green <green@cygnus.com>
1027 * LIBGCJ_LICENSE: New file.
1028 * LIBJAVA_LICENSE: Removed.
1029 * Many files: libjava now libgcj.
1031 1999-03-02 Tom Tromey <tromey@cygnus.com>
1033 * include/java-chartables.h: Rebuilt.
1034 * chartables.pl (print_block): Make table `const'.
1035 (print_numerics): Likewise.
1036 (print_single_map): Likewise.
1037 (print_all_block): Likewise.
1038 (print_case_table): Likewise.
1039 (print_fast_tables): Likewise.
1040 * java/lang/natCharacter.cc (table_search): `table' argument now
1043 1999-03-01 Tom Tromey <tromey@cygnus.com>
1045 * java/util/Date.java (before, after): Inverted logic.
1047 * java/util/Date.java (parse): Handle case where first character
1048 in string is open parenthesis.
1049 (skipParens): Rewrote.
1051 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
1052 * java/lang/reflect/natField.cc: Include <stdlib.h>.
1054 * java/util/Date.java (parse): Correctly compute beginning of
1057 * java/util/Hashtable.java (get): Throw NullPointerException if
1059 (containsKey): Likewise.
1061 * java/util/Properties.java (list): Truncate value to 37
1062 characters and add `...'.
1064 * java/lang/Byte.java (parseByte): Pass `radix' to
1067 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
1069 Include System.h, PrintStream.h.
1071 * java/lang/natSystem.cc (init_properties): Don't use malloc,
1074 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
1076 * configure: Rebuilt.
1077 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
1080 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
1082 * java/lang/SecurityManager.java: Import java.net.*.
1083 (checkMulticast): New methods.
1085 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
1087 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
1088 (nat_files): Add java/lang/reflect/natArray.o.
1089 (nat_headers): Add Field.h and NoSuchFieldException.h.
1091 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
1092 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
1093 (_Jv_FromReflectedField): Fix buglet.
1094 * include/jvm.h (_Jv_NewMultiArray): New declaration.
1095 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
1096 * prims.cc (_Jv_Abort): Include message in print-out.
1098 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
1099 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
1100 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
1102 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
1103 * include/config.h.in (HAVE_PWD_H): New feature macro.
1104 * java/lang/natSystem.cc (init_properties): Set file.encoding,
1105 user.name, user.home, user.dir.
1107 * java/lang/reflect/Array.java: New class.
1108 * java/lang/reflect/natArray.cc: New native methods.
1109 * include/javaprims.h: Declare java::lang::reflect::Array.
1111 * java/lang/Class.h (getField): New private method. Add friends.
1112 * java/lang/Class.java (getField): Add private overload.
1113 * java/lang/natClass.cc (getField, getField, getDeclaredField,
1114 getDeclaredMethods): Add working implementations.
1115 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
1116 Finish implementation, except for access control.
1118 * java/lang/reflect/Modifier.java (toString): New overload.
1119 * include/java-method.h: New file.
1120 * java/lang/reflect/Method.java (index): Replaced by offset field.
1121 Remove various private fields - get them from _Jv_Field instead.
1122 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
1123 New method implementations.
1125 * java/text/NumberFormat.java: Add a bunch of methods.
1127 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
1129 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
1131 1999-02-26 Tom Tromey <tromey@cygnus.com>
1133 * include/config.h.in: Rebuilt.
1134 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
1135 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
1136 HAVE_GETHOSTBYADDR_R): New defines.
1137 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
1138 gethostbyaddr_r if available.
1140 * configure: Rebuilt.
1141 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
1143 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
1147 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
1148 * prims.cc (_Jv_AllocBytesChecked): New function.
1150 * Makefile.in: Rebuilt.
1151 * Makefile.am (SUBDIRS): Removed `test'.
1152 * configure: Rebuilt.
1153 * configure.in: Don't build test/Makefile.
1154 * test/*: Removed all files.
1156 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
1158 * java/lang/reflect/Constructor.java: Make class final to match spec.
1159 * java/lang/reflect/Method.java: Ditto.
1161 1999-02-25 Tom Tromey <tromey@cygnus.com>
1163 * java/net/natInetAddress.cc: Include <sys/types.h> before
1165 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
1168 * java/net/natInetAddress.cc: Declare gethostname if required.
1169 * include/config.h.in: Rebuilt.
1170 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
1171 * configure: Rebuilt.
1172 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
1173 declared in unistd.h.
1175 1999-02-24 Tom Tromey <tromey@cygnus.com>
1177 * Makefile.in: Rebuilt.
1178 * Makefile.am (java/io/FileDescriptor.h): Removed target.
1179 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
1180 from private to "none".
1182 * include/javaprims.h: Regenerated class declarations with new
1184 * classes.pl (scan): Only generate decls for java.lang, java.io,
1187 1999-02-24 Tom Tromey <tromey@cygnus.com>
1189 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
1190 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
1192 1999-02-23 Tom Tromey <tromey@cygnus.com>
1194 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
1195 not already defined.
1196 * java/io/natFile.cc (_REENTRANT): Only define if not already
1198 * include/config.h.in: Rebuilt.
1199 * acconfig.h (HAVE_BOEHM_GC): New define.
1200 * configure: Rebuilt.
1201 * configure.in: Define HAVE_BOEHM_GC if using it.
1202 * posix-threads.cc: Include boehm-config.h and gc.h if
1204 * include/posix-threads.h: Added explanatory note about Boehm GC.
1206 * java/io/BufferedReader.java (readLine): Only return null when
1207 EOF seen before any characters read. (In particular, an empty
1208 line should not return null.)
1210 * java/io/BufferedInputStream.java (read): Only refill once per
1213 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
1214 java.lang.Character.classify12, java.lang.String.hash,
1215 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
1216 java.text.SimpleDateFormat.getAndSet2DigitYearStart
1218 * java/text/StringCharacterIterator.java (setIndex): No error if
1220 (next): Check for `pos == end', not `end - 1'.
1221 (StringCharacterIterator): Allow `pos == end'. Explicitly check
1222 for null text in each constructor.
1223 (clone): Fixed order of arguments to constructor.
1225 1999-02-22 Tom Tromey <tromey@cygnus.com>
1227 * include/config.h.in: Rebuilt.
1228 * acconfig.h (HAVE_INET6): New define.
1229 (HAVE_SOCKLEN_T): Likewise.
1230 * java/net/PlainSocketImpl.java: Added copyright header.
1231 * java/net/natPlainSocketImpl.cc: Added copyright header.
1232 (union SockAddr): Use HAVE_INET6, not AF_INET6.
1234 (connect): Likewise.
1236 (socklen_t): New typedef.
1237 (accept): Use socklen_t.
1238 * java/net/natInetAddress.cc: Added copyright header.
1239 (HAVE_GETHOSTNAME): Don't define.
1240 (HAVE_INET_ADDR): Likewise.
1241 (lookup): Fixed typo.
1242 (aton): Don't use `address' as name of local variable.
1243 (lookup): Use HAVE_INET6, not AF_INET6.
1245 * configure: Rebuilt.
1246 * configure.in: Look for functions inet_aton, inet_addr,
1247 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
1248 Check for socklen_t typedef.
1250 * exception.cc (__throw): Declare as __noreturn__.
1252 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
1254 * Makefile.am, Makefile.in: Also build java/net.
1255 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
1257 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
1258 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
1260 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
1261 * include/cni.h (JvMalloc, JvFree): New inline functions.
1262 (JvThrow): Add __noreturn__ attribute.
1263 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
1264 (_Jv_Throw): Add __noreturn__ attribute.
1266 * java/net/PlainSocketImpl.java: Init fnum to -1.
1267 * java/net/ServerSocket.java: Add missing throws clauses.
1268 * java/lang/Socket.java: For the constructor taking a SocketImpl,
1269 don't call create on the latter. Instead, other constructors
1270 have to explicitly call SocketImpl.create.
1271 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
1272 from size_t to int, to match ::accept prototype.
1273 * java/net/natInetAddress.cc: Use JvFree rather than free.
1276 1999-02-22 Tom Tromey <tromey@cygnus.com>
1278 * include/javaprims.h: Added new classes.
1279 * java/text/StringCharacterIterator.java: New file.
1280 * java/text/CharacterIterator.java: New file.
1282 * java/text/ParseException.java (errorOffset): Now private.
1284 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
1286 * java/net: New package.
1287 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
1288 Socket.java,SocketException.java,SocketImpl.java,
1289 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
1290 natPlainSocketImpl.cc}: New classes.
1292 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
1293 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
1294 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
1295 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
1297 * classes.pl: Translate package into "namespace", not "class".
1298 * include/javaprims.h: Update class list, using "namespace".
1300 1999-02-21 Tom Tromey <tromey@cygnus.com>
1302 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
1303 Define when appropriate.
1305 1999-02-20 Tom Tromey <tromey@cygnus.com>
1307 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
1308 as a single byte and \u07ff as two bytes.
1309 (_Jv_GetStringUTFLength): Likewise.
1310 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
1311 with 0x0f, not 0x1f.
1313 1999-02-19 Tom Tromey <tromey@cygnus.com>
1315 * java/io/DataOutputStream.java (writeUTF): When encoding
1316 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
1317 * java/io/DataInputStream.java (readUTF): Mask second byte of
1318 3-byte character with 0x3f, not 0x1f.
1320 * java/io/DataInputStream.java (readLong): Cast result of
1321 readUnsignedByte to long before using.
1323 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
1326 * mauve-libjava: Re-enabled java.io.DataInputOutput.
1327 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
1328 argument to avoid warning.
1329 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
1330 argument to avoid warning.
1332 1999-02-18 Tom Tromey <tromey@cygnus.com>
1334 * mauve-libjava: Omit java.io.DataInputOutput and
1335 java.io.Utf8Encoding.
1337 1999-02-17 Tom Tromey <tromey@cygnus.com>
1339 * Makefile.in: Rebuilt.
1340 * Makefile.am (nat_headers): Added InterruptedIOException.h.
1341 * java/io/natFileDescriptorPosix.cc: Include
1342 InterruptedIOException.h, Thread.h.
1343 (write): Throw InterruptedIOException when required.
1345 * posix-threads.cc: Include <signal.h>.
1346 (_Jv_ThreadInterrupt): New function.
1348 (handle_intr): New function.
1349 (_Jv_InitThreads): Register handle_intr via sigaction.
1350 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
1351 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
1352 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
1353 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
1355 1999-02-19 Andrew Haley <aph@cygnus.com>
1357 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
1359 (ThreadGroup (int)): Set the maximum priority of the initial
1362 1999-02-18 Andrew Haley <aph@cygnus.com>
1364 * java/lang/natClass.cc (forName): Check for the case where a
1365 classname is the name of an array and call FindClassFromSignature
1368 1999-02-18 Andrew Haley <aph@cygnus.com>
1370 * java/lang/StringBuffer (insert (int, String)): Move up any
1371 characters above the insert position and increase the length of
1372 the string buffer by the length of the argument.
1373 (insert (int, char[])): Likewise.
1374 (insert (int, char)): Likewise.
1375 (StringBuffer (String)): The initial capacity of the string buffer
1376 is 16 plus the length of the argument.
1377 (getChars): Add a JDK 1.2 FIXME.
1379 1999-02-18 Andrew Haley <aph@cygnus.com>
1381 * java/lang/Short.java (parseShort(String, int)): Pass radix to
1384 1999-02-18 Andrew Haley <aph@cygnus.com>
1386 * java/lang/Double.java (equals): Use a bit-by-bit comparision
1387 instead of floating-point equality. This is necessary for
1388 correct floating-point Hashtables.
1389 * java/lang/Float.java (equals): Ditto.
1391 1999-02-16 Tom Tromey <tromey@cygnus.com>
1393 * java/util/Properties.java (list): Truncate value to 37
1394 characters and add "...".
1396 1999-02-16 Tom Tromey <tromey@cygnus.com>
1398 * java/util/Vector.java (Vector): Throw IllegalArgumentException
1399 if initCap is negative.
1400 (contains): Implement JDK1.2-style handling of null argument.
1401 (removeElement): Likewise.
1402 (indexOf): Likewise. Also, correctly handle case where idx is
1404 (lastIndexOf): Likewise.
1406 1999-02-16 Tom Tromey <tromey@cygnus.com>
1408 * java/lang/natString.cc (init): Increment source pointer in
1411 1999-02-16 Tom Tromey <tromey@cygnus.com>
1413 * exception.cc: Include NullPointerException.h.
1414 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
1416 1999-02-16 Tom Tromey <tromey@cygnus.com>
1418 * Makefile.in: Rebuilt.
1419 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
1421 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
1423 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
1424 we're compiling canadian.
1425 * configure: Regenerated.
1427 1999-02-12 Andrew Haley <aph@cygnus.com>
1429 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
1430 deleted from libgcj.
1432 1999-02-12 Tom Tromey <tromey@cygnus.com>
1434 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
1435 (_Jv_eh_free): Don't call free.
1436 Don't declare malloc or free.
1438 1999-02-11 Tom Tromey <tromey@cygnus.com>
1440 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
1442 1999-02-11 Andrew Haley <aph@cygnus.com>
1444 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
1445 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
1446 needed by java.lang.*.
1447 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
1448 wf_fmod.o: Removed from libjava.a.
1450 1999-02-11 Tom Tromey <tromey@cygnus.com>
1452 * include/javaprims.h: Reverted previous change; with it
1453 exception.cc can't compile.
1455 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
1457 * include/config.h.in: Rebuilt.
1458 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
1460 * configure: Rebuilt.
1461 * configure.in: Check for sched_yield. Look in thread library for
1462 all thread functions.
1464 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
1465 no recursive mutexes.
1466 (_Jv_MutexDestroy): Define when required.
1467 (_Jv_MutexLock): Likewise.
1468 (_Jv_MutexUnlock): Likewise.
1469 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
1470 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
1471 (_Jv_Mutex_t): New structure.
1472 (_Jv_MutexDestroy): Only define if recursive mutexes available.
1473 (_Jv_MutexLock): Likewise.
1474 (_Jv_MutexUnlock): Likewise.
1476 1999-02-10 Tom Tromey <tromey@cygnus.com>
1478 * aclocal.m4, configure, Makefile.in: Rebuilt.
1479 * acinclude.m4: Renamed libjava to libgcj. Updated to use
1481 * configure.in: Changed to track library changes.
1482 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
1483 (AM_CXXFLAGS): Likewise.
1484 (data_DATA): Likewise.
1485 (AM_CFLAGS): Likewise.
1486 (JC1FLAGS): Likewise.
1487 (libgcj_a_SOURCES): Likewise.
1488 (EXTRA_libgcj_a_SOURCES): Likewise.
1489 (libgcj_a_DEPENDENCIES): Likewise.
1490 (libgcj_a_LIBADD): Likewise.
1491 (libgcj.zip): Likewise.
1492 (CLEANFILES): Likewise.
1493 ($(nat_headers)): Likewise.
1494 (java/lang/FirstThread.h): Likewise.
1495 (java/lang/ThreadGroup.h): Likewise.
1496 (java/lang/String.h): Likewise.
1497 (java/lang/reflect/Field.h): Likewise.
1498 (BUILT_SOURCES): Likewise.
1499 (maintainer-check): Likewise.
1500 (CONFIG_STATUS_DEPENDENCIES): Likewise.
1501 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
1503 * java/util/natGregorianCalendar.cc (computeFields): Only use
1504 gmtime_r and localtime_r when configured for posix threads.
1506 * java/io/natFile.cc (get_entry): Only use readdir_r when
1507 configured for posix threads.
1509 * java/util/natGregorianCalendar.cc: Update copyright notice.
1510 * java/util/TimeZone.java: Ditto.
1511 * java/util/SimpleTimeZone.java: Ditto.
1513 1999-02-08 Tom Tromey <tromey@cygnus.com>
1515 * java/io/PrintStream.java (line_separator): New constant.
1516 (print): Use line_separator, not `file.separator' property.
1517 (println): Use line_separator.
1519 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
1520 when trying to instantiate Class.
1522 * java/lang/ThreadGroup.java (ThreadGroup): Throw
1523 NullPointerException if argument is null.
1525 * java/lang/Thread.java (setName): Throw NullPointerException, not
1526 IllegalArgumentException.
1529 1999-02-08 Andrew Haley <aph@cygnus.com>
1531 * java/lang/natClass.cc (newInstance): Don't allow anyone to
1532 create new Classes with Class.newInstance().
1534 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
1535 semiciolon to end of an array Class's signature if the elements of
1536 the array aren't themselves arrays.
1538 * java/lang/natSystem.cc (arraycopy): The size of an element of an
1539 array of objects is always sizeof(jobject), not the size of the
1540 object to which the reference points.
1542 1999-02-08 Tom Tromey <tromey@cygnus.com>
1544 * java/util/BitSet.java (and): Throw NullPointerException when
1549 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
1550 if argument is negative.
1551 (clear): Correctly compute `offset'. Throw
1552 IndexOutOfBoundsException when required.
1554 (get): Likewise. Also, return correct value.
1555 (ensure): Changed meaning of argument.
1556 (toString): Wrap contents in `{}'; put spaces after commas.
1557 (hashCode): Don't try to examine elements off the end of array.
1558 (or): Correctly include bits past the end of this bit set.
1561 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
1563 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
1564 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
1566 1999-02-04 Andrew Haley <aph@cygnus.com>
1568 * java/lang/natClass.cc (Class::forName): Remove code which mapped
1569 '/' in signatures to '.'
1570 (Class::getName): Likewise,
1571 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
1573 * java/lang/natFirstThread.cc (run): Change '/' in main's
1576 1999-02-03 Andrew Haley <aph@cygnus.com>
1578 * configure.host: -ffloat-store added when compiling libjava on
1579 x86. fdlibm apparently relies on this.
1581 * java/lang/ThreadGroup.java (add): throw an exception if the
1582 ThreadGroup has been destroyed.
1584 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
1587 1999-01-27 Tom Tromey <tromey@cygnus.com>
1589 * java/lang/StringBuffer.java (StringBuffer): Handle null
1592 1999-01-21 Tom Tromey <tromey@cygnus.com>
1594 * java/lang/natFirstThread.cc (run): Don't require main to be
1597 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
1599 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
1601 1999-01-20 Tom Tromey <tromey@cygnus.com>
1603 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
1607 (unintern): Likewise.
1608 (_Jv_NewStringUtf8Const): Likewise.
1610 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
1611 Character.isLetter, to see if character is self-quoting. Also,
1612 correctly handle quoted characters.
1613 (parse): Fixed typo. Also now throws ParseException.
1615 1999-01-15 Tom Tromey <tromey@cygnus.com>
1617 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
1619 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
1620 _Jv_SyncInfo has `init' member.
1622 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
1625 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
1626 IllegalMonitorStateException if unlock fails.
1628 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
1630 (_Jv_NewObjectArray): Likewise.
1632 1999-01-14 Tom Tromey <tromey@cygnus.com>
1634 * java/lang/Character.java (isJavaIdentifierPart): Allow
1635 LETTER_NUMBER characters.
1637 * chartables.pl (process_char): Fixed error messages.
1639 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
1640 * chartables.pl: Updated comments. Changed detection of non-digit
1641 numeric values (no longer miss \u00b2 and friends).
1643 * java/lang/Character.java (isJavaIdentifierPart): Recognize
1644 currency symbols and connector punctuation.
1645 (isIdentifierIgnorable): Make 7f-9f ignorable.
1647 * prims.cc (_Jv_NewObjectArray): Check for overflow.
1648 (_Jv_NewPrimArray): Likewise.
1649 (SIZE_T_MAX): New define.
1651 * java/lang/ClassLoader.java (system): Now private and final.
1653 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
1656 * configure: Rebuilt.
1657 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
1659 * exception.cc: Include gansidecl.h.
1661 1999-01-14 Andrew Haley <aph@cygnus.com>
1663 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
1664 corrected: they didn't treat -0.0 and NaNs correctly.
1666 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
1668 * nogc.cc: Use calloc to zero out memory.
1670 1999-01-11 Tom Tromey <tromey@cygnus.com>
1672 * java/lang/natClass.cc (isInstance): Return false if this class
1673 is primitive, not if class of `obj' is primitive.
1674 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
1676 * java/io/SequenceInputStream.java (close): Handle case where `in'
1679 * java/text/DateFormat.java (format): New method.
1681 * mauve-libjava: Omit java.text.DateFormat.
1683 1999-01-08 Tom Tromey <tromey@cygnus.com>
1685 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
1687 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
1689 (_Jv_CondNotifyAll): Likewise.
1691 * configure: Rebuilt.
1692 * configure.in: Change --enable-source-compilation logic to work
1695 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
1697 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
1698 and RUNTESTFLAGS from AM_MAKEFLAGS.
1699 * configure.in: AM_RUNTESTFLAGS added.
1700 * configure.host: AM_RUNTESTFLAGS added.
1701 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
1702 * configure: rebuilt.
1703 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
1705 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
1706 argv[] made conditional because embedded targets may not have
1708 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
1709 explanatory comments added in call to super.
1711 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
1712 exception thrown in the test harness itself added.
1713 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
1715 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
1717 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
1719 1999-01-06 Tom Tromey <tromey@cygnus.com>
1721 * java/io/natFile.cc (get_entry): New function.
1722 (performList): Use get_entry.
1723 * include/config.h.in: Rebuilt.
1724 * acconfig.h (HAVE_READDIR_R): New define.
1725 * configure: Rebuilt.
1726 * configure.in: Look for readdir_r.
1728 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
1730 * java/util/natDate.cc: Added copyright header.
1732 1999-01-05 Tom Tromey <tromey@cygnus.com>
1734 * include/config.h.in: Rebuilt.
1735 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
1736 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
1737 * configure: Rebuilt.
1738 * configure.in: Check for access, stat, mkdir, rename, rmdir,
1739 unlink, and realpath.
1740 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
1741 (stat): Conditionalize on HAVE_STAT.
1743 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
1744 (performMkdir): Conditionalize on HAVE_MKDIR.
1745 (performRenameTo): Conditionalize on HAVE_RENAME.
1746 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
1748 * include/config.h.in: Rebuilt.
1749 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
1750 * configure: Rebuilt.
1751 * configure.in: Check for gmtime_r and localtime_r. For cross
1752 builds, assume they exist.
1754 * mauve-libjava: Include java.text.DateFormatSymbols again.
1755 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
1756 from setAmPmStrings.
1758 * mauve-libjava: Omit java.text.DateFormatSymbols.
1760 1999-01-04 Tom Tromey <tromey@cygnus.com>
1762 * java/io/PushbackReader.java: `off' already includes `numBytes'.
1764 * java/io/LineNumberReader.java (read): Decrement `count' in
1767 * java/io/BufferedWriter.java (write): Correctly determine when
1768 incoming data would overrun buffer. Flush buffer if write causes
1771 * java/io/BufferedOutputStream.java (write): Increment `count'
1772 after copying data into buffer.
1774 * java/io/FilterOutputStream.java (close): Call flush first.
1776 * java/io/PipedReader.java (read): If read causes `out' to catch
1777 up with `in', then set `in' to -1.
1779 * java/io/LineNumberInputStream.java (read): If no bytes read,
1780 return -1. If no bytes requested, return 0.
1782 * java/lang/StringBuffer.java (insert): If `str' is null, use
1785 1998-12-30 Anthony Green <green@cygnus.com>
1788 * LIBJAVA_LICENSE, COPYING.LIB: Created.
1790 1998-12-23 Tom Tromey <tromey@cygnus.com>
1792 * java/io/PushbackInputStream.java (read): `off' already includes
1795 1998-12-17 Tom Tromey <tromey@cygnus.com>
1797 * Makefile.in: Rebuilt.
1798 * Makefile.am (GCJ_canadian): Include target_alias.
1800 * java/lang/natFirstThread.cc (run): Require main's class to be
1803 1998-12-16 Tom Tromey <tromey@cygnus.com>
1805 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
1807 * java/util/ResourceBundle.java (getBundle): Throw
1808 NullPointerException if locale argument is null.
1810 * java/lang/natClass.cc (forName): Throw NullPointerException if
1812 Include NullPointerException.h.
1814 1998-12-14 Tom Tromey <tromey@cygnus.com>
1816 * java/lang/Character.java (Character): Implement Comparable.
1817 (compareTo): New methods.
1819 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
1820 correct country and language codes.
1821 (UK, US): New constants.
1822 (setDefault): Language codes are lower-case.
1824 * java/lang/natClass.cc (getDeclaredConstructor): New method.
1825 (getDeclaredConstructors): Likewise.
1826 (getDeclaredField): Likewise.
1827 (getDeclaredFields): Likewise.
1828 (getDeclaredMethod): Likewise.
1829 (getDeclaredMethods): Likewise.
1830 (getField): Likewise.
1831 (getFields): Likewise.
1832 (getMethod): Likewise.
1833 (getMethods): Likewise.
1834 * java/lang/Class.java: Declare new methods.
1835 * java/lang/Class.h: Declare new methods.
1837 * java/lang/natString.cc: Removed `#pragma implementation'.
1838 * include/cni.h (_Jv_GetStringChars): New function.
1839 * Makefile.in: Rebuilt.
1840 * Makefile.am (java/lang/String.h): Don't generate definition for
1843 * java/lang/natString.cc: Added `#pragma implementation'.
1845 * Makefile.in: Rebuilt.
1846 * Makefile.am (libjava.zip): Put build directory first in class
1847 path to avoid bug in compiler.
1849 1998-12-14 Anthony Green <green@cygnus.com>
1851 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
1853 * include/javaprims.h: Add EventObject, ListResourceBundle and
1856 1998-12-13 Anthony Green <green@cygnus.com>
1858 * mauve-libjava: Run the ResourceBundle tests.
1860 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
1863 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
1865 * configure.in, configure: Make --enable-gcj-classes and
1866 --enable-source-compilation the default. (Nervously...) Yeah!
1867 Based on a patch from Tom Tromey.
1869 1998-12-13 Tom Tromey <tromey@cygnus.com>
1871 * java/util/EventObject.java: New file.
1872 * java/util/EventListener.java: New file.
1874 * include/javaprims.h: Updated class declarations.
1875 * Makefile.in: Rebuilt.
1876 * Makefile.am (nat_headers): Added Constructor.h.
1877 (java/lang/String.h): Don't inline String::length().
1878 * java/lang/Class.h (getConstructor, getConstructors): Declare.
1879 * java/lang/Class.java (initializeClass, hackRunInitializers,
1880 hackTrampoline): No need to mark `final'.
1881 (getConstructor, getConstructors): Declare.
1882 * java/lang/reflect/Field.java (equals): New method.
1883 * java/lang/natClass.cc (getConstructor): New method.
1884 (getConstructors): Likewise.
1885 Include Method.h, Field.h, Constructor.h.
1886 * java/lang/reflect/Constructor.java: New file.
1887 * java/lang/reflect/Method.java (toString): No space before open
1889 (equals): Simplified.
1891 1998-12-13 Anthony Green <green@cygnus.com>
1893 * java/util/ResourceBundle.java: New file.
1894 * java/util/ListResourceBundle.java: New file.
1896 1998-12-12 Tom Tromey <tromey@cygnus.com>
1898 * java/lang/System.java (in, out, err): Now buffered streams by
1901 * include/javaprims.h: Updated class declarations.
1902 * Makefile.in: Rebuilt.
1903 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
1904 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
1906 (nat_files): Added natMethod.o.
1907 * java/lang/reflect/natMethod.cc: New file.
1908 * java/lang/reflect/Field.java (Field): Now extends
1910 * java/lang/reflect/AccessibleObject.java: New file.
1911 * java/lang/reflect/InvocationTargetException.java: New file.
1913 1998-12-11 Tom Tromey <tromey@cygnus.com>
1915 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
1916 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
1917 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
1919 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
1921 1998-12-09 Tom Tromey <tromey@cygnus.com>
1923 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
1926 * java/lang/natCharacter.cc (toTitleCase): Handle case where
1927 character is already titlecase.
1929 * java/lang/Character.java (isJavaLetter): Follow spec.
1930 (isJavaLetterOrDigit): Likewise.
1932 * java/util/GregorianCalendar.java (gregorianCutover): Append
1935 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
1937 1998-12-08 Tom Tromey <tromey@cygnus.com>
1939 * java/lang/reflect/Modifier.java (toString): Replace second
1940 `static' with `synchronized'.
1942 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
1943 * java/lang/Object.h (Object::hack12_6): Declare.
1944 * java/lang/Object.java (hack12_6): New function.
1946 1998-12-07 Tom Tromey <tromey@cygnus.com>
1948 * include/java-array.h (__JArray::clone): Removed decl.
1949 * prims.cc (__JArray::clone): Removed.
1950 * java/lang/natObject.cc (clone): Incorporate code to clone an
1953 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
1954 (_Jv_FindArrayClass): Set dtable_method_count on new class.
1955 Correctly use dtable_method_count.
1957 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
1959 * java/lang/Double.java (isInfinite, isNaN): Handle correct
1962 1998-12-06 Anthony Green <green@cygnus.com>
1964 * mauve-libjava: Don't test ResourceBundle.
1966 1998-12-04 Tom Tromey <tromey@cygnus.com>
1968 More JDK 1.2 spec fixes:
1969 * java/util/Date.java (millis): Now private.
1970 * java/text/DateFormat.java (DateFormat): Constructor now
1972 * java/lang/Void.java (Void): New private constructor.
1973 * java/lang/System.java (System): New private constructor.
1974 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
1976 (currentClassLoader): New method.
1977 (currentLoadedClass): New method.
1978 * java/lang/Math.java (Math): New private constructor.
1979 * java/lang/Compiler.java (Compiler): New private constructor.
1980 * java/lang/Class.java (Class): New private constructor.
1981 * java/lang/Double.java (toString): Removed access specifier from
1982 two-argument `toString' method.
1984 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
1986 * java/lang/s_rint.c (rint): Make the variable w volatile; this
1987 causes it to be flushed from an fp register (where it may be
1988 longer than double precision) to a double in memory. This is
1989 essential to ensure correct rounding behaviour.
1991 1998-12-04 Tom Tromey <tromey@cygnus.com>
1993 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
1996 * java/lang/Character.java (isIdentifierIgnorable): Added comment
1997 explaining apparent divergence from JDK 1.2.
1999 1998-12-04 Per Bothner <bothner@cygnus.com>
2001 * include/no-threads.h: Remove unused parameter names.
2002 This silences a bunch of warnings.
2004 1998-12-04 Tom Tromey <tromey@cygnus.com>
2006 * include/config.h.in: Rebuilt.
2007 * acconfig.h (HAVE_CTIME_R): New symbol.
2009 1998-12-03 Tom Tromey <tromey@cygnus.com>
2011 * mauve-libjava: Added many more categories to reject.
2013 Changes to follow JDK1.2 spec:
2014 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
2015 setErr, setIn, setOut): No need to be `final'.
2016 * java/lang/natObject.cc (wait): `nanos' argument is an int.
2017 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
2018 * java/lang/Object.java (wait): `nanos' argument is an int.
2019 * java/lang/VirtualMachineError.java: Class is abstract.
2020 * java/lang/ThreadDeath.java: Made constructors public.
2021 * java/io/FileDescriptor.java (FileDescriptor): Added missing
2024 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
2026 * java/text/DateFormatSymbols.java (getAmPmStrings,
2027 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
2029 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
2031 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
2032 writeDouble, writeByte, writeBytes, writeChar, writeChars,
2033 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
2036 * java/lang/IllegalThreadStateException.java
2037 (IllegalThreadStateException): Changed extending class to match spec.
2039 * java/lang/NumberFormatException.java
2040 (java/lang/NumberFormatException): Changed extending class to match
2043 * java/util/Observer.java (Observer): Changed sig to match JCL.
2045 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
2047 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
2048 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
2049 signature to match JDK 1.1 and 1.2.
2051 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
2053 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
2054 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
2055 * Makefile.in, configure: Rebuilt.
2057 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
2060 1998-12-02 Tom Tromey <tromey@cygnus.com>
2062 * mauve-libjava: New file.
2064 The remaining `-W -Wall' fixes:
2065 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
2067 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
2069 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
2071 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
2073 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
2075 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
2077 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
2079 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
2081 * java/lang/mprec.c (Balloc): Removed unused variable.
2082 (mult): Added parentheses per gcc suggestion.
2083 (pow5mult): Likewise.
2088 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
2089 suggestion. Added cast to `int' to avoid signed/unsigned
2091 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
2093 (IsAssignableFrom): Likewise.
2094 (_Jv_JNI_GetObjectField): Likewise.
2095 (_Jv_JNI_GetByteField): Likewise.
2096 (_Jv_JNI_GetShortField): Likewise.
2097 (_Jv_JNI_GetIntField): Likewise.
2098 (_Jv_JNI_GetLongField): Likewise.
2099 (_Jv_JNI_GetStringLength): Likewise.
2100 (_Jv_JNI_ToReflectedField): Likewise.
2101 (_Jv_JNI_FromReflectedField): Likewise.
2102 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
2104 * Makefile.in: Rebuilt.
2105 * Makefile.am (AM_CFLAGS): Define conditionally.
2106 (WARNINGS): New macro.
2107 (AM_CXXFLAGS): Include WARNINGS.
2108 * configure: Rebuilt.
2109 * configure.in (USING_GCC): New conditional.
2111 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
2113 * java/lang/Character.java: Changed classification constants to
2114 type `byte' to match JDK 1.2 docs.
2116 1998-12-01 Tom Tromey <tromey@cygnus.com>
2118 Some fixes to be `-W -Wall' clean:
2119 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
2120 (_Jv_MarkArray): Likewise.
2121 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
2122 (to_upper_title): Likewise.
2123 (isTitleCase): Likewise.
2124 (toTitleCase): Likewise.
2125 (getNumericValue): Likewise.
2126 (isLowerCase): Likewise.
2127 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
2128 (avoids compiler warning).
2129 * java/lang/natClass.cc (getDeclaredClasses): Always return a
2131 (getDeclaringClass): Likewise.
2132 (_Jv_LookupInterfaceMethod): Likewise.
2133 (_Jv_NewClass): Removed name of unused parameter.
2134 * exception.cc (_Jv_type_matcher): Removed unused variable.
2135 (_Jv_setup_eh_info): Removed name of unused parameter.
2136 * prims.cc (_Jv_NewArray): Always return a value.
2137 (_Jv_FindClassFromSignature): Likewise.
2138 * include/java-field.h (getNameUtf8Const): Removed name of unused
2140 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
2142 (_Jv_ThreadSetPriority): Likewise.
2144 * java/lang/natString.cc (hashChars): Now static.
2146 * java/lang/FirstThread.java (FirstThread): Now final.
2148 * java/io/File.java (performMkdir, performRenameTo): Now private.
2150 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
2151 if no time function defined.
2153 * configure: Rebuilt.
2154 * configure.in: Look for ctime_r, ctime.
2155 * java/util/Date.java (toString): Now native.
2156 * java/util/natDate.cc (toString): Rewrote.
2158 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
2160 * Add LDFLAGS line to allow TX39 test cases to link when cross
2163 1998-11-23 Anthony Green <green@cygnus.com>
2165 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
2166 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
2167 quick-threads.cc, include/boehm-gc.h, include/cni.h,
2168 include/java-array.h, include/java-assert.h, include/java-field.h,
2169 include/javaprims.h, include/jni.h, include/jvm.h,
2170 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
2171 include/quick-threads.h, java/io/BufferedInputStream.java,
2172 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
2173 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
2174 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
2175 java/io/CharArrayWriter.java,
2176 java/io/CharConversionException.java, java/io/DataInput.java,
2177 java/io/DataInputStream.java, java/io/DataOutput.java,
2178 java/io/DataOutputStream.java, java/io/EOFException.java,
2179 java/io/File.java, java/io/FileDescriptor.java,
2180 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
2181 java/io/FileOutputStream.java, java/io/FileReader.java,
2182 java/io/FileWriter.java, java/io/FilenameFilter.java,
2183 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
2184 java/io/FilterReader.java, java/io/FilterWriter.java,
2185 java/io/IOException.java, java/io/InputStream.java,
2186 java/io/InputStreamReader.java,
2187 java/io/InterruptedIOException.java,
2188 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
2189 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
2190 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
2191 java/io/PipedReader.java, java/io/PipedWriter.java,
2192 java/io/PrintStream.java, java/io/PrintWriter.java,
2193 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
2194 java/io/RandomAccessFile.java, java/io/Reader.java,
2195 java/io/SequenceInputStream.java, java/io/Serializable.java,
2196 java/io/StreamTokenizer.java,
2197 java/io/StringBufferInputStream.java, java/io/StringReader.java,
2198 java/io/StringWriter.java, java/io/SyncFailedException.java,
2199 java/io/UTFDataFormatException.java,
2200 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
2201 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
2202 java/io/natFileDescriptorPosix.cc,
2203 java/lang/AbstractMethodError.java,
2204 java/lang/ArithmeticException.java,
2205 java/lang/ArrayIndexOutOfBoundsException.java,
2206 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
2207 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
2208 java/lang/Class.java, java/lang/ClassCastException.java,
2209 java/lang/ClassCircularityError.java,
2210 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
2211 java/lang/ClassNotFoundException.java,
2212 java/lang/CloneNotSupportedException.java,
2213 java/lang/Cloneable.java, java/lang/Comparable.java,
2214 java/lang/Compiler.java, java/lang/Double.java,
2215 java/lang/Error.java, java/lang/Exception.java,
2216 java/lang/ExceptionInInitializerError.java,
2217 java/lang/FirstThread.java, java/lang/Float.java,
2218 java/lang/IllegalAccessError.java,
2219 java/lang/IllegalAccessException.java,
2220 java/lang/IllegalArgumentException.java,
2221 java/lang/IllegalMonitorStateException.java,
2222 java/lang/IllegalStateException.java,
2223 java/lang/IllegalThreadStateException.java,
2224 java/lang/IncompatibleClassChangeError.java,
2225 java/lang/IndexOutOfBoundsException.java,
2226 java/lang/InstantiationError.java,
2227 java/lang/InstantiationException.java, java/lang/Integer.java,
2228 java/lang/InternalError.java, java/lang/InterruptedException.java,
2229 java/lang/LinkageError.java, java/lang/Long.java,
2230 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
2231 java/lang/NoClassDefFoundError.java,
2232 java/lang/NoSuchFieldError.java,
2233 java/lang/NoSuchFieldException.java,
2234 java/lang/NoSuchMethodError.java,
2235 java/lang/NoSuchMethodException.java,
2236 java/lang/NullPointerException.java, java/lang/Number.java,
2237 java/lang/NumberFormatException.java, java/lang/Object.h,
2238 java/lang/Object.java, java/lang/OutOfMemoryError.java,
2239 java/lang/Process.java, java/lang/Runnable.java,
2240 java/lang/Runtime.java, java/lang/RuntimeException.java,
2241 java/lang/SecurityException.java, java/lang/SecurityManager.java,
2242 java/lang/Short.java, java/lang/StackOverflowError.java,
2243 java/lang/String.java, java/lang/StringBuffer.java,
2244 java/lang/StringIndexOutOfBoundsException.java,
2245 java/lang/System.java, java/lang/Thread.java,
2246 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
2247 java/lang/Throwable.java, java/lang/UnknownError.java,
2248 java/lang/UnsatisfiedLinkError.java,
2249 java/lang/UnsupportedOperationException.java,
2250 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
2251 java/lang/Void.java, java/lang/natCharacter.cc,
2252 java/lang/natClass.cc, java/lang/natDouble.cc,
2253 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
2254 java/lang/natMath.cc, java/lang/natObject.cc,
2255 java/lang/natRuntime.cc, java/lang/natString.cc,
2256 java/lang/natSystem.cc, java/lang/natThread.cc,
2257 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
2258 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
2259 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
2260 java/text/FieldPosition.java, java/text/Format.java,
2261 java/text/NumberFormat.java, java/text/ParseException.java,
2262 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
2263 java/util/BitSet.java, java/util/Calendar.java,
2264 java/util/ConcurrentModificationException.java,
2265 java/util/Date.java, java/util/Dictionary.java,
2266 java/util/EmptyStackException.java, java/util/Enumeration.java,
2267 java/util/GregorianCalendar.java, java/util/Hashtable.java,
2268 java/util/Locale.java, java/util/MissingResourceException.java,
2269 java/util/NoSuchElementException.java, java/util/Observable.java,
2270 java/util/Observer.java, java/util/Properties.java,
2271 java/util/Random.java, java/util/SimpleTimeZone.java,
2272 java/util/Stack.java, java/util/StringTokenizer.java,
2273 java/util/TimeZone.java, java/util/TooManyListenersException.java,
2274 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
2277 * exception.cc: Include eh-common.h instead of duplicating
2280 1998-11-23 Tom Tromey <tromey@cygnus.com>
2282 * configure.host: Don't add `-O2' to libjava_flags. Only add
2283 `-Os' to libjava_flags once.
2285 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
2287 * Makefile.am: add LIBJAVA_JAVAFLAGS.
2288 * Makefile.in: likewise
2289 * acconfig.h: add ECOS conditional for configure.h
2290 * config.h.in: likewise
2291 * configure: add test for --with-ecos
2292 * configure.in: likewise
2293 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
2294 rename call to avoid name clash.
2295 * java/lang/natSystem.cc: add eCos clock support.
2296 * java/util/natGregorianCalendar.cc: add eCos support.
2298 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
2300 * Makefile.am, Makefile.in, configure.host: tx39 build option
2303 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
2305 * java/io/BufferedReader.java: Added more comments for clarity.
2306 (mark): Used more mnemonic name for local var extraBuffSpace.
2308 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
2309 confusion with private method of same name in superclass.
2310 (skipRedundantLF): Set fields in special case to avoid infinite
2311 recursion. Check if markPos has been invalidated in special case.
2312 (readLine): Rewritten to use readLine method of superclass.
2313 (skip): Incorporated code from lineEnd.
2315 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
2317 * java/io/BufferedReader.java (readLine): New method.
2318 (lineEnd): new private method.
2319 (mark): Track special case for readLine of getting '\r' at the
2326 * java/io/InputStreamReader.java (read): Return number chars skipped
2327 rather than requested.
2329 * java/lang/StringBuffer.java (append): Update count and differentiate
2330 between field and local variable.
2332 * java/util/Date.java (parseTz): Evaluate in minutes rather than
2333 seconds. Deal with military style time.
2334 (parse): Consistently treat all timezones in minutes until final
2335 calculation. Flag as non-local timezone. Return value in milliseconds.
2336 (setTime): Adjust for year offset from 1900.
2337 (UTC): Adjust for year offset from 1900.
2339 1998-11-17 Tom Tromey <tromey@cygnus.com>
2341 * configure: Rebuilt.
2342 * configure.in: Switch on host, not target.
2344 * Makefile.in: Rebuilt.
2345 * Makefile.am (GCJ_no): New macro.
2346 (GCJ): Use @CANADIAN@.
2347 (GCJH_no): New macro
2348 (GCJH_canadian): New macro.
2349 (GCJH): Use @CANADIAN@.
2350 (ZIP_no): New macro.
2351 (ZIP_canadian): New macro.
2352 (ZIP): Use @CANADIAN@.
2353 * aclocal.m4, configure: Rebuilt.
2354 * configure.in (CANADIAN): Compute and subst.
2356 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
2358 * java/io/FileDescriptor.java (finalize): Only close file
2359 descriptor if valid.
2361 1998-11-17 Tom Tromey <tromey@cygnus.com>
2363 * prims.cc (_Jv_InitRuntime): Removed.
2365 1998-11-16 Tom Tromey <tromey@cygnus.com>
2367 * java/io/FileOutputStream.java (close): Only close file
2368 descriptor if valid.
2369 (finalize): New method.
2371 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
2372 (_Jv_NewPrimArray): Likewise.
2373 * boehm.cc (_Jv_RegisterFinalizer): Use
2374 GC_REGISTER_FINALIZER_NO_ORDER.
2375 (GC_GENERIC_MALLOC): New define.
2376 (_Jv_AllocObj): Use it.
2377 (_Jv_AllocArray): Likewise.
2378 (_Jv_AllocBytes): Likewise.
2379 (_Jv_MarkObj): Just return if vtbl not set.
2380 (_Jv_MarkArray): Likewise.
2381 (MAYBE_MARK): New macro; use everywhere.
2382 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
2384 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
2386 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
2387 to a jlong before calculation to prevent overflow.
2389 1998-11-16 Tom Tromey <tromey@cygnus.com>
2391 * Makefile.in: Rebuilt.
2392 * Makefile.am (nat_headers): Fixed typo.
2394 1998-11-15 Tom Tromey <tromey@cygnus.com>
2396 * java/lang/Class.h (Class::getName): Removed definition.
2397 * Makefile.in: Rebuilt.
2398 * Makefile.am (nat_headers): Added InstantiationException.h,
2399 NoSuchMethodException.h.
2400 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
2401 (init_name): New global.
2402 (hackRunInitializers): Use clinit_name.
2403 Include InstantiationException.h, NoSuchMethodException.h.
2404 (newInstance): Do some error checking (but not all). Call
2406 (forName): Throw exception if class not found.
2407 (getName): New method.
2408 (forName): Transform class name from external format to internal
2409 format before lookup.
2411 1998-11-15 Anthony Green <green@cygnus.com>
2413 * java/lang/Class.h (Class::forName): Method is static.
2415 * java/lang/natClass.cc (newInstance): Add simple implementation.
2418 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
2420 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
2421 int), for compatibility with jc1.
2423 1998-11-14 Tom Tromey <tromey@cygnus.com>
2425 * include/config.h.in: Rebuilt.
2426 * acconfig.h (LINUX_THREADS): New define.
2427 * configure: Rebuilt.
2428 * configure.in: Define LINUX_THREADS if using POSIX threads on
2429 Linux. Look for pthread_mutexattr_setkind_np function.
2430 * posix-threads.cc (throw_cleanup): New function.
2431 (really_start): Push cleanup function.
2432 (_Jv_ThreadCancel): New function.
2433 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
2434 (_Jv_ThreadInitData): Set `exception' field in new structure.
2435 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
2437 (_Jv_ThreadWait): New function.
2438 (_Jv_InitThreads): Initialize daemon globals.
2439 (FLAG_DAEMON): New macro.
2440 (really_start): Notify daemon_cond when non-daemon thread exits.
2441 Include <java/lang/System.h>.
2442 (struct starter): `object' field now a thread.
2443 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
2444 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
2445 (_Jv_ThreadWait): Removed definition.
2446 (_Jv_Thread_t): Added `exception' field.
2447 (_Jv_ThreadCancel): Removed definition.
2449 1998-11-13 Tom Tromey <tromey@cygnus.com>
2451 * Makefile.in: Rebuilt.
2452 * Makefile.am (libjava.zip): Compute javac before changing
2455 * Makefile.in: Rebuilt.
2456 * Makefile.am (libjava.zip): Include directory entries.
2458 * Makefile.in: Rebuilt.
2459 * Makefile.am (expanded): New macro.
2462 1998-11-12 Tom Tromey <tromey@cygnus.com>
2464 * prims.cc (clone): New function.
2465 * include/java-array.h (__JArray::clone): Removed definition.
2467 * java/lang/natObject.cc (clone): Don't assert that class is not
2468 an array; array's `clone' method just calls this one.
2470 * Makefile.in: Rebuilt.
2471 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
2472 Now creates zip file. Changed all users.
2474 (data_DATA): New macro.
2476 1998-11-11 Tom Tromey <tromey@cygnus.com>
2478 * configure: Rebuilt.
2479 * configure.in: Recognize --enable-java-gc, not --enable-gc.
2481 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
2483 * java/io/InputStream.java (reset): Add msg to thrown exception.
2485 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
2487 * java/io/LineNumberInputStream.java: Rewritten.
2489 * java/io/StringBufferInputStream.java: Removed extraneous import.
2491 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
2493 * java/io/StringBufferInputStream.java: Rewritten.
2495 * java/util/Date.java (parseMonth): Optimize.
2496 (parseDayOfWeek): Created.
2497 (parse): Optimize to use parseDayOfWeek.
2499 1998-11-11 Tom Tromey <tromey@cygnus.com>
2501 * java/lang/StringBuffer.java (append): Handle case where STR is
2504 * include/javaprims.h: Regenerated class declarations.
2506 * configure: Rebuilt.
2507 * configure.in: Added --enable-gcj-classes,
2508 --enable-single-compilation, --enable-source-compilation flags.
2509 * Makefile.in: Rebuilt.
2510 * Makefile.am (java_io_files): New macro.
2511 (java_lang_files): Likewise.
2512 (java_text_files): Likewise.
2513 (java_util_files): Likewise.
2514 (java_files): Use new macros.
2515 (java-io.o): New target.
2516 (java-lang.o): Likewise.
2517 (java-text.o): Likewise.
2518 (java-util.o): Likewise.
2519 (src_io_files): New macro.
2520 (src_lang_files): Likewise.
2521 (src_text_files): Likewise.
2522 (src_util_files): Likewise.
2523 (class_io_files): New macro.
2524 (class_lang_files): Likewise.
2525 (class_text_files): Likewise.
2526 (class_util_files): Likewise.
2527 (class_files): Use new macros.
2528 (javao_files): Define conditionally.
2529 (.java.o): New target.
2530 ($(javao_files)): New target.
2532 (GCJH): Added $(EXEEXT).
2533 (CLASSPATH_ENV): Removed.
2534 (GCJCOMPILE): New macro.
2536 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
2538 * java/util/Date.java (parse): Written from scratch.
2540 1998-11-11 Tom Tromey <tromey@cygnus.com>
2542 * java/lang/Throwable.java (toString): Correct sense of test for
2543 determining when to include detail message in result.
2545 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
2548 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
2550 * java/lang/Class.h: Use _Jv_RegisterClasses, not
2552 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
2553 (_Jv_RegisterClass): Use it.
2554 * include/jvm.h (_Jv_RegisterClasses): Declare.
2555 * java/lang/natObject.cc (init): Removed.
2556 (sync_init): Never call _Jv_InitializeSyncMutex.
2557 (_Jv_InitializeSyncMutex): Don't set `init'.
2558 * prims.cc (JvRunMain): Don't run init functions.
2560 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
2562 * java/lang/natClass.cc (initializeClass): Set state before
2563 resolving constants.
2565 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
2566 (STATE_RESOLVED): New macro.
2567 (initializeClass): Call resolveConstants.
2568 (hackRunInitializers): Don't call resolveConstants.
2569 (_Jv_FindArrayClass): Move short-circuit return for primitive
2570 element types earlier in function.
2572 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
2574 * prims.cc (no_memory): New global.
2575 (_Jv_makeUtf8Const): Throw no_memory.
2576 (_Jv_AllocObject): Likewise.
2577 (_Jv_NewObjectArray): Likewise.
2578 (_Jv_NewPrimArray): Likewise.
2579 (JvRunMain): Initialize no_memory.
2581 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
2583 * java/io/FileInputStream.java: Corrected date comment.
2584 * java/io/SequenceInputStream.java: Rewritten.
2586 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
2588 * java/lang/FirstThread.java (die): New method.
2589 * java/lang/natFirstThread.cc (die): Removed.
2591 (run): Use `DIE', not `die'.
2593 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
2595 * java/io/CharArrayReader.java (read): Move check into synchronized
2596 block to prevent a close while in progress.
2599 * java/io/PushbackReader.java (read): Ditto.
2602 * java/io/StringReader.java (mark): Ditto.
2607 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
2609 * java/io/PipedInputStream.java: Updated status.
2610 (connect): Added code to prevent infinite recursion and to
2611 differentiate exception causes.
2612 (read): Added code to differentiate exception causes.
2613 (receive): Made exception pass string with the cause.
2615 * java/io/PipedOutputStream.java: Updated status.
2616 (connect): Added code to call connect at the other end of the pipe.
2618 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
2620 * java/io/PipedInputStream.java (connect): Throw exception if
2621 already connected to the same output stream.
2622 (read): Do bounds checking first.
2624 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
2626 * java/io/PipedInputStream.java: Added private boolean outClosed.
2627 (available): Removed check if output stream is open.
2628 (close): Mark the buffer as empty so available returns 0.
2629 (read): Check if the output stream was closed and then return EOF
2630 when the buffer is empty.
2631 (receive): Mark the output stream as closed when passed a -1.
2633 * java/io/PipedOutputStream.java (close): Notify the input stream
2634 that there's no more data coming.
2635 (connect): Added a FIXME comment to note more coordination needed
2636 with PipedInputStream.
2637 (flush): Added a FIXME comment to mark what this method might do
2640 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
2642 * java/io/PipedInputStream.java: Rewritten.
2644 1998-10-30 Tom Tromey <tromey@cygnus.com>
2646 * java/lang/Throwable.java: Rewrote from scratch.
2648 * java/lang/Class.h (Class): Don't mention newMultiArray.
2649 * prims.cc (newMultiArray): Removed.
2650 (_Jv_NewMultiArray): Removed.
2651 (newArray): Removed.
2652 (new_multi_array): New function.
2653 (_Jv_NewMultiArray): Rewrote from scratch.
2655 * include/javaprims.h: Regenerated class declarations.
2656 * classes.pl (scan): Don't declare PrimClass.
2657 * include/cni.h (JvPrimClass): Use new names for classes.
2658 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
2659 added _Jv_PrimClass.
2660 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
2661 (_Jv_initPrimClass): Removed.
2662 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
2663 (_Jv_AllocObject): Added comment.
2664 (_Jv_NewObjectArray): Likewise.
2665 (_Jv_NewPrimArray): Likewise.
2667 1998-10-29 Tom Tromey <tromey@cygnus.com>
2669 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
2670 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
2672 * java/lang/Class.h (Class): Added `dtable_method_count' field.
2674 * java/lang/natObject.cc (init): New global.
2675 (sync_init): Call _Jv_InitializeSyncMutex if required.
2677 * Makefile.in: Rebuilt.
2678 * Makefile.am (nat_headers): Added ClassLoader.h.
2679 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
2680 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
2681 internalAddClass, lookupArray no longer friends.
2682 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
2683 _Jv_FindArrayClass now friends.
2684 * java/lang/natClass.cc (HASH_LEN): New macro.
2685 (HASH_UTF): Likewise.
2686 (loaded_classes): New global.
2687 (_Jv_FindClass): New function.
2688 (ClassClass): New define.
2689 (_Jv_FindClassInCache): New function.
2690 (_Jv_RegisterClass): Likewise.
2691 (_Jv_NewClass): Likewise.
2693 (ObjectClass): New define.
2694 (CloneableClass): New define.
2695 * prims.cc (_Jv_FindClass): Removed.
2696 (simpleLookupClass): Removed.
2697 (insertClass): Removed.
2698 (CLASSHASHSZ): Removed.
2699 (classPool): Removed.
2700 (_Jv_RegisterClass): Removed.
2701 (internalAddClass): Removed.
2702 (ClassClass): Removed.
2703 (RuntimeClass): Removed.
2704 (lookupArray): Removed.
2705 (CloneableClass): Removed.
2706 (CLASSMAXSIG): Removed.
2707 Rearranged file to group related functions together.
2708 (_Jv_IsInstanceOf): Moved to natClass.cc.
2709 (abort_final): Removed.
2710 Removed some unused includes.
2711 (classFromSig): Removed.
2712 (_Jv_FindClassFromSignature): New function.
2713 (_Jv_initPrimClass): Renamed.
2714 (getClass): Removed.
2716 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
2718 * java/io/FileDescriptor.java (finalize): Throws IOException
2719 instead of Throwable.
2721 * java/io/FileInputStream.java: Rewritten.
2723 * java/io/StreamTokenizer.java (nextToken): Unread newline character
2724 at the end of a comment.
2726 1998-10-29 Tom Tromey <tromey@cygnus.com>
2728 * include/javaprims.h: Regenerated class declarations.
2729 * classes.pl (scan): Don't special-case ClassLoader.
2731 * prims.cc (processClass): Removed.
2732 (_Jv_InitClass): Removed.
2733 Removed all CSTATE_ macros.
2734 (resolveConstants): Removed.
2736 (_Jv_NewMultiArray): Cleaned up.
2737 * Makefile.in: Rebuilt.
2738 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
2739 * java/lang/Class.h (Class): Declare new methods. processClass no
2741 * java/lang/Class.java (hackTrampoline): New method.
2742 (initializeClass): Declare.
2743 (hackRunInitializers): Declare.
2744 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
2745 (initializeClass): New method.
2746 (hackRunInitializers): New method.
2747 (init_name, void_signature): Moved from prims.cc.
2748 (_Jv_InitClass): New function.
2749 (isAssignableFrom): Don't call processClass.
2750 (STATE_NOTHING): New macro.
2751 (resolveConstants): New function.
2753 (ErrorClass): New define.
2755 * java/lang/Class.java (getClassLoader): Declare.
2756 * java/lang/ClassLoader.java: Rewrote from scratch.
2758 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
2759 AbstractMethodError.h, IllegalAccessError.h,
2760 NoClassDefFoundError.h.
2761 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
2762 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
2763 longer static. Changed return type.
2764 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
2765 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
2766 * prims.cc (findMethodLocal): Removed.
2767 (processClass): Use _Jv_GetMethodLocal.
2769 1998-10-28 Tom Tromey <tromey@cygnus.com>
2771 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
2772 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
2774 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
2775 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
2777 * include/jni.h: Added copyright header.
2778 * include/javaprims.h: Added copyright header.
2779 * include/java-field.h: Added copyright header.
2780 * include/java-array.h: Added copyright header.
2781 * include/cni.h: Added copyright header.
2783 * include/javaprims.h: Regenerated class declarations using
2784 classes.pl; now they are complete.
2785 * classes.pl: New file.
2787 * java/lang/natMath.cc: Include <config.h>.
2788 * java/lang/reflect/natField.cc: Include <config.h>.
2789 * java/util/NativeUtil.java: Removed.
2790 * Makefile.in: Rebuilt.
2791 * Makefile.am (nat_headers): Added Math.h.
2792 * java/lang/Math.h: Removed.
2793 * java/util/natGregorianCalendar.cc: Added copyright header.
2795 * java/lang/natFloat.cc: Added copyright header.
2796 * java/lang/Byte.java: Added copyright header.
2797 * java/lang/Void.java: Added copyright header.
2798 * java/lang/Short.java: Added copyright header.
2800 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
2802 * include/javaprims.h (java::io): Added bunch of missing classes.
2804 * java/io/DataInputStream.java (readLine): Added a special case
2805 for handling BufferedInputStream data to reduce the likelihood
2806 of a pushback error.
2807 (skipBytes): Added code to handle negative number of skip bytes.
2809 * java/io/StreamTokenizer.java: Rewritten.
2811 1998-10-28 Tom Tromey <tromey@cygnus.com>
2813 * java/util/natGregorianCalendar.cc (computeFields): Call
2814 getRawOffset as a method.
2816 * include/javaprims.h (java::io): Added FilterOutputStream.
2817 * Makefile.in: Rebuilt.
2818 * Makefile.am (nat_headers): Added PrintStream.h,
2819 FilterOutputStream.h.
2820 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
2822 (die): New function.
2823 (run): Die if `main' not found, is not public, or is not static.
2825 * boehm.cc (_Jv_MarkObj): Use new field names.
2826 * include/java-field.h (JvGetFirstInstanceField): Use new field
2828 (JvNumInstanceFields): Likewise.
2829 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
2830 (getInterfaces): Likewise.
2831 * prims.cc (CLASS_CONSTANTS): Removed.
2832 (CLASS_CONST_SIZE): Likewise.
2833 (CLASS_CONST_TAG): Likewise.
2834 (CLASS_CONST_DATA): Likewise.
2835 (CLASS_CONST_UTF8): Likewise.
2836 (WORD2UTF): Likewise.
2837 (CLASS_CLASS): Likewise.
2838 (CLASS_PRIM_SIG): Likewise.
2839 (CLASS_ARRAY_CACHE): Likewise.
2840 (HASH_CHARS): Likewise.
2841 (hashClassName): Likewise.
2842 Many changes to use new field names.
2843 * java/lang/Class.h (Class): Renamed fields to track compiler.
2845 1998-10-27 Tom Tromey <tromey@cygnus.com>
2847 * java/lang/natClass.cc: Use #pragma implementation.
2848 (getComponentType): Moved into header.
2849 (getModifiers): Likewise.
2850 (getName): Likewise.
2851 (getSuperclass): Likewise.
2852 (isArray): Likewise.
2853 (isPrimitive): Likewise.
2854 * include/jvm.h (_Jv_FindClass): Declare.
2855 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
2856 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
2857 * include/javaprims.h: Use _Jv_Method, not JvMethod.
2858 * java/lang/Class.h: Rewrote from scratch.
2859 * prims.cc: Many changes to work with new Class.h.
2860 * include/java-field.h (CLASS_FIELDS): Removed.
2861 (CLASS_SFIELDS): Likewise.
2862 (CLASS_IFIELDS): Likewise.
2863 (CLASS_NFIELDS): Likewise.
2864 (CLASS_NIFIELDS): Likewise.
2865 (CLASS_NSFIELDS): Likewise.
2866 (CLASS_FSIZE): Likewise.
2867 (JvGetFirstInstanceField): Rewrote.
2868 (JvNumInstanceFields): Likewise.
2870 * java/lang/Object.h: Added copyright comment.
2872 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
2874 * java/text: New package directory.
2875 * java/text/FieldPosition.java: New class.
2876 * java/text/ParsePosition.java: New class.
2877 * java/text/ParseException.java: New Exception class.
2878 * java/text/Format.java: New class.
2879 * java/text/NumberFormat.java: New (empty placeholder) class.
2880 * java/text/DateFormatSymbols.java: New class (no Locales support).
2881 * java/text/DateFormat.java: New Format class (incomplete).
2882 * java/text/SimpleDateFormat.java: New DateFormat class.
2884 * include/javaprims.h (java::test): Added new package and classes.
2885 * java/util/Calendar.java (clone): New method.
2886 * java/util/Date.java (toString): Added non-native implementation.
2887 (parse): Made public instead of synchronized.
2888 * java/util/natDate.cc (toString): Removed.
2889 * java/util/natGregorianCalendar.cc (computeFields):
2890 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
2892 1998-10-27 Tom Tromey <tromey@cygnus.com>
2894 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
2896 * prims.cc (lookupArray): Added explanatory comment.
2897 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
2898 class. Mark the class of each object.
2899 (_Jv_MarkArray): Mark the object's class.
2901 * configure: Rebuilt.
2902 * configure.in: Create java-gc.h.
2903 * include/boehm-gc.h: New file.
2904 * include/no-gc.h: New file.
2905 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
2907 * java/lang/Object.h: Include java-gc.h.
2908 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
2909 friends, if defined.
2910 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
2912 (_Jv_MarkArray): Renamed from mark_array; changed signature.
2914 1998-10-26 Tom Tromey <tromey@cygnus.com>
2916 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
2917 paragraph separators, not numbers.
2919 * java/io/Writer.java (write): Removed write(char) to avoid
2921 * java/util/Properties.java: Rewrote from scratch.
2922 * include/javaprims.h (java::io): Added PrintWriter,
2923 BufferedWriter, PushbackReader.
2925 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
2927 * java/lang/System.java: exit() is a static method.
2929 1998-10-26 Tom Tromey <tromey@cygnus.com>
2931 * java/lang/natString.cc (_Jv_NewStringUTF): Use
2933 (_Jv_NewStringUtf8Const): Likewise.
2934 * include/jvm.h (_Jv_strLengthUtf8): Declare.
2935 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
2937 * java/lang/Object.h (Object): Add mark_array as friend function.
2938 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
2939 _Jv_AllocBytes, to ensure that header is marked.
2940 * boehm.cc (mark_obj): Push sync_info field for all objects, not
2942 (mark_array): Push sync_info field for array.
2944 1998-10-24 Tom Tromey <tromey@cygnus.com>
2946 * java/lang/String.java (String): Updated for StringBuffer
2948 * java/util/BitSet.java: Renamed field (data->bits) to conform to
2950 * java/lang/StringBuffer.java: Renamed fields to conform to
2951 serialization spec: buffer->value, next->count, copy->shared.
2953 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
2955 * java/util/TimeZone.java: New class.
2956 * java/util/SimpleTimeZone.java: New class.
2957 * java/util/Locale.java: New file.
2958 * java/util/Calendar.java: Make almost complete.
2959 * java/util/GregorianCalendar.java
2960 * java/util/natGregorianCalendar.cc: New file.
2961 * java/util/Date.java: Re-written from scratch.
2962 * java/util/natDate.cc (setTime): Removed - no longer native.
2963 * include/javaprims.h (java::util): Add new classes.
2964 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
2965 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
2967 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
2969 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
2970 returning it as a jint.
2972 1998-10-23 Tom Tromey <tromey@cygnus.com>
2974 * prims.cc (arg_vec, main_group, main_thread): New globals.
2975 (JvRunMain): Use them.
2977 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
2979 * java/io/DataInputStream.java: Rewritten.
2981 * java/io/DataOutputStream.java (writeUTF): OR secondary and
2982 tertiary bytes with 0x80 per spec.
2984 1998-10-23 Tom Tromey <tromey@cygnus.com>
2986 * java/lang/String.java (init): Changed name of `copy' argument.
2987 * java/lang/natString.cc (init): Inverted sense of `copy'
2990 * java/lang/Object.h (Object): Declare mark_obj as a friend.
2991 * java/lang/Class.h (Class): Declare mark_obj as a friend.
2992 * boehm.cc (ObjectClass): New define.
2993 (ClassClass): Likewise.
2994 (mark_obj): Special-case Object and Class.
2996 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
2998 * java/util/BitSet.java: Rewrote from scratch.
3000 * prims.cc (lookupArray): Removed useless cast.
3002 * java/lang/natObject.cc: Use `#pragma implementation'.
3004 * java/lang/String.java (init): Added `copy' argument.
3005 (String): Look in StringBuffer to find char array.
3006 * java/lang/natString.cc (init): Added `copy' argument.
3007 * java/lang/StringBuffer.java: Rewrote from scratch.
3009 * java/lang/Compiler.java: Rewrote from scratch.
3010 * java/lang/Throwable.java: Don't use NativeLang.
3011 * include/javaprims.h (java::lang): Don't mention NativeLang.
3012 * java/lang/Process.java: Rewrote from scratch.
3013 * java/lang/SecurityManager.java (classLoaderDepth): Commented
3015 (currentClassLoader): Likewise.
3016 (currentLoadedClass): Likewise.
3017 * java/lang/natClass.cc (getClassLoader): Commented out.
3018 * java/lang/Class.java (getClassLoader): Commented out.
3019 * java/lang/Compiler.java: Removed.
3020 * java/lang/NativeLang.java: Removed.
3022 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
3023 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
3024 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
3025 (_Jv_hashUtf8String): Now static.
3026 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
3027 name of return type.
3029 * java/lang/Class.h (Class): Declare checkMemberAccess.
3030 * Makefile.in: Rebuilt.
3031 * Makefile.am (nat_headers): Added Member.h.
3032 * java/lang/natClass.cc: Include Member.h.
3033 (getDeclaredClasses): Call checkMemberAccess.
3034 * java/lang/Class.java (checkMemberAccess): Call
3035 SecurityManager.checkMemberAccess.
3037 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
3039 * java/lang/SecurityManager.java: Rewritten.
3041 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
3043 * java/applet/Applet.java, java/applet/AppletContext.java,
3044 java/applet/AppletStub.java, java/applet/AudioClip.java,
3045 java/awt/AWTError.java, java/awt/AWTException.java,
3046 java/awt/BorderLayout.java, java/awt/Button.java,
3047 java/awt/Canvas.java, java/awt/CardLayout.java,
3048 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
3049 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
3050 java/awt/Color.java, java/awt/Component.java,
3051 java/awt/Container.java, java/awt/Dialog.java,
3052 java/awt/Dimension.java, java/awt/Event.java,
3053 java/awt/FileDialog.java, java/awt/FlowLayout.java,
3054 java/awt/Font.java, java/awt/FontMetrics.java,
3055 java/awt/Frame.java, java/awt/Graphics.java,
3056 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
3057 java/awt/GridLayout.java, java/awt/Image.java,
3058 java/awt/Insets.java, java/awt/Label.java,
3059 java/awt/LayoutManager.java, java/awt/List.java,
3060 java/awt/MediaTracker.java, java/awt/Menu.java,
3061 java/awt/MenuBar.java, java/awt/MenuComponent.java,
3062 java/awt/MenuContainer.java, java/awt/MenuItem.java,
3063 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
3064 java/awt/Rectangle.java, java/awt/Scrollbar.java,
3065 java/awt/TextArea.java, java/awt/TextComponent.java,
3066 java/awt/TextField.java, java/awt/Toolkit.java,
3067 java/awt/Window.java, java/awt/image/ColorModel.java,
3068 java/awt/image/CropImageFilter.java,
3069 java/awt/image/DirectColorModel.java,
3070 java/awt/image/FilteredImageSource.java,
3071 java/awt/image/ImageConsumer.java,
3072 java/awt/image/ImageFilter.java,
3073 java/awt/image/ImageObserver.java,
3074 java/awt/image/ImageProducer.java,
3075 java/awt/image/IndexColorModel.java,
3076 java/awt/image/MemoryImageSource.java,
3077 java/awt/image/PixelGrabber.java,
3078 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
3079 java/awt/peer/CanvasPeer.java,
3080 java/awt/peer/CheckboxMenuItemPeer.java,
3081 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
3082 java/awt/peer/ComponentPeer.java,
3083 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
3084 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
3085 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
3086 java/awt/peer/MenuBarPeer.java,
3087 java/awt/peer/MenuComponentPeer.java,
3088 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
3089 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
3090 java/awt/peer/TextAreaPeer.java,
3091 java/awt/peer/TextComponentPeer.java,
3092 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
3093 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
3094 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
3095 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
3096 java/net/MalformedURLException.java, java/net/NativeNet.java,
3097 java/net/ProtocolException.java, java/net/ServerSocket.java,
3098 java/net/Socket.java, java/net/SocketException.java,
3099 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
3100 java/net/URL.java, java/net/URLConnection.java,
3101 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
3102 java/net/URLStreamHandlerFactory.java,
3103 java/net/UnknownHostException.java,
3104 java/net/UnknownServiceException.java: Removed.
3106 1998-10-22 Tom Tromey <tromey@cygnus.com>
3108 * prims.cc (_Jv_AllocObject): Register finalizer if class'
3109 finalizer is not Object.finalize.
3110 (internalAddClass): Don't set `final' member of class.
3111 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
3112 other places that know about finalize() location.
3113 * java/lang/Class.h (Class): Removed `final' field.
3115 * aclocal.m4, configure: Rebuilt.
3116 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
3117 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
3119 * configure.in (AC_OUTPUT): Pass CXX to config.status.
3120 * Makefile.in: Rebuilt.
3121 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
3123 1998-10-21 Tom Tromey <tromey@cygnus.com>
3125 * java/lang/Object.java (finalize): Move to be first method in
3128 * configure: Rebuilt.
3129 * configure.in (GCINCS): Include contents of boehm-cflags file.
3131 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
3133 * java/lang/ArrayIndexOutOfBoundsException.java
3134 (ArrayIndexOutOfBoundsException): Fixed string literal.
3135 * java/lang/StringIndexOutOfBoundsException.java
3136 (StringIndexOutOfBoundsException): Fixed string literal.
3138 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3140 * natFileDescriptorEcos.cc added.
3141 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
3143 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3145 * acconfig.h: test for __int32_t and __uint32_t added.
3146 * include/config.h.in: test for __int32_t and __uint32_t added.
3147 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
3148 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
3149 * configure.in: test for __int32_t and __uint32_t added.
3150 * configure: test for __int32_t and __uint32_t added.
3152 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
3154 * configure.in: Test for --enable ecos and link
3155 natFileDescriptor.cc to natFileDescriptorEcos.cc or
3156 natFileDescriptorPosix.cc
3158 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
3160 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
3162 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
3165 * java/io/CharArrayReader.java (close): Synchronize on lock
3166 object per Reader contract.
3167 (read): Synchronize on lock obj. Verify that reader wasn't closed.
3168 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
3169 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
3170 Ensure that arg passed in isn't negative.
3172 * java/io/FilterReader.java (FilterReader): Use the lock obj when
3173 constructing the superclass.
3175 * java/io/PushbackReader.java (close): Synchronize on lock
3176 object per Reader contract.
3177 (read): Synchronize on lock obj. Verify that reader wasn't closed.
3178 (ready): Synchronize on lock obj. Throw IOException if reader
3180 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
3181 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
3182 Ensure that arg passed in isn't negative.
3183 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
3185 * java/io/StringReader.java: Created.
3187 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
3189 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
3191 (read): Removed synchronized modifier to match JCL.
3192 (reset): Removed synchronized modifier to match JCL.
3193 (skip): Removed synchronized modifier to match JCL.
3195 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
3197 * java/io/PushbackReader.java (PushbackReader): Made
3198 constructors public.
3200 1998-10-17 Tom Tromey <tromey@cygnus.com>
3202 * java/io/PushbackInputStream.java (PushbackInputStream): Made
3203 constructors public.
3205 1998-10-16 Anthony Green <green@cygnus.com>
3207 * aclocal.m4, configure: Rebuilt.
3208 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
3210 * configure.host: Rewrote.
3211 * Makefile.in: Rebuilt.
3212 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
3213 (AM_CFLAGS): New macro.
3214 ($(c_files)): Use COMPILE macro.
3215 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
3216 automake problem(s).
3218 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
3220 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
3222 * java/io/CharArrayReader.java: Created.
3224 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
3226 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
3227 size check to allow 0 per JCL.
3229 * java/io/PushbackReader.java: Created.
3231 1998-10-16 Tom Tromey <tromey@cygnus.com>
3233 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
3234 <sys/time.h> includes.
3235 * java/io/natFile.cc: Conditionalize <unistd.h> include.
3236 * include/no-threads.h: Conditionalize <unistd.h> include on
3239 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
3241 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
3244 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
3246 * java/io/FilterReader.java: Created.
3248 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
3250 * java/io/PushbackInputStream.java: Rewritten.
3252 * java/io/BufferedInputStream.java (BufferedInputStream): Check
3253 that size passed to constructor is legal.
3254 (read): Check that args passed in are legal.
3255 (skip): Rewritten to get rid of the temporary buffer.
3256 (refill): Added marklimit check to grow the buffer.
3258 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
3260 (bytesAvail): Removed.
3261 (read): Changed bytesAvail to Math.min.
3262 (skip): Changed bytesAvail to Math.min.
3264 * java/io/InputStream.java (read): Got rid of extraneous exceptions
3265 from the throws clause.
3266 (skip): Rewritten to use a temporary buffer.
3268 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
3270 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
3273 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
3275 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
3276 to write the double one word at a time.
3278 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
3280 * java/io/BufferedInputStream.java: Rewritten.
3282 1998-10-12 Tom Tromey <tromey@cygnus.com>
3284 * jni.cc: Include config.h and stddef.h.
3286 * java/lang/Class.h (_dispatchTable): Removed again.
3287 Removed all ACC_* defines again.
3289 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
3291 * Makefile.am (nat_files): Add netField.o.
3292 (libjava_a_SOURCES): Add jni.cc.
3293 (java/lang/reflect/Field.h): New rule.
3294 * Makefile.in: Re-generated.
3295 * include/javaprims.h: Add some extra class and typedefs.
3296 * include/jni.h: New file.
3299 * include/java-field.h: New file.
3300 * include/jvm.h: #include <java-field.h>.
3301 * boehm.cc: #include <java-field.h>.
3302 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
3303 * java/lang/reflect/Member.java: New class.
3304 * java/lang/reflect/Field.java: New class. (Very incomplete.)
3305 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
3307 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
3309 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
3310 testsuite/Makefile.in: Rebuilt.
3311 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
3312 * configure.host: Created.
3314 1998-10-10 Tom Tromey <tromey@cygnus.com>
3316 * java/lang/natObject.cc (sync_init): Always allocate a new
3319 1998-10-09 Tom Tromey <tromey@cygnus.com>
3321 * java/io/ByteArrayInputStream.java (mark): Renamed from
3324 * java/io/FileOutputStream.java (finalize): Removed.
3325 * java/io/FileDescriptor.java (finalize): New method.
3327 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
3329 * ByteArrayInputStream.java: Corrected status comment.
3331 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
3333 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
3335 1998-10-08 Tom Tromey <tromey@cygnus.com>
3337 * prims.cc (lookupArray): Use static array to initialize list of
3340 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
3342 * prims.cc (lookupArray): Initialize the msize for new
3345 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
3347 * configure: Rebuilt.
3348 * configure.in: Check for fsync and sleep.
3349 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
3351 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
3352 HAVE_SLEEP. Include config.h.
3354 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
3355 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
3358 1998-10-08 Tom Tromey <tromey@cygnus.com>
3360 * java/io/natFile.cc: Don't include SecurityManager.h.
3361 (performList): Renamed.
3362 (performMkdir): Likewise.
3363 (performRenameTo): Likewise.
3364 (performDelete): Likewise.
3366 * java/io/File.java (performDelete): Renamed from natDelete.
3367 (list): Now written in Java.
3368 (performList): New method.
3369 (performMkdir): New method.
3370 (mkdir): Now written in Java.
3371 (performRenameTo): New method.
3372 (renameTo): Now written in Java.
3374 1998-10-06 Tom Tromey <tromey@cygnus.com>
3376 * Makefile.in: Rebuilt.
3377 * Makefile.am (ETAGS_ARGS): New macro.
3378 (TAGS_DEPENDENCIES): Likewise.
3380 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
3382 * Makefile.in: Rebuilt.
3383 * Makefile.am: Use -classpath option with javac.
3385 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
3387 * java/io/FileOutputStream.java (finalize): Call
3390 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
3392 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
3394 * java/lang/mprec.c: Ditto.
3396 * java/lang/mprec.h: Include math.h for HUGE_VAL when
3399 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
3401 * java/io/InputStream.java (skip): Make local var i a long.
3403 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
3405 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
3406 * prims.cc (lookupArray): Use memcpy, not memmove.
3407 * include/config.h.in: Rebuilt.
3408 * acconfig.h (HAVE_MEMCPY): Added.
3409 * configure: Rebuilt.
3410 * configure.in: Check for memcpy again.
3412 * java/io/RandomAccessFile.java (RandomAccessFile): Use
3413 String.compareTo, not ==.
3415 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
3416 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
3417 * java/lang/natObject.cc (struct _dispatchTable): Removed.
3418 * include/jvm.h (struct _Jv_DispatchTable): New structure.
3419 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
3420 into new array's dtable.
3421 (_Jv_AllocObject): Use _Jv_DispatchTable.
3422 (_Jv_NewPrimArray): Likewise.
3423 (_Jv_NewObjectArray): Likewise.
3425 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
3427 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
3428 offending index value.
3429 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
3431 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
3432 * java/lang/Throwable.java: (Throwable): fixed argument to this().
3434 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
3436 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
3438 * java/io/OutputStream.java (write): Use off and len parameters to
3439 output partial byte array.
3441 * java/io/BufferedReader.java, java/io/FileReader.java,
3442 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
3443 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
3444 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
3445 java/io/Writer.java: Added COPYRIGHT-TBD comment.
3447 * include/javaprims.h (java::lang): Added
3448 ExceptionInInitializerError, IllegalStateException,
3449 NoSuchFieldException, and UnsupportedOperationException.
3451 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
3453 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
3456 * include/java-array.h (__JArray): Added clone method.
3457 * prims.cc (CloneableClass): New define.
3458 (lookupArray): Initialize array class to indicate that it
3459 implements Cloneable.
3461 * java/lang/Class.h: Removed all ACC_* defines.
3462 * prims.cc: Include Modifier.h.
3463 (_Jv_LookupInterfaceMethod): Use methods in
3464 java.lang.reflect.Modifier, not ACC_ defines.
3466 * java/lang/Class.h (Class): Declare getClasses,
3467 getDeclaredClasses, getDeclaringClass, getModifiers,
3468 * java/lang/Class.java: Rewrote from scratch.
3470 * include/javaprims.h (java::lang): Added reflect and
3472 * Makefile.in: Rebuilt.
3473 * Makefile.am (nat_headers): Added Modifier.h.
3475 * prims.cc (_Jv_IsInstanceOf): Return false if class is
3478 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
3480 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
3481 instead of test and abort.
3483 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
3484 remove compiler warning.
3486 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3488 * java/lang/natDouble.cc: zero terminate string.
3489 * strtod.c: Set errno if no digits are found in fraction.
3491 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
3493 * java/lang/reflect/Modifier.java: New file.
3495 * java/lang/VirtualMachineError.java: Rewrote from scratch.
3496 * java/lang/VerifyError.java: Rewrote from scratch.
3497 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
3498 * java/lang/UnknownError.java: Rewrote from scratch.
3499 * java/lang/StackOverflowError.java: Rewrote from scratch.
3500 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
3501 * java/lang/InternalError.java: Rewrote from scratch.
3502 * java/lang/IllegalAccessError.java: Rewrote from scratch.
3503 * java/lang/ExceptionInInitializerError.java: New file.
3504 * java/lang/Error.java: Rewrote from scratch.
3505 * java/lang/ClassFormatError.java: Rewrote from scratch.
3506 * java/lang/ClassCircularityError.java: Rewrote from scratch.
3507 * java/lang/AbstractMethodError.java: Rewrote from scratch.
3508 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
3509 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
3510 * java/lang/LinkageError.java: Rewrote from scratch.
3511 * java/lang/IncompatibleClassChangeError.java: Rewrote from
3513 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
3515 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
3516 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
3518 * include/cni.h (JvAllocObject): Moved from prims.cc.
3520 * prims.cc (JvAllocObject): Moved to cni.h.
3521 (_Jv_AllocObject): Use _Jv_FinalizeObject.
3522 (finalize_name): Removed.
3524 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
3526 * java/lang/Class.h (Class): Added size() method.
3527 * prims.cc (_Jv_MonitorEnter): Removed.
3528 (_Jv_MonitorExit): Removed.
3529 * java/lang/Object.h (JvSyncInfo): Removed.
3530 * Makefile.in: Rebuilt.
3531 * Makefile.am (nat_headers): Added Cloneable.h,
3532 CloneNotSupportedException.h.
3533 * java/lang/Object.h: Rewrote.
3534 * java/lang/natObject.cc: Rewrote from scratch.
3535 * java/lang/Object.java: Rewrote from scratch.
3537 * java/io/natFile.cc: Conditionally include <dirent.h>.
3538 (list): If no <dirent.h>, always return NULL.
3539 * configure: Rebuilt.
3540 * configure.in: Check for dirent.h.
3542 * prims.cc (lookupArray): Don't use sprintf.
3544 * java/util/Hashtable.java (containsKey): Use `abs' to compute
3551 * java/util/Hashtable.java (hsize): Renamed from size to avoid
3552 name conflict with method.
3554 * include/javaprims.h (java::util): Added HashtableEntry.
3556 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
3558 * java/util/Hashtable.java: Rewritten.
3560 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
3562 * java/io/natFileDescriptor.cc (write): Correctly test `write'
3566 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
3569 * posix-threads.cc (_Jv_CondWait): Now returns int.
3570 * include/javaprims.h (java::lang): Added
3571 IllegalMonitorStateException.
3572 * Makefile.in: Rebuilt.
3573 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
3574 * include/no-threads.h (_Jv_CondDestroy): Removed.
3575 (_Jv_MutexDestroy): Removed.
3576 (_Jv_CondWait): Now returns int.
3577 (_Jv_CondNotify): Likewise. Added mutex argument.
3578 (_Jv_CondNotifyAll): Likewise.
3579 (_Jv_MutexLock): Always succeed.
3580 (_Jv_MutexUnlock): Likewise.
3581 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
3582 (_Jv_HaveMutexDestroy): Define.
3583 (_Jv_CondNotify): Now returns int. Added mutex argument.
3584 (_Jv_CondNotifyAll): Likewise.
3585 * include/quick-threads.h (_Jv_CondDestroy): Removed.
3586 (_Jv_MutexDestroy): Removed.
3587 (_Jv_CondWait): Now returns int.
3588 (_Jv_CondNotify): Likewise. Added mutex argument.
3589 (_Jv_CondNotifyAll): Likewise.
3590 * java/lang/natObject.cc (finalize_sync_info): New function.
3591 (init_mutex): Initialize `init' and register finalizer if
3594 (init_mutex): Use it.
3596 (notifyAll): Use it.
3598 (notify): Throw IllegalMonitorStateException on failure.
3599 (notifyAll): Likewise.
3600 (wait): Likewise. Also, throw InterruptedException if
3602 Include cni.h, Thread.h, IllegalMonitorStateException.h,
3603 InterruptedException.h, IllegalArgumentException.h.
3604 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
3606 * java/lang/natString.cc: Renamed all `JvPriv' functions.
3607 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
3608 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
3609 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
3610 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
3611 * quick-threads.cc: Renamed all `JvPriv' functions.
3612 * prims.cc: Renamed all `JvPriv' functions.
3613 * posix-threads.cc: Renamed all `JvPriv' functions.
3614 * nogc.cc: Renamed all `JvPriv' functions.
3615 * no-threads.cc: Renamed all `JvPriv' functions.
3616 * boehm.cc: Renamed all `JvPriv' functions.
3617 * include/quick-threads.h: Renamed all `JvPriv' functions.
3618 * include/posix-threads.h: Renamed all `JvPriv' functions.
3619 * include/no-threads.h: Renamed all `JvPriv' functions.
3620 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
3622 * include/no-threads.h (JvPrivCondWait): Wrote minimal
3624 (JvPrivCondNotify): Do nothing.
3625 (JvPrivCondNotifyAll): Do nothing.
3627 * prims.cc (processClass): Handle case where state is
3630 * java/lang/natFirstThread.cc: Include <stdlib.h>
3632 * configure: Rebuilt.
3633 * configure.in: Fixed sense of --enable-libjava-debug.
3635 * java/lang/natThread.cc (join): Declare `t' outside the loop so
3636 it can be used afterward by the assertion.
3638 * configure: Rebuilt.
3639 * configure.in: When cross-compiling, assume alloca.
3641 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
3642 __builtin_alloca (autoconf docs are wrong here).
3644 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
3646 (available): Use `FD_ZERO' (typo fix).
3648 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
3650 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
3651 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
3653 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
3654 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
3657 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
3659 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
3661 * java/lang/natDouble.cc: Declare alloca safely.
3663 * configure, include/config.h.in: Rebuilt.
3664 * configure.in: Add alloca check.
3666 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
3668 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
3669 condition while calling notify.
3670 (join): Remove `curr_nt' from `nt's join list, not vice versa.
3671 (interrupt): Hold mutex for interrupt condition while calling
3674 * java/lang/natString.cc (init): Allocate and try to read `count'
3675 characters, not `count - offset' characters.
3677 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
3678 Correctly compute `count'.
3680 * java/lang/Boolean.java (getBoolean): Return false if property
3683 * java/lang/System.java (setProperties): Set prop_init.
3685 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
3687 * java/io/PrintStream.java (println): Use line.separator, not
3689 * java/lang/System.java (out, err): Make both autoflush streams.
3690 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
3692 * include/config.h.in: Rebuilt.
3693 * acconfig.h (HAVE_MEMCPY): Removed.
3694 * configure: Rebuilt.
3695 * configure.in: Never define HAVE_MEMCPY.
3697 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
3699 (_Jv_AllocString): Use JvAllocObject again.
3700 * java/lang/Class.h (thread): New field.
3701 (_Jv_AllocString): No longer a friend.
3702 * prims.cc (processClass): Removed dead code. Changed to more
3703 closely follow the Java Language Specification.
3704 (processClass): Return early if already at the right state.
3706 * prims.cc (JvNewStringUTF): Removed.
3707 * include/cni.h (JvNewStringUTF): New function.
3708 (_Jv_NewStringUTF): Declare as `extern "C"'.
3709 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
3711 * java/lang/natDouble.cc: Added copyright info and header
3712 comment. Include <stdlib.h>.
3713 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
3714 bytes as are chars in string.
3716 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
3718 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
3722 * java/lang/System.java (init_properties): Now native.
3723 * java/lang/natSystem.cc (init_properties): New method.
3724 Include java/util/Properties.h.
3726 * Makefile.in: Rebuilt.
3727 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
3728 OutputStreamWriter.h, ByteArrayInputStream.h,
3729 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
3730 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
3731 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
3732 Properties.h, Hashtable.h, Dictionary.h.
3735 * include/javaprims.h (java::io): Added Reader, Writer,
3736 InputStreamReader, OutputStreamWriter,
3737 UnsupportedEncodingException, ByteArrayInputStream,
3738 ByteArrayOutputStream, EOFException, SyncFailedException,
3739 PushbackInputStream.
3740 (java::lang): Added Cloneable.
3741 (java::util): Added NoSuchElementException, VectorEnumeration,
3742 Dictionary, HashtableEnumeration, PropertiesEnumeration.
3744 * java/io/PipedReader.java: New file.
3746 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
3748 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
3751 * java/io/io-defs.h: Removed.
3753 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
3754 (FileInputStream): Use new constructor. Can throw IOException.
3756 * java/lang/System.java (getProperty): Don't throw
3757 NullPointerException.
3759 * java/io/RandomAccessFile.java: Rewrote from scratch.
3761 * java/io/natFileDescriptor.cc: Include EOFException.h.
3763 (length): New method.
3764 (getFilePointer): New method.
3766 (available): New method.
3767 * java/io/FileDescriptor.java (SET, CUR): New constants.
3768 (seek, length, getFilePointer, read, available): New decls.
3770 * java/io/PipedWriter.java: New file.
3771 * java/io/StringWriter.java: New file.
3772 * java/io/CharArrayWriter.java: New file.
3773 * java/io/CharConversionException.java: New file.
3774 * java/io/BufferedWriter.java: New file.
3775 * java/io/FilterWriter.java: New file.
3776 * java/io/FileWriter.java: New file.
3778 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
3779 OutputStreamWriter.h, NullPointerException.h,
3780 ByteArrayInputStream.h, InputStreamReader.h.
3781 (getBytes): New method.
3782 (init): Throw NullPointerException.
3783 (init): New function.
3784 * java/lang/String.java (getBytes): Added missing decl.
3785 (getBytes): New method.
3786 (String): Added byte[]-based constructors.
3787 (copyValueOf): Wrote.
3788 (init): Declare variant which takes byte array and encoding.
3789 Import java.io.UnsupportedEncodingException.
3791 * java/io/File.java: Rewrote from scratch.
3792 * java/io/natFileDescriptor.cc: Rewrote from scratch.
3793 * java/io/FileDescriptor.java: Rewrote from scratch.
3794 * java/io/FilenameFilter.java: Rewrote from scratch.
3796 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
3798 * java/io/SyncFailedException.java: New file.
3799 * java/io/UTFDataFormatException.java: Rewrote from scratch.
3800 * java/io/InterruptedIOException.java: Rewrote from scratch.
3801 * java/io/FileNotFoundException.java: Rewrote from scratch.
3802 * java/io/EOFException.java: Rewrote from scratch.
3803 * java/io/IOException.java: Rewrote from scratch.
3804 * java/io/PrintStream.java: Rewrote from scratch.
3805 * java/io/DataOutputStream.java: Rewrote from scratch.
3806 * java/io/BufferedOutputStream.java: Rewrote from scratch.
3807 * java/io/FilterOutputStream.java: Rewrote from scratch.
3808 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
3809 * java/io/PipedOutputStream.java: Rewrote from scratch.
3810 * java/io/FileOutputStream.java: Rewrote from scratch.
3811 * java/io/OutputStream.java: Rewrote from scratch.
3812 * java/io/DataOutput.java: Rewrote from scratch.
3814 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
3816 * prims.cc (_Jv_CheckCast): Add missing ! operator.
3818 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
3820 * configure.in: Add --enable-libjava-debug
3822 * Makefile.am (nat_headers): Add java/lang/Float.h and
3825 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
3827 * Makefile.in, configure, include/config.h.in: Rebuilt.
3829 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3831 * java/lang/Float.java: Rewritten
3832 * java/lang/Double.java: Rewritten
3833 * java/lang/natFloat.cc: toString() added.
3834 * java/lang/natDouble.cc: toString() added.
3835 * java/lang/natDouble.cc: doubleValueOf() added.
3836 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
3837 java/lang/strtod.c: added.
3838 * ieeefp.h: __sparc added.
3839 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
3841 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
3843 * include/javaprims.h (java::lang): Added
3844 CloneNotSupportedException.
3846 * java/lang/Object.java (clone): No longer native. Implemented.
3847 * java/lang/natObject.cc (clone): Removed.
3849 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
3851 * prims.cc: Don't make definitions `extern "C"'.
3852 (_Jv_RegisterClass): Renamed from registerClass.
3853 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
3854 (_Jv_NewArray): Likewise.
3855 (_Jv_NewMultiArray): Likewise.
3856 (_Jv_CheckCast): Likewise.
3857 (_Jv_LookupInterfaceMethod): Likewise.
3858 (_Jv_CheckArrayStore): Likewise.
3859 (_Jv_RegisterClass): Likewise.
3861 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
3862 * configure: Rebuilt.
3863 * configure.in: Don't check for fmod; it is provided by the fdlibm
3865 * prims.cc (fmod): Removed.
3867 * java/lang/natString.cc (charAt): Use _Jv_uint.
3868 * java/lang/Class.h (class JvField): Use _Jv_ushort.
3869 * prims.cc (HASH_CHARS): Use _Jv_ushort.
3870 (equalUtf8Consts): Likewise.
3871 (internalAddClass): Use _Jv_uint.
3872 (processClass): Likewise.
3873 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
3874 (_Jv_uint): Renamed from uint32.
3875 (struct _Jv_Utf8Const): Changed members to use new type names.
3877 * configure: Rebuilt.
3878 * configure.in: Don't check for memcpy. Require memmove and a way
3880 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
3882 (currentTimeMillis): Don't use #error.
3884 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3886 * java/lang/Math.java: static member random renamed to random_ to
3887 avoid conflict with member function of the same name.
3888 * include/javaprims.h: java.util.Random added.
3890 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
3892 * include/java-chartables.h: Regenerated.
3893 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
3896 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
3898 * java/lang/Math.java: Rewritten.
3899 * java/lang/natMath.cc: New file.
3900 * Files added from fdlibm:
3901 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
3902 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
3903 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
3904 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
3905 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
3906 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
3907 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
3908 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
3909 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
3910 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
3911 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
3912 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
3913 java/lang/k_cos.c, java/lang/sf_ceil.c,
3914 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
3915 java/lang/ieeefp.h, java/lang/fdlibm.h
3916 * Makefile.am: rules added for compiling C files from fdlibm.
3918 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
3920 * chartables.pl: Minor documentation fixes.
3922 * configure: Rebuilt.
3923 * configure.in: Fixed --help output for --enable-fast-character.
3925 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
3927 * configure: Rebuilt.
3928 * configure.in: Recognize --enable-fast-character.
3929 * acconfig.h (COMPACT_CHARACTER): New define.
3930 * include/config.h.in: Rebuilt.
3931 * include/java-chartables.h: New file.
3932 * Makefile.in: Rebuilt.
3933 * Makefile.am (nat_files): Added natCharacter.o.
3934 * java/lang/natCharacter.cc: New file.
3935 * chartables.pl (set_attribute): New function.
3936 (@attributes, @second_attributes): New globals.
3937 ($ROMAN_START, $ROMAN_END): Likewise.
3938 (process_char): Call set_attribute when required.
3939 (print_char): Just print hex value.
3940 (print_block): Generate C++ syntax.
3941 (print_numerics): Likewise.
3942 (print_single_map): Likewise.
3943 (print_all_block): Likewise.
3944 (print_case_table): Likewise.
3945 (print_fast_tables): New function.
3946 Generate C++ code suitable for a header file.
3947 * java/lang/Character.java (table_search): Removed.
3948 (digit_value): Now native.
3949 (getNumericValue): Likewise.
3950 (getType): Likewise.
3951 Removed all automatically-generated tables.
3952 (Tamil_Digit_One): Removed.
3953 (isSpaceChar): Now native.
3954 (isTitleCase): Likewise.
3955 (isLowerCase): Likewise.
3956 (isUpperCase): Likewise.
3957 (toLowerCase): Likewise.
3958 (toTitleCase): Likewise.
3959 (toUpperCase): Likewise.
3960 (isDefined): Fixed sense of test.
3962 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
3964 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
3966 (regionMatches): Likewise.
3968 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
3970 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
3972 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
3974 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
3977 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
3980 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
3982 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
3984 * prims.cc (instanceof_class): Removed.
3985 (instanceof_array): Likewise.
3986 (instanceof): Likewise.
3987 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
3988 (_Jv_CheckCast): Likewise.
3989 * java/lang/natClass.cc (isAssignableFrom): New method.
3990 * java/lang/Class.java (isAssignableFrom): Now native.
3992 * include/cni.h (JvThrow): Use `extern inline'.
3993 (JvAllocObject): Likewise.
3994 (JvInitClass): Likewise.
3996 * java/lang/natSystem.cc (arraycopy): Only check class of source
3999 * prims.cc (_Jv_CheckArrayStore): Wrote.
4000 (_Jv_MonitorEnter): Prefer `JvThrow'.
4001 Include ArrayStoreException.h.
4002 (_Jv_CheckCast): Indentation cleanup.
4004 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
4006 * chartables.pl: New file.
4007 * java/lang/Character.java: Rewrote from scratch.
4009 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
4011 * java/lang/ArithmeticException.java,
4012 java/lang/ArrayIndexOutOfBoundsException.java,
4013 java/lang/ArrayStoreException.java,
4014 java/lang/ClassCastException.java,
4015 java/lang/ClassNotFoundException.java,
4016 java/lang/CloneNotSupportedException.java,
4017 java/lang/Exception.java, java/lang/IllegalAccessException.java,
4018 java/lang/IllegalArgumentException.java,
4019 java/lang/IllegalMonitorStateException.java,
4020 java/lang/IllegalThreadStateException.java,
4021 java/lang/IndexOutOfBoundsException.java,
4022 java/lang/InstantiationException.java,
4023 java/lang/InterruptedException.java,
4024 java/lang/NegativeArraySizeException.java,
4025 java/lang/NoSuchMethodException.java,
4026 java/lang/NullPointerException.java,
4027 java/lang/NumberFormatException.java,
4028 java/lang/RuntimeException.java, java/lang/SecurityException.java,
4029 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
4031 * java/lang/IllegalStateException.java,
4032 java/lang/NoSuchFieldException.java,
4033 java/lang/UnsupportedOperationException.java: Created.
4035 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
4037 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
4038 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
4040 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
4042 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
4044 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
4046 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
4048 * Makefile.in: Rebuilt.
4050 * include/javaprims.h (java::lang): Added
4051 StringIndexOutOfBoundsException.
4053 * java/lang/String.java: Added header comment and FIXME comment for
4054 missing constructors/methods.
4055 (endsWith): Adjusted offset into string to look at just the last chars.
4056 Commented out undocumented method.
4058 * java/lang/natString.cc: Added includes for
4059 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
4060 (String::init): Throw StringIndexOutOfBoundsException.
4061 (String::charAt): Throw StringIndexOutOfBoundsException.
4062 (String::substring): Throw StringIndexOutOfBoundsException.
4063 (String::getChars): Throw ArrayIndexOutOfBoundsException.
4064 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
4065 (String::compareTo): Return difference/offset between chars/strings.
4067 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
4069 * java/lang/Boolean.java (TYPE): Added comment.
4071 * java/lang/Byte.java (decode): Added - commented out until dependent
4072 code for Integer is written.
4073 (compareTo): JDK 1.2 methods written.
4074 (hashCode): Added comment to note that values have been verified.
4076 * java/lang/Short.java (decode): Added - commented out until dependent
4077 code for Integer is written.
4078 (compareTo): JDK 1.2 methods written.
4079 (hashCode): Added comment to note that values have been verified.
4081 * java/lang/Comparable.java: Created - JDK 1.2 interface.
4083 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
4085 * include/javaprims.h (java::lang): Added VirtualMachineError,
4087 * Makefile.in: Rebuilt.
4088 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
4089 VirtualMachineError.h.
4090 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
4091 (lookupArray): Likewise.
4092 (makeUtf8Const): Likewise.
4093 (_Jv_AllocObject): Likewise.
4094 (_Jv_NewObjectArray): Likewise.
4095 Include OutOfMemoryError.h.
4097 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
4098 to use JvNewStringLatin1.
4100 * java/io/io-defs.h: Include java/lang/IOException.h.
4101 * Makefile.in: Rebuilt.
4102 * Makefile.am (nat_headers): Added
4103 ArrayIndexOutOfBoundsException.h,
4104 ClassFormatError.h,ClassNotFoundException.h,
4105 ClassCircularityError.h, ClassCastException.h,
4106 IncompatibleClassChangeError.h, AbstractMethodError.h,
4107 IllegalAccessError.h, LinkageError.h, Error.h,
4108 NegativeArraySizeException.h, IOException.h.
4109 * include/cni.h (SignalError): Removed declaration.
4110 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
4111 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
4112 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
4113 (newInstance): Likewise.
4114 (forName): Likewise.
4115 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
4117 (read): Use JvThrow, not SignalError.
4122 (open_read): Likewise.
4123 (open_write): Likewise.
4126 (newstr): New function.
4127 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
4129 (lastModifiedUnchecked): Likewise.
4130 (lengthUnchecked): Likewise.
4131 * include/javaprims.h (sorry): Removed declaration.
4132 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
4133 ClassFormatError, ClassNotFoundException, ClassCircularityError,
4134 ClassCastException, IncompatibleClassChangeError,
4135 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
4136 * prims.cc (instanceof_array): Use JvFail, not sorry.
4138 Include ArrayIndexOutOfBoundsException.h,
4139 ClassFormatError.h,ClassNotFoundException.h,
4140 ClassCircularityError.h, ClassCastException.h,
4141 IncompatibleClassChangeError.h, AbstractMethodError.h,
4142 IllegalAccessError.h, NegativeArraySizeException.h.
4143 (_Jv_ThrowBadArrayIndex): Implemented.
4144 (JvNewStringUTF): Use JvFail, not sorry.
4145 (_Jv_FindClass): Likewise.
4146 (_Jv_NewArray): Likewise.
4147 (throwException): Removed.
4148 (getClass): Use JvThrow.
4149 (processClass): Likewise.
4150 (_Jv_NewObjectArray): Likewise.
4151 (_Jv_NewMultiArray): Likewise.
4152 (_Jv_CheckCast): Likewise.
4153 (_Jv_LookupInterfaceMethod): Likewise.
4154 (SignalError): Removed.
4155 (getClass): Use _Jv_NewStringUtf8Const to create String.
4157 * java/lang/natSystem.cc (arraycopy): Throw
4158 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
4160 * Makefile.in: Rebuilt.
4161 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
4163 * include/java-array.h: Mention gcjh, not gjavah.
4165 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
4166 (canReadUnchecked): Likewise.
4167 (canWriteUnchecked): Likewise.
4168 (isFileUnchecked): Likewise.
4169 * java/io/natFileDescriptor.cc: Don't include cni.h.
4171 * java/lang/Thread.java (run__): Declare.
4172 * java/lang/natThread.cc (run__): New method, to avoid compiler
4174 (start): Use run__, not run_.
4176 * java/io/io-defs.h: Include cni.h and jvm.h.
4178 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
4180 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
4181 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
4182 to natString.cc (with suitable renaming, inlines etc).
4183 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
4184 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
4185 * java/lang/String.h: Removed - now generated using gjavah.
4186 * java/lang/String.java: Re-written from scratch. Many native methods.
4187 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
4188 * java/lang/natString.cc: Many functions re-written for "compact
4189 strings" representation, or native java.lang.String methods added.
4190 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
4191 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
4192 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
4193 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
4194 * include/cni.h: Add inline method.
4195 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
4196 * include/javaprims.h: Moved some stuff frm String.h.
4197 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
4198 * Makefile.am (nat_header): Added Character.h and String.h.
4199 (String.h): Add new rule.
4201 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
4203 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
4205 * posix-threads.cc: Include cni.h, jvm.h.
4206 * quick-threads.cc: Include cni.h, jvm.h.
4207 * nogc.cc: Include cni.h, not javaprims.h.
4208 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
4209 * java/lang/natThread.cc: Rearranged #include ordering. Don't
4210 include java-assert.h.
4211 * java/lang/natSystem.cc: Include cni.h. Don't include
4213 * java/lang/natRuntime.cc: Include cni.h. Don't include
4215 * prims.cc: Rearranged #include ordering. Don't include
4216 java-array.h or java-assert.h.
4217 * boehm.cc: Include config.h, cni.h.
4218 * exception.cc: Include config.h, cni.h.
4219 * include/jvm.h: Include java-assert.h.
4220 * include/cni.h: Include java/lang/Object.h. Don't include
4221 java-threads.h or java-array.h.
4223 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
4225 * java/lang/Boolean.java: Rewritten.
4227 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
4229 * java/lang/natFirstThread.cc (main_func): New typedef.
4230 (run): Use main_func, not JvPrivThreadStartFunc.
4231 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
4233 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
4235 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
4238 Can't throw Java exceptions with C++ `throw':
4239 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
4240 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
4241 (setPriority): Likewise.
4245 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
4246 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
4248 Can't catch Java exceptions from C++:
4249 * java/lang/natThread.cc (finish_): New method.
4251 * java/lang/Thread.java (run_): Rewrote in Java.
4252 (finish_): New native method.
4254 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
4256 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
4258 * include/javaprims.h (java::io): Added Serializable.
4260 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
4262 * java/util/EmptyStackException.java,
4263 java/util/NoSuchElementException.java: Rewritten.
4265 * java/util/ConcurrentModificationException.java,
4266 java/util/MissingResourceException.java,
4267 java/util/TooManyListenersException.java: Created.
4269 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
4271 * include/cni.h (JvThrow): New function.
4272 * include/javaprims.h (_Jv_Throw): Declare.
4274 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
4276 * java/util/Observable.java: Rewritten.
4278 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
4280 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
4281 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
4282 Include NullPointerException.h.
4284 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
4286 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
4287 assignability checks. Don't bother using memcpy.
4289 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
4291 * include/quick-threads.h (JvPrivThreadWait): New function.
4292 * include/no-threads.h (JvPrivThreadWait): New function.
4293 * include/posix-threads.h (JvPrivThreadWait): New function.
4294 * prims.cc (JvRunMain): Call JvPrivThreadWait.
4296 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
4298 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
4299 offsets by size of type that is being copied.
4301 * java/lang/natThread.cc (start): Don't pass `object' argument to
4303 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
4304 * posix-threads.cc (JvPrivThreadStart): Removed `object'
4306 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
4307 always pass thread as object.
4308 * include/quick-threads.h, include/posix-threads.h,
4309 include/no-threads.h (JvPrivThreadStart): Removed `object'
4312 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
4314 * java/util/Dictionary.java: Rewritten.
4316 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
4318 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
4319 (JvPrivThreadDestroy): Likewise.
4321 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
4323 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
4325 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
4327 * java/lang/natSystem.cc: Rewrote from scratch.
4328 * java/lang/System.java: Rewrote from scratch.
4329 * java/lang/Class.h (Class): Declare isAssignableFrom.
4330 * include/javaprims.h (java::lang): Added ArrayStoreException,
4331 IndexOutOfBoundsException.
4332 * Makefile.in: Rebuilt.
4333 * Makefile.am (nat_headers): Added ArrayStoreException.h,
4334 IndexOutOfBoundsException.h.
4335 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
4336 * include/jvm.h (_Jv_HashCode): New function.
4338 * java/lang/natThread.cc (suspend): Call checkAccess.
4340 * java/lang/Thread.java (setDaemon): Call checkAccess.
4342 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
4344 * java/lang/Runtime.java: Rewrote from scratch.
4345 * java/lang/natRuntime.cc: Rewrote from scratch.
4347 * nogc.cc (JvPrivGCTotalMemory): New function.
4348 (JvPrivGCFreeMemory): Likewise.
4349 (total): New global.
4350 (JvPrivAllocObj): Increment total.
4351 (JvPrivAllocArray): Likewise.
4352 (JvPrivAllocBytes): Likewise.
4353 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
4354 * boehm.cc (JvPrivGCTotalMemory): New function.
4355 (sum_blocks): Likewise.
4356 (JvPrivGCFreeMemory): Likewise.
4358 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
4360 * include/javaprims.h (java::lang): Added FirstThread.
4361 * java/lang/natFirstThread.cc: New file.
4362 * java/lang/FirstThread.java: New file.
4363 * prims.cc (main_signature): Removed.
4364 (main_name): Removed.
4365 #include FirstThread.h.
4366 * Makefile.in: Rebuilt.
4367 * Makefile.am (TFRIEND): Removed.
4368 (java/lang/Thread.h): Likewise.
4369 (FTFRIEND): New macro.
4370 (java/lang/FirstThread.h): New target.
4371 (nat_files): Added natFirstThread.o.
4372 (nat_headers): Added FirstThread.h.
4373 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
4374 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
4376 * java/lang/Thread.java (setName): Throw IllegalArgumentException
4380 * java/lang/natThread.cc (start): Synchronize the thread.
4381 (stop): Synchronize the thread.
4383 * java/lang/ThreadDeath.java: Rewrote from scratch.
4385 * Makefile.in: Rebuilt.
4386 * Makefile.am (TGFRIEND): New macro.
4387 (java/lang/ThreadGroup.h): New target.
4388 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
4390 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
4392 * nogc.cc: Include config.h.
4394 * java/lang/ThreadGroup.java: Rewrote from scratch.
4396 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
4398 * java/lang/Thread.java (checkAccess): Only call in to security
4399 manager if it exists.
4400 (Thread): Don't check access when creating the first thread. Add
4401 this thread to the appropriate ThreadGroup.
4403 * java/lang/natThread.cc (run_): Call uncaughtException method on
4406 * java/lang/Runnable.java: Rewrote from scratch.
4407 * java/lang/Thread.java: Updated copyright comment to correct
4410 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
4412 * java/util/Random.java: Rewritten.
4414 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4416 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
4417 trailing 0 in array[].
4419 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
4421 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4422 and RUNTESTFLAGS from AM_MAKEFLAGS.
4423 (SUBDIRS): Conditionally include testsuite.
4424 * Makefile.in: Rebuilt.
4426 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
4428 * java/lang/Object.h: Include java-assert.h.
4430 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
4432 * Makefile.am: Add testsuite directory.
4433 * configure.in: Build testsuite/Makefile.
4434 * Makefile.in, configure: Rebuilt.
4436 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
4438 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
4439 * include/jvm.h (_Jv_StartFirstThread): Declare.
4441 * include/javaprims.h (java::lang): Added Exception,
4444 * Makefile.in: Rebuilt.
4445 * Makefile.am (nat_headers): Added NullPointerException.h,
4446 InterruptedException.h, IllegalArgumentException.h, Exception.h,
4447 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
4448 (java/lang/Thread.h): New target.
4449 (TFRIEND): New macro
4451 * include/java-assert.h (JvFail): Use 0 and not NULL.
4453 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
4454 instead of assuming we are a friend of Thread.
4455 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
4456 instead of assuming we are a friend of Thread.
4458 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
4460 * java/lang/natThread.cc: Rewrote from scratch.
4461 * java/lang/Thread.java: Rewrote from scratch.
4462 * prims.cc (JvRunMain): Use new Thread constructor.
4463 * include/javaprims.h (java::lang): Added InterruptedException.
4464 * Makefile.in: Rebuilt.
4465 * Makefile.am (nat_headers): Added java/lang/Thread.h.
4466 * java/lang/Thread.h: Removed.
4467 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
4468 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
4470 * posix-threads.cc (JvPrivThreadJoin): Removed.
4471 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
4472 (really_start): Don't notify join_cond.
4473 (JvPrivThreadStart): Added `data' argument.
4474 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
4475 (JvPrivThreadJoin): Likewise.
4476 Use JvFail instead of sorry.
4477 (JvPrivThreadSuspend): Removed.
4478 (JvPrivThreadResume): Removed.
4479 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
4480 (JvPrivThreadJoin): Likewise.
4481 (JvPrivThreadSuspend): Use JvFail.
4482 (JvPrivThreadResume): Likewise.
4483 (JvPrivThreadSuspend): Removed.
4484 (JvPrivThreadResume): Likewise.
4485 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
4486 (JvPrivThread_t): Removed join_mutex, join_cond.
4487 Use JvFail instead of sorry.
4488 (JvPrivThreadSuspend): Removed.
4489 (JvPrivThreadResume): Likewise.
4491 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
4493 * java/util/Observer.java: Rewritten
4494 * java/util/Enumeration.java: Rewritten
4496 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
4498 * java/util/StringTokenizer.java: Rewritten
4499 * java/util/Stack.java: Added COPYRIGHT-TBD comment
4500 * java/util/Vector.java: Added COPYRIGHT-TBD comment
4501 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
4503 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
4505 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
4508 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
4509 Include java-assert.h.
4510 * include/java-assert.h: New file.
4511 * prims.cc (_Jv_Abort): New function.
4512 Include java-assert.h, not assert.h.
4513 (_Jv_MonitorExit): Use JvAssert.
4514 (resolveConstants): Likewise.
4515 (processClass): Likewise.
4516 (JvRunMain): Assert that method is found.
4518 * configure: Rebuilt.
4519 * configure.in: Check for test subdir.
4520 * Makefile.in: Rebuilt.
4521 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
4523 * prims.cc (JvRunMain): Use NORM_PRIORITY.
4524 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
4526 * prims.cc (resolveConstants): Removed unused variables.
4527 (processClass): Likewise.
4529 * include/quick-threads.h (JvPrivThreadCurrent): Use
4531 * quick-threads.cc (destroy_data): New function.
4532 (JvPrivInitThreads): Create key.
4533 (JvPrivThreadKey): New global.
4534 (JvPrivThreadStart): Use coop_setspecific.
4536 * include/quick-threads.h, include/posix-threads.h,
4537 include/no-threads.h, no-threads.cc, quick-threads.cc,
4538 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
4540 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
4542 * include/no-threads.h (JvPrivThreadInitData): Don't set
4545 * include/quick-threads.h (JvPrivCondWait): coop function now
4547 (JvPrivThreadJoin): Likewise.
4549 * java/lang/Thread.h (Thread): Updated declaration of
4551 * include/quick-threads.h, include/posix-threads.h: Updated
4552 declaration of JvPrivThreadStart.
4553 * include/no-threads.h (JvPrivThreadStart): Changed definition
4555 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
4556 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
4557 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
4559 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
4561 * quick-threads.cc (qthrow): New function.
4562 (JvPrivInitThreads): New function.
4563 (started): New global.
4564 (JvPrivThreadStart): Call coop_start if required.
4565 * include/quick-threads.h (JvPrivThreadCancel): Implement.
4566 (JvPrivThreadDestroy): Likewise.
4567 (JvPrivInitThreads): Removed.
4568 * include/posix-threads.h (JvPrivThreadCancel): Added error
4570 * java/lang/natThread.cc (stop_): Pass exception to
4573 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
4575 * include/javaprims.h (java::lang): Added
4576 IllegalArgumentException, IllegalThreadStateException, Math,
4577 NullPointerException, ThreadDeath.
4578 (java::util): Added Enumeration.
4580 * Makefile.in: Rebuilt.
4581 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
4583 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
4585 (threadsv): Renamed from threads to avoid clash in C++ header.
4586 (groupsv): Likewise.
4587 * include/no-threads.h (JvPrivThreadStart): Removed.
4588 * no-threads.cc (JvPrivThreadStart): New function.
4589 * java/lang/Thread.java (Thread): New constructor for internal use.
4590 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
4591 (Thread): Declare constructor.
4592 * prims.cc (JvRunMain): Create the initial Thread and
4594 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
4595 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
4596 Removed `daemon' argument.
4598 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
4599 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
4601 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
4603 * Makefile.in: Rebuilt.
4604 * Makefile.am (INCLUDES): Include THREADINCS.
4606 * configure: Rebuilt.
4607 * configure.in: Recognize `qt' as a threads package.
4609 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
4611 * java/util/Stack.java (pop): Null out topmost node for robustness.
4613 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
4615 * java/util/Stack.java: Rewritten.
4616 * java/util/Vector.java (isEmpty): Simplified expression.
4618 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
4620 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
4621 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
4623 * include/java-array.h (JvNewObjectArray): Created inline to
4626 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
4629 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
4631 * java/util/Vector.java: Rewritten.
4632 * java/io/Serializable.java: Created.
4634 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
4636 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
4637 Infinity is 1/0, not 1/1.
4639 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
4641 * configure: Rebuilt.
4642 * configure.in: Removed duplicate AC_ARG_WITH.
4644 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
4646 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
4648 (_Jv_InitClass): Renamed from soft_initialise_class.
4649 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
4650 (_Jv_CheckCast): Renamed from soft_checkcast.
4651 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
4652 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
4653 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
4654 * include/cni.h (JvInitClass): New function.
4655 (_Jv_InitClass): Renamed from soft_initialise_class.
4657 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
4659 * configure: Rebuilt.
4660 * configure.in (CXX): Don't set.
4661 * Makefile.in: Rebuilt.
4662 * Makefile.am (AM_CXXFLAGS): New macro.
4664 * Makefile.in: Rebuilt.
4665 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
4666 nogc.o): New target.
4668 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
4670 (mark_array): Likewise.
4672 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
4674 * java/lang/Class.h (JvMethod): Removed some unused fields.
4675 (JvField.info): Removed unused idx union variant.
4677 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
4679 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
4682 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
4684 * configure.in, configure (CXX): Add -fvtable-thunks.
4686 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
4688 * java/lang/Object.java (finalize): Move first.
4689 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
4690 (Object): Re-arrange order to match Object.java.
4692 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
4694 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
4695 * java/lang/natString.cc (hashChars): Likewise.
4697 * prims.cc (RuntimeClass): New macro.
4698 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
4700 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
4702 * Makefile.in: Rebuilt.
4703 * Makefile.am (AM_MAKEFLAGS): New macro.
4705 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
4707 * nogc.cc: Include <javaprims.h>.
4709 * Makefile.in: Rebuilt.
4710 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
4712 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
4714 * exception.cc (terminate): Removed.
4715 (unexpected): Removed.
4717 * configure: Rebuilt.
4718 * configure.in: Handle case where target subdir is ".".
4720 * configure: Rebuilt.
4721 * configure.in: Compute COMPPATH based on --with-target-subdir
4722 option. Added --with-target-subdir and --with-cross-host. Use
4723 --with-cross-host to determine when a cross compiler is in use.
4725 * Makefile.in: Rebuilt.
4726 * Makefile.am (GJAVAH): Include COMPPATH.
4727 * configure: Rebuilt.
4728 * configure.in: Subst COMPPATH.
4730 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
4732 * prims.cc (lockMutex): Removed.
4733 (unlockMutex): Likewise.
4734 (processClass): Lock the class using a JvSynchronize object.
4736 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
4738 * java/lang/natString.cc (gc_calloc_fixed): Removed.
4739 (gc_free_fixed): Removed.
4740 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
4741 freeing old value of strhash.
4743 * exception.cc (_Jv_type_matcher): Cast first argument to
4746 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
4748 * include/java-array.h (jstringArray): New type.
4749 * java/lang/natSystem.cc (setProperty): Removed.
4750 (initProperties): Directly call JvNewStringLatin1 for arguments.
4751 * java/util/natDate.cc: Include java/util/Date.h, not
4754 * java/io/FileDescriptor.java (available): No longer static.
4755 * java/lang/natDouble.cc (Double): Removed class definition.
4756 * include/javaprims.h (java::lang::Number): Declare.
4757 (java::lang::NumberFormatException): Likewise.
4758 (java::io::FilenameFilter): Likewise.
4759 (java::lang::Character): Likewise.
4760 (java::lang::Error): Likewise.
4761 (java::lang::SecurityManager): Likewise.
4762 (java::util::Vector): Likewise.
4763 (java::io::FileNotFoundException): Likewise.
4764 (java::io::IOException): Likewise.
4765 (java::lang::NativeLang): Likewise.
4766 (java::lang::UnsatisfiedLinkError): Likewise.
4767 (java::util::StringTokenizer): Likewise.
4768 (java::io::InputStream, java::io::OutputStream): Likewise.
4769 (java::io::PrintStream, java::lang::SecurityException): Likewise.
4770 (java::util::Hashtable): Likewise.
4771 * Makefile.in: Rebuilt.
4772 * Makefile.am (nat_headers): Added java/lang/Double.h,
4773 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
4774 (MOSTLYCLEANFILES): Added nat_headers.
4775 * include/jvm.h: Moved many defines, declarations, and functions
4776 to java/lang/Class.h.
4777 (struct JvSyncInfo): Moved to java/lang/Object.h.
4778 (UTF8_GET): Moved to java/lang/String.h.
4780 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
4782 * java/io/io-defs.h: Don't include java-io.h.
4783 * include/java-io.h: Removed.
4784 * include/javaprims.h: Include java::io.
4786 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
4788 * include/java-io.h (File): Removed
4789 (FileDescriptor): Likewise.
4791 * java/io/io-defs.h: Include java/io/File.h and
4792 java/io/FileDescriptor.h.
4794 * Makefile.in: Rebuilt.
4795 * Makefile.am (GJAVAH): New macro.
4796 (.class.h): New rule.
4797 (SUFFIXES): Added .h.
4798 (nat_headers): New macro.
4799 ($(nat_headers)): New target.
4800 (BUILT_SOURCES): Added nat_headers.
4802 * include/java-util.h: Removed.
4804 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
4806 * include/java-io.h: Changed to avoid java-lang.h.
4807 * java/lang/natThread.cc: Include java/lang/Thread.h, not
4809 * java/lang/natSystem.cc: Include java/lang/System.h, not
4811 * java/lang/natString.cc: Include java/lang/String.h, not
4813 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
4815 * java/lang/natClass.cc: Include java/lang/Class.h, not
4817 * java/lang/natDouble.cc: Include java/lang/Object.h, not
4819 * java/lang/natObject.cc: Include java/lang/Object.h, not
4821 * exception.cc: Don't include java-lang.h.
4822 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
4823 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
4824 * nogc.cc: Don't include java-lang.h.
4825 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
4826 * prims.cc (processClass): Don't use `init_type'; just cast to
4828 Include java/lang/Class.h and jvm.h, not java-lang.h.
4829 (JvAllocObject): Wrote single-argument version.
4830 (PrimClass): Inherit from Class.
4831 (initPrimClass): Removed.
4832 * include/java-lang.h: Removed.
4833 * include/jvm.h: Declare struct _dispatchTable.
4834 * include/cni.h: Don't declare _Jv_MonitorEnter,
4835 _Jv_MonitorExit, struct _dispatchTable.
4836 * include/javaprims.h: Moved all typedefs here, from cni.h.
4837 * java/lang/Class.h: New file.
4838 * include/java-array.h: New file.
4839 * java/lang/Object.h: New file.
4841 * prims.cc (classFromSig): Now static.
4843 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
4845 * include/cni.h: Don't mention soft_new.
4846 * include/java-lang.h (Object): Don't mention soft_new. Mention
4847 _Jv_NewPrimArray, not newPrimArray.
4848 * prims.cc (soft_new): Removed.
4849 (_Jv_NewArray): Renamed from soft_newarray.
4850 (soft_anewarray): Use JvNewObjectArray.
4851 (newArray): Likewise.
4852 (newRefArray): Removed.
4853 (_Jv_NewPrimArray): Renamed from newPrimArray.
4854 (equalUtf8Consts): Now static.
4855 (soft_instanceof): Removed.
4856 * java/lang/natDouble.cc (doubleToString): Now static.
4858 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
4859 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
4862 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
4864 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
4866 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
4868 * include/no-threads.h (JvPrivMutexLock): Always return -1.
4869 (JvPrivMutexUnlock): Likewise.
4870 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
4871 Return value now jint.
4872 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
4875 * Makefile.in: Rebuilt.
4876 * Makefile.am: Don't allow `jV' names.
4877 (maintainer-check): Depend on libjava.a.
4878 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
4880 * Makefile.in: Rebuilt.
4881 * Makefile.am (NM): New macro.
4882 (maintainer-check): New target.
4884 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
4886 * configure: Rebuilt.
4887 * configure.in: Use --enable-threads, not --enable-gc. Fix
4888 documentation for --enable-threads. Changed option to work like
4889 identical option in gcc/configure.
4891 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
4893 * boehm.cc (mark_array): Use JvGetArrayLength.
4895 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
4897 * exception.cc: New file (mostly written by Andrew MacLeod),
4898 exception handling support.
4899 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
4900 Remove -fexceptions - it is now the default.
4902 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
4903 (JvAllocObject): Renamed to _Jv_AllocObject.
4904 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
4905 (loadClass): Renamed to _Jv_FindClass.
4906 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
4907 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
4908 * include/java-lang.h (JvGetArrayLength): New CNI function.
4909 * include/jvm.h (_Jv_FindClass): Added declaration.
4911 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
4913 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
4915 * java/lang/natClass.cc (getName): Add implementation.
4916 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
4918 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
4920 * Makefile.in: Rebuilt.
4921 * Makefile.am (.class.o): Added -fexceptions.
4923 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
4925 * configure: Rebuilt.
4926 * configure.in: Don't check for __nanosleep.
4927 * posix-threads.cc (nanosleep): Never define.
4929 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
4931 * posix-threads.cc (JvPrivCondWait): Fixed computation of
4934 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
4936 * java/lang/natThread.cc (enumerate): Uncommented.
4937 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
4938 (interrupt): Call it.
4940 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
4942 * configure: Rebuilt.
4943 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
4945 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
4947 * include/no-threads.h (JvPrivThreadInterrupt): New method.
4948 * include/java-lang.h (Thread): Added `interrupted_' method.
4949 * java/lang/Thread.java (interrupted_): New method.
4950 * java/lang/natThread.cc (join): Possibly throw interrupted
4951 exception after join finishes.
4952 (interrupted_): New method.
4953 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
4955 (JvPrivThreadJoin): New function.
4956 (really_start): Notify all threads waiting for this thread.
4957 (struct starter): Added `data' member.
4958 (JvPrivThreadStart): Set it.
4959 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
4961 (JvPrivThreadJoin): No longer inline.
4962 (JvPrivThreadInterrupt): New function.
4964 * include/no-threads.h (JvPrivThreadSleep): Removed.
4965 * posix-threads.cc (JvPrivThreadSleep): Removed.
4967 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
4969 * configure: Rebuilt.
4970 * configure.in (THREADOBJS): Initialize to no-threads.o in
4972 * posix-threads.cc (key): New global.
4973 (JvPrivInitThreads): New function.
4974 (really_start): Set thread-specific data to point to object.
4975 (JvPrivThreadStart): Added `daemon' argument.
4976 (JvPrivThreadSleep): Added `data' argument.
4977 * include/posix-threads.h (JvPrivInitThreads): Removed
4979 (JvPrivThreadCurrent): New function.
4980 * include/no-threads.h (JvPrivThreadInitData): Initialize
4981 JvPrivOnlyThread. Added `thread' argument.
4982 (JvPrivThreadCurrent): New function.
4983 (JvPrivThreadStart): Added `daemon' argument.
4984 * no-threads.cc: New file.
4985 * java/lang/natThread.cc (init_data): New function.
4987 (start): Set `alive' member.
4988 (stop_): Clear `alive' member.
4989 (destroy): Likewise.
4990 (currentThread): Implemented.
4991 (start): Pass `daemon' argument to JvPrivThreadStart.
4993 * include/java-lang.h (Thread): Added `alive', `tsync' members.
4994 (Thread): Added `init_data' method.
4995 * java/lang/Thread.java (alive, data): New instance variables.
4996 (init_data): New private method.
4997 (isAlive): No longer native.
4999 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
5001 * include/java-lang.h (JvRunMain): Declare.
5002 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
5003 * prims.cc (JvRunMain): New function.
5004 (main_signature, main_name): New globals.
5006 * boehm.cc (mark_array): Use `elements' function and not
5007 operator[] on jarray.
5009 * posix-threads.cc: Include <config.h>. Define nanosleep if
5012 * configure: Rebuilt.
5013 * configure.in: Check for _nanosleep.
5015 * configure: Rebuilt.
5016 * configure.in: Check for pthread_mutexattr_settype.
5018 * include/cni.h (class JvSynchronize): New class.
5019 * java/lang/Thread.java (sleep): Throws InterruptedException.
5020 (join): Throws InterruptedException.
5021 (resume): Not native.
5022 (resume_): New method.
5023 (start): Now synchronized.
5024 (stop_): New method.
5025 (Thread): Synchronize when accessing threadNumber.
5027 * java/lang/natThread.cc (throwException): New macro.
5028 (sleep): Throw InterruptedException.
5031 * include/java-lang.h (Runtime): Added interrupted().
5033 * boehm.cc (call_finalizer): Correctly initialize jobj.
5034 * include/java-lang.h (Runtime): Added getRuntime() and exit().
5036 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
5039 * configure: Rebuilt.
5040 * configure.in: Added support for --disable-threads.
5041 * include/no-threads.h: New file.
5043 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
5045 * Makefile.in: Rebuilt.
5046 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
5047 (libjava_a_DEPENDENCIES): Added THREADOBJS.
5048 (libjava_a_LIBADD): Added THREADOBJS.
5049 * configure: Rebuilt.
5050 * configure.in: Added --with-threads option.
5051 * posix-threads.cc: New file.
5052 * include/posix-threads.h: New file.
5053 * include/java-lang.h (Object): Added static member sync_mutex,
5054 member sync_info, method init_mutex.
5055 (struct JvSyncInfo): New struct.
5056 Include "java-threads.h".
5057 * prims.cc (soft_monitorenter): Wrote.
5058 (soft_monitorexit): Likewise.
5059 * java/lang/natObject.cc (init_mutex): New method.
5063 (sync_mutex): Define.
5064 Include "java-threads.h".
5066 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
5068 * include/java-lang.h (JvPrivInitGC): Make extern "C".
5069 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
5071 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
5073 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
5074 Added extern "Java" in places to tell G++ Object is a "Java" type.
5075 Other minor renaming and fixes.
5076 * include/java-io.h (FileDescriptor): Add friend class declarations.
5077 G++ no longer allows non-Java types in method parameters and results
5078 of Java classes. Converted most offending methods to friends.
5079 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
5080 * java/lang/natSystem.cc (setProperty): Make friend.
5081 * java/lang/natString.cc, include/java-lang.h (String): Rename
5082 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
5083 * include/java-lang.h (JArray): Remove getData and eoprator[].
5084 Add elements friend function instead.
5085 * java/lang/natSystem.cc (arraycopy): Use elements function.
5086 * java/io/natFileDescriptor.cc (read, write): Likewise.
5087 * include/java-lang.h (Object): Remove unused make method.
5088 (System::setProperty(char*,char*)): Turn into friend function.
5089 (Class): Rename newObject by JvAllocObject.
5090 * prims.cc: Update to use JvAllocObject, and elements.
5092 * java/lang/natDouble.cc: Fix double -> jdouble.
5094 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
5096 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
5098 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
5100 * java/lang/natRuntime.cc (finalize_on_exit): Define.
5101 * include/java-lang.h (Runtime): finalize_on_exit and
5102 runFinalizersOnExit now static.
5103 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
5105 (finalize_on_exit): Now static.
5107 * boehm.cc (mark_obj): Get class using getClass() method on
5109 (_dispatchTable): Removed.
5111 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
5113 * java/io/natFileDescriptor.cc (open_read): Only call open if
5115 (open_write): Likewise.
5117 * Makefile.in: Rebuilt.
5118 * Makefile.am ($(nat_files)): Depend on config.h.
5120 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
5122 * prims.cc (ObjectClass): Now a macro; updated for new class name
5124 (StringClass): Likewise.
5125 (ClassClass): Likewise.
5127 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
5129 * java/io/natFileDescriptor.cc (available): Do nothing unless
5130 HAVE_SELECT defined.
5131 * java/util/natDate.cc (setTime): Conditional on
5133 (toString): Conditional on HAVE_TIME.
5134 * aclocal.m4, configure: Rebuilt.
5135 * acinclude.m4: New file.
5136 * configure.in: Don't actually call AM_EXEEXT. Call
5137 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
5138 --with-target-subdir option. Check for select and open
5141 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
5143 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
5144 (call_finalizer): Likewise.
5145 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
5146 * prims.cc (newObject): Pass actual method pointer to
5147 JvPrivRegisterFinalizer.
5148 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
5149 (JvPrivRegisterFinalizer): Changed interface.
5151 * Makefile.in: Rebuilt.
5152 * Makefile.am (MOSTLYCLEANFILES): New macro.
5153 (CLEANFILES): Removed javao_files.
5155 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
5157 * nogc.cc: New file.
5158 * Makefile.in: Rebuilt.
5159 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
5160 (EXTRA_libjava_a_SOURCES): New macro.
5161 (libjava_a_SOURCES): Removed boehm.cc.
5162 (libjava_a_DEPENDENCIES): Added GCOBJS.
5163 (libjava_a_LIBADD): Likewise.
5164 * configure: Rebuilt.
5165 * configure.in: Added code for --enable-gc=TYPE.
5167 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
5169 * boehm.cc (mark_array): Don't further dereference pointer from
5172 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
5173 * Makefile.in: Rebuilt.
5174 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
5175 one for boehm-gc build directory.
5177 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
5179 * include/java-lang.h (finalize_on_exit): New instance variable in
5180 java::lang::Runtime.
5181 (runFinalizersOnExit): New method.
5182 * java/lang/Runtime.java (finalize_on_exit): New instance
5184 (runAllFinalizers_): New private method.
5185 (runFinalizersOnExit): New method.
5186 * boehm.cc (JvPrivRunFinalizers): New function.
5187 (JvPrivRunAllFinalizers): Likewise.
5188 (JvPrivRunGC): Likewise.
5189 * java/lang/natRuntime.cc: Include "jvm.h".
5190 (gc): Call JvPrivRunGC.
5191 (runFinalization): Call JvPrivRunFinalizers.
5192 (runFinalizersOnExit): New method.
5193 (exit_): Call JvPrivRunAllFinalizers if required.
5194 * include/jvm.h: Declare JvPrivRunFinalizers,
5195 JvPrivRunAllFinalizers, JvPrivRunGC.
5197 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
5199 * boehm.cc (JvPrivRegisterFinalizer): New function.
5200 (call_finalizer): Likewise.
5201 * include/jvm.h: Declare JvPrivRegisterFinalizer.
5202 * prims.cc (finalize_name): New global.
5203 (newObject): Just call other newObject.
5204 (newObject): Register finalizer if it exists.
5206 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
5208 * prims.cc (gc_malloc): Removed.
5209 (makeUtf8Const): Use JvPrivAllocBytes.
5210 (lookupArray): Likewise.
5211 (newPrimArray): Likewise.
5212 (JvNewObjectArray): Use JvPrivAllocArray.
5213 (newObject): Use JvPrivAllocObj.
5214 (newObject): Likewise.
5215 Changed Method -> JvMethod everywhere.
5216 Changed Field -> JvField everywhere.
5217 * include/java-lang.h (Object): Changed type of `fields' to
5219 (jmethodID, jfieldID): New typedefs.
5220 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
5222 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
5224 (METHOD_NATIVECODE): Moved from java-lang.h.
5225 (class JvField): New class.
5226 (JvGetFirstInstanceField): New function.
5227 (JvFieldIsRef): Likewise.
5228 (JvGetObjectField): Likewise.
5229 (JvNumInstanceFields): Likewise.
5231 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
5233 * boehm.cc: New file.
5234 * Makefile.in: Rebuilt.
5235 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
5236 (INCLUDES): Added -I options to find boehm-gc files.
5238 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
5240 * configure: Rebuilt.
5241 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
5243 * Makefile.in: Rebuilt.
5244 * Makefile.am (nat_files): New macro.
5245 (libjava_a_DEPENDENCIES): Use it.
5246 (libjava_a_LIBADD): Likewise.
5247 ($(nat_files)): New static pattern rule.
5248 (class_files): Run separate find to find .class files.
5249 (javao_files): Compute based on class_files.
5250 (BUILT_SOURCES): New macro.
5252 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
5254 * Makefile.am (java_files): New macro.
5255 (class_files): Likewise.
5256 (javao_files): Likewise.
5257 (libjava_a_DEPENDENCIES): Include $(javao_files).
5258 (libjava_a_LIBADD): Likewise.
5259 (classes.stamp): Depend on $(java_files); only recompile changed
5262 (CLEANFILES): Don't run find; use macros. Don't mention
5264 (.class.o): New target.
5265 (compiled.stamp): Removed.
5267 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
5269 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
5270 LineNumberReader}>java: Newly-implemented standard classes.
5272 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
5274 * Makefile.in: Rebuilt.
5275 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
5277 * Makefile.in: Rebuilt.
5278 * Makefile.am (hack): New macro.
5279 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
5281 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
5283 * include/config.h.in: New file.
5284 * include/config.h: Removed.
5285 * acconfig.h: New file.
5286 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
5287 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
5288 libjava_a_LIBADD): New macros.
5289 (INCLUDES): New macro.
5292 (SUFFIXES): Removed.
5294 (libjava.a): Removed.
5296 * configure: Rebuilt.
5297 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
5298 Look for headers and functions we require. Create
5301 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
5303 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
5304 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
5305 soft_lookupinterfacemethod): New functions.
5306 (PrimClass): Actually initialize the primitive classes.
5307 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
5309 * include/java-util.h: Removed java::util definition.
5310 * include/cni.h: Moved java::util here and added Properties.
5311 Added more function prototypes.
5312 * include/java-lang.h: Added mroe methods and friend declarations.
5313 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
5314 * include/jvm.h (strLengthUtf8): Add declaration.
5316 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
5318 * java/lang/{Byte,Short,Void}.java: New classes.
5319 * java/lang/Character.java (isJavaIdentifierStart,
5320 JavaIdentifierPart): New static methods.
5321 * java/lang/Number.java (byteValue, shortValue): New methods.
5323 * java/lang/String.java (intern, hashCode): Make native.
5324 * java/lang/natString.cc: New file. Handle the string pool.
5325 * Makefile.am: Build natString.o. Use CXXFLAGS.
5327 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
5328 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
5329 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
5330 * java/lang/System.java (setProperty): New private method.
5331 (initProperties): Take argument, and make native.
5332 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
5333 (currentTimeMillis): Make more robust.
5335 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
5336 * java/io/UnsupportedEncodingException.java: New exception class.
5338 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
5339 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
5341 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
5343 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
5344 * prims.cc: Added bunch of stuff.
5345 * include/cni.h: Added various definitions.
5346 * include/java-lang.h: Added Method, various friends, some macros.
5348 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
5349 * java/lang/System.java (arraycopy): Make native.
5351 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
5353 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
5354 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
5355 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
5356 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
5358 * java/lang/Runtime.java: Declare methods as native instead of
5360 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
5361 * java/lang/System.java: Comment out some stuff, for now.
5362 * java/lang/Thread.java: Re-write. Use native methods.
5363 * java/lang/NativeLang.java: Remove most of it.
5365 * java/util/natDate.cc: Native (C++) methods for Date.
5366 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
5367 * java/util/Date.java: Complete re-write.
5369 * java/io/io-defs.h: New header file.
5370 * java/io/FileDescriptor.java: Add a bunch of private methods,
5371 mostly moved from NativeIO.java and natNativeIO.cc.
5372 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
5373 * java/io/File.java: Use new code.
5374 * java/io/{FileInputStream.java.FileOutputStream.java,
5375 RandomAccessFile.java}: Use new private FileDescriptor methods.
5376 * java/io/NativeIO.java: Removed, no longer used.
5378 * java/io/StreamTokenizer.java (numericChars): Make char array.
5380 * include/*.h: Various header files used by the C++ native code.
5382 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
5383 New autoconf+automake-based setup.
5384 * prims.cc: New file for Java "primitives".