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