1 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
2 * java/net/natInetAddress.cc (aton): Fix typos.
3 (lookup): Use a bigger buffer size for gethostbyname_r on all
4 versions of glibc. Updated FIXME comment explaining this.
5 Modified while loops to not set herr = ERANGE to work around glibc
6 problems. Use user specified hostname in InetAddress result when
7 available (consistent with JDK).
9 1999-06-10 Warren Levy <warrenl@cygnus.com>
11 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
12 Throw FileNotFoundException instead of IOException.
14 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
16 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
18 * java/text/DecimalFormat.java: Throw IllegalArgumentException
19 throughout rather than ParseException.
21 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
23 * java/lang/Runtime.java (exec): Convert prog name and arguments
25 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
26 environment array conversion. Preserve current environment if envp
27 not passed. Preserve PATH unless explicitly specified.
28 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
29 followed by EOF. Set a flag when a line is terminated by '\r' and
30 ignore following '\n' if set.
32 1999-06-02 Warren Levy <warrenl@cygnus.com>
34 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
35 Ignore context if spec is an absolute URL. Fix braindead
37 (hashCode): Use JDK 1.2 style algorithm.
38 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
41 1999-05-30 Anthony Green <green@cygnus.com>
43 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
44 correctly. Clean up "/../" and "/./" path fragments.
46 1999-05-28 Warren Levy <warrenl@cygnus.com>
48 * java/net/DatagramSocket.java (laddr): Removed.
49 (DatagramSocket): Removed attempts to get or set laddr if null.
50 (getLocalAddress): Reimplemented per spec.
51 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
53 (joinGroup): Throw NullPointerException if any argument is null.
55 * java/net/PlainDatagramSocketImpl.java: Updated comments.
56 * java/net/PlainSocketImpl.java (timeout): Added.
57 (getInputStream): Added FIXME comment on how to support timeouts
59 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
60 * java/net/Socket.java: Added FIXME comments to identify
61 conflicting specs between the JCL and JDK 1.2 documents.
62 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
63 if host is null. Get localport value resolved by kernel if bind
65 (receive): Implemented support for timeouts in UDP.
66 (setOption): Implemented based on natPlainSocketImpl version.
68 * java/net/natPlainSocketImpl.cc (bind): Get localport value
69 resolved by kernel if bind lport is 0.
70 (connect): Get localport value resolved by kernel if bind wasn't
71 done to set localport.
72 (accept): Implemented support for timeouts for ServerSocket.
73 (setOption): Save value for SO_TIMEOUT.
74 (getOption): Return timeout for SO_TIMEOUT.
76 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
78 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
79 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
80 (setOption): Made abstract.
81 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
82 to avoid cpp conflicts in native code.
83 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
84 cpp conflicts in native code.
85 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
86 * java/net/Socket.java (getLocalAddress): Implemented.
87 (setTcpNoDelay): Implemented.
88 (getTcpNoDelay): Implemented.
89 (setSoLinger): Implemented.
90 (getSoLinger): Implemented.
91 (getSoTimeout): Verify class type.
92 (setSendBufferSize): Implemented.
93 (getSendBufferSize): Implemented.
94 (setReceiveBufferSize): Implemented.
95 (getReceiveBufferSize): Implemented.
96 (toString): Prepended "Socket".
97 * java/net/SocketImpl.java (toString): Rewritten.
98 (getOption): Made abstract.
99 (setOption): Made abstract.
100 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
101 (setOption): Implemented.
102 (getOption): Implemented.
104 1999-05-26 Warren Levy <warrenl@cygnus.com>
106 * java/net/DatagramSocket.java (DatagramSocket): Get local host
107 address when null. Set SO_REUSEADDR for multicasts.
108 (getSoTimeout): Implemented.
109 (setSoTimeout): Implemented.
110 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
111 * java/net/MulticastSocket.java (getInterface): Implemented.
112 (setInterface): Implemented.
113 (setTimeToLive): Check for invalid ttl.
114 (joinGroup): Verify multicast address and security.
115 (leaveGroup): Verify multicast address and security.
117 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
123 (getTTL): Implemented as non-native.
127 * java/net/ServerSocket.java (setSoTimeout): Implemented.
128 (getSoTimeout): Implemented.
129 (setSocketFactory): Made synchronized.
130 * java/net/Socket.java (setSoTimeout): Implemented.
131 (getSoTimeout): Implemented.
132 (close): Made synchronized.
133 (setSocketImplFactory): Made synchronized.
134 * java/net/SocketImpl.java: Implement SocketOptions interface.
135 * java/net/natInetAddress.cc: Corrected module name at top of file.
136 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
144 (setOption): Implemented for SO_REUSEADDR.
145 (getOption): Implemented for SO_REUSEADDR.
147 1999-05-24 Tom Tromey <tromey@cygnus.com>
149 * java/util/ResourceBundle.java (getBundle): Throw
150 NullPointerException if baseName is null.
152 1999-05-22 Tom Tromey <tromey@cygnus.com>
154 * java/util/zip/ZipInputStream.java (fill): New method.
155 (compressed_len): New instance variable.
156 (getNextStream): Set it.
157 (read): Reset inflater on EOF. Only read via `super' if entry is
159 (skip): Only skip via `super' if entry is deflated.
160 * java/util/zip/Deflater.java (last_input_count): Removed.
161 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
163 (needsInput): Don't use last_input_count.
164 (setInput): Don't set last_input_count.
165 * java/util/zip/natInflater.cc (getRemaining): Return correct
167 (inflate): Return 0 if input array is length 0.
168 (setInput): Don't set last_input_count.
169 * java/util/zip/Inflater.java (last_input_count): Removed.
171 1999-05-21 Tom Tromey <tromey@cygnus.com>
173 * Makefile.in: Rebuilt.
174 * Makefile.am (INCLUDES): Added $(ZINCS).
175 * configure: Rebuilt.
176 * configure.in (ZINCS): New subst.
178 1999-05-21 Andrew Haley <aph@cygnus.com>
180 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
181 to signal options to allow the same exceptions to be rethrown
184 1999-05-20 Andrew Haley <aph@cygnus.com>
186 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
188 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
189 (INIT_FPE): Exception string made more informative.
190 * include/sparc-signal.h (INIT_FPE): Exception string made more
192 * testsuite/libjava.lang/Divide_1.java: New file.
193 * testsuite/libjava.lang/Divide_1.out: New file.
195 1999-05-19 Tom Tromey <tromey@cygnus.com>
197 * aclocal.m4, configure: Rebuilt.
198 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
200 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
203 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
205 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
207 (update): Fail in default case. Always initialize `strat'.
209 * mauve-libgcj: Enable java.util.zip.
211 1999-05-18 Warren Levy <warrenl@cygnus.com>
213 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
214 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
215 PlainDatagramSocketImpl.java, and SocketOptions.java.
216 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
217 * Makefile.in: Rebuilt.
219 * java/net/DatagramPacket.java: New file.
220 * java/net/DatagramSocket.java: New file.
221 * java/net/DatagramSocketImpl.java: New file.
222 * java/net/MulticastSocket.java: New file.
223 * java/net/PlainDatagramSocketImpl.java: New file.
224 * java/net/SocketOptions.java: New file.
225 * java/net/natPlainDatagramSocketImpl.cc: New file.
227 1999-05-18 Tom Tromey <tromey@cygnus.com>
229 * java/util/zip/ZipOutputStream.java (level): Initial value is
230 Deflater.DEFAULT_COMPRESSION.
232 (closeEntry): Likewise.
234 (put_version): Likewise.
235 (write_entry): Likewise.
236 (put2, put4): Now return `int'.
237 (comment): Default to empty string.
238 (bytes_written): New instance variable.
240 * java/util/zip/ZipEntry.java (setComment): Limit length of
242 (setCrc): Check CRC validity.
243 (setExtra): Check argument validity.
244 (setMethod): Likewise.
246 (ZipEntry): Likewise.
247 * include/javaprims.h: Updated namespace declarations.
248 * Makefile.in: Rebuilt.
249 * Makefile.am (ordinary_java_source_files): Mention new files.
250 (nat_source_files): Likewise.
251 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
254 (getInputStream): Handle compressed entries.
255 * java/util/zip/GZIPOutputStream.java: New file.
256 * java/util/zip/GZIPInputStream.java: New file.
257 * java/util/zip/DataFormatException.java: New file.
258 * java/util/zip/CheckedInputStream.java: New file.
259 * java/util/zip/CheckedOutputStream.java: New file.
260 * java/util/zip/InflaterInputStream.java: Implemented.
261 * java/util/zip/natInflater.cc: New file.
262 * java/util/zip/Deflater.java: Implemented.
263 * java/util/zip/natDeflater.cc: New file.
264 * java/util/zip/DeflaterOutputStream.java: Implemented.
266 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
267 ZipException, not IOException.
268 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
271 1999-05-17 Tom Tromey <tromey@cygnus.com>
273 * java/lang/natSystem.cc (init_properties): URL now points to
276 1999-05-12 Per Bothner <bothner@cygnus.com>
278 * java/util/Calendar.java (set): First call computeFields if needed.
279 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
281 1999-05-12 Tom Tromey <tromey@cygnus.com>
283 * configure: Rebuilt.
284 * configure.in: Look for -ldl when using the Boehm collector.
285 Look for sched_yield in -lposix4.
287 1999-05-12 Per Bothner <bothner@cygnus.com>
289 * java/io/File.java (mkdirs): Handle a null parent directory.
291 1999-05-12 Tom Tromey <tromey@cygnus.com>
293 * include/javaprims.h: Updated namespace declarations.
294 * classes.pl (scan): Uniquify class list.
295 * Makefile.in, configure: Rebuilt.
296 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
297 (built_java_source_files): New macro.
298 (nat_headers): Added built_java_source_files.
299 (javao_files): Likewise.
300 (EXTRA_libgcj_la_SOURCES): Likewise.
301 (libgcj.zip): Create built class files.
302 ($(built_java_source_files:.java=.class)): New target.
303 (jv_convert_LDADD): Added -L$(here)/.libs.
304 * configure.in: Create links for ConcreteProcess.java and
305 natConcreteProcess.cc.
306 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
307 * java/lang/natEcosProcess.cc: New file.
308 * java/lang/EcosProcess.java: New file.
309 * java/lang/PosixProcess.java: New file.
310 * java/lang/natPosixProcess.cc: New file.
312 1999-05-12 Warren Levy <warrenl@cygnus.com>
314 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
315 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
316 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
317 (connect): Throw ConnectException.
319 1999-05-11 Tom Tromey <tromey@cygnus.com>
321 * Makefile.in: Rebuilt.
322 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
323 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
326 * Makefile.in: Rebuilt.
327 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
328 and it causes problems with libtool.
330 * Makefile.in, configure: Rebuilt.
331 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
332 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
333 (jv_convert_DEPENDENCIES): Added ZDEPS.
334 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
336 (THREADSPEC): Added `-L' to point to qthreads build directory.
340 * configure, Makefile.in: Rebuilt.
341 * Makefile.am (toolexeclib_DATA): New macro.
342 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
343 Recognize --with-system-zlib.
345 (THREADSPEC): New subst.
346 (SYSTEMSPEC): New subst.
347 (ZLIBSPEC): New subst.
348 * libgcj.spec.in: New file.
350 1999-05-10 Tom Tromey <tromey@cygnus.com>
352 * java/io/InputStreamReader.java (read): If length is 0, return
353 0. Reset `wpos' and `wcount' when buffer has been filled and
356 * java/util/Properties.java (save): Removed `FIXME' comment.
357 (load): Invalid characters in \u now treated as terminators.
358 Make sure to append character resulting from `\' handling.
359 Cast to `char' when appending to key or value.
360 (skip_ws): Inverted test for whitespace.
362 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
364 (readLine): Likewise.
365 (readFully): Implemented.
367 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
369 * java/awt/natToolkit.cc: Added copyright header.
370 * java/util/zip/InflaterInputStream.java: Added copyright header.
372 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
374 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
376 (getNextStream): Likewise.
378 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
380 (getBundle): Don't explicitly throw null pointer exception.
382 * gnu/gcj/RawData.java: Added copyright header.
384 * include/jni.h (_Jv_va_list): Always define as va_list.
386 1999-05-9 Anthony Green <green@cygnus.com>
388 * java/text/DateFormat.java (computeInstance): Separate time
390 (getDateTimeInstance): Ditto.
391 (getDateTimeInstance(int,int)): New method.
393 * Makefile.in: Rebuilt.
394 * Makefile.am (ordinary_java_source_files): Add new classes.
396 * java/util/PropertyResourceBundle.java: New file.
397 * gnu/gcj/util/EnumerationChain.java: New file.
399 1999-05-07 Tom Tromey <tromey@cygnus.com>
401 * acconfig.h (GCJVERSION): New undef.
402 * java/lang/natSystem.cc (init_properties): Define java.version,
403 java.class.version, os.name, os.arch, os.version.
404 Include <sys/utsname.h> if required.
405 * configure: Rebuilt.
406 * configure.in: Compute and define GCJVERSION.
408 * java/lang/natSystem.cc (default_file_encoding): Now static.
410 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
412 * libtool-version: New file.
413 * Makefile.in: Rebuilt.
414 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
417 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
418 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
421 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
422 (we pick those up already).
424 1999-05-05 Per Bothner <bothner@cygnus.com>
426 * java/awt/*: Check a bunch of classes, a few complete, but mostly
427 stub classes. (This is enough to get Kawa to compile against libgcj.)
429 * gnu/gcj/RawData.java: New class.
430 * doc/cni.sgml: Document RawData.
432 * java/util/zip/InflaterInputStream.java: New stub class.
433 * java/util/zip/ZipInputStream.java: New class. Partly works.
434 * java/util/zip/ZipConstants.java: Add two (internal) constants.
435 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
436 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
437 * java/util/zip/ZipOutputStream.java: Start implementation.
439 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
440 (default_file_encoding): New global, initial value is above macro.
441 (init_properties): Default file.encoding to default_file_encoding.
443 * Makefile.am: Add new classes.
445 1999-05-05 Tom Tromey <tromey@cygnus.com>
447 * Makefile.in: Rebuilt.
448 * Makefile.am (CLEANFILES): Don't mention $(class_files).
449 (clean-local): New target
451 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
452 (load, loadLibrary): Now native.
454 * java/lang/Runtime.java (load, loadLibrary): Now native.
455 (init): New native method.
457 * prims.cc: Include <ltdl.h> if required.
458 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
460 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
462 * configure.in: Switch from irix threads to posix threads
463 * configure: Regenerate.
465 1999-04-30 Tom Tromey <tromey@cygnus.com>
467 * Makefile.in: Rebuilt.
468 * Makefile.am (jv_convert_LDADD): Added -lgcc.
470 1999-04-29 Tom Tromey <tromey@cygnus.com>
472 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
475 * java/util/Locale.java (Locale(String,String)): Implement in
476 terms of 3-argument version; variant now defaults to empty
478 (toString): Assume variant is not null.
479 (equals): Assume all strings are not null.
480 (Locale): Throw NullPointerException if any argument is null.
482 * java/util/ResourceBundle.java (getBundle): Don't try the base
483 name; now implicit in partialGetBundle call.
484 (trySomeGetBundle): Search for parent bundles and call setParent
486 (partialGetBundle): Added `langStop' argument. Use
487 `Locale.toString' to compute bundleName.
488 (resource_cache): New static field.
489 (partialGetBundle): Cache the returned resource bundle. Now
492 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
495 * mauve-libgcj: Enable Collator and RuleBasedCollator.
496 * java/text/natCollator.cc (decomposeCharacter): `base' now
498 * Makefile.in: Rebuilt.
499 * Makefile.am (ordinary_java_source_files): Added
500 CollationElementIterator, CollationKey, Collator,
502 (nat_source_files): Added natCollator.cc.
503 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
504 (compare): Pass `this' to CollationElementIterator constructor.
505 (getCollationElementIterator): Likewise.
506 (ceiNext): Fix off-by-one error when finding initial substring.
507 (next): Correctly mask off bits when computing return value.
508 Fixed return values when one string is shorter than the other.
509 * java/text/CollationElementIterator.java (collator): New field.
510 (CollationElementIterator): Added collator argument.
511 (next): Call ceiNext on collator object.
513 1999-04-26 Tom Tromey <tromey@cygnus.com>
515 * natCollator.cc: New file.
517 * java/util/GregorianCalendar.java (setDefaultTime): New method.
518 (GregorianCalendar): Use it in all constructors.
519 * java/util/Calendar.java (Calendar): Changed argument name to
520 `zone' to match code.
522 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
523 * java/text/CollationKey.java: New file.
524 * java/text/CollationElementIterator.java: New file.
525 * java/text/Collator.java: New file.
526 * java/text/RuleBasedCollator.java: New file.
528 * Makefile.in: Rebuilt.
529 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
530 (jv_convert_LDADD): Explicltly add -lm -lc.
532 1999-04-26 Tom Tromey <tromey@cygnus.com>
534 * configure, Makefile.in: Rebuilt.
535 * configure.in: Added AM_PROG_LIBTOOL.
536 (GCOBJS): Use `.lo' form of files.
537 (THREADOBJS): Likewise.
538 (GCDEPS): Use `.la' form of library.
539 (GCLIBS): Set to be the same as GCDEPS.
540 (THREADDEPS): Use `.la' form of library.
541 (THREADLIBS): Set to be the same as THREADDEPS.
542 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
543 toolexeclib_LIBRARIES.
544 (libgcj_la_SOURCES): Renamed for libtoolization.
545 (EXTRA_libgcj_la_SOURCES): Likewise.
546 (libgcj_la_DEPENDENCIES): Likewise.
547 (libgcj_la_LIBADD): Likewise.
548 ($(nat_files)): Use LTCXXCOMPILE.
549 ($(c_files)): Use LTCOMPILE.
550 (GCJCOMPILE): New macro.
553 ($(javao_files)): Likewise.
554 (jv_convert_LINK): Use LIBTOOL.
555 (nat_files): Use `.lo' files.
557 (javao_files): Likewise.
558 (.class.lo): Renamed.
559 (.java.lo): Likewise.
560 ($(nat_files)): Depend on %.lo.
561 ($(c_files)): Likewise.
562 ($(javao_files)): Likewise.
563 (jv_convert_LDADD): Link against .lo files.
564 (jv_convert_DEPENDENCIES): Depend on .lo files.
565 (maintainer-check): Depend on libgcj.la, but examine .a file.
566 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
567 (libgcj_la_LDFLAGS): New macro.
569 1999-04-23 Warren Levy <warrenl@cygnus.com>
571 * Makefile.am: Added URLDecoder and URLEncoder.
572 * Makefile.in: Rebuilt.
574 * java/net/ServerSocket.java (setSocketFactory): Renamed from
575 setSocketImplFactory to match spec.
576 * java/net/Socket.java (getSoLinger): Changed return type to
579 * java/net/URLDecoder.java: New file.
580 * java/net/URLEncoder.java: New file.
582 1999-04-21 Tom Tromey <tromey@cygnus.com>
584 * java/lang/natString.cc (getBytes): Reverted earlier change and
585 applied correct fix from Per Bothner.
587 * java/lang/String.java: Don't throw
588 UnsupportedEncodingException.
590 * java/lang/natString.cc (getBytes): Correctly size result
591 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
593 1999-04-20 Andrew Haley <aph@cygnus.com>
595 * include/sparc-signal.h: new file.
596 * configure.in: include/sparc-signal.h added.
597 * configure: regenerated.
598 * prims.cc (JvRunMain): signal handling code rewritten to be more
602 * include/i386-signal.h: reorganized.
603 * include/default-signal.h: reorganized.
605 1999-04-19 Tom Tromey <tromey@cygnus.com>
607 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
608 once. From Anthony Green.
610 1999-04-19 Andrew Haley <aph@cygnus.com>
612 * Makefile.in: Processed with new automake.
614 1999-04-19 Tom Tromey <tromey@cygnus.com>
616 * include/javaprims.h: Removed security namespace.
618 1999-04-20 Anthony Green <green@cygnus.com>
620 * java/io/PrintStream.java (println): Remove extra println.
622 1999-04-19 Anthony Green <green@cygnus.com>
624 * Makefile.in: Rebuilt.
625 * Makefile.am (ordinary_java_source_files): Add new security files.
627 * java/security/NoSuchAlgorithmException.java,
628 java/security/MessageDigest.java: New files.
630 * include/javaprims.h: Add security namespace.
632 1999-04-16 Per Bothner <bothner@cygnus.com>
634 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
635 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
636 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
637 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
638 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
639 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
640 * gnu/gcj/convert/natInput_SJIS.cc: New file.
641 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
642 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
643 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
644 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
645 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
646 * Makefile.am: Various changes for new files and conversions.
648 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
649 New overloading, allows greater efficiency.
650 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
651 New overloading (for efficiency - avoids copying).
653 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
654 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
656 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
657 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
658 (writeChars): Don't be quite so eager to flush.
659 * java/io/PrintStream.java: Rewrite. Now more similar to
660 OutputStreamWriter, using explicit UnicodeToBytes converter.
661 Also, autoflush does not need to flush so often.
662 * java/lang/natString.cc (getBytes): More efficient algorithm.
663 (init(jbyteArray,jint,jint,jstring)): More efficient.
665 1999-04-15 Warren Levy <warrenl@cygnus.com>
667 * Makefile.am (ordinary_java_source_files): Added new Connection
668 and Handler classes in gnu.gcj.protocol.file package.
669 * Makefile.in: Rebuilt.
671 * gnu/gcj/protocol/file/Connection.java: New file.
672 * gnu/gcj/protocol/file/Handler.java: New file.
673 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
674 if doInput allows input.
675 (getOutputStream): Check if doOutput allows output.
676 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
678 1999-04-14 Tom Tromey <tromey@cygnus.com>
680 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
681 buffer larger to work around bug.
682 From Bryce McKinlay <bryce@albatross.co.nz>.
684 1999-04-14 Andrew Haley <aph@cygnus.com>
686 * java/lang/natDouble.java (doubleToLongBits): ensure that all
687 NaNs are always converted to the same long value.
688 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
691 1999-04-13 Tom Tromey <tromey@cygnus.com>
693 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
694 instead switch on actual element type.
696 * Makefile.in: Rebuilt.
697 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
699 1999-04-13 Andrew Haley <aph@cygnus.com>
701 * include/i386-signal.h, include/default-signal.h: New files.
702 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
704 (catch_fpe): New function.
705 * configure.in: Make link to appropriate include/java-signal.h.
706 * configure: Rebuilt.
707 * Makefile.am: include/java-signal.h added to dependency list.
708 * Makefile.in: Rebuilt.
710 1999-04-12 Urban Widmark <urban@svenskatest.se>
712 * java/io/DataInputStream.java (readLine): Corrected handling of
713 empty lines, from null to "".
715 1999-04-12 Tom Tromey <tromey@cygnus.com>
717 * Makefile.in: Rebuilt.
718 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
720 * java/lang/natSystem.cc (SystemClass): New define.
721 (init_properties): Synchronize.
723 1999-04-08 Geoff Berry <gcb@gnu.org>
725 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
726 * natPlainSocketImpl.cc (accept): Add missing else if check
729 1999-04-08 Tom Tromey <tromey@cygnus.com>
731 * java/lang/Long.java (parseLong): Corrected overflow detection
733 * java/lang/Integer.java (parseInt): Corrected overflow detection
736 * java/io/PrintStream.java (print): Handle null string argument.
739 1999-04-07 Warren Levy <warrenl@cygnus.com>
741 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
742 Set count to 0 when InputStreamReader returns -1 for EOF.
744 1999-04-07 Tom Tromey <tromey@cygnus.com>
746 * mauve-libgcj: Omit java.text.Collator,
747 java.text.RuleBasedCollator.
749 1999-04-06 Tom Tromey <tromey@cygnus.com>
751 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
752 IOException from getHttpHeaders().
753 (getHeaderFieldKey): Likewise.
755 * include/javaprims.h: Regenerated declarations.
757 * Makefile.in: Rebuilt.
758 * Makefile.am (ordinary_java_source_files): Updated for removed
761 1999-04-06 Per Bothner <bothner@cygnus.com>
763 * java/util/zip/Adler32.java: New class.
764 * java/util/zip/CRC32.java: Add working method bodies.
765 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
766 * Makefile.in: Re-generate.
768 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
770 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
771 from version in removed www hierarchy.
772 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
773 version in removed www hierarchy.
775 * gnu/gcj/www/protocol/http/Connection.java: Removed.
776 * gnu/gcj/www/protocol/http/Handler.java: Removed.
777 * gnu/gcj/www/protocol/http: Removed dir.
778 * gnu/gcj/www/protocol: Removed dir.
779 * gnu/gcj/www: Removed dir.
781 * java/net/HttpURLConnection.java: Revised comments to indicate
782 missing JDK 1.2 methods.
784 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
785 hierarchy rather than the gnu/gcj/www/protocol one.
786 * java/net/URLConnection.java: Updated status comments.
787 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
788 the gnu/gcj/www/content one.
790 1999-04-06 Per Bothner <bothner@cygnus.com>
792 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
793 The gen-from-JIS program is in $(CONVERT_DIR).
795 1999-04-06 Tom Tromey <tromey@cygnus.com>
797 * mauve-libgcj: Renamed from mauve-libjava.
799 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
801 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
802 (getResponseMessage): Implemented.
803 (getResponseVals): New private method.
805 * java/net/URLConnection.java (getContent): Implemented.
806 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
808 1999-04-05 Tom Tromey <tromey@cygnus.com>
810 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
811 (jv_convert_SOURCES): Renamed.
812 (EXTRA_jv_convert_SOURCES): Likewise.
813 (jv_convert_LDFLAGS): Likewise.
814 (jv_convert_LINK): Likewise.
815 (jv_convert_LDADD): Likewise.
816 (jv_convert_DEPENDENCIES): Likewise.
818 * Makefile.in: Rebuilt.
819 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
822 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
824 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
825 method for comparison.
827 * java/net/URLConnection.java (getContentLength): Implemented.
828 (getContentType): Implemented.
829 (getContentEncoding): Implemented.
830 (getExpiration): Implemented.
831 (getDate): Implemented.
832 (getLastModified): Implemented.
833 (getHeaderFieldInt): Implemented.
834 (getHeaderFieldDate): Implemented.
836 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
838 * java/net/URLConnection.java (toString): Implemented.
839 (setContentHandlerFactory): Implemented.
840 (setContentHandler): Wrote new private helper method.
842 1999-04-01 Tom Tromey <tromey@cygnus.com>
844 * Makefile.in: Rebuilt.
845 * Makefile.am ($(java_source_files:.java=.class): Reverted change
846 of 1999-03-31; we always want to build all the .class files.
847 Depend on java_source_files, not libgcj.zip.
848 (nat_headers): Define in terms of ordinary_java_source_files.
850 1999-03-31 Tom Tromey <tromey@cygnus.com>
852 * Makefile.in: Rebuilt.
853 * Makefile.am (special_java_source_files): New macro.
854 (java_source_files): Use it.
855 (ordinary_java_source_files): New macro.
856 (java_source_files): Use it.
857 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
858 creating headers for those files with hand-maintained headers.
860 * include/javaprims.h: Regenerated namespace declarations.
861 * classes.pl (scan): Include [0-9] in regexp for matching class
862 names; for java.util.zip.CRC32.
864 * Makefile.in: Rebuilt.
865 * Makefile.am (nat_headers): Redefined to generate all possible
868 * java/util/zip/ZipException.java: In package java.util.zip, not
871 1999-03-30 Tom Tromey <tromey@cygnus.com>
873 * configure: Rebuilt.
874 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
875 eh-common.h when not building in tree with gcc.
877 * Makefile.in: Rebuilt.
878 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
879 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
881 ($(java_source_files:.java=.class)): New target.
883 * Makefile.in: Rebuilt.
884 * Makefile.am (java_source_files): Added
885 java/net/HttpURLConnection.java and
886 gnu/gcj/www/protocol/http/Connection.java.
888 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
890 * gnu/gcj/www/protocol/http/Connection.java: New file.
891 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
892 * java/net/HttpURLConnection.java: New file.
893 * java/net/URLConnection.java (getHeaderField): Implemented default.
894 (getHeaderFieldKey): Implemented default method.
896 1999-03-30 Tom Tromey <tromey@cygnus.com>
898 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
900 * java/util/zip/Deflater.java: Added copyright header.
901 * java/util/zip/CRC32.java: Added copyright header.
903 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
904 that it is automatically generated.
905 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
907 * gnu/gcj/convert/BytesToUnicode.java,
908 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
909 gnu/gcj/convert/Input_EUCJIS.java,
910 gnu/gcj/convert/Input_UTF8.java,
911 gnu/gcj/convert/JIS0208_to_Unicode.cc,
912 gnu/gcj/convert/JIS0212_to_Unicode.cc,
913 gnu/gcj/convert/Output_8859_1.java,
914 gnu/gcj/convert/Output_JavaSrc.java,
915 gnu/gcj/convert/Output_UTF8.java,
916 gnu/gcj/convert/UnicodeToBytes.java,
917 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
919 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
921 * Makefile.in, configure: Rebuilt.
922 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
923 not if test subdir exists.
924 (--enable-gcj-classes): Removed; gcj always used to generate
926 (JAVA, JAVAC): Removed.
927 (--enable-single-compilation, --enable-source-compilation):
930 (NATIVE): New conditional.
931 * Makefile.am (toolexecdir): Renamed from tooldir to allow
932 `install-exec' to work.
933 (toolexeclibdir): Likewise.
934 (toollib_LIBRARIES): Likewise.
935 (AM_MAKEFLAGS): Don't pass tooldir.
937 (javao_files): Redefined.
938 (java_source_files): New macro.
939 (c_source_files): New macro.
940 (c_files): Redefined in terms of c_source_files.
941 (java_io_files, java_lang_files, java_net_files, java_text_files,
942 java_util_files, gnu_files, java_files): Removed.
943 (class_io_files, class_lang_files, class_net_files,
944 class_text_files, class_util_files, class_gnu_files, class_files):
946 (nat_source_files): New macro.
947 (nat_files): Redefined in terms of nat_source_files.
948 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
949 java_source_files. Removed no-such-file.c.
951 (ETAGS_ARGS): Removed.
952 (TAGS_DEPENDENCIES): Likewise.
953 (libgcj.zip): Depend on java_source_files. Use $(here) and not
955 (src_io_files, src_lang_files, src_text_files, src_util_files,
956 src_gnu_files): Removed.
957 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
958 (BUILT_SOURCES): Removed.
959 (header-check): New target.
961 (noinst_PROGRAMS): New macro.
962 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
964 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
965 (gen-from-JIS): Build in top directory.
966 (convert_source_files): New macro.
967 (convert_SOURCES): New macro.
968 (convert_LDFLAGS): Likewise.
969 (convert_LINK): Likewise.
970 (convert_LDADD): Likewise.
971 (convert_DEPENDENCIES): Likewise.
973 (gen-from-JIS): Removed.
974 (gen_from_JIS_SOURCES): New macro.
975 (gen_from_JIS_LDADD): Likewise.
976 (gen_from_JIS_DEPENDENCIES): Likewise.
978 * configure: Rebuilt.
979 * configure.in (CANADIAN): Set to `yes', not `canadian'.
980 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
981 when defining conditional.
983 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
985 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
986 The Unicode Consortium does not permit their re-distribution.
987 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
988 (JIS0208.h, JIS0212.h): Do not depend on removed files.
990 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
992 * natSystem.c (init_properties): Use malloc, realloc, free after all.
994 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
996 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
997 from Unicode Consortium.
998 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
999 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
1000 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
1001 New tables, generated using gen-from-JIS.
1002 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
1003 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
1004 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
1005 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
1007 * gnu/gcj/convert/Convert.java: New application.
1008 * Makefile.am, Makefile.in (convert): New program, using Convert.
1009 Build the various JIS conversion tables (in maintainer mode).
1011 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
1013 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
1015 * java/net/URL.java (URL): Deal with null property value. Use "."
1016 as separator in building class name.
1017 * java/net/URLConnection.java: Implemented majority of stubbed methods.
1018 * java/net/URLStreamHandler.java (parseURL): Use "" in string
1019 manipulations instead of 'null'. Comment cleanup. Use 0 for the
1020 beginning of the substring rather than 'start'.
1022 1999-03-26 Tom Tromey <tromey@cygnus.com>
1024 * include/java-chartables.h: Rebuilt.
1025 * include/java-chardecomp.h: New file.
1026 * chartables.pl: Generate output files directly. Added support
1027 for generating decomposition header.
1028 (canonical_decomposition, full_decomposition): New globals.
1029 (DECOMPOSITION): New constant.
1030 (process_char): Call add_decomposition.
1031 (add_decomposition): New sub.
1032 (write_decompositions): New sub.
1034 1999-03-25 Tom Tromey <tromey@cygnus.com>
1036 * java/text/CollationElementIterator.java: New file.
1038 * mauve-libjava: Omit StringTest.
1040 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
1042 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
1043 without a '/' when parsing protocol. Handle ref outside of parseURL.
1044 (hashCode): Implemented.
1045 (set): Don't expand -1 to default port.
1046 (getDefaultPort): Removed.
1048 * java/net/URLStreamHandler.java (parseURL): Implemented.
1049 (toExternalForm): Implemented.
1051 1999-03-23 Tom Tromey <tromey@cygnus.com>
1053 * java/text/BreakIterator.java (getSentenceInstance):
1055 * gnu/gcj/text/SentenceBreakIterator.java: New file.
1057 * Makefile.in: Rebuilt.
1058 * Makefile.am (nat_headers): Added IllegalAccessException.
1059 * java/lang/natClass.cc (newInstance): Throw
1060 IllegalAccessException, not IllegalAccessError.
1061 Include IllegalAccessException.h.
1063 1999-03-22 Tom Tromey <tromey@cygnus.com>
1065 * gnu/gcj/text/LineBreakIterator.java: New file.
1066 * java/text/BreakIterator.java (getLineInstance): Implemented.
1068 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
1069 copy constructor private.
1070 (previous, next): Removed erroneous comment about line
1072 (previous): Correctly recognize break between non-letter on the
1073 left and letter on the right. Handle apostrophes correctly.
1075 * java/text/BreakIterator.java (getWordInstance): Implemented.
1076 * gnu/gcj/text/WordBreakIterator.java: New file.
1077 * gnu/gcj/text/CharacterBreakIterator.java: Extend
1079 * gnu/gcj/text/BaseBreakIterator.java: New file.
1081 1999-03-19 Tom Tromey <tromey@cygnus.com>
1083 * java/text/BreakIterator.java: New file (partially stubbed out).
1084 * gnu/gcj/text/CharacterBreakIterator.java: New file.
1086 * include/config.h.in: Rebuilt.
1087 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
1088 (HAVE_TIMEZONE): Likewise.
1089 * configure: Rebuilt.
1090 * configure.in: Added timezone checks.
1091 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
1094 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
1096 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
1097 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
1098 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
1099 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
1100 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
1101 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
1102 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
1103 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
1105 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
1106 (BSD_COMP): Kludge needed for Solaris2.
1108 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
1110 * java/net/URL.java (URL(java.net.URL, string): Moved code to
1111 URL(java.net.URL, string, URLStreamHandler) and call it with a
1112 null handler. In latter constructor, added SecurityManager check.
1113 (set): Expect null handler on bad protocol rather than an exception.
1114 (setURLStreamHandler): Simplified exception handling; return null
1115 on invalid protocol.
1117 1999-03-18 Tom Tromey <tromey@cygnus.com>
1119 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
1121 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
1123 Include PrintStream.h, InputStream.h.
1124 * java/lang/System.java (ForwardingInputStream,
1125 ForwardingOutputStream): Removed.
1126 (setErr, setIn, setOut): Now native.
1128 Reverted patch from 1999-02-12 to work around problem in
1130 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
1131 (_Jv_eh_free): Use free.
1133 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
1134 for path name. Minor formatting fixes.
1136 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
1138 * prims.cc (fail_on_finalization): New function.
1139 (_Jv_GCWatch): Likewise.
1141 * prims.cc (JvRunMain): Initialize `nullp'.
1142 (nullp): New global.
1143 (catch_segv): Throw nullp.
1145 * Makefile.in: Rebuilt.
1146 * Makefile.am (ZIP): In "null target" case, zip is found in the
1149 * prims.cc (_Jv_PrimClass): Initialize all elements of class
1153 * java/lang/StringBuffer.java (StringBuffer): Don't use
1154 ensureCapacity to set initial capacity.
1155 (capacity): Subtract `length' from return result.
1157 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
1159 * java/io/natFileDescriptorPosix.cc (open): Throw
1160 FileNotFoundException, but with filename and errno in msg.
1162 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
1164 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
1165 functionality folded into java/net/URL.java per spec.
1167 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
1168 than EEXIST for throwing FileNotFoundException.
1170 * java/net/URL.java: Folded in default URLStreamHandlerFactory
1171 algorithm per JDK 1.2 doc. Added SecurityManager checks.
1173 * java/net/URLStreamHandler.java (parseURL): Added stub.
1175 1999-03-15 Andrew Haley <aph@cygnus.com>
1177 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
1180 1999-03-15 Andrew Haley <aph@cygnus.com>
1182 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
1185 1999-03-12 Tom Tromey <tromey@cygnus.com>
1187 * prims.cc (catch_segv): New function.
1188 Include <signal.h> if HANDLE_SEGV defined. Include
1189 NullPointerException.h.
1190 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
1193 * java/text/SimpleDateFormat.java (equals): Ensure that object is
1194 a SimpleDateFormat, not just a DateFormat.
1195 (defaultCenturyStart, formatData, pattern): Now private.
1196 (append): Now `final'. Use `NumberFormat.format'.
1198 (SimpleDateFormat): Turn off groupin in NumberFormat object.
1200 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
1203 * java/text/MessageFormat.java (format): Use default MessageFormat
1205 (parse, parseObject): Wrote.
1207 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
1210 1999-03-12 Andrew Haley <aph@cygnus.com>
1212 * java/lang/String.java (indexOf): Replace with native method for
1214 * java/lang/natString.cc (IndexOf): As above.
1216 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
1217 Argument check corrected.
1218 (init(jbyteArray,jint,jint,jstring)): Likewise.
1220 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
1221 1.2 compliant method.
1223 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
1225 * java/lang/Float.java (byteValue, shortValue): Likewise.
1227 1999-03-11 Tom Tromey <tromey@cygnus.com>
1229 * java/text/DecimalFormat.java (parse): Wrote.
1231 * java/text/ChoiceFormat.java (parse): Set error index on
1232 ParsePosition object.
1234 * java/lang/Integer.java (parseInt): Throw exception on overflow
1235 when intermediate result is most negative number. Changed
1236 overflow detection as well.
1237 * java/lang/Long.java (parseLong): Likewise.
1239 * configure, Makefile.in: Rebuilt.
1240 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
1241 CANADIAN when building in source tree that doesn't include gcc.
1242 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
1245 * java/text/ChoiceFormat.java (nextDouble): Correct some
1246 off-by-one errors when masking or adding.
1248 * java/text/DecimalFormat.java (format): Fill in FieldPosition
1249 parameter, if given. Use `%', not IEEEremainder.
1250 (scanFix): Throw error if multiplier already set.
1251 (computePattern): Wrote.
1253 1999-03-11 Andrew Haley <aph@cygnus.com>
1255 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
1257 (nextDouble): Corrected masking logic. Handle interaction between
1258 `next' and negative numbers.
1260 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
1262 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
1263 * java/net/URL.java: Added general comments.
1265 1999-03-10 Tom Tromey <tromey@cygnus.com>
1267 * java/text/ChoiceFormat.java (parse): Wrote.
1269 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
1271 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
1272 Create ChoiceFormat objects.
1273 (format): Special-case ChoiceFormat.
1274 (scanFormatElement): Include { and } in generated style string.
1276 1999-03-09 Tom Tromey <tromey@cygnus.com>
1278 * java/text/ChoiceFormat.java: New file.
1280 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
1282 * java/net/BindException.java: Created.
1283 * java/net/ConnectException.java: Created.
1284 * java/net/ContentHandler.java: Created.
1285 * java/net/ContentHandlerFactory.java: Created.
1286 * java/net/FileNameMap.java: Created.
1287 * java/net/MalformedURLException.java: Created.
1288 * java/net/NoRouteToHostException.java: Created.
1289 * java/net/ProtocolException.java: Created.
1290 * java/net/ServerSocket.java (@author): Fixed typo.
1291 * java/net/Socket.java (@author): Fixed typo.
1292 * java/net/SocketImpl.java (@author): Fixed typo.
1293 * java/net/SocketImplFactory.java (@author): Fixed typo.
1294 * java/net/URL.java: Created - nearly complete.
1295 * java/net/URLConnection.java: Created - near-empty stub.
1296 * java/net/URLStreamHandler.java: Created - incomplete stub.
1297 * java/net/URLStreamHandlerFactory.java: Created.
1298 * java/net/UnknownServiceException.java: Created.
1300 1999-03-09 Tom Tromey <tromey@cygnus.com>
1302 * java/lang/System.java (ForwardingInputStream): New class.
1303 (ForwardingOutputStream): Likewise.
1304 (in, out, err): Now `final' forwarding streams.
1305 (setIn, setOut, setErr): Use appropriate method on forwarding
1308 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
1311 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
1313 * java/util/zip/CRC32.java: New class (just an incomplete stub).
1314 * java/util/zip/Checksum.java: New interface (complete).
1315 * java/util/zip/Deflater.java: New class (near-empty stub).
1316 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
1317 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
1318 * java/util/zip/ZipEntry.java: New class (complete).
1319 * java/util/zip/ZipException.java: New class (complete).
1320 * java/util/zip/ZipFile.java: New class (incomplete stub).
1321 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
1323 1999-03-09 Tom Tromey <tromey@cygnus.com>
1325 * java/text/MessageFormat.java (MessageFormatElement): Removed
1326 `public' specifiers.
1328 * java/text/DecimalFormat.java (scanFormat): Increment index
1329 before processing exponential format. Fixed a couple typos in
1331 (format): Correct normalization of exponent.
1333 1999-03-08 Tom Tromey <tromey@cygnus.com>
1335 * java/text/SimpleDateFormat.java (parse): Throw
1336 IllegalArgumentException, not ParseException.
1338 1999-03-05 Tom Tromey <tromey@cygnus.com>
1340 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
1341 when constructing DateFormatSymbols. Initialize numberFormat
1342 field of superclass.
1344 * java/text/DateFormat.java (equals): Rewrote.
1345 (getAvailableLocales): New method.
1346 (getDateInstance): New methods.
1347 (getDateTimeInstance): Likewise.
1348 (getTimeInstance): Likewise.
1349 (getInstance): New method.
1350 (computeInstance): New method.
1352 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
1354 (safeGetResource): New method.
1355 (DateFormatSymbols): Use Locale paramater.
1356 (equals): Now protected.
1357 Made instance variables private.
1359 1999-03-04 Tom Tromey <tromey@cygnus.com>
1361 * java/text/DecimalFormat.java: New file.
1363 * java/text/NumberFormat.java (groupingUsed,
1364 maximumFractionDigits, maximumIntegerDigits,
1365 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
1367 (setDecimalSeparatorAlwaysShown, setMultiplier,
1368 setPositivePrefix): Removed.
1369 (setMinimumFractionDigits, setMaximumFractionDigits):
1371 (format): Now final.
1372 Added many new methods.
1374 * Makefile.in: Rebuilt.
1375 * Makefile.am (gnu_files): New macro.
1376 (java_files): Added gnu_files.
1377 (class_gnu_files): New macro.
1378 (class_files): Use it.
1379 (src_gnu_files): New macro.
1380 (gnu.o): New target.
1381 (javao_files): Added gnu.o.
1383 * gnu/gcj/text/LocaleData_en_US.java: New file.
1384 * gnu/gcj/text/LocaleData_en.java: New file.
1385 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
1386 (DecimalFormatSymbols): Use ResourceBundle to find resources.
1387 (safeGetString): New method.
1388 (safeGetChar): Likewise.
1390 1999-03-03 Tom Tromey <tromey@cygnus.com>
1392 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
1395 * java/text/FieldPosition.java (equals): Don't check for null
1396 object; instanceof does this.
1398 * java/util/Locale.java (clone): New method.
1401 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
1403 * doc/cni.sgml: New file.
1405 1999-03-03 Tom Tromey <tromey@cygnus.com>
1407 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
1409 * java/text/DecimalFormatSymbols.java: New file.
1411 1999-03-02 Tom Tromey <tromey@cygnus.com>
1413 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
1415 * configure: Rebuilt.
1416 * configure.in: Check for sys/filio.h.
1418 * java/lang/Runtime.java (checkLink): Throw NullPointerException
1420 (load): Always throw UnsatisfiedLinkError.
1421 (loadLibrary): Likewise.
1423 1999-03-02 Anthony Green <green@cygnus.com>
1425 * LIBGCJ_LICENSE: New file.
1426 * LIBJAVA_LICENSE: Removed.
1427 * Many files: libjava now libgcj.
1429 1999-03-02 Tom Tromey <tromey@cygnus.com>
1431 * include/java-chartables.h: Rebuilt.
1432 * chartables.pl (print_block): Make table `const'.
1433 (print_numerics): Likewise.
1434 (print_single_map): Likewise.
1435 (print_all_block): Likewise.
1436 (print_case_table): Likewise.
1437 (print_fast_tables): Likewise.
1438 * java/lang/natCharacter.cc (table_search): `table' argument now
1441 1999-03-01 Tom Tromey <tromey@cygnus.com>
1443 * java/util/Date.java (before, after): Inverted logic.
1445 * java/util/Date.java (parse): Handle case where first character
1446 in string is open parenthesis.
1447 (skipParens): Rewrote.
1449 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
1450 * java/lang/reflect/natField.cc: Include <stdlib.h>.
1452 * java/util/Date.java (parse): Correctly compute beginning of
1455 * java/util/Hashtable.java (get): Throw NullPointerException if
1457 (containsKey): Likewise.
1459 * java/util/Properties.java (list): Truncate value to 37
1460 characters and add `...'.
1462 * java/lang/Byte.java (parseByte): Pass `radix' to
1465 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
1467 Include System.h, PrintStream.h.
1469 * java/lang/natSystem.cc (init_properties): Don't use malloc,
1472 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
1474 * configure: Rebuilt.
1475 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
1478 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
1480 * java/lang/SecurityManager.java: Import java.net.*.
1481 (checkMulticast): New methods.
1483 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
1485 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
1486 (nat_files): Add java/lang/reflect/natArray.o.
1487 (nat_headers): Add Field.h and NoSuchFieldException.h.
1489 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
1490 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
1491 (_Jv_FromReflectedField): Fix buglet.
1492 * include/jvm.h (_Jv_NewMultiArray): New declaration.
1493 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
1494 * prims.cc (_Jv_Abort): Include message in print-out.
1496 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
1497 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
1498 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
1500 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
1501 * include/config.h.in (HAVE_PWD_H): New feature macro.
1502 * java/lang/natSystem.cc (init_properties): Set file.encoding,
1503 user.name, user.home, user.dir.
1505 * java/lang/reflect/Array.java: New class.
1506 * java/lang/reflect/natArray.cc: New native methods.
1507 * include/javaprims.h: Declare java::lang::reflect::Array.
1509 * java/lang/Class.h (getField): New private method. Add friends.
1510 * java/lang/Class.java (getField): Add private overload.
1511 * java/lang/natClass.cc (getField, getField, getDeclaredField,
1512 getDeclaredMethods): Add working implementations.
1513 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
1514 Finish implementation, except for access control.
1516 * java/lang/reflect/Modifier.java (toString): New overload.
1517 * include/java-method.h: New file.
1518 * java/lang/reflect/Method.java (index): Replaced by offset field.
1519 Remove various private fields - get them from _Jv_Field instead.
1520 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
1521 New method implementations.
1523 * java/text/NumberFormat.java: Add a bunch of methods.
1525 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
1527 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
1529 1999-02-26 Tom Tromey <tromey@cygnus.com>
1531 * include/config.h.in: Rebuilt.
1532 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
1533 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
1534 HAVE_GETHOSTBYADDR_R): New defines.
1535 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
1536 gethostbyaddr_r if available.
1538 * configure: Rebuilt.
1539 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
1541 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
1545 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
1546 * prims.cc (_Jv_AllocBytesChecked): New function.
1548 * Makefile.in: Rebuilt.
1549 * Makefile.am (SUBDIRS): Removed `test'.
1550 * configure: Rebuilt.
1551 * configure.in: Don't build test/Makefile.
1552 * test/*: Removed all files.
1554 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
1556 * java/lang/reflect/Constructor.java: Make class final to match spec.
1557 * java/lang/reflect/Method.java: Ditto.
1559 1999-02-25 Tom Tromey <tromey@cygnus.com>
1561 * java/net/natInetAddress.cc: Include <sys/types.h> before
1563 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
1566 * java/net/natInetAddress.cc: Declare gethostname if required.
1567 * include/config.h.in: Rebuilt.
1568 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
1569 * configure: Rebuilt.
1570 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
1571 declared in unistd.h.
1573 1999-02-24 Tom Tromey <tromey@cygnus.com>
1575 * Makefile.in: Rebuilt.
1576 * Makefile.am (java/io/FileDescriptor.h): Removed target.
1577 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
1578 from private to "none".
1580 * include/javaprims.h: Regenerated class declarations with new
1582 * classes.pl (scan): Only generate decls for java.lang, java.io,
1585 1999-02-24 Tom Tromey <tromey@cygnus.com>
1587 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
1588 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
1590 1999-02-23 Tom Tromey <tromey@cygnus.com>
1592 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
1593 not already defined.
1594 * java/io/natFile.cc (_REENTRANT): Only define if not already
1596 * include/config.h.in: Rebuilt.
1597 * acconfig.h (HAVE_BOEHM_GC): New define.
1598 * configure: Rebuilt.
1599 * configure.in: Define HAVE_BOEHM_GC if using it.
1600 * posix-threads.cc: Include boehm-config.h and gc.h if
1602 * include/posix-threads.h: Added explanatory note about Boehm GC.
1604 * java/io/BufferedReader.java (readLine): Only return null when
1605 EOF seen before any characters read. (In particular, an empty
1606 line should not return null.)
1608 * java/io/BufferedInputStream.java (read): Only refill once per
1611 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
1612 java.lang.Character.classify12, java.lang.String.hash,
1613 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
1614 java.text.SimpleDateFormat.getAndSet2DigitYearStart
1616 * java/text/StringCharacterIterator.java (setIndex): No error if
1618 (next): Check for `pos == end', not `end - 1'.
1619 (StringCharacterIterator): Allow `pos == end'. Explicitly check
1620 for null text in each constructor.
1621 (clone): Fixed order of arguments to constructor.
1623 1999-02-22 Tom Tromey <tromey@cygnus.com>
1625 * include/config.h.in: Rebuilt.
1626 * acconfig.h (HAVE_INET6): New define.
1627 (HAVE_SOCKLEN_T): Likewise.
1628 * java/net/PlainSocketImpl.java: Added copyright header.
1629 * java/net/natPlainSocketImpl.cc: Added copyright header.
1630 (union SockAddr): Use HAVE_INET6, not AF_INET6.
1632 (connect): Likewise.
1634 (socklen_t): New typedef.
1635 (accept): Use socklen_t.
1636 * java/net/natInetAddress.cc: Added copyright header.
1637 (HAVE_GETHOSTNAME): Don't define.
1638 (HAVE_INET_ADDR): Likewise.
1639 (lookup): Fixed typo.
1640 (aton): Don't use `address' as name of local variable.
1641 (lookup): Use HAVE_INET6, not AF_INET6.
1643 * configure: Rebuilt.
1644 * configure.in: Look for functions inet_aton, inet_addr,
1645 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
1646 Check for socklen_t typedef.
1648 * exception.cc (__throw): Declare as __noreturn__.
1650 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
1652 * Makefile.am, Makefile.in: Also build java/net.
1653 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
1655 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
1656 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
1658 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
1659 * include/cni.h (JvMalloc, JvFree): New inline functions.
1660 (JvThrow): Add __noreturn__ attribute.
1661 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
1662 (_Jv_Throw): Add __noreturn__ attribute.
1664 * java/net/PlainSocketImpl.java: Init fnum to -1.
1665 * java/net/ServerSocket.java: Add missing throws clauses.
1666 * java/lang/Socket.java: For the constructor taking a SocketImpl,
1667 don't call create on the latter. Instead, other constructors
1668 have to explicitly call SocketImpl.create.
1669 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
1670 from size_t to int, to match ::accept prototype.
1671 * java/net/natInetAddress.cc: Use JvFree rather than free.
1674 1999-02-22 Tom Tromey <tromey@cygnus.com>
1676 * include/javaprims.h: Added new classes.
1677 * java/text/StringCharacterIterator.java: New file.
1678 * java/text/CharacterIterator.java: New file.
1680 * java/text/ParseException.java (errorOffset): Now private.
1682 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
1684 * java/net: New package.
1685 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
1686 Socket.java,SocketException.java,SocketImpl.java,
1687 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
1688 natPlainSocketImpl.cc}: New classes.
1690 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
1691 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
1692 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
1693 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
1695 * classes.pl: Translate package into "namespace", not "class".
1696 * include/javaprims.h: Update class list, using "namespace".
1698 1999-02-21 Tom Tromey <tromey@cygnus.com>
1700 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
1701 Define when appropriate.
1703 1999-02-20 Tom Tromey <tromey@cygnus.com>
1705 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
1706 as a single byte and \u07ff as two bytes.
1707 (_Jv_GetStringUTFLength): Likewise.
1708 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
1709 with 0x0f, not 0x1f.
1711 1999-02-19 Tom Tromey <tromey@cygnus.com>
1713 * java/io/DataOutputStream.java (writeUTF): When encoding
1714 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
1715 * java/io/DataInputStream.java (readUTF): Mask second byte of
1716 3-byte character with 0x3f, not 0x1f.
1718 * java/io/DataInputStream.java (readLong): Cast result of
1719 readUnsignedByte to long before using.
1721 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
1724 * mauve-libjava: Re-enabled java.io.DataInputOutput.
1725 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
1726 argument to avoid warning.
1727 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
1728 argument to avoid warning.
1730 1999-02-18 Tom Tromey <tromey@cygnus.com>
1732 * mauve-libjava: Omit java.io.DataInputOutput and
1733 java.io.Utf8Encoding.
1735 1999-02-17 Tom Tromey <tromey@cygnus.com>
1737 * Makefile.in: Rebuilt.
1738 * Makefile.am (nat_headers): Added InterruptedIOException.h.
1739 * java/io/natFileDescriptorPosix.cc: Include
1740 InterruptedIOException.h, Thread.h.
1741 (write): Throw InterruptedIOException when required.
1743 * posix-threads.cc: Include <signal.h>.
1744 (_Jv_ThreadInterrupt): New function.
1746 (handle_intr): New function.
1747 (_Jv_InitThreads): Register handle_intr via sigaction.
1748 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
1749 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
1750 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
1751 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
1753 1999-02-19 Andrew Haley <aph@cygnus.com>
1755 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
1757 (ThreadGroup (int)): Set the maximum priority of the initial
1760 1999-02-18 Andrew Haley <aph@cygnus.com>
1762 * java/lang/natClass.cc (forName): Check for the case where a
1763 classname is the name of an array and call FindClassFromSignature
1766 1999-02-18 Andrew Haley <aph@cygnus.com>
1768 * java/lang/StringBuffer (insert (int, String)): Move up any
1769 characters above the insert position and increase the length of
1770 the string buffer by the length of the argument.
1771 (insert (int, char[])): Likewise.
1772 (insert (int, char)): Likewise.
1773 (StringBuffer (String)): The initial capacity of the string buffer
1774 is 16 plus the length of the argument.
1775 (getChars): Add a JDK 1.2 FIXME.
1777 1999-02-18 Andrew Haley <aph@cygnus.com>
1779 * java/lang/Short.java (parseShort(String, int)): Pass radix to
1782 1999-02-18 Andrew Haley <aph@cygnus.com>
1784 * java/lang/Double.java (equals): Use a bit-by-bit comparision
1785 instead of floating-point equality. This is necessary for
1786 correct floating-point Hashtables.
1787 * java/lang/Float.java (equals): Ditto.
1789 1999-02-16 Tom Tromey <tromey@cygnus.com>
1791 * java/util/Properties.java (list): Truncate value to 37
1792 characters and add "...".
1794 1999-02-16 Tom Tromey <tromey@cygnus.com>
1796 * java/util/Vector.java (Vector): Throw IllegalArgumentException
1797 if initCap is negative.
1798 (contains): Implement JDK1.2-style handling of null argument.
1799 (removeElement): Likewise.
1800 (indexOf): Likewise. Also, correctly handle case where idx is
1802 (lastIndexOf): Likewise.
1804 1999-02-16 Tom Tromey <tromey@cygnus.com>
1806 * java/lang/natString.cc (init): Increment source pointer in
1809 1999-02-16 Tom Tromey <tromey@cygnus.com>
1811 * exception.cc: Include NullPointerException.h.
1812 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
1814 1999-02-16 Tom Tromey <tromey@cygnus.com>
1816 * Makefile.in: Rebuilt.
1817 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
1819 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
1821 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
1822 we're compiling canadian.
1823 * configure: Regenerated.
1825 1999-02-12 Andrew Haley <aph@cygnus.com>
1827 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
1828 deleted from libgcj.
1830 1999-02-12 Tom Tromey <tromey@cygnus.com>
1832 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
1833 (_Jv_eh_free): Don't call free.
1834 Don't declare malloc or free.
1836 1999-02-11 Tom Tromey <tromey@cygnus.com>
1838 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
1840 1999-02-11 Andrew Haley <aph@cygnus.com>
1842 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
1843 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
1844 needed by java.lang.*.
1845 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
1846 wf_fmod.o: Removed from libjava.a.
1848 1999-02-11 Tom Tromey <tromey@cygnus.com>
1850 * include/javaprims.h: Reverted previous change; with it
1851 exception.cc can't compile.
1853 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
1855 * include/config.h.in: Rebuilt.
1856 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
1858 * configure: Rebuilt.
1859 * configure.in: Check for sched_yield. Look in thread library for
1860 all thread functions.
1862 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
1863 no recursive mutexes.
1864 (_Jv_MutexDestroy): Define when required.
1865 (_Jv_MutexLock): Likewise.
1866 (_Jv_MutexUnlock): Likewise.
1867 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
1868 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
1869 (_Jv_Mutex_t): New structure.
1870 (_Jv_MutexDestroy): Only define if recursive mutexes available.
1871 (_Jv_MutexLock): Likewise.
1872 (_Jv_MutexUnlock): Likewise.
1874 1999-02-10 Tom Tromey <tromey@cygnus.com>
1876 * aclocal.m4, configure, Makefile.in: Rebuilt.
1877 * acinclude.m4: Renamed libjava to libgcj. Updated to use
1879 * configure.in: Changed to track library changes.
1880 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
1881 (AM_CXXFLAGS): Likewise.
1882 (data_DATA): Likewise.
1883 (AM_CFLAGS): Likewise.
1884 (JC1FLAGS): Likewise.
1885 (libgcj_a_SOURCES): Likewise.
1886 (EXTRA_libgcj_a_SOURCES): Likewise.
1887 (libgcj_a_DEPENDENCIES): Likewise.
1888 (libgcj_a_LIBADD): Likewise.
1889 (libgcj.zip): Likewise.
1890 (CLEANFILES): Likewise.
1891 ($(nat_headers)): Likewise.
1892 (java/lang/FirstThread.h): Likewise.
1893 (java/lang/ThreadGroup.h): Likewise.
1894 (java/lang/String.h): Likewise.
1895 (java/lang/reflect/Field.h): Likewise.
1896 (BUILT_SOURCES): Likewise.
1897 (maintainer-check): Likewise.
1898 (CONFIG_STATUS_DEPENDENCIES): Likewise.
1899 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
1901 * java/util/natGregorianCalendar.cc (computeFields): Only use
1902 gmtime_r and localtime_r when configured for posix threads.
1904 * java/io/natFile.cc (get_entry): Only use readdir_r when
1905 configured for posix threads.
1907 * java/util/natGregorianCalendar.cc: Update copyright notice.
1908 * java/util/TimeZone.java: Ditto.
1909 * java/util/SimpleTimeZone.java: Ditto.
1911 1999-02-08 Tom Tromey <tromey@cygnus.com>
1913 * java/io/PrintStream.java (line_separator): New constant.
1914 (print): Use line_separator, not `file.separator' property.
1915 (println): Use line_separator.
1917 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
1918 when trying to instantiate Class.
1920 * java/lang/ThreadGroup.java (ThreadGroup): Throw
1921 NullPointerException if argument is null.
1923 * java/lang/Thread.java (setName): Throw NullPointerException, not
1924 IllegalArgumentException.
1927 1999-02-08 Andrew Haley <aph@cygnus.com>
1929 * java/lang/natClass.cc (newInstance): Don't allow anyone to
1930 create new Classes with Class.newInstance().
1932 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
1933 semiciolon to end of an array Class's signature if the elements of
1934 the array aren't themselves arrays.
1936 * java/lang/natSystem.cc (arraycopy): The size of an element of an
1937 array of objects is always sizeof(jobject), not the size of the
1938 object to which the reference points.
1940 1999-02-08 Tom Tromey <tromey@cygnus.com>
1942 * java/util/BitSet.java (and): Throw NullPointerException when
1947 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
1948 if argument is negative.
1949 (clear): Correctly compute `offset'. Throw
1950 IndexOutOfBoundsException when required.
1952 (get): Likewise. Also, return correct value.
1953 (ensure): Changed meaning of argument.
1954 (toString): Wrap contents in `{}'; put spaces after commas.
1955 (hashCode): Don't try to examine elements off the end of array.
1956 (or): Correctly include bits past the end of this bit set.
1959 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
1961 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
1962 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
1964 1999-02-04 Andrew Haley <aph@cygnus.com>
1966 * java/lang/natClass.cc (Class::forName): Remove code which mapped
1967 '/' in signatures to '.'
1968 (Class::getName): Likewise,
1969 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
1971 * java/lang/natFirstThread.cc (run): Change '/' in main's
1974 1999-02-03 Andrew Haley <aph@cygnus.com>
1976 * configure.host: -ffloat-store added when compiling libjava on
1977 x86. fdlibm apparently relies on this.
1979 * java/lang/ThreadGroup.java (add): throw an exception if the
1980 ThreadGroup has been destroyed.
1982 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
1985 1999-01-27 Tom Tromey <tromey@cygnus.com>
1987 * java/lang/StringBuffer.java (StringBuffer): Handle null
1990 1999-01-21 Tom Tromey <tromey@cygnus.com>
1992 * java/lang/natFirstThread.cc (run): Don't require main to be
1995 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
1997 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
1999 1999-01-20 Tom Tromey <tromey@cygnus.com>
2001 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
2005 (unintern): Likewise.
2006 (_Jv_NewStringUtf8Const): Likewise.
2008 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
2009 Character.isLetter, to see if character is self-quoting. Also,
2010 correctly handle quoted characters.
2011 (parse): Fixed typo. Also now throws ParseException.
2013 1999-01-15 Tom Tromey <tromey@cygnus.com>
2015 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
2017 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
2018 _Jv_SyncInfo has `init' member.
2020 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
2023 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
2024 IllegalMonitorStateException if unlock fails.
2026 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
2028 (_Jv_NewObjectArray): Likewise.
2030 1999-01-14 Tom Tromey <tromey@cygnus.com>
2032 * java/lang/Character.java (isJavaIdentifierPart): Allow
2033 LETTER_NUMBER characters.
2035 * chartables.pl (process_char): Fixed error messages.
2037 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
2038 * chartables.pl: Updated comments. Changed detection of non-digit
2039 numeric values (no longer miss \u00b2 and friends).
2041 * java/lang/Character.java (isJavaIdentifierPart): Recognize
2042 currency symbols and connector punctuation.
2043 (isIdentifierIgnorable): Make 7f-9f ignorable.
2045 * prims.cc (_Jv_NewObjectArray): Check for overflow.
2046 (_Jv_NewPrimArray): Likewise.
2047 (SIZE_T_MAX): New define.
2049 * java/lang/ClassLoader.java (system): Now private and final.
2051 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
2054 * configure: Rebuilt.
2055 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
2057 * exception.cc: Include gansidecl.h.
2059 1999-01-14 Andrew Haley <aph@cygnus.com>
2061 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
2062 corrected: they didn't treat -0.0 and NaNs correctly.
2064 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
2066 * nogc.cc: Use calloc to zero out memory.
2068 1999-01-11 Tom Tromey <tromey@cygnus.com>
2070 * java/lang/natClass.cc (isInstance): Return false if this class
2071 is primitive, not if class of `obj' is primitive.
2072 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
2074 * java/io/SequenceInputStream.java (close): Handle case where `in'
2077 * java/text/DateFormat.java (format): New method.
2079 * mauve-libjava: Omit java.text.DateFormat.
2081 1999-01-08 Tom Tromey <tromey@cygnus.com>
2083 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
2085 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
2087 (_Jv_CondNotifyAll): Likewise.
2089 * configure: Rebuilt.
2090 * configure.in: Change --enable-source-compilation logic to work
2093 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
2095 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
2096 and RUNTESTFLAGS from AM_MAKEFLAGS.
2097 * configure.in: AM_RUNTESTFLAGS added.
2098 * configure.host: AM_RUNTESTFLAGS added.
2099 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
2100 * configure: rebuilt.
2101 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
2103 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
2104 argv[] made conditional because embedded targets may not have
2106 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
2107 explanatory comments added in call to super.
2109 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
2110 exception thrown in the test harness itself added.
2111 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
2113 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
2115 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
2117 1999-01-06 Tom Tromey <tromey@cygnus.com>
2119 * java/io/natFile.cc (get_entry): New function.
2120 (performList): Use get_entry.
2121 * include/config.h.in: Rebuilt.
2122 * acconfig.h (HAVE_READDIR_R): New define.
2123 * configure: Rebuilt.
2124 * configure.in: Look for readdir_r.
2126 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
2128 * java/util/natDate.cc: Added copyright header.
2130 1999-01-05 Tom Tromey <tromey@cygnus.com>
2132 * include/config.h.in: Rebuilt.
2133 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
2134 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
2135 * configure: Rebuilt.
2136 * configure.in: Check for access, stat, mkdir, rename, rmdir,
2137 unlink, and realpath.
2138 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
2139 (stat): Conditionalize on HAVE_STAT.
2141 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
2142 (performMkdir): Conditionalize on HAVE_MKDIR.
2143 (performRenameTo): Conditionalize on HAVE_RENAME.
2144 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
2146 * include/config.h.in: Rebuilt.
2147 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
2148 * configure: Rebuilt.
2149 * configure.in: Check for gmtime_r and localtime_r. For cross
2150 builds, assume they exist.
2152 * mauve-libjava: Include java.text.DateFormatSymbols again.
2153 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
2154 from setAmPmStrings.
2156 * mauve-libjava: Omit java.text.DateFormatSymbols.
2158 1999-01-04 Tom Tromey <tromey@cygnus.com>
2160 * java/io/PushbackReader.java: `off' already includes `numBytes'.
2162 * java/io/LineNumberReader.java (read): Decrement `count' in
2165 * java/io/BufferedWriter.java (write): Correctly determine when
2166 incoming data would overrun buffer. Flush buffer if write causes
2169 * java/io/BufferedOutputStream.java (write): Increment `count'
2170 after copying data into buffer.
2172 * java/io/FilterOutputStream.java (close): Call flush first.
2174 * java/io/PipedReader.java (read): If read causes `out' to catch
2175 up with `in', then set `in' to -1.
2177 * java/io/LineNumberInputStream.java (read): If no bytes read,
2178 return -1. If no bytes requested, return 0.
2180 * java/lang/StringBuffer.java (insert): If `str' is null, use
2183 1998-12-30 Anthony Green <green@cygnus.com>
2186 * LIBJAVA_LICENSE, COPYING.LIB: Created.
2188 1998-12-23 Tom Tromey <tromey@cygnus.com>
2190 * java/io/PushbackInputStream.java (read): `off' already includes
2193 1998-12-17 Tom Tromey <tromey@cygnus.com>
2195 * Makefile.in: Rebuilt.
2196 * Makefile.am (GCJ_canadian): Include target_alias.
2198 * java/lang/natFirstThread.cc (run): Require main's class to be
2201 1998-12-16 Tom Tromey <tromey@cygnus.com>
2203 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
2205 * java/util/ResourceBundle.java (getBundle): Throw
2206 NullPointerException if locale argument is null.
2208 * java/lang/natClass.cc (forName): Throw NullPointerException if
2210 Include NullPointerException.h.
2212 1998-12-14 Tom Tromey <tromey@cygnus.com>
2214 * java/lang/Character.java (Character): Implement Comparable.
2215 (compareTo): New methods.
2217 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
2218 correct country and language codes.
2219 (UK, US): New constants.
2220 (setDefault): Language codes are lower-case.
2222 * java/lang/natClass.cc (getDeclaredConstructor): New method.
2223 (getDeclaredConstructors): Likewise.
2224 (getDeclaredField): Likewise.
2225 (getDeclaredFields): Likewise.
2226 (getDeclaredMethod): Likewise.
2227 (getDeclaredMethods): Likewise.
2228 (getField): Likewise.
2229 (getFields): Likewise.
2230 (getMethod): Likewise.
2231 (getMethods): Likewise.
2232 * java/lang/Class.java: Declare new methods.
2233 * java/lang/Class.h: Declare new methods.
2235 * java/lang/natString.cc: Removed `#pragma implementation'.
2236 * include/cni.h (_Jv_GetStringChars): New function.
2237 * Makefile.in: Rebuilt.
2238 * Makefile.am (java/lang/String.h): Don't generate definition for
2241 * java/lang/natString.cc: Added `#pragma implementation'.
2243 * Makefile.in: Rebuilt.
2244 * Makefile.am (libjava.zip): Put build directory first in class
2245 path to avoid bug in compiler.
2247 1998-12-14 Anthony Green <green@cygnus.com>
2249 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
2251 * include/javaprims.h: Add EventObject, ListResourceBundle and
2254 1998-12-13 Anthony Green <green@cygnus.com>
2256 * mauve-libjava: Run the ResourceBundle tests.
2258 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
2261 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
2263 * configure.in, configure: Make --enable-gcj-classes and
2264 --enable-source-compilation the default. (Nervously...) Yeah!
2265 Based on a patch from Tom Tromey.
2267 1998-12-13 Tom Tromey <tromey@cygnus.com>
2269 * java/util/EventObject.java: New file.
2270 * java/util/EventListener.java: New file.
2272 * include/javaprims.h: Updated class declarations.
2273 * Makefile.in: Rebuilt.
2274 * Makefile.am (nat_headers): Added Constructor.h.
2275 (java/lang/String.h): Don't inline String::length().
2276 * java/lang/Class.h (getConstructor, getConstructors): Declare.
2277 * java/lang/Class.java (initializeClass, hackRunInitializers,
2278 hackTrampoline): No need to mark `final'.
2279 (getConstructor, getConstructors): Declare.
2280 * java/lang/reflect/Field.java (equals): New method.
2281 * java/lang/natClass.cc (getConstructor): New method.
2282 (getConstructors): Likewise.
2283 Include Method.h, Field.h, Constructor.h.
2284 * java/lang/reflect/Constructor.java: New file.
2285 * java/lang/reflect/Method.java (toString): No space before open
2287 (equals): Simplified.
2289 1998-12-13 Anthony Green <green@cygnus.com>
2291 * java/util/ResourceBundle.java: New file.
2292 * java/util/ListResourceBundle.java: New file.
2294 1998-12-12 Tom Tromey <tromey@cygnus.com>
2296 * java/lang/System.java (in, out, err): Now buffered streams by
2299 * include/javaprims.h: Updated class declarations.
2300 * Makefile.in: Rebuilt.
2301 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
2302 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
2304 (nat_files): Added natMethod.o.
2305 * java/lang/reflect/natMethod.cc: New file.
2306 * java/lang/reflect/Field.java (Field): Now extends
2308 * java/lang/reflect/AccessibleObject.java: New file.
2309 * java/lang/reflect/InvocationTargetException.java: New file.
2311 1998-12-11 Tom Tromey <tromey@cygnus.com>
2313 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
2314 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
2315 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
2317 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
2319 1998-12-09 Tom Tromey <tromey@cygnus.com>
2321 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
2324 * java/lang/natCharacter.cc (toTitleCase): Handle case where
2325 character is already titlecase.
2327 * java/lang/Character.java (isJavaLetter): Follow spec.
2328 (isJavaLetterOrDigit): Likewise.
2330 * java/util/GregorianCalendar.java (gregorianCutover): Append
2333 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
2335 1998-12-08 Tom Tromey <tromey@cygnus.com>
2337 * java/lang/reflect/Modifier.java (toString): Replace second
2338 `static' with `synchronized'.
2340 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
2341 * java/lang/Object.h (Object::hack12_6): Declare.
2342 * java/lang/Object.java (hack12_6): New function.
2344 1998-12-07 Tom Tromey <tromey@cygnus.com>
2346 * include/java-array.h (__JArray::clone): Removed decl.
2347 * prims.cc (__JArray::clone): Removed.
2348 * java/lang/natObject.cc (clone): Incorporate code to clone an
2351 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
2352 (_Jv_FindArrayClass): Set dtable_method_count on new class.
2353 Correctly use dtable_method_count.
2355 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
2357 * java/lang/Double.java (isInfinite, isNaN): Handle correct
2360 1998-12-06 Anthony Green <green@cygnus.com>
2362 * mauve-libjava: Don't test ResourceBundle.
2364 1998-12-04 Tom Tromey <tromey@cygnus.com>
2366 More JDK 1.2 spec fixes:
2367 * java/util/Date.java (millis): Now private.
2368 * java/text/DateFormat.java (DateFormat): Constructor now
2370 * java/lang/Void.java (Void): New private constructor.
2371 * java/lang/System.java (System): New private constructor.
2372 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
2374 (currentClassLoader): New method.
2375 (currentLoadedClass): New method.
2376 * java/lang/Math.java (Math): New private constructor.
2377 * java/lang/Compiler.java (Compiler): New private constructor.
2378 * java/lang/Class.java (Class): New private constructor.
2379 * java/lang/Double.java (toString): Removed access specifier from
2380 two-argument `toString' method.
2382 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
2384 * java/lang/s_rint.c (rint): Make the variable w volatile; this
2385 causes it to be flushed from an fp register (where it may be
2386 longer than double precision) to a double in memory. This is
2387 essential to ensure correct rounding behaviour.
2389 1998-12-04 Tom Tromey <tromey@cygnus.com>
2391 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
2394 * java/lang/Character.java (isIdentifierIgnorable): Added comment
2395 explaining apparent divergence from JDK 1.2.
2397 1998-12-04 Per Bothner <bothner@cygnus.com>
2399 * include/no-threads.h: Remove unused parameter names.
2400 This silences a bunch of warnings.
2402 1998-12-04 Tom Tromey <tromey@cygnus.com>
2404 * include/config.h.in: Rebuilt.
2405 * acconfig.h (HAVE_CTIME_R): New symbol.
2407 1998-12-03 Tom Tromey <tromey@cygnus.com>
2409 * mauve-libjava: Added many more categories to reject.
2411 Changes to follow JDK1.2 spec:
2412 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
2413 setErr, setIn, setOut): No need to be `final'.
2414 * java/lang/natObject.cc (wait): `nanos' argument is an int.
2415 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
2416 * java/lang/Object.java (wait): `nanos' argument is an int.
2417 * java/lang/VirtualMachineError.java: Class is abstract.
2418 * java/lang/ThreadDeath.java: Made constructors public.
2419 * java/io/FileDescriptor.java (FileDescriptor): Added missing
2422 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
2424 * java/text/DateFormatSymbols.java (getAmPmStrings,
2425 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
2427 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
2429 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
2430 writeDouble, writeByte, writeBytes, writeChar, writeChars,
2431 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
2434 * java/lang/IllegalThreadStateException.java
2435 (IllegalThreadStateException): Changed extending class to match spec.
2437 * java/lang/NumberFormatException.java
2438 (java/lang/NumberFormatException): Changed extending class to match
2441 * java/util/Observer.java (Observer): Changed sig to match JCL.
2443 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
2445 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
2446 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
2447 signature to match JDK 1.1 and 1.2.
2449 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
2451 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
2452 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
2453 * Makefile.in, configure: Rebuilt.
2455 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
2458 1998-12-02 Tom Tromey <tromey@cygnus.com>
2460 * mauve-libjava: New file.
2462 The remaining `-W -Wall' fixes:
2463 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
2465 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
2467 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
2469 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
2471 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
2473 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
2475 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
2477 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
2479 * java/lang/mprec.c (Balloc): Removed unused variable.
2480 (mult): Added parentheses per gcc suggestion.
2481 (pow5mult): Likewise.
2486 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
2487 suggestion. Added cast to `int' to avoid signed/unsigned
2489 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
2491 (IsAssignableFrom): Likewise.
2492 (_Jv_JNI_GetObjectField): Likewise.
2493 (_Jv_JNI_GetByteField): Likewise.
2494 (_Jv_JNI_GetShortField): Likewise.
2495 (_Jv_JNI_GetIntField): Likewise.
2496 (_Jv_JNI_GetLongField): Likewise.
2497 (_Jv_JNI_GetStringLength): Likewise.
2498 (_Jv_JNI_ToReflectedField): Likewise.
2499 (_Jv_JNI_FromReflectedField): Likewise.
2500 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
2502 * Makefile.in: Rebuilt.
2503 * Makefile.am (AM_CFLAGS): Define conditionally.
2504 (WARNINGS): New macro.
2505 (AM_CXXFLAGS): Include WARNINGS.
2506 * configure: Rebuilt.
2507 * configure.in (USING_GCC): New conditional.
2509 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
2511 * java/lang/Character.java: Changed classification constants to
2512 type `byte' to match JDK 1.2 docs.
2514 1998-12-01 Tom Tromey <tromey@cygnus.com>
2516 Some fixes to be `-W -Wall' clean:
2517 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
2518 (_Jv_MarkArray): Likewise.
2519 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
2520 (to_upper_title): Likewise.
2521 (isTitleCase): Likewise.
2522 (toTitleCase): Likewise.
2523 (getNumericValue): Likewise.
2524 (isLowerCase): Likewise.
2525 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
2526 (avoids compiler warning).
2527 * java/lang/natClass.cc (getDeclaredClasses): Always return a
2529 (getDeclaringClass): Likewise.
2530 (_Jv_LookupInterfaceMethod): Likewise.
2531 (_Jv_NewClass): Removed name of unused parameter.
2532 * exception.cc (_Jv_type_matcher): Removed unused variable.
2533 (_Jv_setup_eh_info): Removed name of unused parameter.
2534 * prims.cc (_Jv_NewArray): Always return a value.
2535 (_Jv_FindClassFromSignature): Likewise.
2536 * include/java-field.h (getNameUtf8Const): Removed name of unused
2538 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
2540 (_Jv_ThreadSetPriority): Likewise.
2542 * java/lang/natString.cc (hashChars): Now static.
2544 * java/lang/FirstThread.java (FirstThread): Now final.
2546 * java/io/File.java (performMkdir, performRenameTo): Now private.
2548 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
2549 if no time function defined.
2551 * configure: Rebuilt.
2552 * configure.in: Look for ctime_r, ctime.
2553 * java/util/Date.java (toString): Now native.
2554 * java/util/natDate.cc (toString): Rewrote.
2556 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
2558 * Add LDFLAGS line to allow TX39 test cases to link when cross
2561 1998-11-23 Anthony Green <green@cygnus.com>
2563 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
2564 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
2565 quick-threads.cc, include/boehm-gc.h, include/cni.h,
2566 include/java-array.h, include/java-assert.h, include/java-field.h,
2567 include/javaprims.h, include/jni.h, include/jvm.h,
2568 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
2569 include/quick-threads.h, java/io/BufferedInputStream.java,
2570 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
2571 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
2572 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
2573 java/io/CharArrayWriter.java,
2574 java/io/CharConversionException.java, java/io/DataInput.java,
2575 java/io/DataInputStream.java, java/io/DataOutput.java,
2576 java/io/DataOutputStream.java, java/io/EOFException.java,
2577 java/io/File.java, java/io/FileDescriptor.java,
2578 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
2579 java/io/FileOutputStream.java, java/io/FileReader.java,
2580 java/io/FileWriter.java, java/io/FilenameFilter.java,
2581 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
2582 java/io/FilterReader.java, java/io/FilterWriter.java,
2583 java/io/IOException.java, java/io/InputStream.java,
2584 java/io/InputStreamReader.java,
2585 java/io/InterruptedIOException.java,
2586 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
2587 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
2588 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
2589 java/io/PipedReader.java, java/io/PipedWriter.java,
2590 java/io/PrintStream.java, java/io/PrintWriter.java,
2591 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
2592 java/io/RandomAccessFile.java, java/io/Reader.java,
2593 java/io/SequenceInputStream.java, java/io/Serializable.java,
2594 java/io/StreamTokenizer.java,
2595 java/io/StringBufferInputStream.java, java/io/StringReader.java,
2596 java/io/StringWriter.java, java/io/SyncFailedException.java,
2597 java/io/UTFDataFormatException.java,
2598 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
2599 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
2600 java/io/natFileDescriptorPosix.cc,
2601 java/lang/AbstractMethodError.java,
2602 java/lang/ArithmeticException.java,
2603 java/lang/ArrayIndexOutOfBoundsException.java,
2604 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
2605 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
2606 java/lang/Class.java, java/lang/ClassCastException.java,
2607 java/lang/ClassCircularityError.java,
2608 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
2609 java/lang/ClassNotFoundException.java,
2610 java/lang/CloneNotSupportedException.java,
2611 java/lang/Cloneable.java, java/lang/Comparable.java,
2612 java/lang/Compiler.java, java/lang/Double.java,
2613 java/lang/Error.java, java/lang/Exception.java,
2614 java/lang/ExceptionInInitializerError.java,
2615 java/lang/FirstThread.java, java/lang/Float.java,
2616 java/lang/IllegalAccessError.java,
2617 java/lang/IllegalAccessException.java,
2618 java/lang/IllegalArgumentException.java,
2619 java/lang/IllegalMonitorStateException.java,
2620 java/lang/IllegalStateException.java,
2621 java/lang/IllegalThreadStateException.java,
2622 java/lang/IncompatibleClassChangeError.java,
2623 java/lang/IndexOutOfBoundsException.java,
2624 java/lang/InstantiationError.java,
2625 java/lang/InstantiationException.java, java/lang/Integer.java,
2626 java/lang/InternalError.java, java/lang/InterruptedException.java,
2627 java/lang/LinkageError.java, java/lang/Long.java,
2628 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
2629 java/lang/NoClassDefFoundError.java,
2630 java/lang/NoSuchFieldError.java,
2631 java/lang/NoSuchFieldException.java,
2632 java/lang/NoSuchMethodError.java,
2633 java/lang/NoSuchMethodException.java,
2634 java/lang/NullPointerException.java, java/lang/Number.java,
2635 java/lang/NumberFormatException.java, java/lang/Object.h,
2636 java/lang/Object.java, java/lang/OutOfMemoryError.java,
2637 java/lang/Process.java, java/lang/Runnable.java,
2638 java/lang/Runtime.java, java/lang/RuntimeException.java,
2639 java/lang/SecurityException.java, java/lang/SecurityManager.java,
2640 java/lang/Short.java, java/lang/StackOverflowError.java,
2641 java/lang/String.java, java/lang/StringBuffer.java,
2642 java/lang/StringIndexOutOfBoundsException.java,
2643 java/lang/System.java, java/lang/Thread.java,
2644 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
2645 java/lang/Throwable.java, java/lang/UnknownError.java,
2646 java/lang/UnsatisfiedLinkError.java,
2647 java/lang/UnsupportedOperationException.java,
2648 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
2649 java/lang/Void.java, java/lang/natCharacter.cc,
2650 java/lang/natClass.cc, java/lang/natDouble.cc,
2651 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
2652 java/lang/natMath.cc, java/lang/natObject.cc,
2653 java/lang/natRuntime.cc, java/lang/natString.cc,
2654 java/lang/natSystem.cc, java/lang/natThread.cc,
2655 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
2656 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
2657 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
2658 java/text/FieldPosition.java, java/text/Format.java,
2659 java/text/NumberFormat.java, java/text/ParseException.java,
2660 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
2661 java/util/BitSet.java, java/util/Calendar.java,
2662 java/util/ConcurrentModificationException.java,
2663 java/util/Date.java, java/util/Dictionary.java,
2664 java/util/EmptyStackException.java, java/util/Enumeration.java,
2665 java/util/GregorianCalendar.java, java/util/Hashtable.java,
2666 java/util/Locale.java, java/util/MissingResourceException.java,
2667 java/util/NoSuchElementException.java, java/util/Observable.java,
2668 java/util/Observer.java, java/util/Properties.java,
2669 java/util/Random.java, java/util/SimpleTimeZone.java,
2670 java/util/Stack.java, java/util/StringTokenizer.java,
2671 java/util/TimeZone.java, java/util/TooManyListenersException.java,
2672 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
2675 * exception.cc: Include eh-common.h instead of duplicating
2678 1998-11-23 Tom Tromey <tromey@cygnus.com>
2680 * configure.host: Don't add `-O2' to libjava_flags. Only add
2681 `-Os' to libjava_flags once.
2683 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
2685 * Makefile.am: add LIBJAVA_JAVAFLAGS.
2686 * Makefile.in: likewise
2687 * acconfig.h: add ECOS conditional for configure.h
2688 * config.h.in: likewise
2689 * configure: add test for --with-ecos
2690 * configure.in: likewise
2691 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
2692 rename call to avoid name clash.
2693 * java/lang/natSystem.cc: add eCos clock support.
2694 * java/util/natGregorianCalendar.cc: add eCos support.
2696 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
2698 * Makefile.am, Makefile.in, configure.host: tx39 build option
2701 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
2703 * java/io/BufferedReader.java: Added more comments for clarity.
2704 (mark): Used more mnemonic name for local var extraBuffSpace.
2706 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
2707 confusion with private method of same name in superclass.
2708 (skipRedundantLF): Set fields in special case to avoid infinite
2709 recursion. Check if markPos has been invalidated in special case.
2710 (readLine): Rewritten to use readLine method of superclass.
2711 (skip): Incorporated code from lineEnd.
2713 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
2715 * java/io/BufferedReader.java (readLine): New method.
2716 (lineEnd): new private method.
2717 (mark): Track special case for readLine of getting '\r' at the
2724 * java/io/InputStreamReader.java (read): Return number chars skipped
2725 rather than requested.
2727 * java/lang/StringBuffer.java (append): Update count and differentiate
2728 between field and local variable.
2730 * java/util/Date.java (parseTz): Evaluate in minutes rather than
2731 seconds. Deal with military style time.
2732 (parse): Consistently treat all timezones in minutes until final
2733 calculation. Flag as non-local timezone. Return value in milliseconds.
2734 (setTime): Adjust for year offset from 1900.
2735 (UTC): Adjust for year offset from 1900.
2737 1998-11-17 Tom Tromey <tromey@cygnus.com>
2739 * configure: Rebuilt.
2740 * configure.in: Switch on host, not target.
2742 * Makefile.in: Rebuilt.
2743 * Makefile.am (GCJ_no): New macro.
2744 (GCJ): Use @CANADIAN@.
2745 (GCJH_no): New macro
2746 (GCJH_canadian): New macro.
2747 (GCJH): Use @CANADIAN@.
2748 (ZIP_no): New macro.
2749 (ZIP_canadian): New macro.
2750 (ZIP): Use @CANADIAN@.
2751 * aclocal.m4, configure: Rebuilt.
2752 * configure.in (CANADIAN): Compute and subst.
2754 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
2756 * java/io/FileDescriptor.java (finalize): Only close file
2757 descriptor if valid.
2759 1998-11-17 Tom Tromey <tromey@cygnus.com>
2761 * prims.cc (_Jv_InitRuntime): Removed.
2763 1998-11-16 Tom Tromey <tromey@cygnus.com>
2765 * java/io/FileOutputStream.java (close): Only close file
2766 descriptor if valid.
2767 (finalize): New method.
2769 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
2770 (_Jv_NewPrimArray): Likewise.
2771 * boehm.cc (_Jv_RegisterFinalizer): Use
2772 GC_REGISTER_FINALIZER_NO_ORDER.
2773 (GC_GENERIC_MALLOC): New define.
2774 (_Jv_AllocObj): Use it.
2775 (_Jv_AllocArray): Likewise.
2776 (_Jv_AllocBytes): Likewise.
2777 (_Jv_MarkObj): Just return if vtbl not set.
2778 (_Jv_MarkArray): Likewise.
2779 (MAYBE_MARK): New macro; use everywhere.
2780 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
2782 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
2784 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
2785 to a jlong before calculation to prevent overflow.
2787 1998-11-16 Tom Tromey <tromey@cygnus.com>
2789 * Makefile.in: Rebuilt.
2790 * Makefile.am (nat_headers): Fixed typo.
2792 1998-11-15 Tom Tromey <tromey@cygnus.com>
2794 * java/lang/Class.h (Class::getName): Removed definition.
2795 * Makefile.in: Rebuilt.
2796 * Makefile.am (nat_headers): Added InstantiationException.h,
2797 NoSuchMethodException.h.
2798 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
2799 (init_name): New global.
2800 (hackRunInitializers): Use clinit_name.
2801 Include InstantiationException.h, NoSuchMethodException.h.
2802 (newInstance): Do some error checking (but not all). Call
2804 (forName): Throw exception if class not found.
2805 (getName): New method.
2806 (forName): Transform class name from external format to internal
2807 format before lookup.
2809 1998-11-15 Anthony Green <green@cygnus.com>
2811 * java/lang/Class.h (Class::forName): Method is static.
2813 * java/lang/natClass.cc (newInstance): Add simple implementation.
2816 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
2818 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
2819 int), for compatibility with jc1.
2821 1998-11-14 Tom Tromey <tromey@cygnus.com>
2823 * include/config.h.in: Rebuilt.
2824 * acconfig.h (LINUX_THREADS): New define.
2825 * configure: Rebuilt.
2826 * configure.in: Define LINUX_THREADS if using POSIX threads on
2827 Linux. Look for pthread_mutexattr_setkind_np function.
2828 * posix-threads.cc (throw_cleanup): New function.
2829 (really_start): Push cleanup function.
2830 (_Jv_ThreadCancel): New function.
2831 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
2832 (_Jv_ThreadInitData): Set `exception' field in new structure.
2833 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
2835 (_Jv_ThreadWait): New function.
2836 (_Jv_InitThreads): Initialize daemon globals.
2837 (FLAG_DAEMON): New macro.
2838 (really_start): Notify daemon_cond when non-daemon thread exits.
2839 Include <java/lang/System.h>.
2840 (struct starter): `object' field now a thread.
2841 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
2842 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
2843 (_Jv_ThreadWait): Removed definition.
2844 (_Jv_Thread_t): Added `exception' field.
2845 (_Jv_ThreadCancel): Removed definition.
2847 1998-11-13 Tom Tromey <tromey@cygnus.com>
2849 * Makefile.in: Rebuilt.
2850 * Makefile.am (libjava.zip): Compute javac before changing
2853 * Makefile.in: Rebuilt.
2854 * Makefile.am (libjava.zip): Include directory entries.
2856 * Makefile.in: Rebuilt.
2857 * Makefile.am (expanded): New macro.
2860 1998-11-12 Tom Tromey <tromey@cygnus.com>
2862 * prims.cc (clone): New function.
2863 * include/java-array.h (__JArray::clone): Removed definition.
2865 * java/lang/natObject.cc (clone): Don't assert that class is not
2866 an array; array's `clone' method just calls this one.
2868 * Makefile.in: Rebuilt.
2869 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
2870 Now creates zip file. Changed all users.
2872 (data_DATA): New macro.
2874 1998-11-11 Tom Tromey <tromey@cygnus.com>
2876 * configure: Rebuilt.
2877 * configure.in: Recognize --enable-java-gc, not --enable-gc.
2879 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
2881 * java/io/InputStream.java (reset): Add msg to thrown exception.
2883 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
2885 * java/io/LineNumberInputStream.java: Rewritten.
2887 * java/io/StringBufferInputStream.java: Removed extraneous import.
2889 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
2891 * java/io/StringBufferInputStream.java: Rewritten.
2893 * java/util/Date.java (parseMonth): Optimize.
2894 (parseDayOfWeek): Created.
2895 (parse): Optimize to use parseDayOfWeek.
2897 1998-11-11 Tom Tromey <tromey@cygnus.com>
2899 * java/lang/StringBuffer.java (append): Handle case where STR is
2902 * include/javaprims.h: Regenerated class declarations.
2904 * configure: Rebuilt.
2905 * configure.in: Added --enable-gcj-classes,
2906 --enable-single-compilation, --enable-source-compilation flags.
2907 * Makefile.in: Rebuilt.
2908 * Makefile.am (java_io_files): New macro.
2909 (java_lang_files): Likewise.
2910 (java_text_files): Likewise.
2911 (java_util_files): Likewise.
2912 (java_files): Use new macros.
2913 (java-io.o): New target.
2914 (java-lang.o): Likewise.
2915 (java-text.o): Likewise.
2916 (java-util.o): Likewise.
2917 (src_io_files): New macro.
2918 (src_lang_files): Likewise.
2919 (src_text_files): Likewise.
2920 (src_util_files): Likewise.
2921 (class_io_files): New macro.
2922 (class_lang_files): Likewise.
2923 (class_text_files): Likewise.
2924 (class_util_files): Likewise.
2925 (class_files): Use new macros.
2926 (javao_files): Define conditionally.
2927 (.java.o): New target.
2928 ($(javao_files)): New target.
2930 (GCJH): Added $(EXEEXT).
2931 (CLASSPATH_ENV): Removed.
2932 (GCJCOMPILE): New macro.
2934 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
2936 * java/util/Date.java (parse): Written from scratch.
2938 1998-11-11 Tom Tromey <tromey@cygnus.com>
2940 * java/lang/Throwable.java (toString): Correct sense of test for
2941 determining when to include detail message in result.
2943 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
2946 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
2948 * java/lang/Class.h: Use _Jv_RegisterClasses, not
2950 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
2951 (_Jv_RegisterClass): Use it.
2952 * include/jvm.h (_Jv_RegisterClasses): Declare.
2953 * java/lang/natObject.cc (init): Removed.
2954 (sync_init): Never call _Jv_InitializeSyncMutex.
2955 (_Jv_InitializeSyncMutex): Don't set `init'.
2956 * prims.cc (JvRunMain): Don't run init functions.
2958 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
2960 * java/lang/natClass.cc (initializeClass): Set state before
2961 resolving constants.
2963 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
2964 (STATE_RESOLVED): New macro.
2965 (initializeClass): Call resolveConstants.
2966 (hackRunInitializers): Don't call resolveConstants.
2967 (_Jv_FindArrayClass): Move short-circuit return for primitive
2968 element types earlier in function.
2970 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
2972 * prims.cc (no_memory): New global.
2973 (_Jv_makeUtf8Const): Throw no_memory.
2974 (_Jv_AllocObject): Likewise.
2975 (_Jv_NewObjectArray): Likewise.
2976 (_Jv_NewPrimArray): Likewise.
2977 (JvRunMain): Initialize no_memory.
2979 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
2981 * java/io/FileInputStream.java: Corrected date comment.
2982 * java/io/SequenceInputStream.java: Rewritten.
2984 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
2986 * java/lang/FirstThread.java (die): New method.
2987 * java/lang/natFirstThread.cc (die): Removed.
2989 (run): Use `DIE', not `die'.
2991 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
2993 * java/io/CharArrayReader.java (read): Move check into synchronized
2994 block to prevent a close while in progress.
2997 * java/io/PushbackReader.java (read): Ditto.
3000 * java/io/StringReader.java (mark): Ditto.
3005 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
3007 * java/io/PipedInputStream.java: Updated status.
3008 (connect): Added code to prevent infinite recursion and to
3009 differentiate exception causes.
3010 (read): Added code to differentiate exception causes.
3011 (receive): Made exception pass string with the cause.
3013 * java/io/PipedOutputStream.java: Updated status.
3014 (connect): Added code to call connect at the other end of the pipe.
3016 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
3018 * java/io/PipedInputStream.java (connect): Throw exception if
3019 already connected to the same output stream.
3020 (read): Do bounds checking first.
3022 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
3024 * java/io/PipedInputStream.java: Added private boolean outClosed.
3025 (available): Removed check if output stream is open.
3026 (close): Mark the buffer as empty so available returns 0.
3027 (read): Check if the output stream was closed and then return EOF
3028 when the buffer is empty.
3029 (receive): Mark the output stream as closed when passed a -1.
3031 * java/io/PipedOutputStream.java (close): Notify the input stream
3032 that there's no more data coming.
3033 (connect): Added a FIXME comment to note more coordination needed
3034 with PipedInputStream.
3035 (flush): Added a FIXME comment to mark what this method might do
3038 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
3040 * java/io/PipedInputStream.java: Rewritten.
3042 1998-10-30 Tom Tromey <tromey@cygnus.com>
3044 * java/lang/Throwable.java: Rewrote from scratch.
3046 * java/lang/Class.h (Class): Don't mention newMultiArray.
3047 * prims.cc (newMultiArray): Removed.
3048 (_Jv_NewMultiArray): Removed.
3049 (newArray): Removed.
3050 (new_multi_array): New function.
3051 (_Jv_NewMultiArray): Rewrote from scratch.
3053 * include/javaprims.h: Regenerated class declarations.
3054 * classes.pl (scan): Don't declare PrimClass.
3055 * include/cni.h (JvPrimClass): Use new names for classes.
3056 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
3057 added _Jv_PrimClass.
3058 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
3059 (_Jv_initPrimClass): Removed.
3060 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
3061 (_Jv_AllocObject): Added comment.
3062 (_Jv_NewObjectArray): Likewise.
3063 (_Jv_NewPrimArray): Likewise.
3065 1998-10-29 Tom Tromey <tromey@cygnus.com>
3067 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
3068 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
3070 * java/lang/Class.h (Class): Added `dtable_method_count' field.
3072 * java/lang/natObject.cc (init): New global.
3073 (sync_init): Call _Jv_InitializeSyncMutex if required.
3075 * Makefile.in: Rebuilt.
3076 * Makefile.am (nat_headers): Added ClassLoader.h.
3077 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
3078 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
3079 internalAddClass, lookupArray no longer friends.
3080 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
3081 _Jv_FindArrayClass now friends.
3082 * java/lang/natClass.cc (HASH_LEN): New macro.
3083 (HASH_UTF): Likewise.
3084 (loaded_classes): New global.
3085 (_Jv_FindClass): New function.
3086 (ClassClass): New define.
3087 (_Jv_FindClassInCache): New function.
3088 (_Jv_RegisterClass): Likewise.
3089 (_Jv_NewClass): Likewise.
3091 (ObjectClass): New define.
3092 (CloneableClass): New define.
3093 * prims.cc (_Jv_FindClass): Removed.
3094 (simpleLookupClass): Removed.
3095 (insertClass): Removed.
3096 (CLASSHASHSZ): Removed.
3097 (classPool): Removed.
3098 (_Jv_RegisterClass): Removed.
3099 (internalAddClass): Removed.
3100 (ClassClass): Removed.
3101 (RuntimeClass): Removed.
3102 (lookupArray): Removed.
3103 (CloneableClass): Removed.
3104 (CLASSMAXSIG): Removed.
3105 Rearranged file to group related functions together.
3106 (_Jv_IsInstanceOf): Moved to natClass.cc.
3107 (abort_final): Removed.
3108 Removed some unused includes.
3109 (classFromSig): Removed.
3110 (_Jv_FindClassFromSignature): New function.
3111 (_Jv_initPrimClass): Renamed.
3112 (getClass): Removed.
3114 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
3116 * java/io/FileDescriptor.java (finalize): Throws IOException
3117 instead of Throwable.
3119 * java/io/FileInputStream.java: Rewritten.
3121 * java/io/StreamTokenizer.java (nextToken): Unread newline character
3122 at the end of a comment.
3124 1998-10-29 Tom Tromey <tromey@cygnus.com>
3126 * include/javaprims.h: Regenerated class declarations.
3127 * classes.pl (scan): Don't special-case ClassLoader.
3129 * prims.cc (processClass): Removed.
3130 (_Jv_InitClass): Removed.
3131 Removed all CSTATE_ macros.
3132 (resolveConstants): Removed.
3134 (_Jv_NewMultiArray): Cleaned up.
3135 * Makefile.in: Rebuilt.
3136 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
3137 * java/lang/Class.h (Class): Declare new methods. processClass no
3139 * java/lang/Class.java (hackTrampoline): New method.
3140 (initializeClass): Declare.
3141 (hackRunInitializers): Declare.
3142 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
3143 (initializeClass): New method.
3144 (hackRunInitializers): New method.
3145 (init_name, void_signature): Moved from prims.cc.
3146 (_Jv_InitClass): New function.
3147 (isAssignableFrom): Don't call processClass.
3148 (STATE_NOTHING): New macro.
3149 (resolveConstants): New function.
3151 (ErrorClass): New define.
3153 * java/lang/Class.java (getClassLoader): Declare.
3154 * java/lang/ClassLoader.java: Rewrote from scratch.
3156 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
3157 AbstractMethodError.h, IllegalAccessError.h,
3158 NoClassDefFoundError.h.
3159 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
3160 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
3161 longer static. Changed return type.
3162 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
3163 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
3164 * prims.cc (findMethodLocal): Removed.
3165 (processClass): Use _Jv_GetMethodLocal.
3167 1998-10-28 Tom Tromey <tromey@cygnus.com>
3169 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
3170 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
3172 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
3173 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
3175 * include/jni.h: Added copyright header.
3176 * include/javaprims.h: Added copyright header.
3177 * include/java-field.h: Added copyright header.
3178 * include/java-array.h: Added copyright header.
3179 * include/cni.h: Added copyright header.
3181 * include/javaprims.h: Regenerated class declarations using
3182 classes.pl; now they are complete.
3183 * classes.pl: New file.
3185 * java/lang/natMath.cc: Include <config.h>.
3186 * java/lang/reflect/natField.cc: Include <config.h>.
3187 * java/util/NativeUtil.java: Removed.
3188 * Makefile.in: Rebuilt.
3189 * Makefile.am (nat_headers): Added Math.h.
3190 * java/lang/Math.h: Removed.
3191 * java/util/natGregorianCalendar.cc: Added copyright header.
3193 * java/lang/natFloat.cc: Added copyright header.
3194 * java/lang/Byte.java: Added copyright header.
3195 * java/lang/Void.java: Added copyright header.
3196 * java/lang/Short.java: Added copyright header.
3198 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
3200 * include/javaprims.h (java::io): Added bunch of missing classes.
3202 * java/io/DataInputStream.java (readLine): Added a special case
3203 for handling BufferedInputStream data to reduce the likelihood
3204 of a pushback error.
3205 (skipBytes): Added code to handle negative number of skip bytes.
3207 * java/io/StreamTokenizer.java: Rewritten.
3209 1998-10-28 Tom Tromey <tromey@cygnus.com>
3211 * java/util/natGregorianCalendar.cc (computeFields): Call
3212 getRawOffset as a method.
3214 * include/javaprims.h (java::io): Added FilterOutputStream.
3215 * Makefile.in: Rebuilt.
3216 * Makefile.am (nat_headers): Added PrintStream.h,
3217 FilterOutputStream.h.
3218 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
3220 (die): New function.
3221 (run): Die if `main' not found, is not public, or is not static.
3223 * boehm.cc (_Jv_MarkObj): Use new field names.
3224 * include/java-field.h (JvGetFirstInstanceField): Use new field
3226 (JvNumInstanceFields): Likewise.
3227 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
3228 (getInterfaces): Likewise.
3229 * prims.cc (CLASS_CONSTANTS): Removed.
3230 (CLASS_CONST_SIZE): Likewise.
3231 (CLASS_CONST_TAG): Likewise.
3232 (CLASS_CONST_DATA): Likewise.
3233 (CLASS_CONST_UTF8): Likewise.
3234 (WORD2UTF): Likewise.
3235 (CLASS_CLASS): Likewise.
3236 (CLASS_PRIM_SIG): Likewise.
3237 (CLASS_ARRAY_CACHE): Likewise.
3238 (HASH_CHARS): Likewise.
3239 (hashClassName): Likewise.
3240 Many changes to use new field names.
3241 * java/lang/Class.h (Class): Renamed fields to track compiler.
3243 1998-10-27 Tom Tromey <tromey@cygnus.com>
3245 * java/lang/natClass.cc: Use #pragma implementation.
3246 (getComponentType): Moved into header.
3247 (getModifiers): Likewise.
3248 (getName): Likewise.
3249 (getSuperclass): Likewise.
3250 (isArray): Likewise.
3251 (isPrimitive): Likewise.
3252 * include/jvm.h (_Jv_FindClass): Declare.
3253 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
3254 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
3255 * include/javaprims.h: Use _Jv_Method, not JvMethod.
3256 * java/lang/Class.h: Rewrote from scratch.
3257 * prims.cc: Many changes to work with new Class.h.
3258 * include/java-field.h (CLASS_FIELDS): Removed.
3259 (CLASS_SFIELDS): Likewise.
3260 (CLASS_IFIELDS): Likewise.
3261 (CLASS_NFIELDS): Likewise.
3262 (CLASS_NIFIELDS): Likewise.
3263 (CLASS_NSFIELDS): Likewise.
3264 (CLASS_FSIZE): Likewise.
3265 (JvGetFirstInstanceField): Rewrote.
3266 (JvNumInstanceFields): Likewise.
3268 * java/lang/Object.h: Added copyright comment.
3270 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
3272 * java/text: New package directory.
3273 * java/text/FieldPosition.java: New class.
3274 * java/text/ParsePosition.java: New class.
3275 * java/text/ParseException.java: New Exception class.
3276 * java/text/Format.java: New class.
3277 * java/text/NumberFormat.java: New (empty placeholder) class.
3278 * java/text/DateFormatSymbols.java: New class (no Locales support).
3279 * java/text/DateFormat.java: New Format class (incomplete).
3280 * java/text/SimpleDateFormat.java: New DateFormat class.
3282 * include/javaprims.h (java::test): Added new package and classes.
3283 * java/util/Calendar.java (clone): New method.
3284 * java/util/Date.java (toString): Added non-native implementation.
3285 (parse): Made public instead of synchronized.
3286 * java/util/natDate.cc (toString): Removed.
3287 * java/util/natGregorianCalendar.cc (computeFields):
3288 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
3290 1998-10-27 Tom Tromey <tromey@cygnus.com>
3292 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
3294 * prims.cc (lookupArray): Added explanatory comment.
3295 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
3296 class. Mark the class of each object.
3297 (_Jv_MarkArray): Mark the object's class.
3299 * configure: Rebuilt.
3300 * configure.in: Create java-gc.h.
3301 * include/boehm-gc.h: New file.
3302 * include/no-gc.h: New file.
3303 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
3305 * java/lang/Object.h: Include java-gc.h.
3306 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
3307 friends, if defined.
3308 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
3310 (_Jv_MarkArray): Renamed from mark_array; changed signature.
3312 1998-10-26 Tom Tromey <tromey@cygnus.com>
3314 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
3315 paragraph separators, not numbers.
3317 * java/io/Writer.java (write): Removed write(char) to avoid
3319 * java/util/Properties.java: Rewrote from scratch.
3320 * include/javaprims.h (java::io): Added PrintWriter,
3321 BufferedWriter, PushbackReader.
3323 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
3325 * java/lang/System.java: exit() is a static method.
3327 1998-10-26 Tom Tromey <tromey@cygnus.com>
3329 * java/lang/natString.cc (_Jv_NewStringUTF): Use
3331 (_Jv_NewStringUtf8Const): Likewise.
3332 * include/jvm.h (_Jv_strLengthUtf8): Declare.
3333 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
3335 * java/lang/Object.h (Object): Add mark_array as friend function.
3336 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
3337 _Jv_AllocBytes, to ensure that header is marked.
3338 * boehm.cc (mark_obj): Push sync_info field for all objects, not
3340 (mark_array): Push sync_info field for array.
3342 1998-10-24 Tom Tromey <tromey@cygnus.com>
3344 * java/lang/String.java (String): Updated for StringBuffer
3346 * java/util/BitSet.java: Renamed field (data->bits) to conform to
3348 * java/lang/StringBuffer.java: Renamed fields to conform to
3349 serialization spec: buffer->value, next->count, copy->shared.
3351 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
3353 * java/util/TimeZone.java: New class.
3354 * java/util/SimpleTimeZone.java: New class.
3355 * java/util/Locale.java: New file.
3356 * java/util/Calendar.java: Make almost complete.
3357 * java/util/GregorianCalendar.java
3358 * java/util/natGregorianCalendar.cc: New file.
3359 * java/util/Date.java: Re-written from scratch.
3360 * java/util/natDate.cc (setTime): Removed - no longer native.
3361 * include/javaprims.h (java::util): Add new classes.
3362 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
3363 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
3365 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
3367 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
3368 returning it as a jint.
3370 1998-10-23 Tom Tromey <tromey@cygnus.com>
3372 * prims.cc (arg_vec, main_group, main_thread): New globals.
3373 (JvRunMain): Use them.
3375 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
3377 * java/io/DataInputStream.java: Rewritten.
3379 * java/io/DataOutputStream.java (writeUTF): OR secondary and
3380 tertiary bytes with 0x80 per spec.
3382 1998-10-23 Tom Tromey <tromey@cygnus.com>
3384 * java/lang/String.java (init): Changed name of `copy' argument.
3385 * java/lang/natString.cc (init): Inverted sense of `copy'
3388 * java/lang/Object.h (Object): Declare mark_obj as a friend.
3389 * java/lang/Class.h (Class): Declare mark_obj as a friend.
3390 * boehm.cc (ObjectClass): New define.
3391 (ClassClass): Likewise.
3392 (mark_obj): Special-case Object and Class.
3394 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
3396 * java/util/BitSet.java: Rewrote from scratch.
3398 * prims.cc (lookupArray): Removed useless cast.
3400 * java/lang/natObject.cc: Use `#pragma implementation'.
3402 * java/lang/String.java (init): Added `copy' argument.
3403 (String): Look in StringBuffer to find char array.
3404 * java/lang/natString.cc (init): Added `copy' argument.
3405 * java/lang/StringBuffer.java: Rewrote from scratch.
3407 * java/lang/Compiler.java: Rewrote from scratch.
3408 * java/lang/Throwable.java: Don't use NativeLang.
3409 * include/javaprims.h (java::lang): Don't mention NativeLang.
3410 * java/lang/Process.java: Rewrote from scratch.
3411 * java/lang/SecurityManager.java (classLoaderDepth): Commented
3413 (currentClassLoader): Likewise.
3414 (currentLoadedClass): Likewise.
3415 * java/lang/natClass.cc (getClassLoader): Commented out.
3416 * java/lang/Class.java (getClassLoader): Commented out.
3417 * java/lang/Compiler.java: Removed.
3418 * java/lang/NativeLang.java: Removed.
3420 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
3421 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
3422 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
3423 (_Jv_hashUtf8String): Now static.
3424 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
3425 name of return type.
3427 * java/lang/Class.h (Class): Declare checkMemberAccess.
3428 * Makefile.in: Rebuilt.
3429 * Makefile.am (nat_headers): Added Member.h.
3430 * java/lang/natClass.cc: Include Member.h.
3431 (getDeclaredClasses): Call checkMemberAccess.
3432 * java/lang/Class.java (checkMemberAccess): Call
3433 SecurityManager.checkMemberAccess.
3435 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
3437 * java/lang/SecurityManager.java: Rewritten.
3439 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
3441 * java/applet/Applet.java, java/applet/AppletContext.java,
3442 java/applet/AppletStub.java, java/applet/AudioClip.java,
3443 java/awt/AWTError.java, java/awt/AWTException.java,
3444 java/awt/BorderLayout.java, java/awt/Button.java,
3445 java/awt/Canvas.java, java/awt/CardLayout.java,
3446 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
3447 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
3448 java/awt/Color.java, java/awt/Component.java,
3449 java/awt/Container.java, java/awt/Dialog.java,
3450 java/awt/Dimension.java, java/awt/Event.java,
3451 java/awt/FileDialog.java, java/awt/FlowLayout.java,
3452 java/awt/Font.java, java/awt/FontMetrics.java,
3453 java/awt/Frame.java, java/awt/Graphics.java,
3454 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
3455 java/awt/GridLayout.java, java/awt/Image.java,
3456 java/awt/Insets.java, java/awt/Label.java,
3457 java/awt/LayoutManager.java, java/awt/List.java,
3458 java/awt/MediaTracker.java, java/awt/Menu.java,
3459 java/awt/MenuBar.java, java/awt/MenuComponent.java,
3460 java/awt/MenuContainer.java, java/awt/MenuItem.java,
3461 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
3462 java/awt/Rectangle.java, java/awt/Scrollbar.java,
3463 java/awt/TextArea.java, java/awt/TextComponent.java,
3464 java/awt/TextField.java, java/awt/Toolkit.java,
3465 java/awt/Window.java, java/awt/image/ColorModel.java,
3466 java/awt/image/CropImageFilter.java,
3467 java/awt/image/DirectColorModel.java,
3468 java/awt/image/FilteredImageSource.java,
3469 java/awt/image/ImageConsumer.java,
3470 java/awt/image/ImageFilter.java,
3471 java/awt/image/ImageObserver.java,
3472 java/awt/image/ImageProducer.java,
3473 java/awt/image/IndexColorModel.java,
3474 java/awt/image/MemoryImageSource.java,
3475 java/awt/image/PixelGrabber.java,
3476 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
3477 java/awt/peer/CanvasPeer.java,
3478 java/awt/peer/CheckboxMenuItemPeer.java,
3479 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
3480 java/awt/peer/ComponentPeer.java,
3481 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
3482 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
3483 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
3484 java/awt/peer/MenuBarPeer.java,
3485 java/awt/peer/MenuComponentPeer.java,
3486 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
3487 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
3488 java/awt/peer/TextAreaPeer.java,
3489 java/awt/peer/TextComponentPeer.java,
3490 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
3491 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
3492 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
3493 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
3494 java/net/MalformedURLException.java, java/net/NativeNet.java,
3495 java/net/ProtocolException.java, java/net/ServerSocket.java,
3496 java/net/Socket.java, java/net/SocketException.java,
3497 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
3498 java/net/URL.java, java/net/URLConnection.java,
3499 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
3500 java/net/URLStreamHandlerFactory.java,
3501 java/net/UnknownHostException.java,
3502 java/net/UnknownServiceException.java: Removed.
3504 1998-10-22 Tom Tromey <tromey@cygnus.com>
3506 * prims.cc (_Jv_AllocObject): Register finalizer if class'
3507 finalizer is not Object.finalize.
3508 (internalAddClass): Don't set `final' member of class.
3509 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
3510 other places that know about finalize() location.
3511 * java/lang/Class.h (Class): Removed `final' field.
3513 * aclocal.m4, configure: Rebuilt.
3514 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
3515 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
3517 * configure.in (AC_OUTPUT): Pass CXX to config.status.
3518 * Makefile.in: Rebuilt.
3519 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
3521 1998-10-21 Tom Tromey <tromey@cygnus.com>
3523 * java/lang/Object.java (finalize): Move to be first method in
3526 * configure: Rebuilt.
3527 * configure.in (GCINCS): Include contents of boehm-cflags file.
3529 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
3531 * java/lang/ArrayIndexOutOfBoundsException.java
3532 (ArrayIndexOutOfBoundsException): Fixed string literal.
3533 * java/lang/StringIndexOutOfBoundsException.java
3534 (StringIndexOutOfBoundsException): Fixed string literal.
3536 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3538 * natFileDescriptorEcos.cc added.
3539 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
3541 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3543 * acconfig.h: test for __int32_t and __uint32_t added.
3544 * include/config.h.in: test for __int32_t and __uint32_t added.
3545 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
3546 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
3547 * configure.in: test for __int32_t and __uint32_t added.
3548 * configure: test for __int32_t and __uint32_t added.
3550 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
3552 * configure.in: Test for --enable ecos and link
3553 natFileDescriptor.cc to natFileDescriptorEcos.cc or
3554 natFileDescriptorPosix.cc
3556 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
3558 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
3560 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
3563 * java/io/CharArrayReader.java (close): Synchronize on lock
3564 object per Reader contract.
3565 (read): Synchronize on lock obj. Verify that reader wasn't closed.
3566 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
3567 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
3568 Ensure that arg passed in isn't negative.
3570 * java/io/FilterReader.java (FilterReader): Use the lock obj when
3571 constructing the superclass.
3573 * java/io/PushbackReader.java (close): Synchronize on lock
3574 object per Reader contract.
3575 (read): Synchronize on lock obj. Verify that reader wasn't closed.
3576 (ready): Synchronize on lock obj. Throw IOException if reader
3578 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
3579 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
3580 Ensure that arg passed in isn't negative.
3581 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
3583 * java/io/StringReader.java: Created.
3585 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
3587 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
3589 (read): Removed synchronized modifier to match JCL.
3590 (reset): Removed synchronized modifier to match JCL.
3591 (skip): Removed synchronized modifier to match JCL.
3593 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
3595 * java/io/PushbackReader.java (PushbackReader): Made
3596 constructors public.
3598 1998-10-17 Tom Tromey <tromey@cygnus.com>
3600 * java/io/PushbackInputStream.java (PushbackInputStream): Made
3601 constructors public.
3603 1998-10-16 Anthony Green <green@cygnus.com>
3605 * aclocal.m4, configure: Rebuilt.
3606 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
3608 * configure.host: Rewrote.
3609 * Makefile.in: Rebuilt.
3610 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
3611 (AM_CFLAGS): New macro.
3612 ($(c_files)): Use COMPILE macro.
3613 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
3614 automake problem(s).
3616 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
3618 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
3620 * java/io/CharArrayReader.java: Created.
3622 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
3624 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
3625 size check to allow 0 per JCL.
3627 * java/io/PushbackReader.java: Created.
3629 1998-10-16 Tom Tromey <tromey@cygnus.com>
3631 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
3632 <sys/time.h> includes.
3633 * java/io/natFile.cc: Conditionalize <unistd.h> include.
3634 * include/no-threads.h: Conditionalize <unistd.h> include on
3637 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
3639 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
3642 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
3644 * java/io/FilterReader.java: Created.
3646 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
3648 * java/io/PushbackInputStream.java: Rewritten.
3650 * java/io/BufferedInputStream.java (BufferedInputStream): Check
3651 that size passed to constructor is legal.
3652 (read): Check that args passed in are legal.
3653 (skip): Rewritten to get rid of the temporary buffer.
3654 (refill): Added marklimit check to grow the buffer.
3656 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
3658 (bytesAvail): Removed.
3659 (read): Changed bytesAvail to Math.min.
3660 (skip): Changed bytesAvail to Math.min.
3662 * java/io/InputStream.java (read): Got rid of extraneous exceptions
3663 from the throws clause.
3664 (skip): Rewritten to use a temporary buffer.
3666 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
3668 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
3671 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
3673 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
3674 to write the double one word at a time.
3676 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
3678 * java/io/BufferedInputStream.java: Rewritten.
3680 1998-10-12 Tom Tromey <tromey@cygnus.com>
3682 * jni.cc: Include config.h and stddef.h.
3684 * java/lang/Class.h (_dispatchTable): Removed again.
3685 Removed all ACC_* defines again.
3687 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
3689 * Makefile.am (nat_files): Add netField.o.
3690 (libjava_a_SOURCES): Add jni.cc.
3691 (java/lang/reflect/Field.h): New rule.
3692 * Makefile.in: Re-generated.
3693 * include/javaprims.h: Add some extra class and typedefs.
3694 * include/jni.h: New file.
3697 * include/java-field.h: New file.
3698 * include/jvm.h: #include <java-field.h>.
3699 * boehm.cc: #include <java-field.h>.
3700 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
3701 * java/lang/reflect/Member.java: New class.
3702 * java/lang/reflect/Field.java: New class. (Very incomplete.)
3703 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
3705 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
3707 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
3708 testsuite/Makefile.in: Rebuilt.
3709 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
3710 * configure.host: Created.
3712 1998-10-10 Tom Tromey <tromey@cygnus.com>
3714 * java/lang/natObject.cc (sync_init): Always allocate a new
3717 1998-10-09 Tom Tromey <tromey@cygnus.com>
3719 * java/io/ByteArrayInputStream.java (mark): Renamed from
3722 * java/io/FileOutputStream.java (finalize): Removed.
3723 * java/io/FileDescriptor.java (finalize): New method.
3725 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
3727 * ByteArrayInputStream.java: Corrected status comment.
3729 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
3731 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
3733 1998-10-08 Tom Tromey <tromey@cygnus.com>
3735 * prims.cc (lookupArray): Use static array to initialize list of
3738 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
3740 * prims.cc (lookupArray): Initialize the msize for new
3743 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
3745 * configure: Rebuilt.
3746 * configure.in: Check for fsync and sleep.
3747 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
3749 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
3750 HAVE_SLEEP. Include config.h.
3752 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
3753 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
3756 1998-10-08 Tom Tromey <tromey@cygnus.com>
3758 * java/io/natFile.cc: Don't include SecurityManager.h.
3759 (performList): Renamed.
3760 (performMkdir): Likewise.
3761 (performRenameTo): Likewise.
3762 (performDelete): Likewise.
3764 * java/io/File.java (performDelete): Renamed from natDelete.
3765 (list): Now written in Java.
3766 (performList): New method.
3767 (performMkdir): New method.
3768 (mkdir): Now written in Java.
3769 (performRenameTo): New method.
3770 (renameTo): Now written in Java.
3772 1998-10-06 Tom Tromey <tromey@cygnus.com>
3774 * Makefile.in: Rebuilt.
3775 * Makefile.am (ETAGS_ARGS): New macro.
3776 (TAGS_DEPENDENCIES): Likewise.
3778 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
3780 * Makefile.in: Rebuilt.
3781 * Makefile.am: Use -classpath option with javac.
3783 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
3785 * java/io/FileOutputStream.java (finalize): Call
3788 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
3790 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
3792 * java/lang/mprec.c: Ditto.
3794 * java/lang/mprec.h: Include math.h for HUGE_VAL when
3797 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
3799 * java/io/InputStream.java (skip): Make local var i a long.
3801 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
3803 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
3804 * prims.cc (lookupArray): Use memcpy, not memmove.
3805 * include/config.h.in: Rebuilt.
3806 * acconfig.h (HAVE_MEMCPY): Added.
3807 * configure: Rebuilt.
3808 * configure.in: Check for memcpy again.
3810 * java/io/RandomAccessFile.java (RandomAccessFile): Use
3811 String.compareTo, not ==.
3813 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
3814 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
3815 * java/lang/natObject.cc (struct _dispatchTable): Removed.
3816 * include/jvm.h (struct _Jv_DispatchTable): New structure.
3817 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
3818 into new array's dtable.
3819 (_Jv_AllocObject): Use _Jv_DispatchTable.
3820 (_Jv_NewPrimArray): Likewise.
3821 (_Jv_NewObjectArray): Likewise.
3823 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
3825 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
3826 offending index value.
3827 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
3829 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
3830 * java/lang/Throwable.java: (Throwable): fixed argument to this().
3832 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
3834 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
3836 * java/io/OutputStream.java (write): Use off and len parameters to
3837 output partial byte array.
3839 * java/io/BufferedReader.java, java/io/FileReader.java,
3840 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
3841 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
3842 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
3843 java/io/Writer.java: Added COPYRIGHT-TBD comment.
3845 * include/javaprims.h (java::lang): Added
3846 ExceptionInInitializerError, IllegalStateException,
3847 NoSuchFieldException, and UnsupportedOperationException.
3849 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
3851 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
3854 * include/java-array.h (__JArray): Added clone method.
3855 * prims.cc (CloneableClass): New define.
3856 (lookupArray): Initialize array class to indicate that it
3857 implements Cloneable.
3859 * java/lang/Class.h: Removed all ACC_* defines.
3860 * prims.cc: Include Modifier.h.
3861 (_Jv_LookupInterfaceMethod): Use methods in
3862 java.lang.reflect.Modifier, not ACC_ defines.
3864 * java/lang/Class.h (Class): Declare getClasses,
3865 getDeclaredClasses, getDeclaringClass, getModifiers,
3866 * java/lang/Class.java: Rewrote from scratch.
3868 * include/javaprims.h (java::lang): Added reflect and
3870 * Makefile.in: Rebuilt.
3871 * Makefile.am (nat_headers): Added Modifier.h.
3873 * prims.cc (_Jv_IsInstanceOf): Return false if class is
3876 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
3878 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
3879 instead of test and abort.
3881 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
3882 remove compiler warning.
3884 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
3886 * java/lang/natDouble.cc: zero terminate string.
3887 * strtod.c: Set errno if no digits are found in fraction.
3889 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
3891 * java/lang/reflect/Modifier.java: New file.
3893 * java/lang/VirtualMachineError.java: Rewrote from scratch.
3894 * java/lang/VerifyError.java: Rewrote from scratch.
3895 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
3896 * java/lang/UnknownError.java: Rewrote from scratch.
3897 * java/lang/StackOverflowError.java: Rewrote from scratch.
3898 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
3899 * java/lang/InternalError.java: Rewrote from scratch.
3900 * java/lang/IllegalAccessError.java: Rewrote from scratch.
3901 * java/lang/ExceptionInInitializerError.java: New file.
3902 * java/lang/Error.java: Rewrote from scratch.
3903 * java/lang/ClassFormatError.java: Rewrote from scratch.
3904 * java/lang/ClassCircularityError.java: Rewrote from scratch.
3905 * java/lang/AbstractMethodError.java: Rewrote from scratch.
3906 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
3907 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
3908 * java/lang/LinkageError.java: Rewrote from scratch.
3909 * java/lang/IncompatibleClassChangeError.java: Rewrote from
3911 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
3913 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
3914 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
3916 * include/cni.h (JvAllocObject): Moved from prims.cc.
3918 * prims.cc (JvAllocObject): Moved to cni.h.
3919 (_Jv_AllocObject): Use _Jv_FinalizeObject.
3920 (finalize_name): Removed.
3922 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
3924 * java/lang/Class.h (Class): Added size() method.
3925 * prims.cc (_Jv_MonitorEnter): Removed.
3926 (_Jv_MonitorExit): Removed.
3927 * java/lang/Object.h (JvSyncInfo): Removed.
3928 * Makefile.in: Rebuilt.
3929 * Makefile.am (nat_headers): Added Cloneable.h,
3930 CloneNotSupportedException.h.
3931 * java/lang/Object.h: Rewrote.
3932 * java/lang/natObject.cc: Rewrote from scratch.
3933 * java/lang/Object.java: Rewrote from scratch.
3935 * java/io/natFile.cc: Conditionally include <dirent.h>.
3936 (list): If no <dirent.h>, always return NULL.
3937 * configure: Rebuilt.
3938 * configure.in: Check for dirent.h.
3940 * prims.cc (lookupArray): Don't use sprintf.
3942 * java/util/Hashtable.java (containsKey): Use `abs' to compute
3949 * java/util/Hashtable.java (hsize): Renamed from size to avoid
3950 name conflict with method.
3952 * include/javaprims.h (java::util): Added HashtableEntry.
3954 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
3956 * java/util/Hashtable.java: Rewritten.
3958 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
3960 * java/io/natFileDescriptor.cc (write): Correctly test `write'
3964 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
3967 * posix-threads.cc (_Jv_CondWait): Now returns int.
3968 * include/javaprims.h (java::lang): Added
3969 IllegalMonitorStateException.
3970 * Makefile.in: Rebuilt.
3971 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
3972 * include/no-threads.h (_Jv_CondDestroy): Removed.
3973 (_Jv_MutexDestroy): Removed.
3974 (_Jv_CondWait): Now returns int.
3975 (_Jv_CondNotify): Likewise. Added mutex argument.
3976 (_Jv_CondNotifyAll): Likewise.
3977 (_Jv_MutexLock): Always succeed.
3978 (_Jv_MutexUnlock): Likewise.
3979 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
3980 (_Jv_HaveMutexDestroy): Define.
3981 (_Jv_CondNotify): Now returns int. Added mutex argument.
3982 (_Jv_CondNotifyAll): Likewise.
3983 * include/quick-threads.h (_Jv_CondDestroy): Removed.
3984 (_Jv_MutexDestroy): Removed.
3985 (_Jv_CondWait): Now returns int.
3986 (_Jv_CondNotify): Likewise. Added mutex argument.
3987 (_Jv_CondNotifyAll): Likewise.
3988 * java/lang/natObject.cc (finalize_sync_info): New function.
3989 (init_mutex): Initialize `init' and register finalizer if
3992 (init_mutex): Use it.
3994 (notifyAll): Use it.
3996 (notify): Throw IllegalMonitorStateException on failure.
3997 (notifyAll): Likewise.
3998 (wait): Likewise. Also, throw InterruptedException if
4000 Include cni.h, Thread.h, IllegalMonitorStateException.h,
4001 InterruptedException.h, IllegalArgumentException.h.
4002 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
4004 * java/lang/natString.cc: Renamed all `JvPriv' functions.
4005 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
4006 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
4007 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
4008 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
4009 * quick-threads.cc: Renamed all `JvPriv' functions.
4010 * prims.cc: Renamed all `JvPriv' functions.
4011 * posix-threads.cc: Renamed all `JvPriv' functions.
4012 * nogc.cc: Renamed all `JvPriv' functions.
4013 * no-threads.cc: Renamed all `JvPriv' functions.
4014 * boehm.cc: Renamed all `JvPriv' functions.
4015 * include/quick-threads.h: Renamed all `JvPriv' functions.
4016 * include/posix-threads.h: Renamed all `JvPriv' functions.
4017 * include/no-threads.h: Renamed all `JvPriv' functions.
4018 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
4020 * include/no-threads.h (JvPrivCondWait): Wrote minimal
4022 (JvPrivCondNotify): Do nothing.
4023 (JvPrivCondNotifyAll): Do nothing.
4025 * prims.cc (processClass): Handle case where state is
4028 * java/lang/natFirstThread.cc: Include <stdlib.h>
4030 * configure: Rebuilt.
4031 * configure.in: Fixed sense of --enable-libjava-debug.
4033 * java/lang/natThread.cc (join): Declare `t' outside the loop so
4034 it can be used afterward by the assertion.
4036 * configure: Rebuilt.
4037 * configure.in: When cross-compiling, assume alloca.
4039 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
4040 __builtin_alloca (autoconf docs are wrong here).
4042 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
4044 (available): Use `FD_ZERO' (typo fix).
4046 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
4048 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
4049 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
4051 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
4052 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
4055 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
4057 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
4059 * java/lang/natDouble.cc: Declare alloca safely.
4061 * configure, include/config.h.in: Rebuilt.
4062 * configure.in: Add alloca check.
4064 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
4066 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
4067 condition while calling notify.
4068 (join): Remove `curr_nt' from `nt's join list, not vice versa.
4069 (interrupt): Hold mutex for interrupt condition while calling
4072 * java/lang/natString.cc (init): Allocate and try to read `count'
4073 characters, not `count - offset' characters.
4075 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
4076 Correctly compute `count'.
4078 * java/lang/Boolean.java (getBoolean): Return false if property
4081 * java/lang/System.java (setProperties): Set prop_init.
4083 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
4085 * java/io/PrintStream.java (println): Use line.separator, not
4087 * java/lang/System.java (out, err): Make both autoflush streams.
4088 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
4090 * include/config.h.in: Rebuilt.
4091 * acconfig.h (HAVE_MEMCPY): Removed.
4092 * configure: Rebuilt.
4093 * configure.in: Never define HAVE_MEMCPY.
4095 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
4097 (_Jv_AllocString): Use JvAllocObject again.
4098 * java/lang/Class.h (thread): New field.
4099 (_Jv_AllocString): No longer a friend.
4100 * prims.cc (processClass): Removed dead code. Changed to more
4101 closely follow the Java Language Specification.
4102 (processClass): Return early if already at the right state.
4104 * prims.cc (JvNewStringUTF): Removed.
4105 * include/cni.h (JvNewStringUTF): New function.
4106 (_Jv_NewStringUTF): Declare as `extern "C"'.
4107 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
4109 * java/lang/natDouble.cc: Added copyright info and header
4110 comment. Include <stdlib.h>.
4111 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
4112 bytes as are chars in string.
4114 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
4116 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
4120 * java/lang/System.java (init_properties): Now native.
4121 * java/lang/natSystem.cc (init_properties): New method.
4122 Include java/util/Properties.h.
4124 * Makefile.in: Rebuilt.
4125 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
4126 OutputStreamWriter.h, ByteArrayInputStream.h,
4127 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
4128 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
4129 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
4130 Properties.h, Hashtable.h, Dictionary.h.
4133 * include/javaprims.h (java::io): Added Reader, Writer,
4134 InputStreamReader, OutputStreamWriter,
4135 UnsupportedEncodingException, ByteArrayInputStream,
4136 ByteArrayOutputStream, EOFException, SyncFailedException,
4137 PushbackInputStream.
4138 (java::lang): Added Cloneable.
4139 (java::util): Added NoSuchElementException, VectorEnumeration,
4140 Dictionary, HashtableEnumeration, PropertiesEnumeration.
4142 * java/io/PipedReader.java: New file.
4144 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
4146 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
4149 * java/io/io-defs.h: Removed.
4151 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
4152 (FileInputStream): Use new constructor. Can throw IOException.
4154 * java/lang/System.java (getProperty): Don't throw
4155 NullPointerException.
4157 * java/io/RandomAccessFile.java: Rewrote from scratch.
4159 * java/io/natFileDescriptor.cc: Include EOFException.h.
4161 (length): New method.
4162 (getFilePointer): New method.
4164 (available): New method.
4165 * java/io/FileDescriptor.java (SET, CUR): New constants.
4166 (seek, length, getFilePointer, read, available): New decls.
4168 * java/io/PipedWriter.java: New file.
4169 * java/io/StringWriter.java: New file.
4170 * java/io/CharArrayWriter.java: New file.
4171 * java/io/CharConversionException.java: New file.
4172 * java/io/BufferedWriter.java: New file.
4173 * java/io/FilterWriter.java: New file.
4174 * java/io/FileWriter.java: New file.
4176 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
4177 OutputStreamWriter.h, NullPointerException.h,
4178 ByteArrayInputStream.h, InputStreamReader.h.
4179 (getBytes): New method.
4180 (init): Throw NullPointerException.
4181 (init): New function.
4182 * java/lang/String.java (getBytes): Added missing decl.
4183 (getBytes): New method.
4184 (String): Added byte[]-based constructors.
4185 (copyValueOf): Wrote.
4186 (init): Declare variant which takes byte array and encoding.
4187 Import java.io.UnsupportedEncodingException.
4189 * java/io/File.java: Rewrote from scratch.
4190 * java/io/natFileDescriptor.cc: Rewrote from scratch.
4191 * java/io/FileDescriptor.java: Rewrote from scratch.
4192 * java/io/FilenameFilter.java: Rewrote from scratch.
4194 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
4196 * java/io/SyncFailedException.java: New file.
4197 * java/io/UTFDataFormatException.java: Rewrote from scratch.
4198 * java/io/InterruptedIOException.java: Rewrote from scratch.
4199 * java/io/FileNotFoundException.java: Rewrote from scratch.
4200 * java/io/EOFException.java: Rewrote from scratch.
4201 * java/io/IOException.java: Rewrote from scratch.
4202 * java/io/PrintStream.java: Rewrote from scratch.
4203 * java/io/DataOutputStream.java: Rewrote from scratch.
4204 * java/io/BufferedOutputStream.java: Rewrote from scratch.
4205 * java/io/FilterOutputStream.java: Rewrote from scratch.
4206 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
4207 * java/io/PipedOutputStream.java: Rewrote from scratch.
4208 * java/io/FileOutputStream.java: Rewrote from scratch.
4209 * java/io/OutputStream.java: Rewrote from scratch.
4210 * java/io/DataOutput.java: Rewrote from scratch.
4212 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
4214 * prims.cc (_Jv_CheckCast): Add missing ! operator.
4216 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
4218 * configure.in: Add --enable-libjava-debug
4220 * Makefile.am (nat_headers): Add java/lang/Float.h and
4223 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
4225 * Makefile.in, configure, include/config.h.in: Rebuilt.
4227 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
4229 * java/lang/Float.java: Rewritten
4230 * java/lang/Double.java: Rewritten
4231 * java/lang/natFloat.cc: toString() added.
4232 * java/lang/natDouble.cc: toString() added.
4233 * java/lang/natDouble.cc: doubleValueOf() added.
4234 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
4235 java/lang/strtod.c: added.
4236 * ieeefp.h: __sparc added.
4237 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
4239 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
4241 * include/javaprims.h (java::lang): Added
4242 CloneNotSupportedException.
4244 * java/lang/Object.java (clone): No longer native. Implemented.
4245 * java/lang/natObject.cc (clone): Removed.
4247 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
4249 * prims.cc: Don't make definitions `extern "C"'.
4250 (_Jv_RegisterClass): Renamed from registerClass.
4251 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
4252 (_Jv_NewArray): Likewise.
4253 (_Jv_NewMultiArray): Likewise.
4254 (_Jv_CheckCast): Likewise.
4255 (_Jv_LookupInterfaceMethod): Likewise.
4256 (_Jv_CheckArrayStore): Likewise.
4257 (_Jv_RegisterClass): Likewise.
4259 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
4260 * configure: Rebuilt.
4261 * configure.in: Don't check for fmod; it is provided by the fdlibm
4263 * prims.cc (fmod): Removed.
4265 * java/lang/natString.cc (charAt): Use _Jv_uint.
4266 * java/lang/Class.h (class JvField): Use _Jv_ushort.
4267 * prims.cc (HASH_CHARS): Use _Jv_ushort.
4268 (equalUtf8Consts): Likewise.
4269 (internalAddClass): Use _Jv_uint.
4270 (processClass): Likewise.
4271 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
4272 (_Jv_uint): Renamed from uint32.
4273 (struct _Jv_Utf8Const): Changed members to use new type names.
4275 * configure: Rebuilt.
4276 * configure.in: Don't check for memcpy. Require memmove and a way
4278 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
4280 (currentTimeMillis): Don't use #error.
4282 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
4284 * java/lang/Math.java: static member random renamed to random_ to
4285 avoid conflict with member function of the same name.
4286 * include/javaprims.h: java.util.Random added.
4288 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
4290 * include/java-chartables.h: Regenerated.
4291 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
4294 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
4296 * java/lang/Math.java: Rewritten.
4297 * java/lang/natMath.cc: New file.
4298 * Files added from fdlibm:
4299 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
4300 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
4301 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
4302 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
4303 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
4304 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
4305 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
4306 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
4307 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
4308 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
4309 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
4310 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
4311 java/lang/k_cos.c, java/lang/sf_ceil.c,
4312 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
4313 java/lang/ieeefp.h, java/lang/fdlibm.h
4314 * Makefile.am: rules added for compiling C files from fdlibm.
4316 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
4318 * chartables.pl: Minor documentation fixes.
4320 * configure: Rebuilt.
4321 * configure.in: Fixed --help output for --enable-fast-character.
4323 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
4325 * configure: Rebuilt.
4326 * configure.in: Recognize --enable-fast-character.
4327 * acconfig.h (COMPACT_CHARACTER): New define.
4328 * include/config.h.in: Rebuilt.
4329 * include/java-chartables.h: New file.
4330 * Makefile.in: Rebuilt.
4331 * Makefile.am (nat_files): Added natCharacter.o.
4332 * java/lang/natCharacter.cc: New file.
4333 * chartables.pl (set_attribute): New function.
4334 (@attributes, @second_attributes): New globals.
4335 ($ROMAN_START, $ROMAN_END): Likewise.
4336 (process_char): Call set_attribute when required.
4337 (print_char): Just print hex value.
4338 (print_block): Generate C++ syntax.
4339 (print_numerics): Likewise.
4340 (print_single_map): Likewise.
4341 (print_all_block): Likewise.
4342 (print_case_table): Likewise.
4343 (print_fast_tables): New function.
4344 Generate C++ code suitable for a header file.
4345 * java/lang/Character.java (table_search): Removed.
4346 (digit_value): Now native.
4347 (getNumericValue): Likewise.
4348 (getType): Likewise.
4349 Removed all automatically-generated tables.
4350 (Tamil_Digit_One): Removed.
4351 (isSpaceChar): Now native.
4352 (isTitleCase): Likewise.
4353 (isLowerCase): Likewise.
4354 (isUpperCase): Likewise.
4355 (toLowerCase): Likewise.
4356 (toTitleCase): Likewise.
4357 (toUpperCase): Likewise.
4358 (isDefined): Fixed sense of test.
4360 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
4362 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
4364 (regionMatches): Likewise.
4366 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
4368 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
4370 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
4372 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
4375 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
4378 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
4380 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
4382 * prims.cc (instanceof_class): Removed.
4383 (instanceof_array): Likewise.
4384 (instanceof): Likewise.
4385 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
4386 (_Jv_CheckCast): Likewise.
4387 * java/lang/natClass.cc (isAssignableFrom): New method.
4388 * java/lang/Class.java (isAssignableFrom): Now native.
4390 * include/cni.h (JvThrow): Use `extern inline'.
4391 (JvAllocObject): Likewise.
4392 (JvInitClass): Likewise.
4394 * java/lang/natSystem.cc (arraycopy): Only check class of source
4397 * prims.cc (_Jv_CheckArrayStore): Wrote.
4398 (_Jv_MonitorEnter): Prefer `JvThrow'.
4399 Include ArrayStoreException.h.
4400 (_Jv_CheckCast): Indentation cleanup.
4402 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
4404 * chartables.pl: New file.
4405 * java/lang/Character.java: Rewrote from scratch.
4407 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
4409 * java/lang/ArithmeticException.java,
4410 java/lang/ArrayIndexOutOfBoundsException.java,
4411 java/lang/ArrayStoreException.java,
4412 java/lang/ClassCastException.java,
4413 java/lang/ClassNotFoundException.java,
4414 java/lang/CloneNotSupportedException.java,
4415 java/lang/Exception.java, java/lang/IllegalAccessException.java,
4416 java/lang/IllegalArgumentException.java,
4417 java/lang/IllegalMonitorStateException.java,
4418 java/lang/IllegalThreadStateException.java,
4419 java/lang/IndexOutOfBoundsException.java,
4420 java/lang/InstantiationException.java,
4421 java/lang/InterruptedException.java,
4422 java/lang/NegativeArraySizeException.java,
4423 java/lang/NoSuchMethodException.java,
4424 java/lang/NullPointerException.java,
4425 java/lang/NumberFormatException.java,
4426 java/lang/RuntimeException.java, java/lang/SecurityException.java,
4427 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
4429 * java/lang/IllegalStateException.java,
4430 java/lang/NoSuchFieldException.java,
4431 java/lang/UnsupportedOperationException.java: Created.
4433 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
4435 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
4436 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
4438 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
4440 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
4442 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
4444 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
4446 * Makefile.in: Rebuilt.
4448 * include/javaprims.h (java::lang): Added
4449 StringIndexOutOfBoundsException.
4451 * java/lang/String.java: Added header comment and FIXME comment for
4452 missing constructors/methods.
4453 (endsWith): Adjusted offset into string to look at just the last chars.
4454 Commented out undocumented method.
4456 * java/lang/natString.cc: Added includes for
4457 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
4458 (String::init): Throw StringIndexOutOfBoundsException.
4459 (String::charAt): Throw StringIndexOutOfBoundsException.
4460 (String::substring): Throw StringIndexOutOfBoundsException.
4461 (String::getChars): Throw ArrayIndexOutOfBoundsException.
4462 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
4463 (String::compareTo): Return difference/offset between chars/strings.
4465 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
4467 * java/lang/Boolean.java (TYPE): Added comment.
4469 * java/lang/Byte.java (decode): Added - commented out until dependent
4470 code for Integer is written.
4471 (compareTo): JDK 1.2 methods written.
4472 (hashCode): Added comment to note that values have been verified.
4474 * java/lang/Short.java (decode): Added - commented out until dependent
4475 code for Integer is written.
4476 (compareTo): JDK 1.2 methods written.
4477 (hashCode): Added comment to note that values have been verified.
4479 * java/lang/Comparable.java: Created - JDK 1.2 interface.
4481 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
4483 * include/javaprims.h (java::lang): Added VirtualMachineError,
4485 * Makefile.in: Rebuilt.
4486 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
4487 VirtualMachineError.h.
4488 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
4489 (lookupArray): Likewise.
4490 (makeUtf8Const): Likewise.
4491 (_Jv_AllocObject): Likewise.
4492 (_Jv_NewObjectArray): Likewise.
4493 Include OutOfMemoryError.h.
4495 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
4496 to use JvNewStringLatin1.
4498 * java/io/io-defs.h: Include java/lang/IOException.h.
4499 * Makefile.in: Rebuilt.
4500 * Makefile.am (nat_headers): Added
4501 ArrayIndexOutOfBoundsException.h,
4502 ClassFormatError.h,ClassNotFoundException.h,
4503 ClassCircularityError.h, ClassCastException.h,
4504 IncompatibleClassChangeError.h, AbstractMethodError.h,
4505 IllegalAccessError.h, LinkageError.h, Error.h,
4506 NegativeArraySizeException.h, IOException.h.
4507 * include/cni.h (SignalError): Removed declaration.
4508 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
4509 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
4510 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
4511 (newInstance): Likewise.
4512 (forName): Likewise.
4513 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
4515 (read): Use JvThrow, not SignalError.
4520 (open_read): Likewise.
4521 (open_write): Likewise.
4524 (newstr): New function.
4525 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
4527 (lastModifiedUnchecked): Likewise.
4528 (lengthUnchecked): Likewise.
4529 * include/javaprims.h (sorry): Removed declaration.
4530 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
4531 ClassFormatError, ClassNotFoundException, ClassCircularityError,
4532 ClassCastException, IncompatibleClassChangeError,
4533 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
4534 * prims.cc (instanceof_array): Use JvFail, not sorry.
4536 Include ArrayIndexOutOfBoundsException.h,
4537 ClassFormatError.h,ClassNotFoundException.h,
4538 ClassCircularityError.h, ClassCastException.h,
4539 IncompatibleClassChangeError.h, AbstractMethodError.h,
4540 IllegalAccessError.h, NegativeArraySizeException.h.
4541 (_Jv_ThrowBadArrayIndex): Implemented.
4542 (JvNewStringUTF): Use JvFail, not sorry.
4543 (_Jv_FindClass): Likewise.
4544 (_Jv_NewArray): Likewise.
4545 (throwException): Removed.
4546 (getClass): Use JvThrow.
4547 (processClass): Likewise.
4548 (_Jv_NewObjectArray): Likewise.
4549 (_Jv_NewMultiArray): Likewise.
4550 (_Jv_CheckCast): Likewise.
4551 (_Jv_LookupInterfaceMethod): Likewise.
4552 (SignalError): Removed.
4553 (getClass): Use _Jv_NewStringUtf8Const to create String.
4555 * java/lang/natSystem.cc (arraycopy): Throw
4556 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
4558 * Makefile.in: Rebuilt.
4559 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
4561 * include/java-array.h: Mention gcjh, not gjavah.
4563 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
4564 (canReadUnchecked): Likewise.
4565 (canWriteUnchecked): Likewise.
4566 (isFileUnchecked): Likewise.
4567 * java/io/natFileDescriptor.cc: Don't include cni.h.
4569 * java/lang/Thread.java (run__): Declare.
4570 * java/lang/natThread.cc (run__): New method, to avoid compiler
4572 (start): Use run__, not run_.
4574 * java/io/io-defs.h: Include cni.h and jvm.h.
4576 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
4578 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
4579 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
4580 to natString.cc (with suitable renaming, inlines etc).
4581 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
4582 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
4583 * java/lang/String.h: Removed - now generated using gjavah.
4584 * java/lang/String.java: Re-written from scratch. Many native methods.
4585 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
4586 * java/lang/natString.cc: Many functions re-written for "compact
4587 strings" representation, or native java.lang.String methods added.
4588 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
4589 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
4590 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
4591 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
4592 * include/cni.h: Add inline method.
4593 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
4594 * include/javaprims.h: Moved some stuff frm String.h.
4595 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
4596 * Makefile.am (nat_header): Added Character.h and String.h.
4597 (String.h): Add new rule.
4599 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
4601 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
4603 * posix-threads.cc: Include cni.h, jvm.h.
4604 * quick-threads.cc: Include cni.h, jvm.h.
4605 * nogc.cc: Include cni.h, not javaprims.h.
4606 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
4607 * java/lang/natThread.cc: Rearranged #include ordering. Don't
4608 include java-assert.h.
4609 * java/lang/natSystem.cc: Include cni.h. Don't include
4611 * java/lang/natRuntime.cc: Include cni.h. Don't include
4613 * prims.cc: Rearranged #include ordering. Don't include
4614 java-array.h or java-assert.h.
4615 * boehm.cc: Include config.h, cni.h.
4616 * exception.cc: Include config.h, cni.h.
4617 * include/jvm.h: Include java-assert.h.
4618 * include/cni.h: Include java/lang/Object.h. Don't include
4619 java-threads.h or java-array.h.
4621 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
4623 * java/lang/Boolean.java: Rewritten.
4625 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
4627 * java/lang/natFirstThread.cc (main_func): New typedef.
4628 (run): Use main_func, not JvPrivThreadStartFunc.
4629 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
4631 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
4633 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
4636 Can't throw Java exceptions with C++ `throw':
4637 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
4638 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
4639 (setPriority): Likewise.
4643 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
4644 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
4646 Can't catch Java exceptions from C++:
4647 * java/lang/natThread.cc (finish_): New method.
4649 * java/lang/Thread.java (run_): Rewrote in Java.
4650 (finish_): New native method.
4652 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
4654 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
4656 * include/javaprims.h (java::io): Added Serializable.
4658 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
4660 * java/util/EmptyStackException.java,
4661 java/util/NoSuchElementException.java: Rewritten.
4663 * java/util/ConcurrentModificationException.java,
4664 java/util/MissingResourceException.java,
4665 java/util/TooManyListenersException.java: Created.
4667 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
4669 * include/cni.h (JvThrow): New function.
4670 * include/javaprims.h (_Jv_Throw): Declare.
4672 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
4674 * java/util/Observable.java: Rewritten.
4676 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
4678 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
4679 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
4680 Include NullPointerException.h.
4682 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
4684 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
4685 assignability checks. Don't bother using memcpy.
4687 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
4689 * include/quick-threads.h (JvPrivThreadWait): New function.
4690 * include/no-threads.h (JvPrivThreadWait): New function.
4691 * include/posix-threads.h (JvPrivThreadWait): New function.
4692 * prims.cc (JvRunMain): Call JvPrivThreadWait.
4694 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
4696 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
4697 offsets by size of type that is being copied.
4699 * java/lang/natThread.cc (start): Don't pass `object' argument to
4701 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
4702 * posix-threads.cc (JvPrivThreadStart): Removed `object'
4704 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
4705 always pass thread as object.
4706 * include/quick-threads.h, include/posix-threads.h,
4707 include/no-threads.h (JvPrivThreadStart): Removed `object'
4710 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
4712 * java/util/Dictionary.java: Rewritten.
4714 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
4716 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
4717 (JvPrivThreadDestroy): Likewise.
4719 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
4721 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
4723 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
4725 * java/lang/natSystem.cc: Rewrote from scratch.
4726 * java/lang/System.java: Rewrote from scratch.
4727 * java/lang/Class.h (Class): Declare isAssignableFrom.
4728 * include/javaprims.h (java::lang): Added ArrayStoreException,
4729 IndexOutOfBoundsException.
4730 * Makefile.in: Rebuilt.
4731 * Makefile.am (nat_headers): Added ArrayStoreException.h,
4732 IndexOutOfBoundsException.h.
4733 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
4734 * include/jvm.h (_Jv_HashCode): New function.
4736 * java/lang/natThread.cc (suspend): Call checkAccess.
4738 * java/lang/Thread.java (setDaemon): Call checkAccess.
4740 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
4742 * java/lang/Runtime.java: Rewrote from scratch.
4743 * java/lang/natRuntime.cc: Rewrote from scratch.
4745 * nogc.cc (JvPrivGCTotalMemory): New function.
4746 (JvPrivGCFreeMemory): Likewise.
4747 (total): New global.
4748 (JvPrivAllocObj): Increment total.
4749 (JvPrivAllocArray): Likewise.
4750 (JvPrivAllocBytes): Likewise.
4751 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
4752 * boehm.cc (JvPrivGCTotalMemory): New function.
4753 (sum_blocks): Likewise.
4754 (JvPrivGCFreeMemory): Likewise.
4756 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
4758 * include/javaprims.h (java::lang): Added FirstThread.
4759 * java/lang/natFirstThread.cc: New file.
4760 * java/lang/FirstThread.java: New file.
4761 * prims.cc (main_signature): Removed.
4762 (main_name): Removed.
4763 #include FirstThread.h.
4764 * Makefile.in: Rebuilt.
4765 * Makefile.am (TFRIEND): Removed.
4766 (java/lang/Thread.h): Likewise.
4767 (FTFRIEND): New macro.
4768 (java/lang/FirstThread.h): New target.
4769 (nat_files): Added natFirstThread.o.
4770 (nat_headers): Added FirstThread.h.
4771 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
4772 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
4774 * java/lang/Thread.java (setName): Throw IllegalArgumentException
4778 * java/lang/natThread.cc (start): Synchronize the thread.
4779 (stop): Synchronize the thread.
4781 * java/lang/ThreadDeath.java: Rewrote from scratch.
4783 * Makefile.in: Rebuilt.
4784 * Makefile.am (TGFRIEND): New macro.
4785 (java/lang/ThreadGroup.h): New target.
4786 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
4788 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
4790 * nogc.cc: Include config.h.
4792 * java/lang/ThreadGroup.java: Rewrote from scratch.
4794 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
4796 * java/lang/Thread.java (checkAccess): Only call in to security
4797 manager if it exists.
4798 (Thread): Don't check access when creating the first thread. Add
4799 this thread to the appropriate ThreadGroup.
4801 * java/lang/natThread.cc (run_): Call uncaughtException method on
4804 * java/lang/Runnable.java: Rewrote from scratch.
4805 * java/lang/Thread.java: Updated copyright comment to correct
4808 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
4810 * java/util/Random.java: Rewritten.
4812 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4814 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
4815 trailing 0 in array[].
4817 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
4819 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
4820 and RUNTESTFLAGS from AM_MAKEFLAGS.
4821 (SUBDIRS): Conditionally include testsuite.
4822 * Makefile.in: Rebuilt.
4824 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
4826 * java/lang/Object.h: Include java-assert.h.
4828 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
4830 * Makefile.am: Add testsuite directory.
4831 * configure.in: Build testsuite/Makefile.
4832 * Makefile.in, configure: Rebuilt.
4834 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
4836 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
4837 * include/jvm.h (_Jv_StartFirstThread): Declare.
4839 * include/javaprims.h (java::lang): Added Exception,
4842 * Makefile.in: Rebuilt.
4843 * Makefile.am (nat_headers): Added NullPointerException.h,
4844 InterruptedException.h, IllegalArgumentException.h, Exception.h,
4845 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
4846 (java/lang/Thread.h): New target.
4847 (TFRIEND): New macro
4849 * include/java-assert.h (JvFail): Use 0 and not NULL.
4851 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
4852 instead of assuming we are a friend of Thread.
4853 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
4854 instead of assuming we are a friend of Thread.
4856 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
4858 * java/lang/natThread.cc: Rewrote from scratch.
4859 * java/lang/Thread.java: Rewrote from scratch.
4860 * prims.cc (JvRunMain): Use new Thread constructor.
4861 * include/javaprims.h (java::lang): Added InterruptedException.
4862 * Makefile.in: Rebuilt.
4863 * Makefile.am (nat_headers): Added java/lang/Thread.h.
4864 * java/lang/Thread.h: Removed.
4865 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
4866 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
4868 * posix-threads.cc (JvPrivThreadJoin): Removed.
4869 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
4870 (really_start): Don't notify join_cond.
4871 (JvPrivThreadStart): Added `data' argument.
4872 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
4873 (JvPrivThreadJoin): Likewise.
4874 Use JvFail instead of sorry.
4875 (JvPrivThreadSuspend): Removed.
4876 (JvPrivThreadResume): Removed.
4877 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
4878 (JvPrivThreadJoin): Likewise.
4879 (JvPrivThreadSuspend): Use JvFail.
4880 (JvPrivThreadResume): Likewise.
4881 (JvPrivThreadSuspend): Removed.
4882 (JvPrivThreadResume): Likewise.
4883 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
4884 (JvPrivThread_t): Removed join_mutex, join_cond.
4885 Use JvFail instead of sorry.
4886 (JvPrivThreadSuspend): Removed.
4887 (JvPrivThreadResume): Likewise.
4889 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
4891 * java/util/Observer.java: Rewritten
4892 * java/util/Enumeration.java: Rewritten
4894 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
4896 * java/util/StringTokenizer.java: Rewritten
4897 * java/util/Stack.java: Added COPYRIGHT-TBD comment
4898 * java/util/Vector.java: Added COPYRIGHT-TBD comment
4899 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
4901 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
4903 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
4906 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
4907 Include java-assert.h.
4908 * include/java-assert.h: New file.
4909 * prims.cc (_Jv_Abort): New function.
4910 Include java-assert.h, not assert.h.
4911 (_Jv_MonitorExit): Use JvAssert.
4912 (resolveConstants): Likewise.
4913 (processClass): Likewise.
4914 (JvRunMain): Assert that method is found.
4916 * configure: Rebuilt.
4917 * configure.in: Check for test subdir.
4918 * Makefile.in: Rebuilt.
4919 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
4921 * prims.cc (JvRunMain): Use NORM_PRIORITY.
4922 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
4924 * prims.cc (resolveConstants): Removed unused variables.
4925 (processClass): Likewise.
4927 * include/quick-threads.h (JvPrivThreadCurrent): Use
4929 * quick-threads.cc (destroy_data): New function.
4930 (JvPrivInitThreads): Create key.
4931 (JvPrivThreadKey): New global.
4932 (JvPrivThreadStart): Use coop_setspecific.
4934 * include/quick-threads.h, include/posix-threads.h,
4935 include/no-threads.h, no-threads.cc, quick-threads.cc,
4936 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
4938 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
4940 * include/no-threads.h (JvPrivThreadInitData): Don't set
4943 * include/quick-threads.h (JvPrivCondWait): coop function now
4945 (JvPrivThreadJoin): Likewise.
4947 * java/lang/Thread.h (Thread): Updated declaration of
4949 * include/quick-threads.h, include/posix-threads.h: Updated
4950 declaration of JvPrivThreadStart.
4951 * include/no-threads.h (JvPrivThreadStart): Changed definition
4953 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
4954 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
4955 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
4957 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
4959 * quick-threads.cc (qthrow): New function.
4960 (JvPrivInitThreads): New function.
4961 (started): New global.
4962 (JvPrivThreadStart): Call coop_start if required.
4963 * include/quick-threads.h (JvPrivThreadCancel): Implement.
4964 (JvPrivThreadDestroy): Likewise.
4965 (JvPrivInitThreads): Removed.
4966 * include/posix-threads.h (JvPrivThreadCancel): Added error
4968 * java/lang/natThread.cc (stop_): Pass exception to
4971 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
4973 * include/javaprims.h (java::lang): Added
4974 IllegalArgumentException, IllegalThreadStateException, Math,
4975 NullPointerException, ThreadDeath.
4976 (java::util): Added Enumeration.
4978 * Makefile.in: Rebuilt.
4979 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
4981 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
4983 (threadsv): Renamed from threads to avoid clash in C++ header.
4984 (groupsv): Likewise.
4985 * include/no-threads.h (JvPrivThreadStart): Removed.
4986 * no-threads.cc (JvPrivThreadStart): New function.
4987 * java/lang/Thread.java (Thread): New constructor for internal use.
4988 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
4989 (Thread): Declare constructor.
4990 * prims.cc (JvRunMain): Create the initial Thread and
4992 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
4993 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
4994 Removed `daemon' argument.
4996 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
4997 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
4999 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
5001 * Makefile.in: Rebuilt.
5002 * Makefile.am (INCLUDES): Include THREADINCS.
5004 * configure: Rebuilt.
5005 * configure.in: Recognize `qt' as a threads package.
5007 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
5009 * java/util/Stack.java (pop): Null out topmost node for robustness.
5011 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
5013 * java/util/Stack.java: Rewritten.
5014 * java/util/Vector.java (isEmpty): Simplified expression.
5016 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
5018 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
5019 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
5021 * include/java-array.h (JvNewObjectArray): Created inline to
5024 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
5027 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
5029 * java/util/Vector.java: Rewritten.
5030 * java/io/Serializable.java: Created.
5032 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
5034 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
5035 Infinity is 1/0, not 1/1.
5037 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
5039 * configure: Rebuilt.
5040 * configure.in: Removed duplicate AC_ARG_WITH.
5042 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
5044 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
5046 (_Jv_InitClass): Renamed from soft_initialise_class.
5047 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
5048 (_Jv_CheckCast): Renamed from soft_checkcast.
5049 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
5050 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
5051 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
5052 * include/cni.h (JvInitClass): New function.
5053 (_Jv_InitClass): Renamed from soft_initialise_class.
5055 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
5057 * configure: Rebuilt.
5058 * configure.in (CXX): Don't set.
5059 * Makefile.in: Rebuilt.
5060 * Makefile.am (AM_CXXFLAGS): New macro.
5062 * Makefile.in: Rebuilt.
5063 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
5064 nogc.o): New target.
5066 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
5068 (mark_array): Likewise.
5070 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
5072 * java/lang/Class.h (JvMethod): Removed some unused fields.
5073 (JvField.info): Removed unused idx union variant.
5075 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
5077 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
5080 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
5082 * configure.in, configure (CXX): Add -fvtable-thunks.
5084 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
5086 * java/lang/Object.java (finalize): Move first.
5087 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
5088 (Object): Re-arrange order to match Object.java.
5090 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
5092 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
5093 * java/lang/natString.cc (hashChars): Likewise.
5095 * prims.cc (RuntimeClass): New macro.
5096 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
5098 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
5100 * Makefile.in: Rebuilt.
5101 * Makefile.am (AM_MAKEFLAGS): New macro.
5103 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
5105 * nogc.cc: Include <javaprims.h>.
5107 * Makefile.in: Rebuilt.
5108 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
5110 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
5112 * exception.cc (terminate): Removed.
5113 (unexpected): Removed.
5115 * configure: Rebuilt.
5116 * configure.in: Handle case where target subdir is ".".
5118 * configure: Rebuilt.
5119 * configure.in: Compute COMPPATH based on --with-target-subdir
5120 option. Added --with-target-subdir and --with-cross-host. Use
5121 --with-cross-host to determine when a cross compiler is in use.
5123 * Makefile.in: Rebuilt.
5124 * Makefile.am (GJAVAH): Include COMPPATH.
5125 * configure: Rebuilt.
5126 * configure.in: Subst COMPPATH.
5128 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
5130 * prims.cc (lockMutex): Removed.
5131 (unlockMutex): Likewise.
5132 (processClass): Lock the class using a JvSynchronize object.
5134 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
5136 * java/lang/natString.cc (gc_calloc_fixed): Removed.
5137 (gc_free_fixed): Removed.
5138 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
5139 freeing old value of strhash.
5141 * exception.cc (_Jv_type_matcher): Cast first argument to
5144 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
5146 * include/java-array.h (jstringArray): New type.
5147 * java/lang/natSystem.cc (setProperty): Removed.
5148 (initProperties): Directly call JvNewStringLatin1 for arguments.
5149 * java/util/natDate.cc: Include java/util/Date.h, not
5152 * java/io/FileDescriptor.java (available): No longer static.
5153 * java/lang/natDouble.cc (Double): Removed class definition.
5154 * include/javaprims.h (java::lang::Number): Declare.
5155 (java::lang::NumberFormatException): Likewise.
5156 (java::io::FilenameFilter): Likewise.
5157 (java::lang::Character): Likewise.
5158 (java::lang::Error): Likewise.
5159 (java::lang::SecurityManager): Likewise.
5160 (java::util::Vector): Likewise.
5161 (java::io::FileNotFoundException): Likewise.
5162 (java::io::IOException): Likewise.
5163 (java::lang::NativeLang): Likewise.
5164 (java::lang::UnsatisfiedLinkError): Likewise.
5165 (java::util::StringTokenizer): Likewise.
5166 (java::io::InputStream, java::io::OutputStream): Likewise.
5167 (java::io::PrintStream, java::lang::SecurityException): Likewise.
5168 (java::util::Hashtable): Likewise.
5169 * Makefile.in: Rebuilt.
5170 * Makefile.am (nat_headers): Added java/lang/Double.h,
5171 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
5172 (MOSTLYCLEANFILES): Added nat_headers.
5173 * include/jvm.h: Moved many defines, declarations, and functions
5174 to java/lang/Class.h.
5175 (struct JvSyncInfo): Moved to java/lang/Object.h.
5176 (UTF8_GET): Moved to java/lang/String.h.
5178 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
5180 * java/io/io-defs.h: Don't include java-io.h.
5181 * include/java-io.h: Removed.
5182 * include/javaprims.h: Include java::io.
5184 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
5186 * include/java-io.h (File): Removed
5187 (FileDescriptor): Likewise.
5189 * java/io/io-defs.h: Include java/io/File.h and
5190 java/io/FileDescriptor.h.
5192 * Makefile.in: Rebuilt.
5193 * Makefile.am (GJAVAH): New macro.
5194 (.class.h): New rule.
5195 (SUFFIXES): Added .h.
5196 (nat_headers): New macro.
5197 ($(nat_headers)): New target.
5198 (BUILT_SOURCES): Added nat_headers.
5200 * include/java-util.h: Removed.
5202 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
5204 * include/java-io.h: Changed to avoid java-lang.h.
5205 * java/lang/natThread.cc: Include java/lang/Thread.h, not
5207 * java/lang/natSystem.cc: Include java/lang/System.h, not
5209 * java/lang/natString.cc: Include java/lang/String.h, not
5211 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
5213 * java/lang/natClass.cc: Include java/lang/Class.h, not
5215 * java/lang/natDouble.cc: Include java/lang/Object.h, not
5217 * java/lang/natObject.cc: Include java/lang/Object.h, not
5219 * exception.cc: Don't include java-lang.h.
5220 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
5221 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
5222 * nogc.cc: Don't include java-lang.h.
5223 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
5224 * prims.cc (processClass): Don't use `init_type'; just cast to
5226 Include java/lang/Class.h and jvm.h, not java-lang.h.
5227 (JvAllocObject): Wrote single-argument version.
5228 (PrimClass): Inherit from Class.
5229 (initPrimClass): Removed.
5230 * include/java-lang.h: Removed.
5231 * include/jvm.h: Declare struct _dispatchTable.
5232 * include/cni.h: Don't declare _Jv_MonitorEnter,
5233 _Jv_MonitorExit, struct _dispatchTable.
5234 * include/javaprims.h: Moved all typedefs here, from cni.h.
5235 * java/lang/Class.h: New file.
5236 * include/java-array.h: New file.
5237 * java/lang/Object.h: New file.
5239 * prims.cc (classFromSig): Now static.
5241 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
5243 * include/cni.h: Don't mention soft_new.
5244 * include/java-lang.h (Object): Don't mention soft_new. Mention
5245 _Jv_NewPrimArray, not newPrimArray.
5246 * prims.cc (soft_new): Removed.
5247 (_Jv_NewArray): Renamed from soft_newarray.
5248 (soft_anewarray): Use JvNewObjectArray.
5249 (newArray): Likewise.
5250 (newRefArray): Removed.
5251 (_Jv_NewPrimArray): Renamed from newPrimArray.
5252 (equalUtf8Consts): Now static.
5253 (soft_instanceof): Removed.
5254 * java/lang/natDouble.cc (doubleToString): Now static.
5256 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
5257 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
5260 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
5262 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
5264 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
5266 * include/no-threads.h (JvPrivMutexLock): Always return -1.
5267 (JvPrivMutexUnlock): Likewise.
5268 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
5269 Return value now jint.
5270 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
5273 * Makefile.in: Rebuilt.
5274 * Makefile.am: Don't allow `jV' names.
5275 (maintainer-check): Depend on libjava.a.
5276 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
5278 * Makefile.in: Rebuilt.
5279 * Makefile.am (NM): New macro.
5280 (maintainer-check): New target.
5282 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
5284 * configure: Rebuilt.
5285 * configure.in: Use --enable-threads, not --enable-gc. Fix
5286 documentation for --enable-threads. Changed option to work like
5287 identical option in gcc/configure.
5289 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
5291 * boehm.cc (mark_array): Use JvGetArrayLength.
5293 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
5295 * exception.cc: New file (mostly written by Andrew MacLeod),
5296 exception handling support.
5297 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
5298 Remove -fexceptions - it is now the default.
5300 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
5301 (JvAllocObject): Renamed to _Jv_AllocObject.
5302 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
5303 (loadClass): Renamed to _Jv_FindClass.
5304 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
5305 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
5306 * include/java-lang.h (JvGetArrayLength): New CNI function.
5307 * include/jvm.h (_Jv_FindClass): Added declaration.
5309 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
5311 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
5313 * java/lang/natClass.cc (getName): Add implementation.
5314 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
5316 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
5318 * Makefile.in: Rebuilt.
5319 * Makefile.am (.class.o): Added -fexceptions.
5321 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
5323 * configure: Rebuilt.
5324 * configure.in: Don't check for __nanosleep.
5325 * posix-threads.cc (nanosleep): Never define.
5327 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
5329 * posix-threads.cc (JvPrivCondWait): Fixed computation of
5332 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
5334 * java/lang/natThread.cc (enumerate): Uncommented.
5335 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
5336 (interrupt): Call it.
5338 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
5340 * configure: Rebuilt.
5341 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
5343 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
5345 * include/no-threads.h (JvPrivThreadInterrupt): New method.
5346 * include/java-lang.h (Thread): Added `interrupted_' method.
5347 * java/lang/Thread.java (interrupted_): New method.
5348 * java/lang/natThread.cc (join): Possibly throw interrupted
5349 exception after join finishes.
5350 (interrupted_): New method.
5351 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
5353 (JvPrivThreadJoin): New function.
5354 (really_start): Notify all threads waiting for this thread.
5355 (struct starter): Added `data' member.
5356 (JvPrivThreadStart): Set it.
5357 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
5359 (JvPrivThreadJoin): No longer inline.
5360 (JvPrivThreadInterrupt): New function.
5362 * include/no-threads.h (JvPrivThreadSleep): Removed.
5363 * posix-threads.cc (JvPrivThreadSleep): Removed.
5365 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
5367 * configure: Rebuilt.
5368 * configure.in (THREADOBJS): Initialize to no-threads.o in
5370 * posix-threads.cc (key): New global.
5371 (JvPrivInitThreads): New function.
5372 (really_start): Set thread-specific data to point to object.
5373 (JvPrivThreadStart): Added `daemon' argument.
5374 (JvPrivThreadSleep): Added `data' argument.
5375 * include/posix-threads.h (JvPrivInitThreads): Removed
5377 (JvPrivThreadCurrent): New function.
5378 * include/no-threads.h (JvPrivThreadInitData): Initialize
5379 JvPrivOnlyThread. Added `thread' argument.
5380 (JvPrivThreadCurrent): New function.
5381 (JvPrivThreadStart): Added `daemon' argument.
5382 * no-threads.cc: New file.
5383 * java/lang/natThread.cc (init_data): New function.
5385 (start): Set `alive' member.
5386 (stop_): Clear `alive' member.
5387 (destroy): Likewise.
5388 (currentThread): Implemented.
5389 (start): Pass `daemon' argument to JvPrivThreadStart.
5391 * include/java-lang.h (Thread): Added `alive', `tsync' members.
5392 (Thread): Added `init_data' method.
5393 * java/lang/Thread.java (alive, data): New instance variables.
5394 (init_data): New private method.
5395 (isAlive): No longer native.
5397 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
5399 * include/java-lang.h (JvRunMain): Declare.
5400 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
5401 * prims.cc (JvRunMain): New function.
5402 (main_signature, main_name): New globals.
5404 * boehm.cc (mark_array): Use `elements' function and not
5405 operator[] on jarray.
5407 * posix-threads.cc: Include <config.h>. Define nanosleep if
5410 * configure: Rebuilt.
5411 * configure.in: Check for _nanosleep.
5413 * configure: Rebuilt.
5414 * configure.in: Check for pthread_mutexattr_settype.
5416 * include/cni.h (class JvSynchronize): New class.
5417 * java/lang/Thread.java (sleep): Throws InterruptedException.
5418 (join): Throws InterruptedException.
5419 (resume): Not native.
5420 (resume_): New method.
5421 (start): Now synchronized.
5422 (stop_): New method.
5423 (Thread): Synchronize when accessing threadNumber.
5425 * java/lang/natThread.cc (throwException): New macro.
5426 (sleep): Throw InterruptedException.
5429 * include/java-lang.h (Runtime): Added interrupted().
5431 * boehm.cc (call_finalizer): Correctly initialize jobj.
5432 * include/java-lang.h (Runtime): Added getRuntime() and exit().
5434 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
5437 * configure: Rebuilt.
5438 * configure.in: Added support for --disable-threads.
5439 * include/no-threads.h: New file.
5441 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
5443 * Makefile.in: Rebuilt.
5444 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
5445 (libjava_a_DEPENDENCIES): Added THREADOBJS.
5446 (libjava_a_LIBADD): Added THREADOBJS.
5447 * configure: Rebuilt.
5448 * configure.in: Added --with-threads option.
5449 * posix-threads.cc: New file.
5450 * include/posix-threads.h: New file.
5451 * include/java-lang.h (Object): Added static member sync_mutex,
5452 member sync_info, method init_mutex.
5453 (struct JvSyncInfo): New struct.
5454 Include "java-threads.h".
5455 * prims.cc (soft_monitorenter): Wrote.
5456 (soft_monitorexit): Likewise.
5457 * java/lang/natObject.cc (init_mutex): New method.
5461 (sync_mutex): Define.
5462 Include "java-threads.h".
5464 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
5466 * include/java-lang.h (JvPrivInitGC): Make extern "C".
5467 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
5469 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
5471 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
5472 Added extern "Java" in places to tell G++ Object is a "Java" type.
5473 Other minor renaming and fixes.
5474 * include/java-io.h (FileDescriptor): Add friend class declarations.
5475 G++ no longer allows non-Java types in method parameters and results
5476 of Java classes. Converted most offending methods to friends.
5477 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
5478 * java/lang/natSystem.cc (setProperty): Make friend.
5479 * java/lang/natString.cc, include/java-lang.h (String): Rename
5480 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
5481 * include/java-lang.h (JArray): Remove getData and eoprator[].
5482 Add elements friend function instead.
5483 * java/lang/natSystem.cc (arraycopy): Use elements function.
5484 * java/io/natFileDescriptor.cc (read, write): Likewise.
5485 * include/java-lang.h (Object): Remove unused make method.
5486 (System::setProperty(char*,char*)): Turn into friend function.
5487 (Class): Rename newObject by JvAllocObject.
5488 * prims.cc: Update to use JvAllocObject, and elements.
5490 * java/lang/natDouble.cc: Fix double -> jdouble.
5492 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
5494 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
5496 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
5498 * java/lang/natRuntime.cc (finalize_on_exit): Define.
5499 * include/java-lang.h (Runtime): finalize_on_exit and
5500 runFinalizersOnExit now static.
5501 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
5503 (finalize_on_exit): Now static.
5505 * boehm.cc (mark_obj): Get class using getClass() method on
5507 (_dispatchTable): Removed.
5509 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
5511 * java/io/natFileDescriptor.cc (open_read): Only call open if
5513 (open_write): Likewise.
5515 * Makefile.in: Rebuilt.
5516 * Makefile.am ($(nat_files)): Depend on config.h.
5518 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
5520 * prims.cc (ObjectClass): Now a macro; updated for new class name
5522 (StringClass): Likewise.
5523 (ClassClass): Likewise.
5525 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
5527 * java/io/natFileDescriptor.cc (available): Do nothing unless
5528 HAVE_SELECT defined.
5529 * java/util/natDate.cc (setTime): Conditional on
5531 (toString): Conditional on HAVE_TIME.
5532 * aclocal.m4, configure: Rebuilt.
5533 * acinclude.m4: New file.
5534 * configure.in: Don't actually call AM_EXEEXT. Call
5535 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
5536 --with-target-subdir option. Check for select and open
5539 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
5541 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
5542 (call_finalizer): Likewise.
5543 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
5544 * prims.cc (newObject): Pass actual method pointer to
5545 JvPrivRegisterFinalizer.
5546 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
5547 (JvPrivRegisterFinalizer): Changed interface.
5549 * Makefile.in: Rebuilt.
5550 * Makefile.am (MOSTLYCLEANFILES): New macro.
5551 (CLEANFILES): Removed javao_files.
5553 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
5555 * nogc.cc: New file.
5556 * Makefile.in: Rebuilt.
5557 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
5558 (EXTRA_libjava_a_SOURCES): New macro.
5559 (libjava_a_SOURCES): Removed boehm.cc.
5560 (libjava_a_DEPENDENCIES): Added GCOBJS.
5561 (libjava_a_LIBADD): Likewise.
5562 * configure: Rebuilt.
5563 * configure.in: Added code for --enable-gc=TYPE.
5565 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
5567 * boehm.cc (mark_array): Don't further dereference pointer from
5570 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
5571 * Makefile.in: Rebuilt.
5572 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
5573 one for boehm-gc build directory.
5575 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
5577 * include/java-lang.h (finalize_on_exit): New instance variable in
5578 java::lang::Runtime.
5579 (runFinalizersOnExit): New method.
5580 * java/lang/Runtime.java (finalize_on_exit): New instance
5582 (runAllFinalizers_): New private method.
5583 (runFinalizersOnExit): New method.
5584 * boehm.cc (JvPrivRunFinalizers): New function.
5585 (JvPrivRunAllFinalizers): Likewise.
5586 (JvPrivRunGC): Likewise.
5587 * java/lang/natRuntime.cc: Include "jvm.h".
5588 (gc): Call JvPrivRunGC.
5589 (runFinalization): Call JvPrivRunFinalizers.
5590 (runFinalizersOnExit): New method.
5591 (exit_): Call JvPrivRunAllFinalizers if required.
5592 * include/jvm.h: Declare JvPrivRunFinalizers,
5593 JvPrivRunAllFinalizers, JvPrivRunGC.
5595 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
5597 * boehm.cc (JvPrivRegisterFinalizer): New function.
5598 (call_finalizer): Likewise.
5599 * include/jvm.h: Declare JvPrivRegisterFinalizer.
5600 * prims.cc (finalize_name): New global.
5601 (newObject): Just call other newObject.
5602 (newObject): Register finalizer if it exists.
5604 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
5606 * prims.cc (gc_malloc): Removed.
5607 (makeUtf8Const): Use JvPrivAllocBytes.
5608 (lookupArray): Likewise.
5609 (newPrimArray): Likewise.
5610 (JvNewObjectArray): Use JvPrivAllocArray.
5611 (newObject): Use JvPrivAllocObj.
5612 (newObject): Likewise.
5613 Changed Method -> JvMethod everywhere.
5614 Changed Field -> JvField everywhere.
5615 * include/java-lang.h (Object): Changed type of `fields' to
5617 (jmethodID, jfieldID): New typedefs.
5618 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
5620 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
5622 (METHOD_NATIVECODE): Moved from java-lang.h.
5623 (class JvField): New class.
5624 (JvGetFirstInstanceField): New function.
5625 (JvFieldIsRef): Likewise.
5626 (JvGetObjectField): Likewise.
5627 (JvNumInstanceFields): Likewise.
5629 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
5631 * boehm.cc: New file.
5632 * Makefile.in: Rebuilt.
5633 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
5634 (INCLUDES): Added -I options to find boehm-gc files.
5636 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
5638 * configure: Rebuilt.
5639 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
5641 * Makefile.in: Rebuilt.
5642 * Makefile.am (nat_files): New macro.
5643 (libjava_a_DEPENDENCIES): Use it.
5644 (libjava_a_LIBADD): Likewise.
5645 ($(nat_files)): New static pattern rule.
5646 (class_files): Run separate find to find .class files.
5647 (javao_files): Compute based on class_files.
5648 (BUILT_SOURCES): New macro.
5650 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
5652 * Makefile.am (java_files): New macro.
5653 (class_files): Likewise.
5654 (javao_files): Likewise.
5655 (libjava_a_DEPENDENCIES): Include $(javao_files).
5656 (libjava_a_LIBADD): Likewise.
5657 (classes.stamp): Depend on $(java_files); only recompile changed
5660 (CLEANFILES): Don't run find; use macros. Don't mention
5662 (.class.o): New target.
5663 (compiled.stamp): Removed.
5665 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
5667 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
5668 LineNumberReader}>java: Newly-implemented standard classes.
5670 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
5672 * Makefile.in: Rebuilt.
5673 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
5675 * Makefile.in: Rebuilt.
5676 * Makefile.am (hack): New macro.
5677 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
5679 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
5681 * include/config.h.in: New file.
5682 * include/config.h: Removed.
5683 * acconfig.h: New file.
5684 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
5685 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
5686 libjava_a_LIBADD): New macros.
5687 (INCLUDES): New macro.
5690 (SUFFIXES): Removed.
5692 (libjava.a): Removed.
5694 * configure: Rebuilt.
5695 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
5696 Look for headers and functions we require. Create
5699 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
5701 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
5702 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
5703 soft_lookupinterfacemethod): New functions.
5704 (PrimClass): Actually initialize the primitive classes.
5705 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
5707 * include/java-util.h: Removed java::util definition.
5708 * include/cni.h: Moved java::util here and added Properties.
5709 Added more function prototypes.
5710 * include/java-lang.h: Added mroe methods and friend declarations.
5711 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
5712 * include/jvm.h (strLengthUtf8): Add declaration.
5714 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
5716 * java/lang/{Byte,Short,Void}.java: New classes.
5717 * java/lang/Character.java (isJavaIdentifierStart,
5718 JavaIdentifierPart): New static methods.
5719 * java/lang/Number.java (byteValue, shortValue): New methods.
5721 * java/lang/String.java (intern, hashCode): Make native.
5722 * java/lang/natString.cc: New file. Handle the string pool.
5723 * Makefile.am: Build natString.o. Use CXXFLAGS.
5725 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
5726 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
5727 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
5728 * java/lang/System.java (setProperty): New private method.
5729 (initProperties): Take argument, and make native.
5730 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
5731 (currentTimeMillis): Make more robust.
5733 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
5734 * java/io/UnsupportedEncodingException.java: New exception class.
5736 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
5737 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
5739 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
5741 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
5742 * prims.cc: Added bunch of stuff.
5743 * include/cni.h: Added various definitions.
5744 * include/java-lang.h: Added Method, various friends, some macros.
5746 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
5747 * java/lang/System.java (arraycopy): Make native.
5749 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
5751 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
5752 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
5753 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
5754 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
5756 * java/lang/Runtime.java: Declare methods as native instead of
5758 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
5759 * java/lang/System.java: Comment out some stuff, for now.
5760 * java/lang/Thread.java: Re-write. Use native methods.
5761 * java/lang/NativeLang.java: Remove most of it.
5763 * java/util/natDate.cc: Native (C++) methods for Date.
5764 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
5765 * java/util/Date.java: Complete re-write.
5767 * java/io/io-defs.h: New header file.
5768 * java/io/FileDescriptor.java: Add a bunch of private methods,
5769 mostly moved from NativeIO.java and natNativeIO.cc.
5770 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
5771 * java/io/File.java: Use new code.
5772 * java/io/{FileInputStream.java.FileOutputStream.java,
5773 RandomAccessFile.java}: Use new private FileDescriptor methods.
5774 * java/io/NativeIO.java: Removed, no longer used.
5776 * java/io/StreamTokenizer.java (numericChars): Make char array.
5778 * include/*.h: Various header files used by the C++ native code.
5780 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
5781 New autoconf+automake-based setup.
5782 * prims.cc: New file for Java "primitives".