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