1 1999-05-07 Tom Tromey <tromey@cygnus.com>
3 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
4 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
7 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
8 (we pick those up already).
10 1999-05-05 Per Bothner <bothner@cygnus.com>
12 * java/awt/*: Check a bunch of classes, a few complete, but mostly
13 stub classes. (This is enough to get Kawa to compile against libgcj.)
15 * gnu/gcj/RawData.java: New class.
16 * doc/cni.sgml: Document RawData.
18 * java/util/zip/InflaterInputStream.java: New stub class.
19 * java/util/zip/ZipInputStream.java: New class. Partly works.
20 * java/util/zip/ZipConstants.java: Add two (internal) constants.
21 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
22 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
23 * java/util/zip/ZipOutputStream.java: Start implementation.
25 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
26 (default_file_encoding): New global, initial value is above macro.
27 (init_properties): Default file.encoding to default_file_encoding.
29 * Makefile.am: Add new classes.
31 1999-05-05 Tom Tromey <tromey@cygnus.com>
33 * Makefile.in: Rebuilt.
34 * Makefile.am (CLEANFILES): Don't mention $(class_files).
35 (clean-local): New target
37 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
38 (load, loadLibrary): Now native.
40 * java/lang/Runtime.java (load, loadLibrary): Now native.
41 (init): New native method.
43 * prims.cc: Include <ltdl.h> if required.
44 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
46 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
48 * configure.in: Switch from irix threads to posix threads
49 * configure: Regenerate.
51 1999-04-30 Tom Tromey <tromey@cygnus.com>
53 * Makefile.in: Rebuilt.
54 * Makefile.am (jv_convert_LDADD): Added -lgcc.
56 1999-04-29 Tom Tromey <tromey@cygnus.com>
58 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
61 * java/util/Locale.java (Locale(String,String)): Implement in
62 terms of 3-argument version; variant now defaults to empty
64 (toString): Assume variant is not null.
65 (equals): Assume all strings are not null.
66 (Locale): Throw NullPointerException if any argument is null.
68 * java/util/ResourceBundle.java (getBundle): Don't try the base
69 name; now implicit in partialGetBundle call.
70 (trySomeGetBundle): Search for parent bundles and call setParent
72 (partialGetBundle): Added `langStop' argument. Use
73 `Locale.toString' to compute bundleName.
74 (resource_cache): New static field.
75 (partialGetBundle): Cache the returned resource bundle. Now
78 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
81 * mauve-libgcj: Enable Collator and RuleBasedCollator.
82 * java/text/natCollator.cc (decomposeCharacter): `base' now
84 * Makefile.in: Rebuilt.
85 * Makefile.am (ordinary_java_source_files): Added
86 CollationElementIterator, CollationKey, Collator,
88 (nat_source_files): Added natCollator.cc.
89 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
90 (compare): Pass `this' to CollationElementIterator constructor.
91 (getCollationElementIterator): Likewise.
92 (ceiNext): Fix off-by-one error when finding initial substring.
93 (next): Correctly mask off bits when computing return value.
94 Fixed return values when one string is shorter than the other.
95 * java/text/CollationElementIterator.java (collator): New field.
96 (CollationElementIterator): Added collator argument.
97 (next): Call ceiNext on collator object.
99 1999-04-26 Tom Tromey <tromey@cygnus.com>
101 * natCollator.cc: New file.
103 * java/util/GregorianCalendar.java (setDefaultTime): New method.
104 (GregorianCalendar): Use it in all constructors.
105 * java/util/Calendar.java (Calendar): Changed argument name to
106 `zone' to match code.
108 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
109 * java/text/CollationKey.java: New file.
110 * java/text/CollationElementIterator.java: New file.
111 * java/text/Collator.java: New file.
112 * java/text/RuleBasedCollator.java: New file.
114 * Makefile.in: Rebuilt.
115 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
116 (jv_convert_LDADD): Explicltly add -lm -lc.
118 1999-04-26 Tom Tromey <tromey@cygnus.com>
120 * configure, Makefile.in: Rebuilt.
121 * configure.in: Added AM_PROG_LIBTOOL.
122 (GCOBJS): Use `.lo' form of files.
123 (THREADOBJS): Likewise.
124 (GCDEPS): Use `.la' form of library.
125 (GCLIBS): Set to be the same as GCDEPS.
126 (THREADDEPS): Use `.la' form of library.
127 (THREADLIBS): Set to be the same as THREADDEPS.
128 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
129 toolexeclib_LIBRARIES.
130 (libgcj_la_SOURCES): Renamed for libtoolization.
131 (EXTRA_libgcj_la_SOURCES): Likewise.
132 (libgcj_la_DEPENDENCIES): Likewise.
133 (libgcj_la_LIBADD): Likewise.
134 ($(nat_files)): Use LTCXXCOMPILE.
135 ($(c_files)): Use LTCOMPILE.
136 (GCJCOMPILE): New macro.
139 ($(javao_files)): Likewise.
140 (jv_convert_LINK): Use LIBTOOL.
141 (nat_files): Use `.lo' files.
143 (javao_files): Likewise.
144 (.class.lo): Renamed.
145 (.java.lo): Likewise.
146 ($(nat_files)): Depend on %.lo.
147 ($(c_files)): Likewise.
148 ($(javao_files)): Likewise.
149 (jv_convert_LDADD): Link against .lo files.
150 (jv_convert_DEPENDENCIES): Depend on .lo files.
151 (maintainer-check): Depend on libgcj.la, but examine .a file.
152 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
153 (libgcj_la_LDFLAGS): New macro.
155 1999-04-23 Warren Levy <warrenl@cygnus.com>
157 * Makefile.am: Added URLDecoder and URLEncoder.
158 * Makefile.in: Rebuilt.
160 * java/net/ServerSocket.java (setSocketFactory): Renamed from
161 setSocketImplFactory to match spec.
162 * java/net/Socket.java (getSoLinger): Changed return type to
165 * java/net/URLDecoder.java: New file.
166 * java/net/URLEncoder.java: New file.
168 1999-04-21 Tom Tromey <tromey@cygnus.com>
170 * java/lang/natString.cc (getBytes): Reverted earlier change and
171 applied correct fix from Per Bothner.
173 * java/lang/String.java: Don't throw
174 UnsupportedEncodingException.
176 * java/lang/natString.cc (getBytes): Correctly size result
177 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
179 1999-04-20 Andrew Haley <aph@cygnus.com>
181 * include/sparc-signal.h: new file.
182 * configure.in: include/sparc-signal.h added.
183 * configure: regenerated.
184 * prims.cc (JvRunMain): signal handling code rewritten to be more
188 * include/i386-signal.h: reorganized.
189 * include/default-signal.h: reorganized.
191 1999-04-19 Tom Tromey <tromey@cygnus.com>
193 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
194 once. From Anthony Green.
196 1999-04-19 Andrew Haley <aph@cygnus.com>
198 * Makefile.in: Processed with new automake.
200 1999-04-19 Tom Tromey <tromey@cygnus.com>
202 * include/javaprims.h: Removed security namespace.
204 1999-04-20 Anthony Green <green@cygnus.com>
206 * java/io/PrintStream.java (println): Remove extra println.
208 1999-04-19 Anthony Green <green@cygnus.com>
210 * Makefile.in: Rebuilt.
211 * Makefile.am (ordinary_java_source_files): Add new security files.
213 * java/security/NoSuchAlgorithmException.java,
214 java/security/MessageDigest.java: New files.
216 * include/javaprims.h: Add security namespace.
218 1999-04-16 Per Bothner <bothner@cygnus.com>
220 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
221 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
222 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
223 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
224 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
225 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
226 * gnu/gcj/convert/natInput_SJIS.cc: New file.
227 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
228 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
229 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
230 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
231 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
232 * Makefile.am: Various changes for new files and conversions.
234 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
235 New overloading, allows greater efficiency.
236 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
237 New overloading (for efficiency - avoids copying).
239 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
240 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
242 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
243 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
244 (writeChars): Don't be quite so eager to flush.
245 * java/io/PrintStream.java: Rewrite. Now more similar to
246 OutputStreamWriter, using explicit UnicodeToBytes converter.
247 Also, autoflush does not need to flush so often.
248 * java/lang/natString.cc (getBytes): More efficient algorithm.
249 (init(jbyteArray,jint,jint,jstring)): More efficient.
251 1999-04-15 Warren Levy <warrenl@cygnus.com>
253 * Makefile.am (ordinary_java_source_files): Added new Connection
254 and Handler classes in gnu.gcj.protocol.file package.
255 * Makefile.in: Rebuilt.
257 * gnu/gcj/protocol/file/Connection.java: New file.
258 * gnu/gcj/protocol/file/Handler.java: New file.
259 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
260 if doInput allows input.
261 (getOutputStream): Check if doOutput allows output.
262 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
264 1999-04-14 Tom Tromey <tromey@cygnus.com>
266 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
267 buffer larger to work around bug.
268 From Bryce McKinlay <bryce@albatross.co.nz>.
270 1999-04-14 Andrew Haley <aph@cygnus.com>
272 * java/lang/natDouble.java (doubleToLongBits): ensure that all
273 NaNs are always converted to the same long value.
274 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
277 1999-04-13 Tom Tromey <tromey@cygnus.com>
279 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
280 instead switch on actual element type.
282 * Makefile.in: Rebuilt.
283 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
285 1999-04-13 Andrew Haley <aph@cygnus.com>
287 * include/i386-signal.h, include/default-signal.h: New files.
288 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
290 (catch_fpe): New function.
291 * configure.in: Make link to appropriate include/java-signal.h.
292 * configure: Rebuilt.
293 * Makefile.am: include/java-signal.h added to dependency list.
294 * Makefile.in: Rebuilt.
296 1999-04-12 Urban Widmark <urban@svenskatest.se>
298 * java/io/DataInputStream.java (readLine): Corrected handling of
299 empty lines, from null to "".
301 1999-04-12 Tom Tromey <tromey@cygnus.com>
303 * Makefile.in: Rebuilt.
304 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
306 * java/lang/natSystem.cc (SystemClass): New define.
307 (init_properties): Synchronize.
309 1999-04-08 Geoff Berry <gcb@gnu.org>
311 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
312 * natPlainSocketImpl.cc (accept): Add missing else if check
315 1999-04-08 Tom Tromey <tromey@cygnus.com>
317 * java/lang/Long.java (parseLong): Corrected overflow detection
319 * java/lang/Integer.java (parseInt): Corrected overflow detection
322 * java/io/PrintStream.java (print): Handle null string argument.
325 1999-04-07 Warren Levy <warrenl@cygnus.com>
327 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
328 Set count to 0 when InputStreamReader returns -1 for EOF.
330 1999-04-07 Tom Tromey <tromey@cygnus.com>
332 * mauve-libgcj: Omit java.text.Collator,
333 java.text.RuleBasedCollator.
335 1999-04-06 Tom Tromey <tromey@cygnus.com>
337 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
338 IOException from getHttpHeaders().
339 (getHeaderFieldKey): Likewise.
341 * include/javaprims.h: Regenerated declarations.
343 * Makefile.in: Rebuilt.
344 * Makefile.am (ordinary_java_source_files): Updated for removed
347 1999-04-06 Per Bothner <bothner@cygnus.com>
349 * java/util/zip/Adler32.java: New class.
350 * java/util/zip/CRC32.java: Add working method bodies.
351 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
352 * Makefile.in: Re-generate.
354 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
356 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
357 from version in removed www hierarchy.
358 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
359 version in removed www hierarchy.
361 * gnu/gcj/www/protocol/http/Connection.java: Removed.
362 * gnu/gcj/www/protocol/http/Handler.java: Removed.
363 * gnu/gcj/www/protocol/http: Removed dir.
364 * gnu/gcj/www/protocol: Removed dir.
365 * gnu/gcj/www: Removed dir.
367 * java/net/HttpURLConnection.java: Revised comments to indicate
368 missing JDK 1.2 methods.
370 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
371 hierarchy rather than the gnu/gcj/www/protocol one.
372 * java/net/URLConnection.java: Updated status comments.
373 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
374 the gnu/gcj/www/content one.
376 1999-04-06 Per Bothner <bothner@cygnus.com>
378 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
379 The gen-from-JIS program is in $(CONVERT_DIR).
381 1999-04-06 Tom Tromey <tromey@cygnus.com>
383 * mauve-libgcj: Renamed from mauve-libjava.
385 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
387 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
388 (getResponseMessage): Implemented.
389 (getResponseVals): New private method.
391 * java/net/URLConnection.java (getContent): Implemented.
392 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
394 1999-04-05 Tom Tromey <tromey@cygnus.com>
396 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
397 (jv_convert_SOURCES): Renamed.
398 (EXTRA_jv_convert_SOURCES): Likewise.
399 (jv_convert_LDFLAGS): Likewise.
400 (jv_convert_LINK): Likewise.
401 (jv_convert_LDADD): Likewise.
402 (jv_convert_DEPENDENCIES): Likewise.
404 * Makefile.in: Rebuilt.
405 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
408 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
410 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
411 method for comparison.
413 * java/net/URLConnection.java (getContentLength): Implemented.
414 (getContentType): Implemented.
415 (getContentEncoding): Implemented.
416 (getExpiration): Implemented.
417 (getDate): Implemented.
418 (getLastModified): Implemented.
419 (getHeaderFieldInt): Implemented.
420 (getHeaderFieldDate): Implemented.
422 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
424 * java/net/URLConnection.java (toString): Implemented.
425 (setContentHandlerFactory): Implemented.
426 (setContentHandler): Wrote new private helper method.
428 1999-04-01 Tom Tromey <tromey@cygnus.com>
430 * Makefile.in: Rebuilt.
431 * Makefile.am ($(java_source_files:.java=.class): Reverted change
432 of 1999-03-31; we always want to build all the .class files.
433 Depend on java_source_files, not libgcj.zip.
434 (nat_headers): Define in terms of ordinary_java_source_files.
436 1999-03-31 Tom Tromey <tromey@cygnus.com>
438 * Makefile.in: Rebuilt.
439 * Makefile.am (special_java_source_files): New macro.
440 (java_source_files): Use it.
441 (ordinary_java_source_files): New macro.
442 (java_source_files): Use it.
443 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
444 creating headers for those files with hand-maintained headers.
446 * include/javaprims.h: Regenerated namespace declarations.
447 * classes.pl (scan): Include [0-9] in regexp for matching class
448 names; for java.util.zip.CRC32.
450 * Makefile.in: Rebuilt.
451 * Makefile.am (nat_headers): Redefined to generate all possible
454 * java/util/zip/ZipException.java: In package java.util.zip, not
457 1999-03-30 Tom Tromey <tromey@cygnus.com>
459 * configure: Rebuilt.
460 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
461 eh-common.h when not building in tree with gcc.
463 * Makefile.in: Rebuilt.
464 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
465 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
467 ($(java_source_files:.java=.class)): New target.
469 * Makefile.in: Rebuilt.
470 * Makefile.am (java_source_files): Added
471 java/net/HttpURLConnection.java and
472 gnu/gcj/www/protocol/http/Connection.java.
474 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
476 * gnu/gcj/www/protocol/http/Connection.java: New file.
477 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
478 * java/net/HttpURLConnection.java: New file.
479 * java/net/URLConnection.java (getHeaderField): Implemented default.
480 (getHeaderFieldKey): Implemented default method.
482 1999-03-30 Tom Tromey <tromey@cygnus.com>
484 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
486 * java/util/zip/Deflater.java: Added copyright header.
487 * java/util/zip/CRC32.java: Added copyright header.
489 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
490 that it is automatically generated.
491 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
493 * gnu/gcj/convert/BytesToUnicode.java,
494 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
495 gnu/gcj/convert/Input_EUCJIS.java,
496 gnu/gcj/convert/Input_UTF8.java,
497 gnu/gcj/convert/JIS0208_to_Unicode.cc,
498 gnu/gcj/convert/JIS0212_to_Unicode.cc,
499 gnu/gcj/convert/Output_8859_1.java,
500 gnu/gcj/convert/Output_JavaSrc.java,
501 gnu/gcj/convert/Output_UTF8.java,
502 gnu/gcj/convert/UnicodeToBytes.java,
503 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
505 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
507 * Makefile.in, configure: Rebuilt.
508 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
509 not if test subdir exists.
510 (--enable-gcj-classes): Removed; gcj always used to generate
512 (JAVA, JAVAC): Removed.
513 (--enable-single-compilation, --enable-source-compilation):
516 (NATIVE): New conditional.
517 * Makefile.am (toolexecdir): Renamed from tooldir to allow
518 `install-exec' to work.
519 (toolexeclibdir): Likewise.
520 (toollib_LIBRARIES): Likewise.
521 (AM_MAKEFLAGS): Don't pass tooldir.
523 (javao_files): Redefined.
524 (java_source_files): New macro.
525 (c_source_files): New macro.
526 (c_files): Redefined in terms of c_source_files.
527 (java_io_files, java_lang_files, java_net_files, java_text_files,
528 java_util_files, gnu_files, java_files): Removed.
529 (class_io_files, class_lang_files, class_net_files,
530 class_text_files, class_util_files, class_gnu_files, class_files):
532 (nat_source_files): New macro.
533 (nat_files): Redefined in terms of nat_source_files.
534 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
535 java_source_files. Removed no-such-file.c.
537 (ETAGS_ARGS): Removed.
538 (TAGS_DEPENDENCIES): Likewise.
539 (libgcj.zip): Depend on java_source_files. Use $(here) and not
541 (src_io_files, src_lang_files, src_text_files, src_util_files,
542 src_gnu_files): Removed.
543 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
544 (BUILT_SOURCES): Removed.
545 (header-check): New target.
547 (noinst_PROGRAMS): New macro.
548 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
550 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
551 (gen-from-JIS): Build in top directory.
552 (convert_source_files): New macro.
553 (convert_SOURCES): New macro.
554 (convert_LDFLAGS): Likewise.
555 (convert_LINK): Likewise.
556 (convert_LDADD): Likewise.
557 (convert_DEPENDENCIES): Likewise.
559 (gen-from-JIS): Removed.
560 (gen_from_JIS_SOURCES): New macro.
561 (gen_from_JIS_LDADD): Likewise.
562 (gen_from_JIS_DEPENDENCIES): Likewise.
564 * configure: Rebuilt.
565 * configure.in (CANADIAN): Set to `yes', not `canadian'.
566 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
567 when defining conditional.
569 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
571 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
572 The Unicode Consortium does not permit their re-distribution.
573 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
574 (JIS0208.h, JIS0212.h): Do not depend on removed files.
576 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
578 * natSystem.c (init_properties): Use malloc, realloc, free after all.
580 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
582 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
583 from Unicode Consortium.
584 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
585 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
586 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
587 New tables, generated using gen-from-JIS.
588 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
589 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
590 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
591 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
593 * gnu/gcj/convert/Convert.java: New application.
594 * Makefile.am, Makefile.in (convert): New program, using Convert.
595 Build the various JIS conversion tables (in maintainer mode).
597 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
599 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
601 * java/net/URL.java (URL): Deal with null property value. Use "."
602 as separator in building class name.
603 * java/net/URLConnection.java: Implemented majority of stubbed methods.
604 * java/net/URLStreamHandler.java (parseURL): Use "" in string
605 manipulations instead of 'null'. Comment cleanup. Use 0 for the
606 beginning of the substring rather than 'start'.
608 1999-03-26 Tom Tromey <tromey@cygnus.com>
610 * include/java-chartables.h: Rebuilt.
611 * include/java-chardecomp.h: New file.
612 * chartables.pl: Generate output files directly. Added support
613 for generating decomposition header.
614 (canonical_decomposition, full_decomposition): New globals.
615 (DECOMPOSITION): New constant.
616 (process_char): Call add_decomposition.
617 (add_decomposition): New sub.
618 (write_decompositions): New sub.
620 1999-03-25 Tom Tromey <tromey@cygnus.com>
622 * java/text/CollationElementIterator.java: New file.
624 * mauve-libjava: Omit StringTest.
626 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
628 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
629 without a '/' when parsing protocol. Handle ref outside of parseURL.
630 (hashCode): Implemented.
631 (set): Don't expand -1 to default port.
632 (getDefaultPort): Removed.
634 * java/net/URLStreamHandler.java (parseURL): Implemented.
635 (toExternalForm): Implemented.
637 1999-03-23 Tom Tromey <tromey@cygnus.com>
639 * java/text/BreakIterator.java (getSentenceInstance):
641 * gnu/gcj/text/SentenceBreakIterator.java: New file.
643 * Makefile.in: Rebuilt.
644 * Makefile.am (nat_headers): Added IllegalAccessException.
645 * java/lang/natClass.cc (newInstance): Throw
646 IllegalAccessException, not IllegalAccessError.
647 Include IllegalAccessException.h.
649 1999-03-22 Tom Tromey <tromey@cygnus.com>
651 * gnu/gcj/text/LineBreakIterator.java: New file.
652 * java/text/BreakIterator.java (getLineInstance): Implemented.
654 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
655 copy constructor private.
656 (previous, next): Removed erroneous comment about line
658 (previous): Correctly recognize break between non-letter on the
659 left and letter on the right. Handle apostrophes correctly.
661 * java/text/BreakIterator.java (getWordInstance): Implemented.
662 * gnu/gcj/text/WordBreakIterator.java: New file.
663 * gnu/gcj/text/CharacterBreakIterator.java: Extend
665 * gnu/gcj/text/BaseBreakIterator.java: New file.
667 1999-03-19 Tom Tromey <tromey@cygnus.com>
669 * java/text/BreakIterator.java: New file (partially stubbed out).
670 * gnu/gcj/text/CharacterBreakIterator.java: New file.
672 * include/config.h.in: Rebuilt.
673 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
674 (HAVE_TIMEZONE): Likewise.
675 * configure: Rebuilt.
676 * configure.in: Added timezone checks.
677 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
680 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
682 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
683 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
684 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
685 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
686 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
687 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
688 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
689 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
691 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
692 (BSD_COMP): Kludge needed for Solaris2.
694 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
696 * java/net/URL.java (URL(java.net.URL, string): Moved code to
697 URL(java.net.URL, string, URLStreamHandler) and call it with a
698 null handler. In latter constructor, added SecurityManager check.
699 (set): Expect null handler on bad protocol rather than an exception.
700 (setURLStreamHandler): Simplified exception handling; return null
703 1999-03-18 Tom Tromey <tromey@cygnus.com>
705 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
707 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
709 Include PrintStream.h, InputStream.h.
710 * java/lang/System.java (ForwardingInputStream,
711 ForwardingOutputStream): Removed.
712 (setErr, setIn, setOut): Now native.
714 Reverted patch from 1999-02-12 to work around problem in
716 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
717 (_Jv_eh_free): Use free.
719 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
720 for path name. Minor formatting fixes.
722 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
724 * prims.cc (fail_on_finalization): New function.
725 (_Jv_GCWatch): Likewise.
727 * prims.cc (JvRunMain): Initialize `nullp'.
729 (catch_segv): Throw nullp.
731 * Makefile.in: Rebuilt.
732 * Makefile.am (ZIP): In "null target" case, zip is found in the
735 * prims.cc (_Jv_PrimClass): Initialize all elements of class
739 * java/lang/StringBuffer.java (StringBuffer): Don't use
740 ensureCapacity to set initial capacity.
741 (capacity): Subtract `length' from return result.
743 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
745 * java/io/natFileDescriptorPosix.cc (open): Throw
746 FileNotFoundException, but with filename and errno in msg.
748 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
750 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
751 functionality folded into java/net/URL.java per spec.
753 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
754 than EEXIST for throwing FileNotFoundException.
756 * java/net/URL.java: Folded in default URLStreamHandlerFactory
757 algorithm per JDK 1.2 doc. Added SecurityManager checks.
759 * java/net/URLStreamHandler.java (parseURL): Added stub.
761 1999-03-15 Andrew Haley <aph@cygnus.com>
763 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
766 1999-03-15 Andrew Haley <aph@cygnus.com>
768 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
771 1999-03-12 Tom Tromey <tromey@cygnus.com>
773 * prims.cc (catch_segv): New function.
774 Include <signal.h> if HANDLE_SEGV defined. Include
775 NullPointerException.h.
776 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
779 * java/text/SimpleDateFormat.java (equals): Ensure that object is
780 a SimpleDateFormat, not just a DateFormat.
781 (defaultCenturyStart, formatData, pattern): Now private.
782 (append): Now `final'. Use `NumberFormat.format'.
784 (SimpleDateFormat): Turn off groupin in NumberFormat object.
786 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
789 * java/text/MessageFormat.java (format): Use default MessageFormat
791 (parse, parseObject): Wrote.
793 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
796 1999-03-12 Andrew Haley <aph@cygnus.com>
798 * java/lang/String.java (indexOf): Replace with native method for
800 * java/lang/natString.cc (IndexOf): As above.
802 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
803 Argument check corrected.
804 (init(jbyteArray,jint,jint,jstring)): Likewise.
806 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
807 1.2 compliant method.
809 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
811 * java/lang/Float.java (byteValue, shortValue): Likewise.
813 1999-03-11 Tom Tromey <tromey@cygnus.com>
815 * java/text/DecimalFormat.java (parse): Wrote.
817 * java/text/ChoiceFormat.java (parse): Set error index on
818 ParsePosition object.
820 * java/lang/Integer.java (parseInt): Throw exception on overflow
821 when intermediate result is most negative number. Changed
822 overflow detection as well.
823 * java/lang/Long.java (parseLong): Likewise.
825 * configure, Makefile.in: Rebuilt.
826 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
827 CANADIAN when building in source tree that doesn't include gcc.
828 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
831 * java/text/ChoiceFormat.java (nextDouble): Correct some
832 off-by-one errors when masking or adding.
834 * java/text/DecimalFormat.java (format): Fill in FieldPosition
835 parameter, if given. Use `%', not IEEEremainder.
836 (scanFix): Throw error if multiplier already set.
837 (computePattern): Wrote.
839 1999-03-11 Andrew Haley <aph@cygnus.com>
841 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
843 (nextDouble): Corrected masking logic. Handle interaction between
844 `next' and negative numbers.
846 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
848 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
849 * java/net/URL.java: Added general comments.
851 1999-03-10 Tom Tromey <tromey@cygnus.com>
853 * java/text/ChoiceFormat.java (parse): Wrote.
855 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
857 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
858 Create ChoiceFormat objects.
859 (format): Special-case ChoiceFormat.
860 (scanFormatElement): Include { and } in generated style string.
862 1999-03-09 Tom Tromey <tromey@cygnus.com>
864 * java/text/ChoiceFormat.java: New file.
866 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
868 * java/net/BindException.java: Created.
869 * java/net/ConnectException.java: Created.
870 * java/net/ContentHandler.java: Created.
871 * java/net/ContentHandlerFactory.java: Created.
872 * java/net/FileNameMap.java: Created.
873 * java/net/MalformedURLException.java: Created.
874 * java/net/NoRouteToHostException.java: Created.
875 * java/net/ProtocolException.java: Created.
876 * java/net/ServerSocket.java (@author): Fixed typo.
877 * java/net/Socket.java (@author): Fixed typo.
878 * java/net/SocketImpl.java (@author): Fixed typo.
879 * java/net/SocketImplFactory.java (@author): Fixed typo.
880 * java/net/URL.java: Created - nearly complete.
881 * java/net/URLConnection.java: Created - near-empty stub.
882 * java/net/URLStreamHandler.java: Created - incomplete stub.
883 * java/net/URLStreamHandlerFactory.java: Created.
884 * java/net/UnknownServiceException.java: Created.
886 1999-03-09 Tom Tromey <tromey@cygnus.com>
888 * java/lang/System.java (ForwardingInputStream): New class.
889 (ForwardingOutputStream): Likewise.
890 (in, out, err): Now `final' forwarding streams.
891 (setIn, setOut, setErr): Use appropriate method on forwarding
894 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
897 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
899 * java/util/zip/CRC32.java: New class (just an incomplete stub).
900 * java/util/zip/Checksum.java: New interface (complete).
901 * java/util/zip/Deflater.java: New class (near-empty stub).
902 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
903 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
904 * java/util/zip/ZipEntry.java: New class (complete).
905 * java/util/zip/ZipException.java: New class (complete).
906 * java/util/zip/ZipFile.java: New class (incomplete stub).
907 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
909 1999-03-09 Tom Tromey <tromey@cygnus.com>
911 * java/text/MessageFormat.java (MessageFormatElement): Removed
914 * java/text/DecimalFormat.java (scanFormat): Increment index
915 before processing exponential format. Fixed a couple typos in
917 (format): Correct normalization of exponent.
919 1999-03-08 Tom Tromey <tromey@cygnus.com>
921 * java/text/SimpleDateFormat.java (parse): Throw
922 IllegalArgumentException, not ParseException.
924 1999-03-05 Tom Tromey <tromey@cygnus.com>
926 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
927 when constructing DateFormatSymbols. Initialize numberFormat
930 * java/text/DateFormat.java (equals): Rewrote.
931 (getAvailableLocales): New method.
932 (getDateInstance): New methods.
933 (getDateTimeInstance): Likewise.
934 (getTimeInstance): Likewise.
935 (getInstance): New method.
936 (computeInstance): New method.
938 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
940 (safeGetResource): New method.
941 (DateFormatSymbols): Use Locale paramater.
942 (equals): Now protected.
943 Made instance variables private.
945 1999-03-04 Tom Tromey <tromey@cygnus.com>
947 * java/text/DecimalFormat.java: New file.
949 * java/text/NumberFormat.java (groupingUsed,
950 maximumFractionDigits, maximumIntegerDigits,
951 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
953 (setDecimalSeparatorAlwaysShown, setMultiplier,
954 setPositivePrefix): Removed.
955 (setMinimumFractionDigits, setMaximumFractionDigits):
958 Added many new methods.
960 * Makefile.in: Rebuilt.
961 * Makefile.am (gnu_files): New macro.
962 (java_files): Added gnu_files.
963 (class_gnu_files): New macro.
964 (class_files): Use it.
965 (src_gnu_files): New macro.
967 (javao_files): Added gnu.o.
969 * gnu/gcj/text/LocaleData_en_US.java: New file.
970 * gnu/gcj/text/LocaleData_en.java: New file.
971 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
972 (DecimalFormatSymbols): Use ResourceBundle to find resources.
973 (safeGetString): New method.
974 (safeGetChar): Likewise.
976 1999-03-03 Tom Tromey <tromey@cygnus.com>
978 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
981 * java/text/FieldPosition.java (equals): Don't check for null
982 object; instanceof does this.
984 * java/util/Locale.java (clone): New method.
987 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
989 * doc/cni.sgml: New file.
991 1999-03-03 Tom Tromey <tromey@cygnus.com>
993 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
995 * java/text/DecimalFormatSymbols.java: New file.
997 1999-03-02 Tom Tromey <tromey@cygnus.com>
999 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
1001 * configure: Rebuilt.
1002 * configure.in: Check for sys/filio.h.
1004 * java/lang/Runtime.java (checkLink): Throw NullPointerException
1006 (load): Always throw UnsatisfiedLinkError.
1007 (loadLibrary): Likewise.
1009 1999-03-02 Anthony Green <green@cygnus.com>
1011 * LIBGCJ_LICENSE: New file.
1012 * LIBJAVA_LICENSE: Removed.
1013 * Many files: libjava now libgcj.
1015 1999-03-02 Tom Tromey <tromey@cygnus.com>
1017 * include/java-chartables.h: Rebuilt.
1018 * chartables.pl (print_block): Make table `const'.
1019 (print_numerics): Likewise.
1020 (print_single_map): Likewise.
1021 (print_all_block): Likewise.
1022 (print_case_table): Likewise.
1023 (print_fast_tables): Likewise.
1024 * java/lang/natCharacter.cc (table_search): `table' argument now
1027 1999-03-01 Tom Tromey <tromey@cygnus.com>
1029 * java/util/Date.java (before, after): Inverted logic.
1031 * java/util/Date.java (parse): Handle case where first character
1032 in string is open parenthesis.
1033 (skipParens): Rewrote.
1035 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
1036 * java/lang/reflect/natField.cc: Include <stdlib.h>.
1038 * java/util/Date.java (parse): Correctly compute beginning of
1041 * java/util/Hashtable.java (get): Throw NullPointerException if
1043 (containsKey): Likewise.
1045 * java/util/Properties.java (list): Truncate value to 37
1046 characters and add `...'.
1048 * java/lang/Byte.java (parseByte): Pass `radix' to
1051 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
1053 Include System.h, PrintStream.h.
1055 * java/lang/natSystem.cc (init_properties): Don't use malloc,
1058 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
1060 * configure: Rebuilt.
1061 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
1064 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
1066 * java/lang/SecurityManager.java: Import java.net.*.
1067 (checkMulticast): New methods.
1069 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
1071 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
1072 (nat_files): Add java/lang/reflect/natArray.o.
1073 (nat_headers): Add Field.h and NoSuchFieldException.h.
1075 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
1076 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
1077 (_Jv_FromReflectedField): Fix buglet.
1078 * include/jvm.h (_Jv_NewMultiArray): New declaration.
1079 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
1080 * prims.cc (_Jv_Abort): Include message in print-out.
1082 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
1083 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
1084 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
1086 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
1087 * include/config.h.in (HAVE_PWD_H): New feature macro.
1088 * java/lang/natSystem.cc (init_properties): Set file.encoding,
1089 user.name, user.home, user.dir.
1091 * java/lang/reflect/Array.java: New class.
1092 * java/lang/reflect/natArray.cc: New native methods.
1093 * include/javaprims.h: Declare java::lang::reflect::Array.
1095 * java/lang/Class.h (getField): New private method. Add friends.
1096 * java/lang/Class.java (getField): Add private overload.
1097 * java/lang/natClass.cc (getField, getField, getDeclaredField,
1098 getDeclaredMethods): Add working implementations.
1099 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
1100 Finish implementation, except for access control.
1102 * java/lang/reflect/Modifier.java (toString): New overload.
1103 * include/java-method.h: New file.
1104 * java/lang/reflect/Method.java (index): Replaced by offset field.
1105 Remove various private fields - get them from _Jv_Field instead.
1106 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
1107 New method implementations.
1109 * java/text/NumberFormat.java: Add a bunch of methods.
1111 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
1113 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
1115 1999-02-26 Tom Tromey <tromey@cygnus.com>
1117 * include/config.h.in: Rebuilt.
1118 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
1119 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
1120 HAVE_GETHOSTBYADDR_R): New defines.
1121 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
1122 gethostbyaddr_r if available.
1124 * configure: Rebuilt.
1125 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
1127 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
1131 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
1132 * prims.cc (_Jv_AllocBytesChecked): New function.
1134 * Makefile.in: Rebuilt.
1135 * Makefile.am (SUBDIRS): Removed `test'.
1136 * configure: Rebuilt.
1137 * configure.in: Don't build test/Makefile.
1138 * test/*: Removed all files.
1140 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
1142 * java/lang/reflect/Constructor.java: Make class final to match spec.
1143 * java/lang/reflect/Method.java: Ditto.
1145 1999-02-25 Tom Tromey <tromey@cygnus.com>
1147 * java/net/natInetAddress.cc: Include <sys/types.h> before
1149 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
1152 * java/net/natInetAddress.cc: Declare gethostname if required.
1153 * include/config.h.in: Rebuilt.
1154 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
1155 * configure: Rebuilt.
1156 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
1157 declared in unistd.h.
1159 1999-02-24 Tom Tromey <tromey@cygnus.com>
1161 * Makefile.in: Rebuilt.
1162 * Makefile.am (java/io/FileDescriptor.h): Removed target.
1163 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
1164 from private to "none".
1166 * include/javaprims.h: Regenerated class declarations with new
1168 * classes.pl (scan): Only generate decls for java.lang, java.io,
1171 1999-02-24 Tom Tromey <tromey@cygnus.com>
1173 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
1174 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
1176 1999-02-23 Tom Tromey <tromey@cygnus.com>
1178 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
1179 not already defined.
1180 * java/io/natFile.cc (_REENTRANT): Only define if not already
1182 * include/config.h.in: Rebuilt.
1183 * acconfig.h (HAVE_BOEHM_GC): New define.
1184 * configure: Rebuilt.
1185 * configure.in: Define HAVE_BOEHM_GC if using it.
1186 * posix-threads.cc: Include boehm-config.h and gc.h if
1188 * include/posix-threads.h: Added explanatory note about Boehm GC.
1190 * java/io/BufferedReader.java (readLine): Only return null when
1191 EOF seen before any characters read. (In particular, an empty
1192 line should not return null.)
1194 * java/io/BufferedInputStream.java (read): Only refill once per
1197 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
1198 java.lang.Character.classify12, java.lang.String.hash,
1199 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
1200 java.text.SimpleDateFormat.getAndSet2DigitYearStart
1202 * java/text/StringCharacterIterator.java (setIndex): No error if
1204 (next): Check for `pos == end', not `end - 1'.
1205 (StringCharacterIterator): Allow `pos == end'. Explicitly check
1206 for null text in each constructor.
1207 (clone): Fixed order of arguments to constructor.
1209 1999-02-22 Tom Tromey <tromey@cygnus.com>
1211 * include/config.h.in: Rebuilt.
1212 * acconfig.h (HAVE_INET6): New define.
1213 (HAVE_SOCKLEN_T): Likewise.
1214 * java/net/PlainSocketImpl.java: Added copyright header.
1215 * java/net/natPlainSocketImpl.cc: Added copyright header.
1216 (union SockAddr): Use HAVE_INET6, not AF_INET6.
1218 (connect): Likewise.
1220 (socklen_t): New typedef.
1221 (accept): Use socklen_t.
1222 * java/net/natInetAddress.cc: Added copyright header.
1223 (HAVE_GETHOSTNAME): Don't define.
1224 (HAVE_INET_ADDR): Likewise.
1225 (lookup): Fixed typo.
1226 (aton): Don't use `address' as name of local variable.
1227 (lookup): Use HAVE_INET6, not AF_INET6.
1229 * configure: Rebuilt.
1230 * configure.in: Look for functions inet_aton, inet_addr,
1231 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
1232 Check for socklen_t typedef.
1234 * exception.cc (__throw): Declare as __noreturn__.
1236 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
1238 * Makefile.am, Makefile.in: Also build java/net.
1239 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
1241 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
1242 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
1244 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
1245 * include/cni.h (JvMalloc, JvFree): New inline functions.
1246 (JvThrow): Add __noreturn__ attribute.
1247 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
1248 (_Jv_Throw): Add __noreturn__ attribute.
1250 * java/net/PlainSocketImpl.java: Init fnum to -1.
1251 * java/net/ServerSocket.java: Add missing throws clauses.
1252 * java/lang/Socket.java: For the constructor taking a SocketImpl,
1253 don't call create on the latter. Instead, other constructors
1254 have to explicitly call SocketImpl.create.
1255 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
1256 from size_t to int, to match ::accept prototype.
1257 * java/net/natInetAddress.cc: Use JvFree rather than free.
1260 1999-02-22 Tom Tromey <tromey@cygnus.com>
1262 * include/javaprims.h: Added new classes.
1263 * java/text/StringCharacterIterator.java: New file.
1264 * java/text/CharacterIterator.java: New file.
1266 * java/text/ParseException.java (errorOffset): Now private.
1268 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
1270 * java/net: New package.
1271 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
1272 Socket.java,SocketException.java,SocketImpl.java,
1273 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
1274 natPlainSocketImpl.cc}: New classes.
1276 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
1277 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
1278 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
1279 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
1281 * classes.pl: Translate package into "namespace", not "class".
1282 * include/javaprims.h: Update class list, using "namespace".
1284 1999-02-21 Tom Tromey <tromey@cygnus.com>
1286 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
1287 Define when appropriate.
1289 1999-02-20 Tom Tromey <tromey@cygnus.com>
1291 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
1292 as a single byte and \u07ff as two bytes.
1293 (_Jv_GetStringUTFLength): Likewise.
1294 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
1295 with 0x0f, not 0x1f.
1297 1999-02-19 Tom Tromey <tromey@cygnus.com>
1299 * java/io/DataOutputStream.java (writeUTF): When encoding
1300 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
1301 * java/io/DataInputStream.java (readUTF): Mask second byte of
1302 3-byte character with 0x3f, not 0x1f.
1304 * java/io/DataInputStream.java (readLong): Cast result of
1305 readUnsignedByte to long before using.
1307 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
1310 * mauve-libjava: Re-enabled java.io.DataInputOutput.
1311 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
1312 argument to avoid warning.
1313 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
1314 argument to avoid warning.
1316 1999-02-18 Tom Tromey <tromey@cygnus.com>
1318 * mauve-libjava: Omit java.io.DataInputOutput and
1319 java.io.Utf8Encoding.
1321 1999-02-17 Tom Tromey <tromey@cygnus.com>
1323 * Makefile.in: Rebuilt.
1324 * Makefile.am (nat_headers): Added InterruptedIOException.h.
1325 * java/io/natFileDescriptorPosix.cc: Include
1326 InterruptedIOException.h, Thread.h.
1327 (write): Throw InterruptedIOException when required.
1329 * posix-threads.cc: Include <signal.h>.
1330 (_Jv_ThreadInterrupt): New function.
1332 (handle_intr): New function.
1333 (_Jv_InitThreads): Register handle_intr via sigaction.
1334 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
1335 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
1336 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
1337 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
1339 1999-02-19 Andrew Haley <aph@cygnus.com>
1341 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
1343 (ThreadGroup (int)): Set the maximum priority of the initial
1346 1999-02-18 Andrew Haley <aph@cygnus.com>
1348 * java/lang/natClass.cc (forName): Check for the case where a
1349 classname is the name of an array and call FindClassFromSignature
1352 1999-02-18 Andrew Haley <aph@cygnus.com>
1354 * java/lang/StringBuffer (insert (int, String)): Move up any
1355 characters above the insert position and increase the length of
1356 the string buffer by the length of the argument.
1357 (insert (int, char[])): Likewise.
1358 (insert (int, char)): Likewise.
1359 (StringBuffer (String)): The initial capacity of the string buffer
1360 is 16 plus the length of the argument.
1361 (getChars): Add a JDK 1.2 FIXME.
1363 1999-02-18 Andrew Haley <aph@cygnus.com>
1365 * java/lang/Short.java (parseShort(String, int)): Pass radix to
1368 1999-02-18 Andrew Haley <aph@cygnus.com>
1370 * java/lang/Double.java (equals): Use a bit-by-bit comparision
1371 instead of floating-point equality. This is necessary for
1372 correct floating-point Hashtables.
1373 * java/lang/Float.java (equals): Ditto.
1375 1999-02-16 Tom Tromey <tromey@cygnus.com>
1377 * java/util/Properties.java (list): Truncate value to 37
1378 characters and add "...".
1380 1999-02-16 Tom Tromey <tromey@cygnus.com>
1382 * java/util/Vector.java (Vector): Throw IllegalArgumentException
1383 if initCap is negative.
1384 (contains): Implement JDK1.2-style handling of null argument.
1385 (removeElement): Likewise.
1386 (indexOf): Likewise. Also, correctly handle case where idx is
1388 (lastIndexOf): Likewise.
1390 1999-02-16 Tom Tromey <tromey@cygnus.com>
1392 * java/lang/natString.cc (init): Increment source pointer in
1395 1999-02-16 Tom Tromey <tromey@cygnus.com>
1397 * exception.cc: Include NullPointerException.h.
1398 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
1400 1999-02-16 Tom Tromey <tromey@cygnus.com>
1402 * Makefile.in: Rebuilt.
1403 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
1405 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
1407 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
1408 we're compiling canadian.
1409 * configure: Regenerated.
1411 1999-02-12 Andrew Haley <aph@cygnus.com>
1413 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
1414 deleted from libgcj.
1416 1999-02-12 Tom Tromey <tromey@cygnus.com>
1418 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
1419 (_Jv_eh_free): Don't call free.
1420 Don't declare malloc or free.
1422 1999-02-11 Tom Tromey <tromey@cygnus.com>
1424 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
1426 1999-02-11 Andrew Haley <aph@cygnus.com>
1428 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
1429 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
1430 needed by java.lang.*.
1431 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
1432 wf_fmod.o: Removed from libjava.a.
1434 1999-02-11 Tom Tromey <tromey@cygnus.com>
1436 * include/javaprims.h: Reverted previous change; with it
1437 exception.cc can't compile.
1439 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
1441 * include/config.h.in: Rebuilt.
1442 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
1444 * configure: Rebuilt.
1445 * configure.in: Check for sched_yield. Look in thread library for
1446 all thread functions.
1448 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
1449 no recursive mutexes.
1450 (_Jv_MutexDestroy): Define when required.
1451 (_Jv_MutexLock): Likewise.
1452 (_Jv_MutexUnlock): Likewise.
1453 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
1454 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
1455 (_Jv_Mutex_t): New structure.
1456 (_Jv_MutexDestroy): Only define if recursive mutexes available.
1457 (_Jv_MutexLock): Likewise.
1458 (_Jv_MutexUnlock): Likewise.
1460 1999-02-10 Tom Tromey <tromey@cygnus.com>
1462 * aclocal.m4, configure, Makefile.in: Rebuilt.
1463 * acinclude.m4: Renamed libjava to libgcj. Updated to use
1465 * configure.in: Changed to track library changes.
1466 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
1467 (AM_CXXFLAGS): Likewise.
1468 (data_DATA): Likewise.
1469 (AM_CFLAGS): Likewise.
1470 (JC1FLAGS): Likewise.
1471 (libgcj_a_SOURCES): Likewise.
1472 (EXTRA_libgcj_a_SOURCES): Likewise.
1473 (libgcj_a_DEPENDENCIES): Likewise.
1474 (libgcj_a_LIBADD): Likewise.
1475 (libgcj.zip): Likewise.
1476 (CLEANFILES): Likewise.
1477 ($(nat_headers)): Likewise.
1478 (java/lang/FirstThread.h): Likewise.
1479 (java/lang/ThreadGroup.h): Likewise.
1480 (java/lang/String.h): Likewise.
1481 (java/lang/reflect/Field.h): Likewise.
1482 (BUILT_SOURCES): Likewise.
1483 (maintainer-check): Likewise.
1484 (CONFIG_STATUS_DEPENDENCIES): Likewise.
1485 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
1487 * java/util/natGregorianCalendar.cc (computeFields): Only use
1488 gmtime_r and localtime_r when configured for posix threads.
1490 * java/io/natFile.cc (get_entry): Only use readdir_r when
1491 configured for posix threads.
1493 * java/util/natGregorianCalendar.cc: Update copyright notice.
1494 * java/util/TimeZone.java: Ditto.
1495 * java/util/SimpleTimeZone.java: Ditto.
1497 1999-02-08 Tom Tromey <tromey@cygnus.com>
1499 * java/io/PrintStream.java (line_separator): New constant.
1500 (print): Use line_separator, not `file.separator' property.
1501 (println): Use line_separator.
1503 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
1504 when trying to instantiate Class.
1506 * java/lang/ThreadGroup.java (ThreadGroup): Throw
1507 NullPointerException if argument is null.
1509 * java/lang/Thread.java (setName): Throw NullPointerException, not
1510 IllegalArgumentException.
1513 1999-02-08 Andrew Haley <aph@cygnus.com>
1515 * java/lang/natClass.cc (newInstance): Don't allow anyone to
1516 create new Classes with Class.newInstance().
1518 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
1519 semiciolon to end of an array Class's signature if the elements of
1520 the array aren't themselves arrays.
1522 * java/lang/natSystem.cc (arraycopy): The size of an element of an
1523 array of objects is always sizeof(jobject), not the size of the
1524 object to which the reference points.
1526 1999-02-08 Tom Tromey <tromey@cygnus.com>
1528 * java/util/BitSet.java (and): Throw NullPointerException when
1533 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
1534 if argument is negative.
1535 (clear): Correctly compute `offset'. Throw
1536 IndexOutOfBoundsException when required.
1538 (get): Likewise. Also, return correct value.
1539 (ensure): Changed meaning of argument.
1540 (toString): Wrap contents in `{}'; put spaces after commas.
1541 (hashCode): Don't try to examine elements off the end of array.
1542 (or): Correctly include bits past the end of this bit set.
1545 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
1547 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
1548 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
1550 1999-02-04 Andrew Haley <aph@cygnus.com>
1552 * java/lang/natClass.cc (Class::forName): Remove code which mapped
1553 '/' in signatures to '.'
1554 (Class::getName): Likewise,
1555 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
1557 * java/lang/natFirstThread.cc (run): Change '/' in main's
1560 1999-02-03 Andrew Haley <aph@cygnus.com>
1562 * configure.host: -ffloat-store added when compiling libjava on
1563 x86. fdlibm apparently relies on this.
1565 * java/lang/ThreadGroup.java (add): throw an exception if the
1566 ThreadGroup has been destroyed.
1568 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
1571 1999-01-27 Tom Tromey <tromey@cygnus.com>
1573 * java/lang/StringBuffer.java (StringBuffer): Handle null
1576 1999-01-21 Tom Tromey <tromey@cygnus.com>
1578 * java/lang/natFirstThread.cc (run): Don't require main to be
1581 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
1583 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
1585 1999-01-20 Tom Tromey <tromey@cygnus.com>
1587 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
1591 (unintern): Likewise.
1592 (_Jv_NewStringUtf8Const): Likewise.
1594 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
1595 Character.isLetter, to see if character is self-quoting. Also,
1596 correctly handle quoted characters.
1597 (parse): Fixed typo. Also now throws ParseException.
1599 1999-01-15 Tom Tromey <tromey@cygnus.com>
1601 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
1603 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
1604 _Jv_SyncInfo has `init' member.
1606 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
1609 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
1610 IllegalMonitorStateException if unlock fails.
1612 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
1614 (_Jv_NewObjectArray): Likewise.
1616 1999-01-14 Tom Tromey <tromey@cygnus.com>
1618 * java/lang/Character.java (isJavaIdentifierPart): Allow
1619 LETTER_NUMBER characters.
1621 * chartables.pl (process_char): Fixed error messages.
1623 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
1624 * chartables.pl: Updated comments. Changed detection of non-digit
1625 numeric values (no longer miss \u00b2 and friends).
1627 * java/lang/Character.java (isJavaIdentifierPart): Recognize
1628 currency symbols and connector punctuation.
1629 (isIdentifierIgnorable): Make 7f-9f ignorable.
1631 * prims.cc (_Jv_NewObjectArray): Check for overflow.
1632 (_Jv_NewPrimArray): Likewise.
1633 (SIZE_T_MAX): New define.
1635 * java/lang/ClassLoader.java (system): Now private and final.
1637 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
1640 * configure: Rebuilt.
1641 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
1643 * exception.cc: Include gansidecl.h.
1645 1999-01-14 Andrew Haley <aph@cygnus.com>
1647 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
1648 corrected: they didn't treat -0.0 and NaNs correctly.
1650 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
1652 * nogc.cc: Use calloc to zero out memory.
1654 1999-01-11 Tom Tromey <tromey@cygnus.com>
1656 * java/lang/natClass.cc (isInstance): Return false if this class
1657 is primitive, not if class of `obj' is primitive.
1658 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
1660 * java/io/SequenceInputStream.java (close): Handle case where `in'
1663 * java/text/DateFormat.java (format): New method.
1665 * mauve-libjava: Omit java.text.DateFormat.
1667 1999-01-08 Tom Tromey <tromey@cygnus.com>
1669 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
1671 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
1673 (_Jv_CondNotifyAll): Likewise.
1675 * configure: Rebuilt.
1676 * configure.in: Change --enable-source-compilation logic to work
1679 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
1681 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
1682 and RUNTESTFLAGS from AM_MAKEFLAGS.
1683 * configure.in: AM_RUNTESTFLAGS added.
1684 * configure.host: AM_RUNTESTFLAGS added.
1685 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
1686 * configure: rebuilt.
1687 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
1689 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
1690 argv[] made conditional because embedded targets may not have
1692 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
1693 explanatory comments added in call to super.
1695 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
1696 exception thrown in the test harness itself added.
1697 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
1699 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
1701 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
1703 1999-01-06 Tom Tromey <tromey@cygnus.com>
1705 * java/io/natFile.cc (get_entry): New function.
1706 (performList): Use get_entry.
1707 * include/config.h.in: Rebuilt.
1708 * acconfig.h (HAVE_READDIR_R): New define.
1709 * configure: Rebuilt.
1710 * configure.in: Look for readdir_r.
1712 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
1714 * java/util/natDate.cc: Added copyright header.
1716 1999-01-05 Tom Tromey <tromey@cygnus.com>
1718 * include/config.h.in: Rebuilt.
1719 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
1720 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
1721 * configure: Rebuilt.
1722 * configure.in: Check for access, stat, mkdir, rename, rmdir,
1723 unlink, and realpath.
1724 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
1725 (stat): Conditionalize on HAVE_STAT.
1727 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
1728 (performMkdir): Conditionalize on HAVE_MKDIR.
1729 (performRenameTo): Conditionalize on HAVE_RENAME.
1730 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
1732 * include/config.h.in: Rebuilt.
1733 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
1734 * configure: Rebuilt.
1735 * configure.in: Check for gmtime_r and localtime_r. For cross
1736 builds, assume they exist.
1738 * mauve-libjava: Include java.text.DateFormatSymbols again.
1739 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
1740 from setAmPmStrings.
1742 * mauve-libjava: Omit java.text.DateFormatSymbols.
1744 1999-01-04 Tom Tromey <tromey@cygnus.com>
1746 * java/io/PushbackReader.java: `off' already includes `numBytes'.
1748 * java/io/LineNumberReader.java (read): Decrement `count' in
1751 * java/io/BufferedWriter.java (write): Correctly determine when
1752 incoming data would overrun buffer. Flush buffer if write causes
1755 * java/io/BufferedOutputStream.java (write): Increment `count'
1756 after copying data into buffer.
1758 * java/io/FilterOutputStream.java (close): Call flush first.
1760 * java/io/PipedReader.java (read): If read causes `out' to catch
1761 up with `in', then set `in' to -1.
1763 * java/io/LineNumberInputStream.java (read): If no bytes read,
1764 return -1. If no bytes requested, return 0.
1766 * java/lang/StringBuffer.java (insert): If `str' is null, use
1769 1998-12-30 Anthony Green <green@cygnus.com>
1772 * LIBJAVA_LICENSE, COPYING.LIB: Created.
1774 1998-12-23 Tom Tromey <tromey@cygnus.com>
1776 * java/io/PushbackInputStream.java (read): `off' already includes
1779 1998-12-17 Tom Tromey <tromey@cygnus.com>
1781 * Makefile.in: Rebuilt.
1782 * Makefile.am (GCJ_canadian): Include target_alias.
1784 * java/lang/natFirstThread.cc (run): Require main's class to be
1787 1998-12-16 Tom Tromey <tromey@cygnus.com>
1789 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
1791 * java/util/ResourceBundle.java (getBundle): Throw
1792 NullPointerException if locale argument is null.
1794 * java/lang/natClass.cc (forName): Throw NullPointerException if
1796 Include NullPointerException.h.
1798 1998-12-14 Tom Tromey <tromey@cygnus.com>
1800 * java/lang/Character.java (Character): Implement Comparable.
1801 (compareTo): New methods.
1803 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
1804 correct country and language codes.
1805 (UK, US): New constants.
1806 (setDefault): Language codes are lower-case.
1808 * java/lang/natClass.cc (getDeclaredConstructor): New method.
1809 (getDeclaredConstructors): Likewise.
1810 (getDeclaredField): Likewise.
1811 (getDeclaredFields): Likewise.
1812 (getDeclaredMethod): Likewise.
1813 (getDeclaredMethods): Likewise.
1814 (getField): Likewise.
1815 (getFields): Likewise.
1816 (getMethod): Likewise.
1817 (getMethods): Likewise.
1818 * java/lang/Class.java: Declare new methods.
1819 * java/lang/Class.h: Declare new methods.
1821 * java/lang/natString.cc: Removed `#pragma implementation'.
1822 * include/cni.h (_Jv_GetStringChars): New function.
1823 * Makefile.in: Rebuilt.
1824 * Makefile.am (java/lang/String.h): Don't generate definition for
1827 * java/lang/natString.cc: Added `#pragma implementation'.
1829 * Makefile.in: Rebuilt.
1830 * Makefile.am (libjava.zip): Put build directory first in class
1831 path to avoid bug in compiler.
1833 1998-12-14 Anthony Green <green@cygnus.com>
1835 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
1837 * include/javaprims.h: Add EventObject, ListResourceBundle and
1840 1998-12-13 Anthony Green <green@cygnus.com>
1842 * mauve-libjava: Run the ResourceBundle tests.
1844 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
1847 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
1849 * configure.in, configure: Make --enable-gcj-classes and
1850 --enable-source-compilation the default. (Nervously...) Yeah!
1851 Based on a patch from Tom Tromey.
1853 1998-12-13 Tom Tromey <tromey@cygnus.com>
1855 * java/util/EventObject.java: New file.
1856 * java/util/EventListener.java: New file.
1858 * include/javaprims.h: Updated class declarations.
1859 * Makefile.in: Rebuilt.
1860 * Makefile.am (nat_headers): Added Constructor.h.
1861 (java/lang/String.h): Don't inline String::length().
1862 * java/lang/Class.h (getConstructor, getConstructors): Declare.
1863 * java/lang/Class.java (initializeClass, hackRunInitializers,
1864 hackTrampoline): No need to mark `final'.
1865 (getConstructor, getConstructors): Declare.
1866 * java/lang/reflect/Field.java (equals): New method.
1867 * java/lang/natClass.cc (getConstructor): New method.
1868 (getConstructors): Likewise.
1869 Include Method.h, Field.h, Constructor.h.
1870 * java/lang/reflect/Constructor.java: New file.
1871 * java/lang/reflect/Method.java (toString): No space before open
1873 (equals): Simplified.
1875 1998-12-13 Anthony Green <green@cygnus.com>
1877 * java/util/ResourceBundle.java: New file.
1878 * java/util/ListResourceBundle.java: New file.
1880 1998-12-12 Tom Tromey <tromey@cygnus.com>
1882 * java/lang/System.java (in, out, err): Now buffered streams by
1885 * include/javaprims.h: Updated class declarations.
1886 * Makefile.in: Rebuilt.
1887 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
1888 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
1890 (nat_files): Added natMethod.o.
1891 * java/lang/reflect/natMethod.cc: New file.
1892 * java/lang/reflect/Field.java (Field): Now extends
1894 * java/lang/reflect/AccessibleObject.java: New file.
1895 * java/lang/reflect/InvocationTargetException.java: New file.
1897 1998-12-11 Tom Tromey <tromey@cygnus.com>
1899 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
1900 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
1901 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
1903 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
1905 1998-12-09 Tom Tromey <tromey@cygnus.com>
1907 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
1910 * java/lang/natCharacter.cc (toTitleCase): Handle case where
1911 character is already titlecase.
1913 * java/lang/Character.java (isJavaLetter): Follow spec.
1914 (isJavaLetterOrDigit): Likewise.
1916 * java/util/GregorianCalendar.java (gregorianCutover): Append
1919 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
1921 1998-12-08 Tom Tromey <tromey@cygnus.com>
1923 * java/lang/reflect/Modifier.java (toString): Replace second
1924 `static' with `synchronized'.
1926 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
1927 * java/lang/Object.h (Object::hack12_6): Declare.
1928 * java/lang/Object.java (hack12_6): New function.
1930 1998-12-07 Tom Tromey <tromey@cygnus.com>
1932 * include/java-array.h (__JArray::clone): Removed decl.
1933 * prims.cc (__JArray::clone): Removed.
1934 * java/lang/natObject.cc (clone): Incorporate code to clone an
1937 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
1938 (_Jv_FindArrayClass): Set dtable_method_count on new class.
1939 Correctly use dtable_method_count.
1941 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
1943 * java/lang/Double.java (isInfinite, isNaN): Handle correct
1946 1998-12-06 Anthony Green <green@cygnus.com>
1948 * mauve-libjava: Don't test ResourceBundle.
1950 1998-12-04 Tom Tromey <tromey@cygnus.com>
1952 More JDK 1.2 spec fixes:
1953 * java/util/Date.java (millis): Now private.
1954 * java/text/DateFormat.java (DateFormat): Constructor now
1956 * java/lang/Void.java (Void): New private constructor.
1957 * java/lang/System.java (System): New private constructor.
1958 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
1960 (currentClassLoader): New method.
1961 (currentLoadedClass): New method.
1962 * java/lang/Math.java (Math): New private constructor.
1963 * java/lang/Compiler.java (Compiler): New private constructor.
1964 * java/lang/Class.java (Class): New private constructor.
1965 * java/lang/Double.java (toString): Removed access specifier from
1966 two-argument `toString' method.
1968 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
1970 * java/lang/s_rint.c (rint): Make the variable w volatile; this
1971 causes it to be flushed from an fp register (where it may be
1972 longer than double precision) to a double in memory. This is
1973 essential to ensure correct rounding behaviour.
1975 1998-12-04 Tom Tromey <tromey@cygnus.com>
1977 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
1980 * java/lang/Character.java (isIdentifierIgnorable): Added comment
1981 explaining apparent divergence from JDK 1.2.
1983 1998-12-04 Per Bothner <bothner@cygnus.com>
1985 * include/no-threads.h: Remove unused parameter names.
1986 This silences a bunch of warnings.
1988 1998-12-04 Tom Tromey <tromey@cygnus.com>
1990 * include/config.h.in: Rebuilt.
1991 * acconfig.h (HAVE_CTIME_R): New symbol.
1993 1998-12-03 Tom Tromey <tromey@cygnus.com>
1995 * mauve-libjava: Added many more categories to reject.
1997 Changes to follow JDK1.2 spec:
1998 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
1999 setErr, setIn, setOut): No need to be `final'.
2000 * java/lang/natObject.cc (wait): `nanos' argument is an int.
2001 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
2002 * java/lang/Object.java (wait): `nanos' argument is an int.
2003 * java/lang/VirtualMachineError.java: Class is abstract.
2004 * java/lang/ThreadDeath.java: Made constructors public.
2005 * java/io/FileDescriptor.java (FileDescriptor): Added missing
2008 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
2010 * java/text/DateFormatSymbols.java (getAmPmStrings,
2011 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
2013 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
2015 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
2016 writeDouble, writeByte, writeBytes, writeChar, writeChars,
2017 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
2020 * java/lang/IllegalThreadStateException.java
2021 (IllegalThreadStateException): Changed extending class to match spec.
2023 * java/lang/NumberFormatException.java
2024 (java/lang/NumberFormatException): Changed extending class to match
2027 * java/util/Observer.java (Observer): Changed sig to match JCL.
2029 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
2031 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
2032 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
2033 signature to match JDK 1.1 and 1.2.
2035 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
2037 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
2038 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
2039 * Makefile.in, configure: Rebuilt.
2041 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
2044 1998-12-02 Tom Tromey <tromey@cygnus.com>
2046 * mauve-libjava: New file.
2048 The remaining `-W -Wall' fixes:
2049 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
2051 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
2053 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
2055 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
2057 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
2059 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
2061 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
2063 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
2065 * java/lang/mprec.c (Balloc): Removed unused variable.
2066 (mult): Added parentheses per gcc suggestion.
2067 (pow5mult): Likewise.
2072 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
2073 suggestion. Added cast to `int' to avoid signed/unsigned
2075 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
2077 (IsAssignableFrom): Likewise.
2078 (_Jv_JNI_GetObjectField): Likewise.
2079 (_Jv_JNI_GetByteField): Likewise.
2080 (_Jv_JNI_GetShortField): Likewise.
2081 (_Jv_JNI_GetIntField): Likewise.
2082 (_Jv_JNI_GetLongField): Likewise.
2083 (_Jv_JNI_GetStringLength): Likewise.
2084 (_Jv_JNI_ToReflectedField): Likewise.
2085 (_Jv_JNI_FromReflectedField): Likewise.
2086 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
2088 * Makefile.in: Rebuilt.
2089 * Makefile.am (AM_CFLAGS): Define conditionally.
2090 (WARNINGS): New macro.
2091 (AM_CXXFLAGS): Include WARNINGS.
2092 * configure: Rebuilt.
2093 * configure.in (USING_GCC): New conditional.
2095 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
2097 * java/lang/Character.java: Changed classification constants to
2098 type `byte' to match JDK 1.2 docs.
2100 1998-12-01 Tom Tromey <tromey@cygnus.com>
2102 Some fixes to be `-W -Wall' clean:
2103 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
2104 (_Jv_MarkArray): Likewise.
2105 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
2106 (to_upper_title): Likewise.
2107 (isTitleCase): Likewise.
2108 (toTitleCase): Likewise.
2109 (getNumericValue): Likewise.
2110 (isLowerCase): Likewise.
2111 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
2112 (avoids compiler warning).
2113 * java/lang/natClass.cc (getDeclaredClasses): Always return a
2115 (getDeclaringClass): Likewise.
2116 (_Jv_LookupInterfaceMethod): Likewise.
2117 (_Jv_NewClass): Removed name of unused parameter.
2118 * exception.cc (_Jv_type_matcher): Removed unused variable.
2119 (_Jv_setup_eh_info): Removed name of unused parameter.
2120 * prims.cc (_Jv_NewArray): Always return a value.
2121 (_Jv_FindClassFromSignature): Likewise.
2122 * include/java-field.h (getNameUtf8Const): Removed name of unused
2124 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
2126 (_Jv_ThreadSetPriority): Likewise.
2128 * java/lang/natString.cc (hashChars): Now static.
2130 * java/lang/FirstThread.java (FirstThread): Now final.
2132 * java/io/File.java (performMkdir, performRenameTo): Now private.
2134 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
2135 if no time function defined.
2137 * configure: Rebuilt.
2138 * configure.in: Look for ctime_r, ctime.
2139 * java/util/Date.java (toString): Now native.
2140 * java/util/natDate.cc (toString): Rewrote.
2142 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
2144 * Add LDFLAGS line to allow TX39 test cases to link when cross
2147 1998-11-23 Anthony Green <green@cygnus.com>
2149 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
2150 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
2151 quick-threads.cc, include/boehm-gc.h, include/cni.h,
2152 include/java-array.h, include/java-assert.h, include/java-field.h,
2153 include/javaprims.h, include/jni.h, include/jvm.h,
2154 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
2155 include/quick-threads.h, java/io/BufferedInputStream.java,
2156 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
2157 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
2158 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
2159 java/io/CharArrayWriter.java,
2160 java/io/CharConversionException.java, java/io/DataInput.java,
2161 java/io/DataInputStream.java, java/io/DataOutput.java,
2162 java/io/DataOutputStream.java, java/io/EOFException.java,
2163 java/io/File.java, java/io/FileDescriptor.java,
2164 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
2165 java/io/FileOutputStream.java, java/io/FileReader.java,
2166 java/io/FileWriter.java, java/io/FilenameFilter.java,
2167 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
2168 java/io/FilterReader.java, java/io/FilterWriter.java,
2169 java/io/IOException.java, java/io/InputStream.java,
2170 java/io/InputStreamReader.java,
2171 java/io/InterruptedIOException.java,
2172 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
2173 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
2174 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
2175 java/io/PipedReader.java, java/io/PipedWriter.java,
2176 java/io/PrintStream.java, java/io/PrintWriter.java,
2177 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
2178 java/io/RandomAccessFile.java, java/io/Reader.java,
2179 java/io/SequenceInputStream.java, java/io/Serializable.java,
2180 java/io/StreamTokenizer.java,
2181 java/io/StringBufferInputStream.java, java/io/StringReader.java,
2182 java/io/StringWriter.java, java/io/SyncFailedException.java,
2183 java/io/UTFDataFormatException.java,
2184 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
2185 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
2186 java/io/natFileDescriptorPosix.cc,
2187 java/lang/AbstractMethodError.java,
2188 java/lang/ArithmeticException.java,
2189 java/lang/ArrayIndexOutOfBoundsException.java,
2190 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
2191 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
2192 java/lang/Class.java, java/lang/ClassCastException.java,
2193 java/lang/ClassCircularityError.java,
2194 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
2195 java/lang/ClassNotFoundException.java,
2196 java/lang/CloneNotSupportedException.java,
2197 java/lang/Cloneable.java, java/lang/Comparable.java,
2198 java/lang/Compiler.java, java/lang/Double.java,
2199 java/lang/Error.java, java/lang/Exception.java,
2200 java/lang/ExceptionInInitializerError.java,
2201 java/lang/FirstThread.java, java/lang/Float.java,
2202 java/lang/IllegalAccessError.java,
2203 java/lang/IllegalAccessException.java,
2204 java/lang/IllegalArgumentException.java,
2205 java/lang/IllegalMonitorStateException.java,
2206 java/lang/IllegalStateException.java,
2207 java/lang/IllegalThreadStateException.java,
2208 java/lang/IncompatibleClassChangeError.java,
2209 java/lang/IndexOutOfBoundsException.java,
2210 java/lang/InstantiationError.java,
2211 java/lang/InstantiationException.java, java/lang/Integer.java,
2212 java/lang/InternalError.java, java/lang/InterruptedException.java,
2213 java/lang/LinkageError.java, java/lang/Long.java,
2214 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
2215 java/lang/NoClassDefFoundError.java,
2216 java/lang/NoSuchFieldError.java,
2217 java/lang/NoSuchFieldException.java,
2218 java/lang/NoSuchMethodError.java,
2219 java/lang/NoSuchMethodException.java,
2220 java/lang/NullPointerException.java, java/lang/Number.java,
2221 java/lang/NumberFormatException.java, java/lang/Object.h,
2222 java/lang/Object.java, java/lang/OutOfMemoryError.java,
2223 java/lang/Process.java, java/lang/Runnable.java,
2224 java/lang/Runtime.java, java/lang/RuntimeException.java,
2225 java/lang/SecurityException.java, java/lang/SecurityManager.java,
2226 java/lang/Short.java, java/lang/StackOverflowError.java,
2227 java/lang/String.java, java/lang/StringBuffer.java,
2228 java/lang/StringIndexOutOfBoundsException.java,
2229 java/lang/System.java, java/lang/Thread.java,
2230 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
2231 java/lang/Throwable.java, java/lang/UnknownError.java,
2232 java/lang/UnsatisfiedLinkError.java,
2233 java/lang/UnsupportedOperationException.java,
2234 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
2235 java/lang/Void.java, java/lang/natCharacter.cc,
2236 java/lang/natClass.cc, java/lang/natDouble.cc,
2237 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
2238 java/lang/natMath.cc, java/lang/natObject.cc,
2239 java/lang/natRuntime.cc, java/lang/natString.cc,
2240 java/lang/natSystem.cc, java/lang/natThread.cc,
2241 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
2242 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
2243 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
2244 java/text/FieldPosition.java, java/text/Format.java,
2245 java/text/NumberFormat.java, java/text/ParseException.java,
2246 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
2247 java/util/BitSet.java, java/util/Calendar.java,
2248 java/util/ConcurrentModificationException.java,
2249 java/util/Date.java, java/util/Dictionary.java,
2250 java/util/EmptyStackException.java, java/util/Enumeration.java,
2251 java/util/GregorianCalendar.java, java/util/Hashtable.java,
2252 java/util/Locale.java, java/util/MissingResourceException.java,
2253 java/util/NoSuchElementException.java, java/util/Observable.java,
2254 java/util/Observer.java, java/util/Properties.java,
2255 java/util/Random.java, java/util/SimpleTimeZone.java,
2256 java/util/Stack.java, java/util/StringTokenizer.java,
2257 java/util/TimeZone.java, java/util/TooManyListenersException.java,
2258 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
2261 * exception.cc: Include eh-common.h instead of duplicating
2264 1998-11-23 Tom Tromey <tromey@cygnus.com>
2266 * configure.host: Don't add `-O2' to libjava_flags. Only add
2267 `-Os' to libjava_flags once.
2269 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
2271 * Makefile.am: add LIBJAVA_JAVAFLAGS.
2272 * Makefile.in: likewise
2273 * acconfig.h: add ECOS conditional for configure.h
2274 * config.h.in: likewise
2275 * configure: add test for --with-ecos
2276 * configure.in: likewise
2277 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
2278 rename call to avoid name clash.
2279 * java/lang/natSystem.cc: add eCos clock support.
2280 * java/util/natGregorianCalendar.cc: add eCos support.
2282 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
2284 * Makefile.am, Makefile.in, configure.host: tx39 build option
2287 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
2289 * java/io/BufferedReader.java: Added more comments for clarity.
2290 (mark): Used more mnemonic name for local var extraBuffSpace.
2292 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
2293 confusion with private method of same name in superclass.
2294 (skipRedundantLF): Set fields in special case to avoid infinite
2295 recursion. Check if markPos has been invalidated in special case.
2296 (readLine): Rewritten to use readLine method of superclass.
2297 (skip): Incorporated code from lineEnd.
2299 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
2301 * java/io/BufferedReader.java (readLine): New method.
2302 (lineEnd): new private method.
2303 (mark): Track special case for readLine of getting '\r' at the
2310 * java/io/InputStreamReader.java (read): Return number chars skipped
2311 rather than requested.
2313 * java/lang/StringBuffer.java (append): Update count and differentiate
2314 between field and local variable.
2316 * java/util/Date.java (parseTz): Evaluate in minutes rather than
2317 seconds. Deal with military style time.
2318 (parse): Consistently treat all timezones in minutes until final
2319 calculation. Flag as non-local timezone. Return value in milliseconds.
2320 (setTime): Adjust for year offset from 1900.
2321 (UTC): Adjust for year offset from 1900.
2323 1998-11-17 Tom Tromey <tromey@cygnus.com>
2325 * configure: Rebuilt.
2326 * configure.in: Switch on host, not target.
2328 * Makefile.in: Rebuilt.
2329 * Makefile.am (GCJ_no): New macro.
2330 (GCJ): Use @CANADIAN@.
2331 (GCJH_no): New macro
2332 (GCJH_canadian): New macro.
2333 (GCJH): Use @CANADIAN@.
2334 (ZIP_no): New macro.
2335 (ZIP_canadian): New macro.
2336 (ZIP): Use @CANADIAN@.
2337 * aclocal.m4, configure: Rebuilt.
2338 * configure.in (CANADIAN): Compute and subst.
2340 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
2342 * java/io/FileDescriptor.java (finalize): Only close file
2343 descriptor if valid.
2345 1998-11-17 Tom Tromey <tromey@cygnus.com>
2347 * prims.cc (_Jv_InitRuntime): Removed.
2349 1998-11-16 Tom Tromey <tromey@cygnus.com>
2351 * java/io/FileOutputStream.java (close): Only close file
2352 descriptor if valid.
2353 (finalize): New method.
2355 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
2356 (_Jv_NewPrimArray): Likewise.
2357 * boehm.cc (_Jv_RegisterFinalizer): Use
2358 GC_REGISTER_FINALIZER_NO_ORDER.
2359 (GC_GENERIC_MALLOC): New define.
2360 (_Jv_AllocObj): Use it.
2361 (_Jv_AllocArray): Likewise.
2362 (_Jv_AllocBytes): Likewise.
2363 (_Jv_MarkObj): Just return if vtbl not set.
2364 (_Jv_MarkArray): Likewise.
2365 (MAYBE_MARK): New macro; use everywhere.
2366 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
2368 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
2370 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
2371 to a jlong before calculation to prevent overflow.
2373 1998-11-16 Tom Tromey <tromey@cygnus.com>
2375 * Makefile.in: Rebuilt.
2376 * Makefile.am (nat_headers): Fixed typo.
2378 1998-11-15 Tom Tromey <tromey@cygnus.com>
2380 * java/lang/Class.h (Class::getName): Removed definition.
2381 * Makefile.in: Rebuilt.
2382 * Makefile.am (nat_headers): Added InstantiationException.h,
2383 NoSuchMethodException.h.
2384 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
2385 (init_name): New global.
2386 (hackRunInitializers): Use clinit_name.
2387 Include InstantiationException.h, NoSuchMethodException.h.
2388 (newInstance): Do some error checking (but not all). Call
2390 (forName): Throw exception if class not found.
2391 (getName): New method.
2392 (forName): Transform class name from external format to internal
2393 format before lookup.
2395 1998-11-15 Anthony Green <green@cygnus.com>
2397 * java/lang/Class.h (Class::forName): Method is static.
2399 * java/lang/natClass.cc (newInstance): Add simple implementation.
2402 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
2404 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
2405 int), for compatibility with jc1.
2407 1998-11-14 Tom Tromey <tromey@cygnus.com>
2409 * include/config.h.in: Rebuilt.
2410 * acconfig.h (LINUX_THREADS): New define.
2411 * configure: Rebuilt.
2412 * configure.in: Define LINUX_THREADS if using POSIX threads on
2413 Linux. Look for pthread_mutexattr_setkind_np function.
2414 * posix-threads.cc (throw_cleanup): New function.
2415 (really_start): Push cleanup function.
2416 (_Jv_ThreadCancel): New function.
2417 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
2418 (_Jv_ThreadInitData): Set `exception' field in new structure.
2419 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
2421 (_Jv_ThreadWait): New function.
2422 (_Jv_InitThreads): Initialize daemon globals.
2423 (FLAG_DAEMON): New macro.
2424 (really_start): Notify daemon_cond when non-daemon thread exits.
2425 Include <java/lang/System.h>.
2426 (struct starter): `object' field now a thread.
2427 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
2428 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
2429 (_Jv_ThreadWait): Removed definition.
2430 (_Jv_Thread_t): Added `exception' field.
2431 (_Jv_ThreadCancel): Removed definition.
2433 1998-11-13 Tom Tromey <tromey@cygnus.com>
2435 * Makefile.in: Rebuilt.
2436 * Makefile.am (libjava.zip): Compute javac before changing
2439 * Makefile.in: Rebuilt.
2440 * Makefile.am (libjava.zip): Include directory entries.
2442 * Makefile.in: Rebuilt.
2443 * Makefile.am (expanded): New macro.
2446 1998-11-12 Tom Tromey <tromey@cygnus.com>
2448 * prims.cc (clone): New function.
2449 * include/java-array.h (__JArray::clone): Removed definition.
2451 * java/lang/natObject.cc (clone): Don't assert that class is not
2452 an array; array's `clone' method just calls this one.
2454 * Makefile.in: Rebuilt.
2455 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
2456 Now creates zip file. Changed all users.
2458 (data_DATA): New macro.
2460 1998-11-11 Tom Tromey <tromey@cygnus.com>
2462 * configure: Rebuilt.
2463 * configure.in: Recognize --enable-java-gc, not --enable-gc.
2465 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
2467 * java/io/InputStream.java (reset): Add msg to thrown exception.
2469 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
2471 * java/io/LineNumberInputStream.java: Rewritten.
2473 * java/io/StringBufferInputStream.java: Removed extraneous import.
2475 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
2477 * java/io/StringBufferInputStream.java: Rewritten.
2479 * java/util/Date.java (parseMonth): Optimize.
2480 (parseDayOfWeek): Created.
2481 (parse): Optimize to use parseDayOfWeek.
2483 1998-11-11 Tom Tromey <tromey@cygnus.com>
2485 * java/lang/StringBuffer.java (append): Handle case where STR is
2488 * include/javaprims.h: Regenerated class declarations.
2490 * configure: Rebuilt.
2491 * configure.in: Added --enable-gcj-classes,
2492 --enable-single-compilation, --enable-source-compilation flags.
2493 * Makefile.in: Rebuilt.
2494 * Makefile.am (java_io_files): New macro.
2495 (java_lang_files): Likewise.
2496 (java_text_files): Likewise.
2497 (java_util_files): Likewise.
2498 (java_files): Use new macros.
2499 (java-io.o): New target.
2500 (java-lang.o): Likewise.
2501 (java-text.o): Likewise.
2502 (java-util.o): Likewise.
2503 (src_io_files): New macro.
2504 (src_lang_files): Likewise.
2505 (src_text_files): Likewise.
2506 (src_util_files): Likewise.
2507 (class_io_files): New macro.
2508 (class_lang_files): Likewise.
2509 (class_text_files): Likewise.
2510 (class_util_files): Likewise.
2511 (class_files): Use new macros.
2512 (javao_files): Define conditionally.
2513 (.java.o): New target.
2514 ($(javao_files)): New target.
2516 (GCJH): Added $(EXEEXT).
2517 (CLASSPATH_ENV): Removed.
2518 (GCJCOMPILE): New macro.
2520 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
2522 * java/util/Date.java (parse): Written from scratch.
2524 1998-11-11 Tom Tromey <tromey@cygnus.com>
2526 * java/lang/Throwable.java (toString): Correct sense of test for
2527 determining when to include detail message in result.
2529 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
2532 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
2534 * java/lang/Class.h: Use _Jv_RegisterClasses, not
2536 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
2537 (_Jv_RegisterClass): Use it.
2538 * include/jvm.h (_Jv_RegisterClasses): Declare.
2539 * java/lang/natObject.cc (init): Removed.
2540 (sync_init): Never call _Jv_InitializeSyncMutex.
2541 (_Jv_InitializeSyncMutex): Don't set `init'.
2542 * prims.cc (JvRunMain): Don't run init functions.
2544 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
2546 * java/lang/natClass.cc (initializeClass): Set state before
2547 resolving constants.
2549 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
2550 (STATE_RESOLVED): New macro.
2551 (initializeClass): Call resolveConstants.
2552 (hackRunInitializers): Don't call resolveConstants.
2553 (_Jv_FindArrayClass): Move short-circuit return for primitive
2554 element types earlier in function.
2556 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
2558 * prims.cc (no_memory): New global.
2559 (_Jv_makeUtf8Const): Throw no_memory.
2560 (_Jv_AllocObject): Likewise.
2561 (_Jv_NewObjectArray): Likewise.
2562 (_Jv_NewPrimArray): Likewise.
2563 (JvRunMain): Initialize no_memory.
2565 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
2567 * java/io/FileInputStream.java: Corrected date comment.
2568 * java/io/SequenceInputStream.java: Rewritten.
2570 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
2572 * java/lang/FirstThread.java (die): New method.
2573 * java/lang/natFirstThread.cc (die): Removed.
2575 (run): Use `DIE', not `die'.
2577 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
2579 * java/io/CharArrayReader.java (read): Move check into synchronized
2580 block to prevent a close while in progress.
2583 * java/io/PushbackReader.java (read): Ditto.
2586 * java/io/StringReader.java (mark): Ditto.
2591 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
2593 * java/io/PipedInputStream.java: Updated status.
2594 (connect): Added code to prevent infinite recursion and to
2595 differentiate exception causes.
2596 (read): Added code to differentiate exception causes.
2597 (receive): Made exception pass string with the cause.
2599 * java/io/PipedOutputStream.java: Updated status.
2600 (connect): Added code to call connect at the other end of the pipe.
2602 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
2604 * java/io/PipedInputStream.java (connect): Throw exception if
2605 already connected to the same output stream.
2606 (read): Do bounds checking first.
2608 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
2610 * java/io/PipedInputStream.java: Added private boolean outClosed.
2611 (available): Removed check if output stream is open.
2612 (close): Mark the buffer as empty so available returns 0.
2613 (read): Check if the output stream was closed and then return EOF
2614 when the buffer is empty.
2615 (receive): Mark the output stream as closed when passed a -1.
2617 * java/io/PipedOutputStream.java (close): Notify the input stream
2618 that there's no more data coming.
2619 (connect): Added a FIXME comment to note more coordination needed
2620 with PipedInputStream.
2621 (flush): Added a FIXME comment to mark what this method might do
2624 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
2626 * java/io/PipedInputStream.java: Rewritten.
2628 1998-10-30 Tom Tromey <tromey@cygnus.com>
2630 * java/lang/Throwable.java: Rewrote from scratch.
2632 * java/lang/Class.h (Class): Don't mention newMultiArray.
2633 * prims.cc (newMultiArray): Removed.
2634 (_Jv_NewMultiArray): Removed.
2635 (newArray): Removed.
2636 (new_multi_array): New function.
2637 (_Jv_NewMultiArray): Rewrote from scratch.
2639 * include/javaprims.h: Regenerated class declarations.
2640 * classes.pl (scan): Don't declare PrimClass.
2641 * include/cni.h (JvPrimClass): Use new names for classes.
2642 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
2643 added _Jv_PrimClass.
2644 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
2645 (_Jv_initPrimClass): Removed.
2646 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
2647 (_Jv_AllocObject): Added comment.
2648 (_Jv_NewObjectArray): Likewise.
2649 (_Jv_NewPrimArray): Likewise.
2651 1998-10-29 Tom Tromey <tromey@cygnus.com>
2653 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
2654 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
2656 * java/lang/Class.h (Class): Added `dtable_method_count' field.
2658 * java/lang/natObject.cc (init): New global.
2659 (sync_init): Call _Jv_InitializeSyncMutex if required.
2661 * Makefile.in: Rebuilt.
2662 * Makefile.am (nat_headers): Added ClassLoader.h.
2663 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
2664 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
2665 internalAddClass, lookupArray no longer friends.
2666 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
2667 _Jv_FindArrayClass now friends.
2668 * java/lang/natClass.cc (HASH_LEN): New macro.
2669 (HASH_UTF): Likewise.
2670 (loaded_classes): New global.
2671 (_Jv_FindClass): New function.
2672 (ClassClass): New define.
2673 (_Jv_FindClassInCache): New function.
2674 (_Jv_RegisterClass): Likewise.
2675 (_Jv_NewClass): Likewise.
2677 (ObjectClass): New define.
2678 (CloneableClass): New define.
2679 * prims.cc (_Jv_FindClass): Removed.
2680 (simpleLookupClass): Removed.
2681 (insertClass): Removed.
2682 (CLASSHASHSZ): Removed.
2683 (classPool): Removed.
2684 (_Jv_RegisterClass): Removed.
2685 (internalAddClass): Removed.
2686 (ClassClass): Removed.
2687 (RuntimeClass): Removed.
2688 (lookupArray): Removed.
2689 (CloneableClass): Removed.
2690 (CLASSMAXSIG): Removed.
2691 Rearranged file to group related functions together.
2692 (_Jv_IsInstanceOf): Moved to natClass.cc.
2693 (abort_final): Removed.
2694 Removed some unused includes.
2695 (classFromSig): Removed.
2696 (_Jv_FindClassFromSignature): New function.
2697 (_Jv_initPrimClass): Renamed.
2698 (getClass): Removed.
2700 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
2702 * java/io/FileDescriptor.java (finalize): Throws IOException
2703 instead of Throwable.
2705 * java/io/FileInputStream.java: Rewritten.
2707 * java/io/StreamTokenizer.java (nextToken): Unread newline character
2708 at the end of a comment.
2710 1998-10-29 Tom Tromey <tromey@cygnus.com>
2712 * include/javaprims.h: Regenerated class declarations.
2713 * classes.pl (scan): Don't special-case ClassLoader.
2715 * prims.cc (processClass): Removed.
2716 (_Jv_InitClass): Removed.
2717 Removed all CSTATE_ macros.
2718 (resolveConstants): Removed.
2720 (_Jv_NewMultiArray): Cleaned up.
2721 * Makefile.in: Rebuilt.
2722 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
2723 * java/lang/Class.h (Class): Declare new methods. processClass no
2725 * java/lang/Class.java (hackTrampoline): New method.
2726 (initializeClass): Declare.
2727 (hackRunInitializers): Declare.
2728 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
2729 (initializeClass): New method.
2730 (hackRunInitializers): New method.
2731 (init_name, void_signature): Moved from prims.cc.
2732 (_Jv_InitClass): New function.
2733 (isAssignableFrom): Don't call processClass.
2734 (STATE_NOTHING): New macro.
2735 (resolveConstants): New function.
2737 (ErrorClass): New define.
2739 * java/lang/Class.java (getClassLoader): Declare.
2740 * java/lang/ClassLoader.java: Rewrote from scratch.
2742 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
2743 AbstractMethodError.h, IllegalAccessError.h,
2744 NoClassDefFoundError.h.
2745 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
2746 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
2747 longer static. Changed return type.
2748 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
2749 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
2750 * prims.cc (findMethodLocal): Removed.
2751 (processClass): Use _Jv_GetMethodLocal.
2753 1998-10-28 Tom Tromey <tromey@cygnus.com>
2755 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
2756 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
2758 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
2759 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
2761 * include/jni.h: Added copyright header.
2762 * include/javaprims.h: Added copyright header.
2763 * include/java-field.h: Added copyright header.
2764 * include/java-array.h: Added copyright header.
2765 * include/cni.h: Added copyright header.
2767 * include/javaprims.h: Regenerated class declarations using
2768 classes.pl; now they are complete.
2769 * classes.pl: New file.
2771 * java/lang/natMath.cc: Include <config.h>.
2772 * java/lang/reflect/natField.cc: Include <config.h>.
2773 * java/util/NativeUtil.java: Removed.
2774 * Makefile.in: Rebuilt.
2775 * Makefile.am (nat_headers): Added Math.h.
2776 * java/lang/Math.h: Removed.
2777 * java/util/natGregorianCalendar.cc: Added copyright header.
2779 * java/lang/natFloat.cc: Added copyright header.
2780 * java/lang/Byte.java: Added copyright header.
2781 * java/lang/Void.java: Added copyright header.
2782 * java/lang/Short.java: Added copyright header.
2784 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
2786 * include/javaprims.h (java::io): Added bunch of missing classes.
2788 * java/io/DataInputStream.java (readLine): Added a special case
2789 for handling BufferedInputStream data to reduce the likelihood
2790 of a pushback error.
2791 (skipBytes): Added code to handle negative number of skip bytes.
2793 * java/io/StreamTokenizer.java: Rewritten.
2795 1998-10-28 Tom Tromey <tromey@cygnus.com>
2797 * java/util/natGregorianCalendar.cc (computeFields): Call
2798 getRawOffset as a method.
2800 * include/javaprims.h (java::io): Added FilterOutputStream.
2801 * Makefile.in: Rebuilt.
2802 * Makefile.am (nat_headers): Added PrintStream.h,
2803 FilterOutputStream.h.
2804 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
2806 (die): New function.
2807 (run): Die if `main' not found, is not public, or is not static.
2809 * boehm.cc (_Jv_MarkObj): Use new field names.
2810 * include/java-field.h (JvGetFirstInstanceField): Use new field
2812 (JvNumInstanceFields): Likewise.
2813 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
2814 (getInterfaces): Likewise.
2815 * prims.cc (CLASS_CONSTANTS): Removed.
2816 (CLASS_CONST_SIZE): Likewise.
2817 (CLASS_CONST_TAG): Likewise.
2818 (CLASS_CONST_DATA): Likewise.
2819 (CLASS_CONST_UTF8): Likewise.
2820 (WORD2UTF): Likewise.
2821 (CLASS_CLASS): Likewise.
2822 (CLASS_PRIM_SIG): Likewise.
2823 (CLASS_ARRAY_CACHE): Likewise.
2824 (HASH_CHARS): Likewise.
2825 (hashClassName): Likewise.
2826 Many changes to use new field names.
2827 * java/lang/Class.h (Class): Renamed fields to track compiler.
2829 1998-10-27 Tom Tromey <tromey@cygnus.com>
2831 * java/lang/natClass.cc: Use #pragma implementation.
2832 (getComponentType): Moved into header.
2833 (getModifiers): Likewise.
2834 (getName): Likewise.
2835 (getSuperclass): Likewise.
2836 (isArray): Likewise.
2837 (isPrimitive): Likewise.
2838 * include/jvm.h (_Jv_FindClass): Declare.
2839 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
2840 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
2841 * include/javaprims.h: Use _Jv_Method, not JvMethod.
2842 * java/lang/Class.h: Rewrote from scratch.
2843 * prims.cc: Many changes to work with new Class.h.
2844 * include/java-field.h (CLASS_FIELDS): Removed.
2845 (CLASS_SFIELDS): Likewise.
2846 (CLASS_IFIELDS): Likewise.
2847 (CLASS_NFIELDS): Likewise.
2848 (CLASS_NIFIELDS): Likewise.
2849 (CLASS_NSFIELDS): Likewise.
2850 (CLASS_FSIZE): Likewise.
2851 (JvGetFirstInstanceField): Rewrote.
2852 (JvNumInstanceFields): Likewise.
2854 * java/lang/Object.h: Added copyright comment.
2856 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
2858 * java/text: New package directory.
2859 * java/text/FieldPosition.java: New class.
2860 * java/text/ParsePosition.java: New class.
2861 * java/text/ParseException.java: New Exception class.
2862 * java/text/Format.java: New class.
2863 * java/text/NumberFormat.java: New (empty placeholder) class.
2864 * java/text/DateFormatSymbols.java: New class (no Locales support).
2865 * java/text/DateFormat.java: New Format class (incomplete).
2866 * java/text/SimpleDateFormat.java: New DateFormat class.
2868 * include/javaprims.h (java::test): Added new package and classes.
2869 * java/util/Calendar.java (clone): New method.
2870 * java/util/Date.java (toString): Added non-native implementation.
2871 (parse): Made public instead of synchronized.
2872 * java/util/natDate.cc (toString): Removed.
2873 * java/util/natGregorianCalendar.cc (computeFields):
2874 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
2876 1998-10-27 Tom Tromey <tromey@cygnus.com>
2878 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
2880 * prims.cc (lookupArray): Added explanatory comment.
2881 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
2882 class. Mark the class of each object.
2883 (_Jv_MarkArray): Mark the object's class.
2885 * configure: Rebuilt.
2886 * configure.in: Create java-gc.h.
2887 * include/boehm-gc.h: New file.
2888 * include/no-gc.h: New file.
2889 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
2891 * java/lang/Object.h: Include java-gc.h.
2892 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
2893 friends, if defined.
2894 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
2896 (_Jv_MarkArray): Renamed from mark_array; changed signature.
2898 1998-10-26 Tom Tromey <tromey@cygnus.com>
2900 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
2901 paragraph separators, not numbers.
2903 * java/io/Writer.java (write): Removed write(char) to avoid
2905 * java/util/Properties.java: Rewrote from scratch.
2906 * include/javaprims.h (java::io): Added PrintWriter,
2907 BufferedWriter, PushbackReader.
2909 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
2911 * java/lang/System.java: exit() is a static method.
2913 1998-10-26 Tom Tromey <tromey@cygnus.com>
2915 * java/lang/natString.cc (_Jv_NewStringUTF): Use
2917 (_Jv_NewStringUtf8Const): Likewise.
2918 * include/jvm.h (_Jv_strLengthUtf8): Declare.
2919 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
2921 * java/lang/Object.h (Object): Add mark_array as friend function.
2922 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
2923 _Jv_AllocBytes, to ensure that header is marked.
2924 * boehm.cc (mark_obj): Push sync_info field for all objects, not
2926 (mark_array): Push sync_info field for array.
2928 1998-10-24 Tom Tromey <tromey@cygnus.com>
2930 * java/lang/String.java (String): Updated for StringBuffer
2932 * java/util/BitSet.java: Renamed field (data->bits) to conform to
2934 * java/lang/StringBuffer.java: Renamed fields to conform to
2935 serialization spec: buffer->value, next->count, copy->shared.
2937 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
2939 * java/util/TimeZone.java: New class.
2940 * java/util/SimpleTimeZone.java: New class.
2941 * java/util/Locale.java: New file.
2942 * java/util/Calendar.java: Make almost complete.
2943 * java/util/GregorianCalendar.java
2944 * java/util/natGregorianCalendar.cc: New file.
2945 * java/util/Date.java: Re-written from scratch.
2946 * java/util/natDate.cc (setTime): Removed - no longer native.
2947 * include/javaprims.h (java::util): Add new classes.
2948 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
2949 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
2951 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
2953 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
2954 returning it as a jint.
2956 1998-10-23 Tom Tromey <tromey@cygnus.com>
2958 * prims.cc (arg_vec, main_group, main_thread): New globals.
2959 (JvRunMain): Use them.
2961 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
2963 * java/io/DataInputStream.java: Rewritten.
2965 * java/io/DataOutputStream.java (writeUTF): OR secondary and
2966 tertiary bytes with 0x80 per spec.
2968 1998-10-23 Tom Tromey <tromey@cygnus.com>
2970 * java/lang/String.java (init): Changed name of `copy' argument.
2971 * java/lang/natString.cc (init): Inverted sense of `copy'
2974 * java/lang/Object.h (Object): Declare mark_obj as a friend.
2975 * java/lang/Class.h (Class): Declare mark_obj as a friend.
2976 * boehm.cc (ObjectClass): New define.
2977 (ClassClass): Likewise.
2978 (mark_obj): Special-case Object and Class.
2980 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
2982 * java/util/BitSet.java: Rewrote from scratch.
2984 * prims.cc (lookupArray): Removed useless cast.
2986 * java/lang/natObject.cc: Use `#pragma implementation'.
2988 * java/lang/String.java (init): Added `copy' argument.
2989 (String): Look in StringBuffer to find char array.
2990 * java/lang/natString.cc (init): Added `copy' argument.
2991 * java/lang/StringBuffer.java: Rewrote from scratch.
2993 * java/lang/Compiler.java: Rewrote from scratch.
2994 * java/lang/Throwable.java: Don't use NativeLang.
2995 * include/javaprims.h (java::lang): Don't mention NativeLang.
2996 * java/lang/Process.java: Rewrote from scratch.
2997 * java/lang/SecurityManager.java (classLoaderDepth): Commented
2999 (currentClassLoader): Likewise.
3000 (currentLoadedClass): Likewise.
3001 * java/lang/natClass.cc (getClassLoader): Commented out.
3002 * java/lang/Class.java (getClassLoader): Commented out.
3003 * java/lang/Compiler.java: Removed.
3004 * java/lang/NativeLang.java: Removed.
3006 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
3007 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
3008 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
3009 (_Jv_hashUtf8String): Now static.
3010 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
3011 name of return type.
3013 * java/lang/Class.h (Class): Declare checkMemberAccess.
3014 * Makefile.in: Rebuilt.
3015 * Makefile.am (nat_headers): Added Member.h.
3016 * java/lang/natClass.cc: Include Member.h.
3017 (getDeclaredClasses): Call checkMemberAccess.
3018 * java/lang/Class.java (checkMemberAccess): Call
3019 SecurityManager.checkMemberAccess.
3021 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
3023 * java/lang/SecurityManager.java: Rewritten.
3025 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
3027 * java/applet/Applet.java, java/applet/AppletContext.java,
3028 java/applet/AppletStub.java, java/applet/AudioClip.java,
3029 java/awt/AWTError.java, java/awt/AWTException.java,
3030 java/awt/BorderLayout.java, java/awt/Button.java,
3031 java/awt/Canvas.java, java/awt/CardLayout.java,
3032 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
3033 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
3034 java/awt/Color.java, java/awt/Component.java,
3035 java/awt/Container.java, java/awt/Dialog.java,
3036 java/awt/Dimension.java, java/awt/Event.java,
3037 java/awt/FileDialog.java, java/awt/FlowLayout.java,
3038 java/awt/Font.java, java/awt/FontMetrics.java,
3039 java/awt/Frame.java, java/awt/Graphics.java,
3040 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
3041 java/awt/GridLayout.java, java/awt/Image.java,
3042 java/awt/Insets.java, java/awt/Label.java,
3043 java/awt/LayoutManager.java, java/awt/List.java,
3044 java/awt/MediaTracker.java, java/awt/Menu.java,
3045 java/awt/MenuBar.java, java/awt/MenuComponent.java,
3046 java/awt/MenuContainer.java, java/awt/MenuItem.java,
3047 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
3048 java/awt/Rectangle.java, java/awt/Scrollbar.java,
3049 java/awt/TextArea.java, java/awt/TextComponent.java,
3050 java/awt/TextField.java, java/awt/Toolkit.java,
3051 java/awt/Window.java, java/awt/image/ColorModel.java,
3052 java/awt/image/CropImageFilter.java,
3053 java/awt/image/DirectColorModel.java,
3054 java/awt/image/FilteredImageSource.java,
3055 java/awt/image/ImageConsumer.java,
3056 java/awt/image/ImageFilter.java,
3057 java/awt/image/ImageObserver.java,
3058 java/awt/image/ImageProducer.java,
3059 java/awt/image/IndexColorModel.java,
3060 java/awt/image/MemoryImageSource.java,
3061 java/awt/image/PixelGrabber.java,
3062 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
3063 java/awt/peer/CanvasPeer.java,
3064 java/awt/peer/CheckboxMenuItemPeer.java,
3065 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
3066 java/awt/peer/ComponentPeer.java,
3067 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
3068 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
3069 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
3070 java/awt/peer/MenuBarPeer.java,
3071 java/awt/peer/MenuComponentPeer.java,
3072 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
3073 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
3074 java/awt/peer/TextAreaPeer.java,
3075 java/awt/peer/TextComponentPeer.java,
3076 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
3077 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
3078 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
3079 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
3080 java/net/MalformedURLException.java, java/net/NativeNet.java,
3081 java/net/ProtocolException.java, java/net/ServerSocket.java,
3082 java/net/Socket.java, java/net/SocketException.java,
3083 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
3084 java/net/URL.java, java/net/URLConnection.java,
3085 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
3086 java/net/URLStreamHandlerFactory.java,
3087 java/net/UnknownHostException.java,
3088 java/net/UnknownServiceException.java: Removed.
3090 1998-10-22 Tom Tromey <tromey@cygnus.com>
3092 * prims.cc (_Jv_AllocObject): Register finalizer if class'
3093 finalizer is not Object.finalize.
3094 (internalAddClass): Don't set `final' member of class.
3095 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
3096 other places that know about finalize() location.
3097 * java/lang/Class.h (Class): Removed `final' field.
3099 * aclocal.m4, configure: Rebuilt.
3100 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
3101 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
3103 * configure.in (AC_OUTPUT): Pass CXX to config.status.
3104 * Makefile.in: Rebuilt.
3105 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
3107 1998-10-21 Tom Tromey <tromey@cygnus.com>
3109 * java/lang/Object.java (finalize): Move to be first method in
3112 * configure: Rebuilt.
3113 * configure.in (GCINCS): Include contents of boehm-cflags file.
3115 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
3117 * java/lang/ArrayIndexOutOfBoundsException.java
3118 (ArrayIndexOutOfBoundsException): Fixed string literal.
3119 * java/lang/StringIndexOutOfBoundsException.java
3120 (StringIndexOutOfBoundsException): Fixed string literal.
3122 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3124 * natFileDescriptorEcos.cc added.
3125 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
3127 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3129 * acconfig.h: test for __int32_t and __uint32_t added.
3130 * include/config.h.in: test for __int32_t and __uint32_t added.
3131 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
3132 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
3133 * configure.in: test for __int32_t and __uint32_t added.
3134 * configure: test for __int32_t and __uint32_t added.
3136 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
3138 * configure.in: Test for --enable ecos and link
3139 natFileDescriptor.cc to natFileDescriptorEcos.cc or
3140 natFileDescriptorPosix.cc
3142 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
3144 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
3146 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
3149 * java/io/CharArrayReader.java (close): Synchronize on lock
3150 object per Reader contract.
3151 (read): Synchronize on lock obj. Verify that reader wasn't closed.
3152 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
3153 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
3154 Ensure that arg passed in isn't negative.
3156 * java/io/FilterReader.java (FilterReader): Use the lock obj when
3157 constructing the superclass.
3159 * java/io/PushbackReader.java (close): Synchronize on lock
3160 object per Reader contract.
3161 (read): Synchronize on lock obj. Verify that reader wasn't closed.
3162 (ready): Synchronize on lock obj. Throw IOException if reader
3164 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
3165 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
3166 Ensure that arg passed in isn't negative.
3167 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
3169 * java/io/StringReader.java: Created.
3171 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
3173 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
3175 (read): Removed synchronized modifier to match JCL.
3176 (reset): Removed synchronized modifier to match JCL.
3177 (skip): Removed synchronized modifier to match JCL.
3179 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
3181 * java/io/PushbackReader.java (PushbackReader): Made
3182 constructors public.
3184 1998-10-17 Tom Tromey <tromey@cygnus.com>
3186 * java/io/PushbackInputStream.java (PushbackInputStream): Made
3187 constructors public.
3189 1998-10-16 Anthony Green <green@cygnus.com>
3191 * aclocal.m4, configure: Rebuilt.
3192 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
3194 * configure.host: Rewrote.
3195 * Makefile.in: Rebuilt.
3196 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
3197 (AM_CFLAGS): New macro.
3198 ($(c_files)): Use COMPILE macro.
3199 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
3200 automake problem(s).
3202 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
3204 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
3206 * java/io/CharArrayReader.java: Created.
3208 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
3210 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
3211 size check to allow 0 per JCL.
3213 * java/io/PushbackReader.java: Created.
3215 1998-10-16 Tom Tromey <tromey@cygnus.com>
3217 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
3218 <sys/time.h> includes.
3219 * java/io/natFile.cc: Conditionalize <unistd.h> include.
3220 * include/no-threads.h: Conditionalize <unistd.h> include on
3223 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
3225 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
3228 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
3230 * java/io/FilterReader.java: Created.
3232 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
3234 * java/io/PushbackInputStream.java: Rewritten.
3236 * java/io/BufferedInputStream.java (BufferedInputStream): Check
3237 that size passed to constructor is legal.
3238 (read): Check that args passed in are legal.
3239 (skip): Rewritten to get rid of the temporary buffer.
3240 (refill): Added marklimit check to grow the buffer.
3242 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
3244 (bytesAvail): Removed.
3245 (read): Changed bytesAvail to Math.min.
3246 (skip): Changed bytesAvail to Math.min.
3248 * java/io/InputStream.java (read): Got rid of extraneous exceptions
3249 from the throws clause.
3250 (skip): Rewritten to use a temporary buffer.
3252 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
3254 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
3257 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
3259 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
3260 to write the double one word at a time.
3262 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
3264 * java/io/BufferedInputStream.java: Rewritten.
3266 1998-10-12 Tom Tromey <tromey@cygnus.com>
3268 * jni.cc: Include config.h and stddef.h.
3270 * java/lang/Class.h (_dispatchTable): Removed again.
3271 Removed all ACC_* defines again.
3273 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
3275 * Makefile.am (nat_files): Add netField.o.
3276 (libjava_a_SOURCES): Add jni.cc.
3277 (java/lang/reflect/Field.h): New rule.
3278 * Makefile.in: Re-generated.
3279 * include/javaprims.h: Add some extra class and typedefs.
3280 * include/jni.h: New file.
3283 * include/java-field.h: New file.
3284 * include/jvm.h: #include <java-field.h>.
3285 * boehm.cc: #include <java-field.h>.
3286 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
3287 * java/lang/reflect/Member.java: New class.
3288 * java/lang/reflect/Field.java: New class. (Very incomplete.)
3289 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
3291 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
3293 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
3294 testsuite/Makefile.in: Rebuilt.
3295 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
3296 * configure.host: Created.
3298 1998-10-10 Tom Tromey <tromey@cygnus.com>
3300 * java/lang/natObject.cc (sync_init): Always allocate a new
3303 1998-10-09 Tom Tromey <tromey@cygnus.com>
3305 * java/io/ByteArrayInputStream.java (mark): Renamed from
3308 * java/io/FileOutputStream.java (finalize): Removed.
3309 * java/io/FileDescriptor.java (finalize): New method.
3311 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
3313 * ByteArrayInputStream.java: Corrected status comment.
3315 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
3317 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
3319 1998-10-08 Tom Tromey <tromey@cygnus.com>
3321 * prims.cc (lookupArray): Use static array to initialize list of
3324 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
3326 * prims.cc (lookupArray): Initialize the msize for new
3329 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
3331 * configure: Rebuilt.
3332 * configure.in: Check for fsync and sleep.
3333 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
3335 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
3336 HAVE_SLEEP. Include config.h.
3338 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
3339 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
3342 1998-10-08 Tom Tromey <tromey@cygnus.com>
3344 * java/io/natFile.cc: Don't include SecurityManager.h.
3345 (performList): Renamed.
3346 (performMkdir): Likewise.
3347 (performRenameTo): Likewise.
3348 (performDelete): Likewise.
3350 * java/io/File.java (performDelete): Renamed from natDelete.
3351 (list): Now written in Java.
3352 (performList): New method.
3353 (performMkdir): New method.
3354 (mkdir): Now written in Java.
3355 (performRenameTo): New method.
3356 (renameTo): Now written in Java.
3358 1998-10-06 Tom Tromey <tromey@cygnus.com>
3360 * Makefile.in: Rebuilt.
3361 * Makefile.am (ETAGS_ARGS): New macro.
3362 (TAGS_DEPENDENCIES): Likewise.
3364 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
3366 * Makefile.in: Rebuilt.
3367 * Makefile.am: Use -classpath option with javac.
3369 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
3371 * java/io/FileOutputStream.java (finalize): Call
3374 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
3376 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
3378 * java/lang/mprec.c: Ditto.
3380 * java/lang/mprec.h: Include math.h for HUGE_VAL when
3383 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
3385 * java/io/InputStream.java (skip): Make local var i a long.
3387 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
3389 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
3390 * prims.cc (lookupArray): Use memcpy, not memmove.
3391 * include/config.h.in: Rebuilt.
3392 * acconfig.h (HAVE_MEMCPY): Added.
3393 * configure: Rebuilt.
3394 * configure.in: Check for memcpy again.
3396 * java/io/RandomAccessFile.java (RandomAccessFile): Use
3397 String.compareTo, not ==.
3399 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
3400 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
3401 * java/lang/natObject.cc (struct _dispatchTable): Removed.
3402 * include/jvm.h (struct _Jv_DispatchTable): New structure.
3403 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
3404 into new array's dtable.
3405 (_Jv_AllocObject): Use _Jv_DispatchTable.
3406 (_Jv_NewPrimArray): Likewise.
3407 (_Jv_NewObjectArray): Likewise.
3409 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
3411 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
3412 offending index value.
3413 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
3415 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
3416 * java/lang/Throwable.java: (Throwable): fixed argument to this().
3418 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
3420 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
3422 * java/io/OutputStream.java (write): Use off and len parameters to
3423 output partial byte array.
3425 * java/io/BufferedReader.java, java/io/FileReader.java,
3426 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
3427 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
3428 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
3429 java/io/Writer.java: Added COPYRIGHT-TBD comment.
3431 * include/javaprims.h (java::lang): Added
3432 ExceptionInInitializerError, IllegalStateException,
3433 NoSuchFieldException, and UnsupportedOperationException.
3435 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
3437 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
3440 * include/java-array.h (__JArray): Added clone method.
3441 * prims.cc (CloneableClass): New define.
3442 (lookupArray): Initialize array class to indicate that it
3443 implements Cloneable.
3445 * java/lang/Class.h: Removed all ACC_* defines.
3446 * prims.cc: Include Modifier.h.
3447 (_Jv_LookupInterfaceMethod): Use methods in
3448 java.lang.reflect.Modifier, not ACC_ defines.
3450 * java/lang/Class.h (Class): Declare getClasses,
3451 getDeclaredClasses, getDeclaringClass, getModifiers,
3452 * java/lang/Class.java: Rewrote from scratch.
3454 * include/javaprims.h (java::lang): Added reflect and
3456 * Makefile.in: Rebuilt.
3457 * Makefile.am (nat_headers): Added Modifier.h.
3459 * prims.cc (_Jv_IsInstanceOf): Return false if class is
3462 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
3464 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
3465 instead of test and abort.
3467 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
3468 remove compiler warning.
3470 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3472 * java/lang/natDouble.cc: zero terminate string.
3473 * strtod.c: Set errno if no digits are found in fraction.
3475 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
3477 * java/lang/reflect/Modifier.java: New file.
3479 * java/lang/VirtualMachineError.java: Rewrote from scratch.
3480 * java/lang/VerifyError.java: Rewrote from scratch.
3481 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
3482 * java/lang/UnknownError.java: Rewrote from scratch.
3483 * java/lang/StackOverflowError.java: Rewrote from scratch.
3484 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
3485 * java/lang/InternalError.java: Rewrote from scratch.
3486 * java/lang/IllegalAccessError.java: Rewrote from scratch.
3487 * java/lang/ExceptionInInitializerError.java: New file.
3488 * java/lang/Error.java: Rewrote from scratch.
3489 * java/lang/ClassFormatError.java: Rewrote from scratch.
3490 * java/lang/ClassCircularityError.java: Rewrote from scratch.
3491 * java/lang/AbstractMethodError.java: Rewrote from scratch.
3492 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
3493 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
3494 * java/lang/LinkageError.java: Rewrote from scratch.
3495 * java/lang/IncompatibleClassChangeError.java: Rewrote from
3497 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
3499 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
3500 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
3502 * include/cni.h (JvAllocObject): Moved from prims.cc.
3504 * prims.cc (JvAllocObject): Moved to cni.h.
3505 (_Jv_AllocObject): Use _Jv_FinalizeObject.
3506 (finalize_name): Removed.
3508 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
3510 * java/lang/Class.h (Class): Added size() method.
3511 * prims.cc (_Jv_MonitorEnter): Removed.
3512 (_Jv_MonitorExit): Removed.
3513 * java/lang/Object.h (JvSyncInfo): Removed.
3514 * Makefile.in: Rebuilt.
3515 * Makefile.am (nat_headers): Added Cloneable.h,
3516 CloneNotSupportedException.h.
3517 * java/lang/Object.h: Rewrote.
3518 * java/lang/natObject.cc: Rewrote from scratch.
3519 * java/lang/Object.java: Rewrote from scratch.
3521 * java/io/natFile.cc: Conditionally include <dirent.h>.
3522 (list): If no <dirent.h>, always return NULL.
3523 * configure: Rebuilt.
3524 * configure.in: Check for dirent.h.
3526 * prims.cc (lookupArray): Don't use sprintf.
3528 * java/util/Hashtable.java (containsKey): Use `abs' to compute
3535 * java/util/Hashtable.java (hsize): Renamed from size to avoid
3536 name conflict with method.
3538 * include/javaprims.h (java::util): Added HashtableEntry.
3540 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
3542 * java/util/Hashtable.java: Rewritten.
3544 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
3546 * java/io/natFileDescriptor.cc (write): Correctly test `write'
3550 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
3553 * posix-threads.cc (_Jv_CondWait): Now returns int.
3554 * include/javaprims.h (java::lang): Added
3555 IllegalMonitorStateException.
3556 * Makefile.in: Rebuilt.
3557 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
3558 * include/no-threads.h (_Jv_CondDestroy): Removed.
3559 (_Jv_MutexDestroy): Removed.
3560 (_Jv_CondWait): Now returns int.
3561 (_Jv_CondNotify): Likewise. Added mutex argument.
3562 (_Jv_CondNotifyAll): Likewise.
3563 (_Jv_MutexLock): Always succeed.
3564 (_Jv_MutexUnlock): Likewise.
3565 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
3566 (_Jv_HaveMutexDestroy): Define.
3567 (_Jv_CondNotify): Now returns int. Added mutex argument.
3568 (_Jv_CondNotifyAll): Likewise.
3569 * include/quick-threads.h (_Jv_CondDestroy): Removed.
3570 (_Jv_MutexDestroy): Removed.
3571 (_Jv_CondWait): Now returns int.
3572 (_Jv_CondNotify): Likewise. Added mutex argument.
3573 (_Jv_CondNotifyAll): Likewise.
3574 * java/lang/natObject.cc (finalize_sync_info): New function.
3575 (init_mutex): Initialize `init' and register finalizer if
3578 (init_mutex): Use it.
3580 (notifyAll): Use it.
3582 (notify): Throw IllegalMonitorStateException on failure.
3583 (notifyAll): Likewise.
3584 (wait): Likewise. Also, throw InterruptedException if
3586 Include cni.h, Thread.h, IllegalMonitorStateException.h,
3587 InterruptedException.h, IllegalArgumentException.h.
3588 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
3590 * java/lang/natString.cc: Renamed all `JvPriv' functions.
3591 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
3592 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
3593 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
3594 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
3595 * quick-threads.cc: Renamed all `JvPriv' functions.
3596 * prims.cc: Renamed all `JvPriv' functions.
3597 * posix-threads.cc: Renamed all `JvPriv' functions.
3598 * nogc.cc: Renamed all `JvPriv' functions.
3599 * no-threads.cc: Renamed all `JvPriv' functions.
3600 * boehm.cc: Renamed all `JvPriv' functions.
3601 * include/quick-threads.h: Renamed all `JvPriv' functions.
3602 * include/posix-threads.h: Renamed all `JvPriv' functions.
3603 * include/no-threads.h: Renamed all `JvPriv' functions.
3604 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
3606 * include/no-threads.h (JvPrivCondWait): Wrote minimal
3608 (JvPrivCondNotify): Do nothing.
3609 (JvPrivCondNotifyAll): Do nothing.
3611 * prims.cc (processClass): Handle case where state is
3614 * java/lang/natFirstThread.cc: Include <stdlib.h>
3616 * configure: Rebuilt.
3617 * configure.in: Fixed sense of --enable-libjava-debug.
3619 * java/lang/natThread.cc (join): Declare `t' outside the loop so
3620 it can be used afterward by the assertion.
3622 * configure: Rebuilt.
3623 * configure.in: When cross-compiling, assume alloca.
3625 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
3626 __builtin_alloca (autoconf docs are wrong here).
3628 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
3630 (available): Use `FD_ZERO' (typo fix).
3632 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
3634 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
3635 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
3637 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
3638 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
3641 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
3643 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
3645 * java/lang/natDouble.cc: Declare alloca safely.
3647 * configure, include/config.h.in: Rebuilt.
3648 * configure.in: Add alloca check.
3650 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
3652 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
3653 condition while calling notify.
3654 (join): Remove `curr_nt' from `nt's join list, not vice versa.
3655 (interrupt): Hold mutex for interrupt condition while calling
3658 * java/lang/natString.cc (init): Allocate and try to read `count'
3659 characters, not `count - offset' characters.
3661 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
3662 Correctly compute `count'.
3664 * java/lang/Boolean.java (getBoolean): Return false if property
3667 * java/lang/System.java (setProperties): Set prop_init.
3669 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
3671 * java/io/PrintStream.java (println): Use line.separator, not
3673 * java/lang/System.java (out, err): Make both autoflush streams.
3674 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
3676 * include/config.h.in: Rebuilt.
3677 * acconfig.h (HAVE_MEMCPY): Removed.
3678 * configure: Rebuilt.
3679 * configure.in: Never define HAVE_MEMCPY.
3681 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
3683 (_Jv_AllocString): Use JvAllocObject again.
3684 * java/lang/Class.h (thread): New field.
3685 (_Jv_AllocString): No longer a friend.
3686 * prims.cc (processClass): Removed dead code. Changed to more
3687 closely follow the Java Language Specification.
3688 (processClass): Return early if already at the right state.
3690 * prims.cc (JvNewStringUTF): Removed.
3691 * include/cni.h (JvNewStringUTF): New function.
3692 (_Jv_NewStringUTF): Declare as `extern "C"'.
3693 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
3695 * java/lang/natDouble.cc: Added copyright info and header
3696 comment. Include <stdlib.h>.
3697 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
3698 bytes as are chars in string.
3700 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
3702 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
3706 * java/lang/System.java (init_properties): Now native.
3707 * java/lang/natSystem.cc (init_properties): New method.
3708 Include java/util/Properties.h.
3710 * Makefile.in: Rebuilt.
3711 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
3712 OutputStreamWriter.h, ByteArrayInputStream.h,
3713 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
3714 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
3715 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
3716 Properties.h, Hashtable.h, Dictionary.h.
3719 * include/javaprims.h (java::io): Added Reader, Writer,
3720 InputStreamReader, OutputStreamWriter,
3721 UnsupportedEncodingException, ByteArrayInputStream,
3722 ByteArrayOutputStream, EOFException, SyncFailedException,
3723 PushbackInputStream.
3724 (java::lang): Added Cloneable.
3725 (java::util): Added NoSuchElementException, VectorEnumeration,
3726 Dictionary, HashtableEnumeration, PropertiesEnumeration.
3728 * java/io/PipedReader.java: New file.
3730 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
3732 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
3735 * java/io/io-defs.h: Removed.
3737 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
3738 (FileInputStream): Use new constructor. Can throw IOException.
3740 * java/lang/System.java (getProperty): Don't throw
3741 NullPointerException.
3743 * java/io/RandomAccessFile.java: Rewrote from scratch.
3745 * java/io/natFileDescriptor.cc: Include EOFException.h.
3747 (length): New method.
3748 (getFilePointer): New method.
3750 (available): New method.
3751 * java/io/FileDescriptor.java (SET, CUR): New constants.
3752 (seek, length, getFilePointer, read, available): New decls.
3754 * java/io/PipedWriter.java: New file.
3755 * java/io/StringWriter.java: New file.
3756 * java/io/CharArrayWriter.java: New file.
3757 * java/io/CharConversionException.java: New file.
3758 * java/io/BufferedWriter.java: New file.
3759 * java/io/FilterWriter.java: New file.
3760 * java/io/FileWriter.java: New file.
3762 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
3763 OutputStreamWriter.h, NullPointerException.h,
3764 ByteArrayInputStream.h, InputStreamReader.h.
3765 (getBytes): New method.
3766 (init): Throw NullPointerException.
3767 (init): New function.
3768 * java/lang/String.java (getBytes): Added missing decl.
3769 (getBytes): New method.
3770 (String): Added byte[]-based constructors.
3771 (copyValueOf): Wrote.
3772 (init): Declare variant which takes byte array and encoding.
3773 Import java.io.UnsupportedEncodingException.
3775 * java/io/File.java: Rewrote from scratch.
3776 * java/io/natFileDescriptor.cc: Rewrote from scratch.
3777 * java/io/FileDescriptor.java: Rewrote from scratch.
3778 * java/io/FilenameFilter.java: Rewrote from scratch.
3780 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
3782 * java/io/SyncFailedException.java: New file.
3783 * java/io/UTFDataFormatException.java: Rewrote from scratch.
3784 * java/io/InterruptedIOException.java: Rewrote from scratch.
3785 * java/io/FileNotFoundException.java: Rewrote from scratch.
3786 * java/io/EOFException.java: Rewrote from scratch.
3787 * java/io/IOException.java: Rewrote from scratch.
3788 * java/io/PrintStream.java: Rewrote from scratch.
3789 * java/io/DataOutputStream.java: Rewrote from scratch.
3790 * java/io/BufferedOutputStream.java: Rewrote from scratch.
3791 * java/io/FilterOutputStream.java: Rewrote from scratch.
3792 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
3793 * java/io/PipedOutputStream.java: Rewrote from scratch.
3794 * java/io/FileOutputStream.java: Rewrote from scratch.
3795 * java/io/OutputStream.java: Rewrote from scratch.
3796 * java/io/DataOutput.java: Rewrote from scratch.
3798 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
3800 * prims.cc (_Jv_CheckCast): Add missing ! operator.
3802 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
3804 * configure.in: Add --enable-libjava-debug
3806 * Makefile.am (nat_headers): Add java/lang/Float.h and
3809 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
3811 * Makefile.in, configure, include/config.h.in: Rebuilt.
3813 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3815 * java/lang/Float.java: Rewritten
3816 * java/lang/Double.java: Rewritten
3817 * java/lang/natFloat.cc: toString() added.
3818 * java/lang/natDouble.cc: toString() added.
3819 * java/lang/natDouble.cc: doubleValueOf() added.
3820 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
3821 java/lang/strtod.c: added.
3822 * ieeefp.h: __sparc added.
3823 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
3825 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
3827 * include/javaprims.h (java::lang): Added
3828 CloneNotSupportedException.
3830 * java/lang/Object.java (clone): No longer native. Implemented.
3831 * java/lang/natObject.cc (clone): Removed.
3833 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
3835 * prims.cc: Don't make definitions `extern "C"'.
3836 (_Jv_RegisterClass): Renamed from registerClass.
3837 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
3838 (_Jv_NewArray): Likewise.
3839 (_Jv_NewMultiArray): Likewise.
3840 (_Jv_CheckCast): Likewise.
3841 (_Jv_LookupInterfaceMethod): Likewise.
3842 (_Jv_CheckArrayStore): Likewise.
3843 (_Jv_RegisterClass): Likewise.
3845 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
3846 * configure: Rebuilt.
3847 * configure.in: Don't check for fmod; it is provided by the fdlibm
3849 * prims.cc (fmod): Removed.
3851 * java/lang/natString.cc (charAt): Use _Jv_uint.
3852 * java/lang/Class.h (class JvField): Use _Jv_ushort.
3853 * prims.cc (HASH_CHARS): Use _Jv_ushort.
3854 (equalUtf8Consts): Likewise.
3855 (internalAddClass): Use _Jv_uint.
3856 (processClass): Likewise.
3857 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
3858 (_Jv_uint): Renamed from uint32.
3859 (struct _Jv_Utf8Const): Changed members to use new type names.
3861 * configure: Rebuilt.
3862 * configure.in: Don't check for memcpy. Require memmove and a way
3864 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
3866 (currentTimeMillis): Don't use #error.
3868 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3870 * java/lang/Math.java: static member random renamed to random_ to
3871 avoid conflict with member function of the same name.
3872 * include/javaprims.h: java.util.Random added.
3874 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
3876 * include/java-chartables.h: Regenerated.
3877 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
3880 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
3882 * java/lang/Math.java: Rewritten.
3883 * java/lang/natMath.cc: New file.
3884 * Files added from fdlibm:
3885 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
3886 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
3887 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
3888 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
3889 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
3890 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
3891 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
3892 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
3893 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
3894 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
3895 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
3896 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
3897 java/lang/k_cos.c, java/lang/sf_ceil.c,
3898 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
3899 java/lang/ieeefp.h, java/lang/fdlibm.h
3900 * Makefile.am: rules added for compiling C files from fdlibm.
3902 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
3904 * chartables.pl: Minor documentation fixes.
3906 * configure: Rebuilt.
3907 * configure.in: Fixed --help output for --enable-fast-character.
3909 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
3911 * configure: Rebuilt.
3912 * configure.in: Recognize --enable-fast-character.
3913 * acconfig.h (COMPACT_CHARACTER): New define.
3914 * include/config.h.in: Rebuilt.
3915 * include/java-chartables.h: New file.
3916 * Makefile.in: Rebuilt.
3917 * Makefile.am (nat_files): Added natCharacter.o.
3918 * java/lang/natCharacter.cc: New file.
3919 * chartables.pl (set_attribute): New function.
3920 (@attributes, @second_attributes): New globals.
3921 ($ROMAN_START, $ROMAN_END): Likewise.
3922 (process_char): Call set_attribute when required.
3923 (print_char): Just print hex value.
3924 (print_block): Generate C++ syntax.
3925 (print_numerics): Likewise.
3926 (print_single_map): Likewise.
3927 (print_all_block): Likewise.
3928 (print_case_table): Likewise.
3929 (print_fast_tables): New function.
3930 Generate C++ code suitable for a header file.
3931 * java/lang/Character.java (table_search): Removed.
3932 (digit_value): Now native.
3933 (getNumericValue): Likewise.
3934 (getType): Likewise.
3935 Removed all automatically-generated tables.
3936 (Tamil_Digit_One): Removed.
3937 (isSpaceChar): Now native.
3938 (isTitleCase): Likewise.
3939 (isLowerCase): Likewise.
3940 (isUpperCase): Likewise.
3941 (toLowerCase): Likewise.
3942 (toTitleCase): Likewise.
3943 (toUpperCase): Likewise.
3944 (isDefined): Fixed sense of test.
3946 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
3948 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
3950 (regionMatches): Likewise.
3952 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
3954 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
3956 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
3958 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
3961 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
3964 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
3966 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
3968 * prims.cc (instanceof_class): Removed.
3969 (instanceof_array): Likewise.
3970 (instanceof): Likewise.
3971 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
3972 (_Jv_CheckCast): Likewise.
3973 * java/lang/natClass.cc (isAssignableFrom): New method.
3974 * java/lang/Class.java (isAssignableFrom): Now native.
3976 * include/cni.h (JvThrow): Use `extern inline'.
3977 (JvAllocObject): Likewise.
3978 (JvInitClass): Likewise.
3980 * java/lang/natSystem.cc (arraycopy): Only check class of source
3983 * prims.cc (_Jv_CheckArrayStore): Wrote.
3984 (_Jv_MonitorEnter): Prefer `JvThrow'.
3985 Include ArrayStoreException.h.
3986 (_Jv_CheckCast): Indentation cleanup.
3988 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
3990 * chartables.pl: New file.
3991 * java/lang/Character.java: Rewrote from scratch.
3993 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
3995 * java/lang/ArithmeticException.java,
3996 java/lang/ArrayIndexOutOfBoundsException.java,
3997 java/lang/ArrayStoreException.java,
3998 java/lang/ClassCastException.java,
3999 java/lang/ClassNotFoundException.java,
4000 java/lang/CloneNotSupportedException.java,
4001 java/lang/Exception.java, java/lang/IllegalAccessException.java,
4002 java/lang/IllegalArgumentException.java,
4003 java/lang/IllegalMonitorStateException.java,
4004 java/lang/IllegalThreadStateException.java,
4005 java/lang/IndexOutOfBoundsException.java,
4006 java/lang/InstantiationException.java,
4007 java/lang/InterruptedException.java,
4008 java/lang/NegativeArraySizeException.java,
4009 java/lang/NoSuchMethodException.java,
4010 java/lang/NullPointerException.java,
4011 java/lang/NumberFormatException.java,
4012 java/lang/RuntimeException.java, java/lang/SecurityException.java,
4013 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
4015 * java/lang/IllegalStateException.java,
4016 java/lang/NoSuchFieldException.java,
4017 java/lang/UnsupportedOperationException.java: Created.
4019 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
4021 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
4022 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
4024 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
4026 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
4028 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
4030 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
4032 * Makefile.in: Rebuilt.
4034 * include/javaprims.h (java::lang): Added
4035 StringIndexOutOfBoundsException.
4037 * java/lang/String.java: Added header comment and FIXME comment for
4038 missing constructors/methods.
4039 (endsWith): Adjusted offset into string to look at just the last chars.
4040 Commented out undocumented method.
4042 * java/lang/natString.cc: Added includes for
4043 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
4044 (String::init): Throw StringIndexOutOfBoundsException.
4045 (String::charAt): Throw StringIndexOutOfBoundsException.
4046 (String::substring): Throw StringIndexOutOfBoundsException.
4047 (String::getChars): Throw ArrayIndexOutOfBoundsException.
4048 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
4049 (String::compareTo): Return difference/offset between chars/strings.
4051 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
4053 * java/lang/Boolean.java (TYPE): Added comment.
4055 * java/lang/Byte.java (decode): Added - commented out until dependent
4056 code for Integer is written.
4057 (compareTo): JDK 1.2 methods written.
4058 (hashCode): Added comment to note that values have been verified.
4060 * java/lang/Short.java (decode): Added - commented out until dependent
4061 code for Integer is written.
4062 (compareTo): JDK 1.2 methods written.
4063 (hashCode): Added comment to note that values have been verified.
4065 * java/lang/Comparable.java: Created - JDK 1.2 interface.
4067 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
4069 * include/javaprims.h (java::lang): Added VirtualMachineError,
4071 * Makefile.in: Rebuilt.
4072 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
4073 VirtualMachineError.h.
4074 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
4075 (lookupArray): Likewise.
4076 (makeUtf8Const): Likewise.
4077 (_Jv_AllocObject): Likewise.
4078 (_Jv_NewObjectArray): Likewise.
4079 Include OutOfMemoryError.h.
4081 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
4082 to use JvNewStringLatin1.
4084 * java/io/io-defs.h: Include java/lang/IOException.h.
4085 * Makefile.in: Rebuilt.
4086 * Makefile.am (nat_headers): Added
4087 ArrayIndexOutOfBoundsException.h,
4088 ClassFormatError.h,ClassNotFoundException.h,
4089 ClassCircularityError.h, ClassCastException.h,
4090 IncompatibleClassChangeError.h, AbstractMethodError.h,
4091 IllegalAccessError.h, LinkageError.h, Error.h,
4092 NegativeArraySizeException.h, IOException.h.
4093 * include/cni.h (SignalError): Removed declaration.
4094 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
4095 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
4096 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
4097 (newInstance): Likewise.
4098 (forName): Likewise.
4099 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
4101 (read): Use JvThrow, not SignalError.
4106 (open_read): Likewise.
4107 (open_write): Likewise.
4110 (newstr): New function.
4111 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
4113 (lastModifiedUnchecked): Likewise.
4114 (lengthUnchecked): Likewise.
4115 * include/javaprims.h (sorry): Removed declaration.
4116 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
4117 ClassFormatError, ClassNotFoundException, ClassCircularityError,
4118 ClassCastException, IncompatibleClassChangeError,
4119 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
4120 * prims.cc (instanceof_array): Use JvFail, not sorry.
4122 Include ArrayIndexOutOfBoundsException.h,
4123 ClassFormatError.h,ClassNotFoundException.h,
4124 ClassCircularityError.h, ClassCastException.h,
4125 IncompatibleClassChangeError.h, AbstractMethodError.h,
4126 IllegalAccessError.h, NegativeArraySizeException.h.
4127 (_Jv_ThrowBadArrayIndex): Implemented.
4128 (JvNewStringUTF): Use JvFail, not sorry.
4129 (_Jv_FindClass): Likewise.
4130 (_Jv_NewArray): Likewise.
4131 (throwException): Removed.
4132 (getClass): Use JvThrow.
4133 (processClass): Likewise.
4134 (_Jv_NewObjectArray): Likewise.
4135 (_Jv_NewMultiArray): Likewise.
4136 (_Jv_CheckCast): Likewise.
4137 (_Jv_LookupInterfaceMethod): Likewise.
4138 (SignalError): Removed.
4139 (getClass): Use _Jv_NewStringUtf8Const to create String.
4141 * java/lang/natSystem.cc (arraycopy): Throw
4142 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
4144 * Makefile.in: Rebuilt.
4145 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
4147 * include/java-array.h: Mention gcjh, not gjavah.
4149 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
4150 (canReadUnchecked): Likewise.
4151 (canWriteUnchecked): Likewise.
4152 (isFileUnchecked): Likewise.
4153 * java/io/natFileDescriptor.cc: Don't include cni.h.
4155 * java/lang/Thread.java (run__): Declare.
4156 * java/lang/natThread.cc (run__): New method, to avoid compiler
4158 (start): Use run__, not run_.
4160 * java/io/io-defs.h: Include cni.h and jvm.h.
4162 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
4164 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
4165 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
4166 to natString.cc (with suitable renaming, inlines etc).
4167 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
4168 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
4169 * java/lang/String.h: Removed - now generated using gjavah.
4170 * java/lang/String.java: Re-written from scratch. Many native methods.
4171 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
4172 * java/lang/natString.cc: Many functions re-written for "compact
4173 strings" representation, or native java.lang.String methods added.
4174 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
4175 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
4176 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
4177 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
4178 * include/cni.h: Add inline method.
4179 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
4180 * include/javaprims.h: Moved some stuff frm String.h.
4181 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
4182 * Makefile.am (nat_header): Added Character.h and String.h.
4183 (String.h): Add new rule.
4185 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
4187 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
4189 * posix-threads.cc: Include cni.h, jvm.h.
4190 * quick-threads.cc: Include cni.h, jvm.h.
4191 * nogc.cc: Include cni.h, not javaprims.h.
4192 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
4193 * java/lang/natThread.cc: Rearranged #include ordering. Don't
4194 include java-assert.h.
4195 * java/lang/natSystem.cc: Include cni.h. Don't include
4197 * java/lang/natRuntime.cc: Include cni.h. Don't include
4199 * prims.cc: Rearranged #include ordering. Don't include
4200 java-array.h or java-assert.h.
4201 * boehm.cc: Include config.h, cni.h.
4202 * exception.cc: Include config.h, cni.h.
4203 * include/jvm.h: Include java-assert.h.
4204 * include/cni.h: Include java/lang/Object.h. Don't include
4205 java-threads.h or java-array.h.
4207 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
4209 * java/lang/Boolean.java: Rewritten.
4211 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
4213 * java/lang/natFirstThread.cc (main_func): New typedef.
4214 (run): Use main_func, not JvPrivThreadStartFunc.
4215 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
4217 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
4219 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
4222 Can't throw Java exceptions with C++ `throw':
4223 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
4224 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
4225 (setPriority): Likewise.
4229 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
4230 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
4232 Can't catch Java exceptions from C++:
4233 * java/lang/natThread.cc (finish_): New method.
4235 * java/lang/Thread.java (run_): Rewrote in Java.
4236 (finish_): New native method.
4238 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
4240 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
4242 * include/javaprims.h (java::io): Added Serializable.
4244 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
4246 * java/util/EmptyStackException.java,
4247 java/util/NoSuchElementException.java: Rewritten.
4249 * java/util/ConcurrentModificationException.java,
4250 java/util/MissingResourceException.java,
4251 java/util/TooManyListenersException.java: Created.
4253 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
4255 * include/cni.h (JvThrow): New function.
4256 * include/javaprims.h (_Jv_Throw): Declare.
4258 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
4260 * java/util/Observable.java: Rewritten.
4262 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
4264 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
4265 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
4266 Include NullPointerException.h.
4268 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
4270 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
4271 assignability checks. Don't bother using memcpy.
4273 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
4275 * include/quick-threads.h (JvPrivThreadWait): New function.
4276 * include/no-threads.h (JvPrivThreadWait): New function.
4277 * include/posix-threads.h (JvPrivThreadWait): New function.
4278 * prims.cc (JvRunMain): Call JvPrivThreadWait.
4280 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
4282 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
4283 offsets by size of type that is being copied.
4285 * java/lang/natThread.cc (start): Don't pass `object' argument to
4287 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
4288 * posix-threads.cc (JvPrivThreadStart): Removed `object'
4290 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
4291 always pass thread as object.
4292 * include/quick-threads.h, include/posix-threads.h,
4293 include/no-threads.h (JvPrivThreadStart): Removed `object'
4296 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
4298 * java/util/Dictionary.java: Rewritten.
4300 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
4302 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
4303 (JvPrivThreadDestroy): Likewise.
4305 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
4307 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
4309 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
4311 * java/lang/natSystem.cc: Rewrote from scratch.
4312 * java/lang/System.java: Rewrote from scratch.
4313 * java/lang/Class.h (Class): Declare isAssignableFrom.
4314 * include/javaprims.h (java::lang): Added ArrayStoreException,
4315 IndexOutOfBoundsException.
4316 * Makefile.in: Rebuilt.
4317 * Makefile.am (nat_headers): Added ArrayStoreException.h,
4318 IndexOutOfBoundsException.h.
4319 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
4320 * include/jvm.h (_Jv_HashCode): New function.
4322 * java/lang/natThread.cc (suspend): Call checkAccess.
4324 * java/lang/Thread.java (setDaemon): Call checkAccess.
4326 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
4328 * java/lang/Runtime.java: Rewrote from scratch.
4329 * java/lang/natRuntime.cc: Rewrote from scratch.
4331 * nogc.cc (JvPrivGCTotalMemory): New function.
4332 (JvPrivGCFreeMemory): Likewise.
4333 (total): New global.
4334 (JvPrivAllocObj): Increment total.
4335 (JvPrivAllocArray): Likewise.
4336 (JvPrivAllocBytes): Likewise.
4337 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
4338 * boehm.cc (JvPrivGCTotalMemory): New function.
4339 (sum_blocks): Likewise.
4340 (JvPrivGCFreeMemory): Likewise.
4342 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
4344 * include/javaprims.h (java::lang): Added FirstThread.
4345 * java/lang/natFirstThread.cc: New file.
4346 * java/lang/FirstThread.java: New file.
4347 * prims.cc (main_signature): Removed.
4348 (main_name): Removed.
4349 #include FirstThread.h.
4350 * Makefile.in: Rebuilt.
4351 * Makefile.am (TFRIEND): Removed.
4352 (java/lang/Thread.h): Likewise.
4353 (FTFRIEND): New macro.
4354 (java/lang/FirstThread.h): New target.
4355 (nat_files): Added natFirstThread.o.
4356 (nat_headers): Added FirstThread.h.
4357 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
4358 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
4360 * java/lang/Thread.java (setName): Throw IllegalArgumentException
4364 * java/lang/natThread.cc (start): Synchronize the thread.
4365 (stop): Synchronize the thread.
4367 * java/lang/ThreadDeath.java: Rewrote from scratch.
4369 * Makefile.in: Rebuilt.
4370 * Makefile.am (TGFRIEND): New macro.
4371 (java/lang/ThreadGroup.h): New target.
4372 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
4374 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
4376 * nogc.cc: Include config.h.
4378 * java/lang/ThreadGroup.java: Rewrote from scratch.
4380 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
4382 * java/lang/Thread.java (checkAccess): Only call in to security
4383 manager if it exists.
4384 (Thread): Don't check access when creating the first thread. Add
4385 this thread to the appropriate ThreadGroup.
4387 * java/lang/natThread.cc (run_): Call uncaughtException method on
4390 * java/lang/Runnable.java: Rewrote from scratch.
4391 * java/lang/Thread.java: Updated copyright comment to correct
4394 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
4396 * java/util/Random.java: Rewritten.
4398 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4400 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
4401 trailing 0 in array[].
4403 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
4405 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4406 and RUNTESTFLAGS from AM_MAKEFLAGS.
4407 (SUBDIRS): Conditionally include testsuite.
4408 * Makefile.in: Rebuilt.
4410 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
4412 * java/lang/Object.h: Include java-assert.h.
4414 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
4416 * Makefile.am: Add testsuite directory.
4417 * configure.in: Build testsuite/Makefile.
4418 * Makefile.in, configure: Rebuilt.
4420 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
4422 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
4423 * include/jvm.h (_Jv_StartFirstThread): Declare.
4425 * include/javaprims.h (java::lang): Added Exception,
4428 * Makefile.in: Rebuilt.
4429 * Makefile.am (nat_headers): Added NullPointerException.h,
4430 InterruptedException.h, IllegalArgumentException.h, Exception.h,
4431 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
4432 (java/lang/Thread.h): New target.
4433 (TFRIEND): New macro
4435 * include/java-assert.h (JvFail): Use 0 and not NULL.
4437 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
4438 instead of assuming we are a friend of Thread.
4439 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
4440 instead of assuming we are a friend of Thread.
4442 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
4444 * java/lang/natThread.cc: Rewrote from scratch.
4445 * java/lang/Thread.java: Rewrote from scratch.
4446 * prims.cc (JvRunMain): Use new Thread constructor.
4447 * include/javaprims.h (java::lang): Added InterruptedException.
4448 * Makefile.in: Rebuilt.
4449 * Makefile.am (nat_headers): Added java/lang/Thread.h.
4450 * java/lang/Thread.h: Removed.
4451 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
4452 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
4454 * posix-threads.cc (JvPrivThreadJoin): Removed.
4455 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
4456 (really_start): Don't notify join_cond.
4457 (JvPrivThreadStart): Added `data' argument.
4458 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
4459 (JvPrivThreadJoin): Likewise.
4460 Use JvFail instead of sorry.
4461 (JvPrivThreadSuspend): Removed.
4462 (JvPrivThreadResume): Removed.
4463 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
4464 (JvPrivThreadJoin): Likewise.
4465 (JvPrivThreadSuspend): Use JvFail.
4466 (JvPrivThreadResume): Likewise.
4467 (JvPrivThreadSuspend): Removed.
4468 (JvPrivThreadResume): Likewise.
4469 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
4470 (JvPrivThread_t): Removed join_mutex, join_cond.
4471 Use JvFail instead of sorry.
4472 (JvPrivThreadSuspend): Removed.
4473 (JvPrivThreadResume): Likewise.
4475 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
4477 * java/util/Observer.java: Rewritten
4478 * java/util/Enumeration.java: Rewritten
4480 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
4482 * java/util/StringTokenizer.java: Rewritten
4483 * java/util/Stack.java: Added COPYRIGHT-TBD comment
4484 * java/util/Vector.java: Added COPYRIGHT-TBD comment
4485 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
4487 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
4489 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
4492 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
4493 Include java-assert.h.
4494 * include/java-assert.h: New file.
4495 * prims.cc (_Jv_Abort): New function.
4496 Include java-assert.h, not assert.h.
4497 (_Jv_MonitorExit): Use JvAssert.
4498 (resolveConstants): Likewise.
4499 (processClass): Likewise.
4500 (JvRunMain): Assert that method is found.
4502 * configure: Rebuilt.
4503 * configure.in: Check for test subdir.
4504 * Makefile.in: Rebuilt.
4505 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
4507 * prims.cc (JvRunMain): Use NORM_PRIORITY.
4508 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
4510 * prims.cc (resolveConstants): Removed unused variables.
4511 (processClass): Likewise.
4513 * include/quick-threads.h (JvPrivThreadCurrent): Use
4515 * quick-threads.cc (destroy_data): New function.
4516 (JvPrivInitThreads): Create key.
4517 (JvPrivThreadKey): New global.
4518 (JvPrivThreadStart): Use coop_setspecific.
4520 * include/quick-threads.h, include/posix-threads.h,
4521 include/no-threads.h, no-threads.cc, quick-threads.cc,
4522 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
4524 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
4526 * include/no-threads.h (JvPrivThreadInitData): Don't set
4529 * include/quick-threads.h (JvPrivCondWait): coop function now
4531 (JvPrivThreadJoin): Likewise.
4533 * java/lang/Thread.h (Thread): Updated declaration of
4535 * include/quick-threads.h, include/posix-threads.h: Updated
4536 declaration of JvPrivThreadStart.
4537 * include/no-threads.h (JvPrivThreadStart): Changed definition
4539 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
4540 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
4541 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
4543 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
4545 * quick-threads.cc (qthrow): New function.
4546 (JvPrivInitThreads): New function.
4547 (started): New global.
4548 (JvPrivThreadStart): Call coop_start if required.
4549 * include/quick-threads.h (JvPrivThreadCancel): Implement.
4550 (JvPrivThreadDestroy): Likewise.
4551 (JvPrivInitThreads): Removed.
4552 * include/posix-threads.h (JvPrivThreadCancel): Added error
4554 * java/lang/natThread.cc (stop_): Pass exception to
4557 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
4559 * include/javaprims.h (java::lang): Added
4560 IllegalArgumentException, IllegalThreadStateException, Math,
4561 NullPointerException, ThreadDeath.
4562 (java::util): Added Enumeration.
4564 * Makefile.in: Rebuilt.
4565 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
4567 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
4569 (threadsv): Renamed from threads to avoid clash in C++ header.
4570 (groupsv): Likewise.
4571 * include/no-threads.h (JvPrivThreadStart): Removed.
4572 * no-threads.cc (JvPrivThreadStart): New function.
4573 * java/lang/Thread.java (Thread): New constructor for internal use.
4574 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
4575 (Thread): Declare constructor.
4576 * prims.cc (JvRunMain): Create the initial Thread and
4578 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
4579 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
4580 Removed `daemon' argument.
4582 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
4583 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
4585 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
4587 * Makefile.in: Rebuilt.
4588 * Makefile.am (INCLUDES): Include THREADINCS.
4590 * configure: Rebuilt.
4591 * configure.in: Recognize `qt' as a threads package.
4593 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
4595 * java/util/Stack.java (pop): Null out topmost node for robustness.
4597 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
4599 * java/util/Stack.java: Rewritten.
4600 * java/util/Vector.java (isEmpty): Simplified expression.
4602 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
4604 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
4605 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
4607 * include/java-array.h (JvNewObjectArray): Created inline to
4610 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
4613 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
4615 * java/util/Vector.java: Rewritten.
4616 * java/io/Serializable.java: Created.
4618 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
4620 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
4621 Infinity is 1/0, not 1/1.
4623 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
4625 * configure: Rebuilt.
4626 * configure.in: Removed duplicate AC_ARG_WITH.
4628 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
4630 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
4632 (_Jv_InitClass): Renamed from soft_initialise_class.
4633 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
4634 (_Jv_CheckCast): Renamed from soft_checkcast.
4635 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
4636 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
4637 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
4638 * include/cni.h (JvInitClass): New function.
4639 (_Jv_InitClass): Renamed from soft_initialise_class.
4641 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
4643 * configure: Rebuilt.
4644 * configure.in (CXX): Don't set.
4645 * Makefile.in: Rebuilt.
4646 * Makefile.am (AM_CXXFLAGS): New macro.
4648 * Makefile.in: Rebuilt.
4649 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
4650 nogc.o): New target.
4652 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
4654 (mark_array): Likewise.
4656 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
4658 * java/lang/Class.h (JvMethod): Removed some unused fields.
4659 (JvField.info): Removed unused idx union variant.
4661 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
4663 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
4666 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
4668 * configure.in, configure (CXX): Add -fvtable-thunks.
4670 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
4672 * java/lang/Object.java (finalize): Move first.
4673 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
4674 (Object): Re-arrange order to match Object.java.
4676 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
4678 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
4679 * java/lang/natString.cc (hashChars): Likewise.
4681 * prims.cc (RuntimeClass): New macro.
4682 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
4684 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
4686 * Makefile.in: Rebuilt.
4687 * Makefile.am (AM_MAKEFLAGS): New macro.
4689 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
4691 * nogc.cc: Include <javaprims.h>.
4693 * Makefile.in: Rebuilt.
4694 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
4696 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
4698 * exception.cc (terminate): Removed.
4699 (unexpected): Removed.
4701 * configure: Rebuilt.
4702 * configure.in: Handle case where target subdir is ".".
4704 * configure: Rebuilt.
4705 * configure.in: Compute COMPPATH based on --with-target-subdir
4706 option. Added --with-target-subdir and --with-cross-host. Use
4707 --with-cross-host to determine when a cross compiler is in use.
4709 * Makefile.in: Rebuilt.
4710 * Makefile.am (GJAVAH): Include COMPPATH.
4711 * configure: Rebuilt.
4712 * configure.in: Subst COMPPATH.
4714 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
4716 * prims.cc (lockMutex): Removed.
4717 (unlockMutex): Likewise.
4718 (processClass): Lock the class using a JvSynchronize object.
4720 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
4722 * java/lang/natString.cc (gc_calloc_fixed): Removed.
4723 (gc_free_fixed): Removed.
4724 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
4725 freeing old value of strhash.
4727 * exception.cc (_Jv_type_matcher): Cast first argument to
4730 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
4732 * include/java-array.h (jstringArray): New type.
4733 * java/lang/natSystem.cc (setProperty): Removed.
4734 (initProperties): Directly call JvNewStringLatin1 for arguments.
4735 * java/util/natDate.cc: Include java/util/Date.h, not
4738 * java/io/FileDescriptor.java (available): No longer static.
4739 * java/lang/natDouble.cc (Double): Removed class definition.
4740 * include/javaprims.h (java::lang::Number): Declare.
4741 (java::lang::NumberFormatException): Likewise.
4742 (java::io::FilenameFilter): Likewise.
4743 (java::lang::Character): Likewise.
4744 (java::lang::Error): Likewise.
4745 (java::lang::SecurityManager): Likewise.
4746 (java::util::Vector): Likewise.
4747 (java::io::FileNotFoundException): Likewise.
4748 (java::io::IOException): Likewise.
4749 (java::lang::NativeLang): Likewise.
4750 (java::lang::UnsatisfiedLinkError): Likewise.
4751 (java::util::StringTokenizer): Likewise.
4752 (java::io::InputStream, java::io::OutputStream): Likewise.
4753 (java::io::PrintStream, java::lang::SecurityException): Likewise.
4754 (java::util::Hashtable): Likewise.
4755 * Makefile.in: Rebuilt.
4756 * Makefile.am (nat_headers): Added java/lang/Double.h,
4757 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
4758 (MOSTLYCLEANFILES): Added nat_headers.
4759 * include/jvm.h: Moved many defines, declarations, and functions
4760 to java/lang/Class.h.
4761 (struct JvSyncInfo): Moved to java/lang/Object.h.
4762 (UTF8_GET): Moved to java/lang/String.h.
4764 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
4766 * java/io/io-defs.h: Don't include java-io.h.
4767 * include/java-io.h: Removed.
4768 * include/javaprims.h: Include java::io.
4770 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
4772 * include/java-io.h (File): Removed
4773 (FileDescriptor): Likewise.
4775 * java/io/io-defs.h: Include java/io/File.h and
4776 java/io/FileDescriptor.h.
4778 * Makefile.in: Rebuilt.
4779 * Makefile.am (GJAVAH): New macro.
4780 (.class.h): New rule.
4781 (SUFFIXES): Added .h.
4782 (nat_headers): New macro.
4783 ($(nat_headers)): New target.
4784 (BUILT_SOURCES): Added nat_headers.
4786 * include/java-util.h: Removed.
4788 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
4790 * include/java-io.h: Changed to avoid java-lang.h.
4791 * java/lang/natThread.cc: Include java/lang/Thread.h, not
4793 * java/lang/natSystem.cc: Include java/lang/System.h, not
4795 * java/lang/natString.cc: Include java/lang/String.h, not
4797 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
4799 * java/lang/natClass.cc: Include java/lang/Class.h, not
4801 * java/lang/natDouble.cc: Include java/lang/Object.h, not
4803 * java/lang/natObject.cc: Include java/lang/Object.h, not
4805 * exception.cc: Don't include java-lang.h.
4806 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
4807 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
4808 * nogc.cc: Don't include java-lang.h.
4809 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
4810 * prims.cc (processClass): Don't use `init_type'; just cast to
4812 Include java/lang/Class.h and jvm.h, not java-lang.h.
4813 (JvAllocObject): Wrote single-argument version.
4814 (PrimClass): Inherit from Class.
4815 (initPrimClass): Removed.
4816 * include/java-lang.h: Removed.
4817 * include/jvm.h: Declare struct _dispatchTable.
4818 * include/cni.h: Don't declare _Jv_MonitorEnter,
4819 _Jv_MonitorExit, struct _dispatchTable.
4820 * include/javaprims.h: Moved all typedefs here, from cni.h.
4821 * java/lang/Class.h: New file.
4822 * include/java-array.h: New file.
4823 * java/lang/Object.h: New file.
4825 * prims.cc (classFromSig): Now static.
4827 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
4829 * include/cni.h: Don't mention soft_new.
4830 * include/java-lang.h (Object): Don't mention soft_new. Mention
4831 _Jv_NewPrimArray, not newPrimArray.
4832 * prims.cc (soft_new): Removed.
4833 (_Jv_NewArray): Renamed from soft_newarray.
4834 (soft_anewarray): Use JvNewObjectArray.
4835 (newArray): Likewise.
4836 (newRefArray): Removed.
4837 (_Jv_NewPrimArray): Renamed from newPrimArray.
4838 (equalUtf8Consts): Now static.
4839 (soft_instanceof): Removed.
4840 * java/lang/natDouble.cc (doubleToString): Now static.
4842 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
4843 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
4846 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
4848 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
4850 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
4852 * include/no-threads.h (JvPrivMutexLock): Always return -1.
4853 (JvPrivMutexUnlock): Likewise.
4854 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
4855 Return value now jint.
4856 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
4859 * Makefile.in: Rebuilt.
4860 * Makefile.am: Don't allow `jV' names.
4861 (maintainer-check): Depend on libjava.a.
4862 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
4864 * Makefile.in: Rebuilt.
4865 * Makefile.am (NM): New macro.
4866 (maintainer-check): New target.
4868 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
4870 * configure: Rebuilt.
4871 * configure.in: Use --enable-threads, not --enable-gc. Fix
4872 documentation for --enable-threads. Changed option to work like
4873 identical option in gcc/configure.
4875 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
4877 * boehm.cc (mark_array): Use JvGetArrayLength.
4879 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
4881 * exception.cc: New file (mostly written by Andrew MacLeod),
4882 exception handling support.
4883 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
4884 Remove -fexceptions - it is now the default.
4886 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
4887 (JvAllocObject): Renamed to _Jv_AllocObject.
4888 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
4889 (loadClass): Renamed to _Jv_FindClass.
4890 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
4891 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
4892 * include/java-lang.h (JvGetArrayLength): New CNI function.
4893 * include/jvm.h (_Jv_FindClass): Added declaration.
4895 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
4897 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
4899 * java/lang/natClass.cc (getName): Add implementation.
4900 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
4902 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
4904 * Makefile.in: Rebuilt.
4905 * Makefile.am (.class.o): Added -fexceptions.
4907 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
4909 * configure: Rebuilt.
4910 * configure.in: Don't check for __nanosleep.
4911 * posix-threads.cc (nanosleep): Never define.
4913 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
4915 * posix-threads.cc (JvPrivCondWait): Fixed computation of
4918 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
4920 * java/lang/natThread.cc (enumerate): Uncommented.
4921 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
4922 (interrupt): Call it.
4924 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
4926 * configure: Rebuilt.
4927 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
4929 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
4931 * include/no-threads.h (JvPrivThreadInterrupt): New method.
4932 * include/java-lang.h (Thread): Added `interrupted_' method.
4933 * java/lang/Thread.java (interrupted_): New method.
4934 * java/lang/natThread.cc (join): Possibly throw interrupted
4935 exception after join finishes.
4936 (interrupted_): New method.
4937 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
4939 (JvPrivThreadJoin): New function.
4940 (really_start): Notify all threads waiting for this thread.
4941 (struct starter): Added `data' member.
4942 (JvPrivThreadStart): Set it.
4943 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
4945 (JvPrivThreadJoin): No longer inline.
4946 (JvPrivThreadInterrupt): New function.
4948 * include/no-threads.h (JvPrivThreadSleep): Removed.
4949 * posix-threads.cc (JvPrivThreadSleep): Removed.
4951 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
4953 * configure: Rebuilt.
4954 * configure.in (THREADOBJS): Initialize to no-threads.o in
4956 * posix-threads.cc (key): New global.
4957 (JvPrivInitThreads): New function.
4958 (really_start): Set thread-specific data to point to object.
4959 (JvPrivThreadStart): Added `daemon' argument.
4960 (JvPrivThreadSleep): Added `data' argument.
4961 * include/posix-threads.h (JvPrivInitThreads): Removed
4963 (JvPrivThreadCurrent): New function.
4964 * include/no-threads.h (JvPrivThreadInitData): Initialize
4965 JvPrivOnlyThread. Added `thread' argument.
4966 (JvPrivThreadCurrent): New function.
4967 (JvPrivThreadStart): Added `daemon' argument.
4968 * no-threads.cc: New file.
4969 * java/lang/natThread.cc (init_data): New function.
4971 (start): Set `alive' member.
4972 (stop_): Clear `alive' member.
4973 (destroy): Likewise.
4974 (currentThread): Implemented.
4975 (start): Pass `daemon' argument to JvPrivThreadStart.
4977 * include/java-lang.h (Thread): Added `alive', `tsync' members.
4978 (Thread): Added `init_data' method.
4979 * java/lang/Thread.java (alive, data): New instance variables.
4980 (init_data): New private method.
4981 (isAlive): No longer native.
4983 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
4985 * include/java-lang.h (JvRunMain): Declare.
4986 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
4987 * prims.cc (JvRunMain): New function.
4988 (main_signature, main_name): New globals.
4990 * boehm.cc (mark_array): Use `elements' function and not
4991 operator[] on jarray.
4993 * posix-threads.cc: Include <config.h>. Define nanosleep if
4996 * configure: Rebuilt.
4997 * configure.in: Check for _nanosleep.
4999 * configure: Rebuilt.
5000 * configure.in: Check for pthread_mutexattr_settype.
5002 * include/cni.h (class JvSynchronize): New class.
5003 * java/lang/Thread.java (sleep): Throws InterruptedException.
5004 (join): Throws InterruptedException.
5005 (resume): Not native.
5006 (resume_): New method.
5007 (start): Now synchronized.
5008 (stop_): New method.
5009 (Thread): Synchronize when accessing threadNumber.
5011 * java/lang/natThread.cc (throwException): New macro.
5012 (sleep): Throw InterruptedException.
5015 * include/java-lang.h (Runtime): Added interrupted().
5017 * boehm.cc (call_finalizer): Correctly initialize jobj.
5018 * include/java-lang.h (Runtime): Added getRuntime() and exit().
5020 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
5023 * configure: Rebuilt.
5024 * configure.in: Added support for --disable-threads.
5025 * include/no-threads.h: New file.
5027 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
5029 * Makefile.in: Rebuilt.
5030 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
5031 (libjava_a_DEPENDENCIES): Added THREADOBJS.
5032 (libjava_a_LIBADD): Added THREADOBJS.
5033 * configure: Rebuilt.
5034 * configure.in: Added --with-threads option.
5035 * posix-threads.cc: New file.
5036 * include/posix-threads.h: New file.
5037 * include/java-lang.h (Object): Added static member sync_mutex,
5038 member sync_info, method init_mutex.
5039 (struct JvSyncInfo): New struct.
5040 Include "java-threads.h".
5041 * prims.cc (soft_monitorenter): Wrote.
5042 (soft_monitorexit): Likewise.
5043 * java/lang/natObject.cc (init_mutex): New method.
5047 (sync_mutex): Define.
5048 Include "java-threads.h".
5050 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
5052 * include/java-lang.h (JvPrivInitGC): Make extern "C".
5053 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
5055 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
5057 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
5058 Added extern "Java" in places to tell G++ Object is a "Java" type.
5059 Other minor renaming and fixes.
5060 * include/java-io.h (FileDescriptor): Add friend class declarations.
5061 G++ no longer allows non-Java types in method parameters and results
5062 of Java classes. Converted most offending methods to friends.
5063 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
5064 * java/lang/natSystem.cc (setProperty): Make friend.
5065 * java/lang/natString.cc, include/java-lang.h (String): Rename
5066 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
5067 * include/java-lang.h (JArray): Remove getData and eoprator[].
5068 Add elements friend function instead.
5069 * java/lang/natSystem.cc (arraycopy): Use elements function.
5070 * java/io/natFileDescriptor.cc (read, write): Likewise.
5071 * include/java-lang.h (Object): Remove unused make method.
5072 (System::setProperty(char*,char*)): Turn into friend function.
5073 (Class): Rename newObject by JvAllocObject.
5074 * prims.cc: Update to use JvAllocObject, and elements.
5076 * java/lang/natDouble.cc: Fix double -> jdouble.
5078 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
5080 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
5082 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
5084 * java/lang/natRuntime.cc (finalize_on_exit): Define.
5085 * include/java-lang.h (Runtime): finalize_on_exit and
5086 runFinalizersOnExit now static.
5087 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
5089 (finalize_on_exit): Now static.
5091 * boehm.cc (mark_obj): Get class using getClass() method on
5093 (_dispatchTable): Removed.
5095 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
5097 * java/io/natFileDescriptor.cc (open_read): Only call open if
5099 (open_write): Likewise.
5101 * Makefile.in: Rebuilt.
5102 * Makefile.am ($(nat_files)): Depend on config.h.
5104 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
5106 * prims.cc (ObjectClass): Now a macro; updated for new class name
5108 (StringClass): Likewise.
5109 (ClassClass): Likewise.
5111 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
5113 * java/io/natFileDescriptor.cc (available): Do nothing unless
5114 HAVE_SELECT defined.
5115 * java/util/natDate.cc (setTime): Conditional on
5117 (toString): Conditional on HAVE_TIME.
5118 * aclocal.m4, configure: Rebuilt.
5119 * acinclude.m4: New file.
5120 * configure.in: Don't actually call AM_EXEEXT. Call
5121 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
5122 --with-target-subdir option. Check for select and open
5125 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
5127 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
5128 (call_finalizer): Likewise.
5129 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
5130 * prims.cc (newObject): Pass actual method pointer to
5131 JvPrivRegisterFinalizer.
5132 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
5133 (JvPrivRegisterFinalizer): Changed interface.
5135 * Makefile.in: Rebuilt.
5136 * Makefile.am (MOSTLYCLEANFILES): New macro.
5137 (CLEANFILES): Removed javao_files.
5139 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
5141 * nogc.cc: New file.
5142 * Makefile.in: Rebuilt.
5143 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
5144 (EXTRA_libjava_a_SOURCES): New macro.
5145 (libjava_a_SOURCES): Removed boehm.cc.
5146 (libjava_a_DEPENDENCIES): Added GCOBJS.
5147 (libjava_a_LIBADD): Likewise.
5148 * configure: Rebuilt.
5149 * configure.in: Added code for --enable-gc=TYPE.
5151 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
5153 * boehm.cc (mark_array): Don't further dereference pointer from
5156 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
5157 * Makefile.in: Rebuilt.
5158 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
5159 one for boehm-gc build directory.
5161 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
5163 * include/java-lang.h (finalize_on_exit): New instance variable in
5164 java::lang::Runtime.
5165 (runFinalizersOnExit): New method.
5166 * java/lang/Runtime.java (finalize_on_exit): New instance
5168 (runAllFinalizers_): New private method.
5169 (runFinalizersOnExit): New method.
5170 * boehm.cc (JvPrivRunFinalizers): New function.
5171 (JvPrivRunAllFinalizers): Likewise.
5172 (JvPrivRunGC): Likewise.
5173 * java/lang/natRuntime.cc: Include "jvm.h".
5174 (gc): Call JvPrivRunGC.
5175 (runFinalization): Call JvPrivRunFinalizers.
5176 (runFinalizersOnExit): New method.
5177 (exit_): Call JvPrivRunAllFinalizers if required.
5178 * include/jvm.h: Declare JvPrivRunFinalizers,
5179 JvPrivRunAllFinalizers, JvPrivRunGC.
5181 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
5183 * boehm.cc (JvPrivRegisterFinalizer): New function.
5184 (call_finalizer): Likewise.
5185 * include/jvm.h: Declare JvPrivRegisterFinalizer.
5186 * prims.cc (finalize_name): New global.
5187 (newObject): Just call other newObject.
5188 (newObject): Register finalizer if it exists.
5190 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
5192 * prims.cc (gc_malloc): Removed.
5193 (makeUtf8Const): Use JvPrivAllocBytes.
5194 (lookupArray): Likewise.
5195 (newPrimArray): Likewise.
5196 (JvNewObjectArray): Use JvPrivAllocArray.
5197 (newObject): Use JvPrivAllocObj.
5198 (newObject): Likewise.
5199 Changed Method -> JvMethod everywhere.
5200 Changed Field -> JvField everywhere.
5201 * include/java-lang.h (Object): Changed type of `fields' to
5203 (jmethodID, jfieldID): New typedefs.
5204 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
5206 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
5208 (METHOD_NATIVECODE): Moved from java-lang.h.
5209 (class JvField): New class.
5210 (JvGetFirstInstanceField): New function.
5211 (JvFieldIsRef): Likewise.
5212 (JvGetObjectField): Likewise.
5213 (JvNumInstanceFields): Likewise.
5215 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
5217 * boehm.cc: New file.
5218 * Makefile.in: Rebuilt.
5219 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
5220 (INCLUDES): Added -I options to find boehm-gc files.
5222 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
5224 * configure: Rebuilt.
5225 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
5227 * Makefile.in: Rebuilt.
5228 * Makefile.am (nat_files): New macro.
5229 (libjava_a_DEPENDENCIES): Use it.
5230 (libjava_a_LIBADD): Likewise.
5231 ($(nat_files)): New static pattern rule.
5232 (class_files): Run separate find to find .class files.
5233 (javao_files): Compute based on class_files.
5234 (BUILT_SOURCES): New macro.
5236 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
5238 * Makefile.am (java_files): New macro.
5239 (class_files): Likewise.
5240 (javao_files): Likewise.
5241 (libjava_a_DEPENDENCIES): Include $(javao_files).
5242 (libjava_a_LIBADD): Likewise.
5243 (classes.stamp): Depend on $(java_files); only recompile changed
5246 (CLEANFILES): Don't run find; use macros. Don't mention
5248 (.class.o): New target.
5249 (compiled.stamp): Removed.
5251 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
5253 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
5254 LineNumberReader}>java: Newly-implemented standard classes.
5256 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
5258 * Makefile.in: Rebuilt.
5259 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
5261 * Makefile.in: Rebuilt.
5262 * Makefile.am (hack): New macro.
5263 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
5265 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
5267 * include/config.h.in: New file.
5268 * include/config.h: Removed.
5269 * acconfig.h: New file.
5270 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
5271 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
5272 libjava_a_LIBADD): New macros.
5273 (INCLUDES): New macro.
5276 (SUFFIXES): Removed.
5278 (libjava.a): Removed.
5280 * configure: Rebuilt.
5281 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
5282 Look for headers and functions we require. Create
5285 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
5287 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
5288 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
5289 soft_lookupinterfacemethod): New functions.
5290 (PrimClass): Actually initialize the primitive classes.
5291 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
5293 * include/java-util.h: Removed java::util definition.
5294 * include/cni.h: Moved java::util here and added Properties.
5295 Added more function prototypes.
5296 * include/java-lang.h: Added mroe methods and friend declarations.
5297 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
5298 * include/jvm.h (strLengthUtf8): Add declaration.
5300 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
5302 * java/lang/{Byte,Short,Void}.java: New classes.
5303 * java/lang/Character.java (isJavaIdentifierStart,
5304 JavaIdentifierPart): New static methods.
5305 * java/lang/Number.java (byteValue, shortValue): New methods.
5307 * java/lang/String.java (intern, hashCode): Make native.
5308 * java/lang/natString.cc: New file. Handle the string pool.
5309 * Makefile.am: Build natString.o. Use CXXFLAGS.
5311 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
5312 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
5313 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
5314 * java/lang/System.java (setProperty): New private method.
5315 (initProperties): Take argument, and make native.
5316 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
5317 (currentTimeMillis): Make more robust.
5319 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
5320 * java/io/UnsupportedEncodingException.java: New exception class.
5322 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
5323 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
5325 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
5327 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
5328 * prims.cc: Added bunch of stuff.
5329 * include/cni.h: Added various definitions.
5330 * include/java-lang.h: Added Method, various friends, some macros.
5332 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
5333 * java/lang/System.java (arraycopy): Make native.
5335 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
5337 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
5338 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
5339 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
5340 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
5342 * java/lang/Runtime.java: Declare methods as native instead of
5344 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
5345 * java/lang/System.java: Comment out some stuff, for now.
5346 * java/lang/Thread.java: Re-write. Use native methods.
5347 * java/lang/NativeLang.java: Remove most of it.
5349 * java/util/natDate.cc: Native (C++) methods for Date.
5350 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
5351 * java/util/Date.java: Complete re-write.
5353 * java/io/io-defs.h: New header file.
5354 * java/io/FileDescriptor.java: Add a bunch of private methods,
5355 mostly moved from NativeIO.java and natNativeIO.cc.
5356 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
5357 * java/io/File.java: Use new code.
5358 * java/io/{FileInputStream.java.FileOutputStream.java,
5359 RandomAccessFile.java}: Use new private FileDescriptor methods.
5360 * java/io/NativeIO.java: Removed, no longer used.
5362 * java/io/StreamTokenizer.java (numericChars): Make char array.
5364 * include/*.h: Various header files used by the C++ native code.
5366 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
5367 New autoconf+automake-based setup.
5368 * prims.cc: New file for Java "primitives".