1 1999-08-24 Bryce McKinlay <bryce@albatross.co.nz>
3 * posix-threads.cc: Include <errno.h>.
5 1999-08-23 Tom Tromey <tromey@cygnus.com>
7 * boehm.cc: Undefine TRUE and FALSE.
9 * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
11 1999-08-21 Tom Tromey <tromey@cygnus.com>
13 * posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal
16 1999-08-21 Alexandre Oliva <oliva@dcc.unicamp.br>
18 * configure.in: Check for in_addr_t in netinet/in.h too. Check
20 * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
21 (HAVE_STRUCT_IP_MREQ): Added.
22 * configure, include/config.h.in: Rebuilt.
23 * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
25 * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
26 Disable if ip_mreq is not available.
28 * configure.in: Check types ssize_t and in_addr_t.
29 * acconfig.h: Undefine them.
30 * configure, include/config.h.in: Rebuilt.
32 * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded
33 function that detects the signature of getpwuid_r.
34 (init_properties): Use it.
35 * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r.
38 1999-08-20 Kresten Krab Thorup <krab@samam.daimi.au.dk>
40 * interpret.cc (continue1): Implement explicit dispatch table.
41 insn_target: Explicit interpreter switch table.
42 SAVE_PC: New macro, moves pc saving code into instructions that
44 NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
45 PC_REGISTER_ASM: New macro.
46 INLINE_SWITCH: New macro. Constrols dispatching strategy.
47 opcode: Remove local variable.
48 {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
49 (POKEI): Use _Jv_word.
51 (dupx): Change reference argument (sp) to pointer.
54 * interpret.cc: Remove instruction timing instrumentation.
56 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed
57 comment. Don't use _Jv_ClassNameSamePackage.
59 * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
60 URLPathEntry, CacheEntry}: Removed.
62 * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path
64 (.java.lo): Rule removed.
66 * Makefile.in: Rebuilt.
68 1999-08-19 Tom Tromey <tromey@cygnus.com>
70 * java/lang/natThread.cc (class locker): New class.
71 (join): Use a locker around _Jv_CondWait.
74 1999-08-18 Tom Tromey <tromey@cygnus.com>
76 * java/lang/ThreadGroup.java: Fixed now-erroneous comment.
77 * java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
79 1999-08-18 Tom Tromey <tromey@cygnus.com>
81 * include/javaprims.h ("Java"): Regenerated namespace decls.
83 1999-08-18 Kresten Krab Thorup <krab@gnu.org>
85 * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed
86 from _Jv_InternClassStrings.
88 * prims.cc (_Jv_RunMain): New function.
89 (JvRunMain): Remove gij-support.
91 * gij.cc (main): Use _Jv_RunMain.
93 * java/util/zip/ZipFile.java: Call readDirectory in constructor.
95 * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store
96 argument in temp variable.
97 (continue1): For all op_x2y insns, use temp variable for
98 intermediate value. Also remove some comments.
100 * java/lang/natClass.cc (newInstance): Call _Jv_InitClass.
101 (forName): Don't call _Jv_InitClass.
103 * java/lang/Class.java (getResource,getResourceAsStream): Implement.
105 * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor.
107 * java/util/jar/JarInputStream.java: New file.
109 * java/util/jar/JarEntry.java: New file.
111 * java/util/jar/JarFile.java: New file.
113 * java/net/URLClassLoader.java: New file.
115 * java/net/JarURLConnection.java: New file.
117 * gnu/gcj/protocol/jar/Handler.java: New file.
119 * gnu/gcj/protocol/jar/Connection.java: New file.
121 * java/security/SecureClassLoader.java: New file.
123 * java/lang/ClassLoader.java (parent): New variable.
124 (ClassLoader (ClassLoader)): new constructor.
125 (findClass): New method.
126 (loadClass): Add default 1.2 implementation.
127 (getSystemResourceAsBytes, getResourceAsBytes): Removed.
128 (readfully): Removed.
130 * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang.
131 (findSystemClass): New method.
132 (VMClassLoader): Constructor rewritten.
134 All other methods removed.
136 * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader
137 to gnu::gcj::runtime::VMClassLoader.
138 (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
140 (VMClassLoader::findSystemClass): renamed from findBootClass.
142 * Makefile.am: Add new files.
143 (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
145 * Makefile.in: Rebuilt.
147 1999-08-17 Tom Tromey <tromey@cygnus.com>
149 * java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1
151 * include/quick-threads.h (_Jv_CondWait): Don't round to 0
154 1999-08-16 Tom Tromey <tromey@cygnus.com>
156 * configure: Rebuilt.
157 * configure.in: Set DIVIDESPEC to empty string if compiler does
158 not support -fuse-divide-subroutine.
160 1999-08-14 Per Bothner <per@bothner.com>
162 * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
163 * java/lang/natClass.cc (initializeClass): Likewise.
164 * java/lang/ClassLoader.java (resolveClass0): New static method.
165 (resolveClass): Call resolveClass0.
166 (findSystemClass): No longer static.
168 1999-08-12 Alexandre Oliva <oliva@dcc.unicamp.br>
170 * include/javaprims.h (TRUE, FALSE): Redefine as themselves.
172 1999-08-11 Bryce McKinlay <bryce@albatross.co.nz>
174 * java/util/BitSet.java (set, clear, hashCode): specify "1" constant
177 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
180 * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native
183 * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if
186 * configure: Rebuilt.
187 * configure.in: Properly align --help output, fix capitalization
189 * acinclude.m4: Likewise.
191 1999-08-09 Kresten Krab Thorup <krab@gnu.org>
193 * include/javaprims.h (_Jv_word, _Jv_word2): New types.
195 * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
196 (_Jv_callInterpretedMethod): Unused. Remove.
197 (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class):
199 * include/java-cpool.h (_Jv_get, _Jv_put): Remove.
200 (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
201 * boehm.cc (_Jv_MarkObj): Use _Jv_word.
202 * interpret.cc: use _Jv_word.
203 * defineclass.cc: use_Jv_word.
204 * resolve.cc: Use _Jv_word.
205 (_Jv_ResolvePoolEntry): Return _Jv_word.
206 * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
207 * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word.
209 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
212 Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
214 * configure: Rebuilt.
215 * configure.in (sched_yield): Try librt first, then libposix4.
216 Add -lrt, -lposix4 to THREADSPEC.
218 1999-08-08 Anthony Green <green@cygnus.com>
220 * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
222 1999-08-08 Anthony Green <green@cygnus.com>
224 * defineclass.cc (_Jv_VerifyClassName): Verify array names
227 1999-08-08 Anthony Green <green@cygnus.com>
231 * include/config.h.in: Rebuilt.
232 * acconfig.h: Add INTERPRETER.
234 * Makefile.in: Rebuilt.
235 * Makefile.am (libffi_files): Identify the libffi object files for
237 (LIBFFIINCS): Define.
239 * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1):
240 Dummy definition for configurations without an interpreter.
242 * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to
243 java::lang::Boolean constructor.
245 * include/java-interp.h: Always include java-cpool.h.
247 * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0
248 when INTERPRETER not defined.
250 * java/lang/Class.h (finalize): Define.
252 * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch
253 IOException from File.getCanonicalPath.
254 (getStream): Likewise.
257 * THANKS: More thanks.
259 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
261 * resolve.cc (get_ffi_type_from_signature): Generate uint16 for
263 (_Jv_PrepareClass): Allow non-abstract classes to
264 have abstract subclasses.
265 (_Jv_ResolvePoolEntry): Revert subclass check for protected
267 * interpret.cc (continue1/perform_invoke): Don't sign extend
269 (continue1/lshl,lshr): Push long, not int.
270 (continue1/ulshr): Use UINT64, not long long.
271 * defineclass.cc (handleFieldsEnd): Handle case when all fields
273 * java/lang/natClass.cc (forName): Add call to _Jv_InitClass.
274 * java/lang/FirstThread.java (run): Add top-level exception
276 (run0): Renamed from run.
278 1999-08-08 Kresten Krab Thorup <krab@gnu.org>
280 * configure.in (--with-interpreter): Added.
281 * include/config.h.in (INTERPRETER): Added.
283 * java/lang/ClassLoader.java: File replaced.
284 * java/lang/VMClassLoader.java: New file.
285 * java/lang/natClassLoader.cc: New file.
286 * gnu/gcj/runtime/MethodInvocation.java: New file.
287 * gnu/gcj/util/path/SearchPath.java: New file.
288 * gnu/gcj/util/path/PathEntry.java: New file.
289 * gnu/gcj/util/path/DirectoryPathEntry.java: New file.
290 * gnu/gcj/util/path/ZipPathEntry.java: New file.
291 * gnu/gcj/util/path/URLPathEntry.java: New file.
292 * gnu/gcj/util/path/CacheEntry.java: New file.
293 * include/java-interp.h: New file.
294 * include/java-cpool.h: New file.
295 * include/java-insns.h: New file.
296 * defineclass.cc: New file.
297 * interpret.cc: New file.
298 * resolve.cc: New file.
300 * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass,
301 _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
302 _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc.
304 (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE,
305 STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
307 (initializeClass): Use new JV_ prefixed names. Also, call
308 ClassLoader::resolveClass instead of _Jv_ResolveClass.
310 * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING,
311 JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED,
312 JV_STATE_LINKED): New.
313 (_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
314 _Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
315 (_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
316 _Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
317 _Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
318 _Jv_InterpMethodInvocation): New friends for interpreter.
320 (CONSTANT_Class, CONSTANT_String, etc.): Moved to
321 include/java-cpool.h and renamed with JV_ prefix.
323 * include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
325 (_Jv_UnregisterClass): New decl.
327 * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added
328 class loader argument.
329 (_Jv_FindClass): Use class loader.
331 * prims.cc (_Jv_makeUtf8Const): New function.
332 (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
333 (_Jv_NewPrimArray): Ditto.
334 (_Jv_FindClassFromSignature): Ditto.
335 * java/lang/reflect/natArray.cc (newInstance): Ditto.
336 * java/lang/reflect/natMethod.cc (getType): Ditto.
338 * include/java-field.h (_Jv_Field::isRef): Make robust for
339 non-resolved contexts.
341 * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields.
342 Also, don't mark class->next field.
344 * java/lang/VirtualMachineError.java: Added FIXME note.
346 * configure.in (INTERPSPEC): New spec.
347 * libgcj.spec.in: Added INTERPSPEC.
348 * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and
349 gnu/gcj/runtime/MethodInvocation.
350 (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc.
351 (ordinary_java_source_files): Added above mentioned java classes.
353 * configure: Rebuilt.
354 * Makefile.in: Rebuilt.
356 1999-08-06 Tom Tromey <tromey@cygnus.com>
358 * configure: Rebuilt.
359 * configure.in: Look for sched_yield in -lrt.
361 1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
363 * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
364 ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA,
365 SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New
367 (toString): Print correctly when `country' is empty.
369 1999-08-04 Per Bothner <per@bothner.com>
371 * configure.in: Also do AC_SUBST for DIVIDESPEC.
373 1999-08-02 Tom Tromey <tromey@cygnus.com>
375 * aclocal.m4, configure: Rebuilt for new libtool.
377 1999-08-02 Bryce McKinlay <bryce@albatross.co.nz>
379 * boehm.cc (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
380 * exception.cc (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
381 * java/net/ServerSocket.java: Define ANY_IF.
382 (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
383 all network interfaces.
384 * java/net/DatagramSocket.java (DatagramSocket): ditto.
385 * java/net/natPlainSocketImpl.cc (bind): Expect `0.0.0.0' instead of
387 * java/net/natPlainDatagramSocketImpl (bind): Expect `0.0.0.0'
389 * java/io/natFile.cc (performMkdir): Remove FIXME.
390 * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode.
392 1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
394 * configure.in: Check for bstring.h.
395 * configure, include/config.h.in: Rebuilt.
396 * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
397 * java/net/natPlainSocketImpl.cc: Likewise.
399 1999-07-31 Tom Tromey <tromey@cygnus.com>
404 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
406 * configure.in: Check for struct hostent_data and need for
407 -D_REENTRANT for gethostbyname_r declaration.
408 * java/net/natInetAddress.cc: Define _REENTRANT if needed.
409 (lookup): Use hostent_data for fixed_buffer.
410 * configure, include/config.h.in: Rebuilt.
412 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br>
414 * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not
415 available. Don't cast memmove args to (void*).
416 * configure.in: Do not abort if memmove is not available.
418 1999-07-22 Bryce McKinlay <bryce@albatross.co.nz>
420 * java/lang/natString.cc (substring): optimize where substring is
422 * java/io/File.java (getName): don't return separator with file name.
423 * java/io/natFile.cc (attr): fix overflow.
425 Sun Jul 25 01:43:34 1999 Anthony Green <green@cygnus.com>
427 * mauve-libgcj: Disable Object Serialization tests.
429 1999-07-20 Warren Levy <warrenl@cygnus.com>
431 * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)):
432 Default to using PlainDatagramSocketImpl.
433 * java/net/PlainDatagramSocketImpl.java (close): Catch IOException.
435 1999-07-19 Tom Tromey <tromey@cygnus.com>
437 * include/stamp-h.in: New file.
439 1999-07-12 Tom Tromey <tromey@cygnus.com>
441 * java/lang/mprec.h: Protect definition of uint32_t with #ifndef
444 1999-07-07 Andrew Haley <aph@cygnus.com>
446 * include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
447 bytes to make it point after the instruction where the trap
449 (HANDLE_DIVIDE_OVERFLOW): Ditto.
451 1999-07-07 Tom Tromey <tromey@cygnus.com>
453 * mauve-libgcj: Explicitly enable formerly disabled java.text
456 * mauve-libgcj: Turn off ClassTest test. Enable java.text tests
459 Mon Jul 5 12:01:35 1999 Anthony Green <green@cygnus.com>
461 * java/net/URL.java (equals): Compare strings using String.equals.
462 * java/net/URL.java (sameFile): Ditto.
464 1999-07-02 Warren Levy <warrenl@cygnus.com>
466 * configure: Rebuilt.
467 * configure.in: Added inet_ntoa to AC_CHECK_FUNCS.
468 * include/config.h.in: Rebuilt.
469 * java/net/natPlainDatagramSocketImpl.cc: Added header checking.
470 (mcastGrp): Updated FIXME comments.
471 (setOption): Fixed typo.
472 (getOption):Implemented IP_MULTICAST_IF.
474 1999-07-02 Warren Levy <warrenl@cygnus.com>
476 * java/net/PlainDatagramSocketImpl.java (ttl): Removed.
477 * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented.
478 (getTimeToLive): Implemented.
479 (setOption): Implemented IP_MULTICAST_IF.
481 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
483 * java/lang/String.java (toString): Check for this == null and throw
484 NullPointerException.
486 1999-07-01 Warren Levy <warrenl@cygnus.com>
488 * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength
489 to count and revised comments to match.
490 * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java.
491 * gnu/gcj/convert/Input_JavaSrc.java (read): ditto.
492 * gnu/gcj/convert/Input_SJIS.java (read): ditto.
493 * gnu/gcj/convert/Input_UTF8.java (read): ditto.
494 * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto.
495 * gnu/gcj/convert/natInput_SJIS.cc (read): ditto.
497 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu>
499 * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter
500 properly as count rather than outlength.
501 * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush
502 output on overflow rather than buffer fill.
503 * java/io/BufferedReader.java (fill): Don't clear out the buffer
504 if markPos is 0 and there is still room in the buffer.
506 1999-07-01 Andrew Haley <aph@cygnus.com>
508 * include/i386-signal.h: Replace sigaction () with __sigaction ().
509 This is a workaround for a bug in glibc's pthreads package which
510 doesn't deliver any sigcontext information to a signal handler.
512 1999-06-24 Tom Tromey <tromey@cygnus.com>
514 * java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
515 * java/lang/fdlibm.h (HUGE): Conditionally define.
517 Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com>
519 * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
520 * java/lang/e_log.c: Don't use __uint32_t.
522 1999-05-27 Eric Christopher <echristo@cygnus.com>
525 * configure.in: Fixed ISO C9X and namespace collision with __uint32_t
526 * acconfig.h: Rebuilt
527 * include/config.h.in: Rebuilt
529 * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
530 java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
531 e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
532 java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
533 k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
534 java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
535 s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
536 and namespace collision with __uint32_t
538 1999-06-23 Tom Tromey <tromey@cygnus.com>
540 * java/util/zip/InflaterInputStream.java (read): Throw
541 ZipException if inflater throws a DataFormatException.
543 1999-06-23 Warren Levy <warrenl@cygnus.com>
545 * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
546 * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
547 * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
548 is not final per JDK.
549 * java/util/PropertyResourceBundle.java (handleGetObject): Method is
551 * java/util/zip/DataFormatException.java: Class extends Exception.
552 * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
553 * java/util/zip/ZipEntry.java: Class implements ZipConstants.
554 * java/util/zip/ZipInputStream.java: ditto.
555 (closeEntry): Changed method name to match JDK spec.
557 1999-06-21 Tom Tromey <tromey@cygnus.com>
559 * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
562 * Makefile.in: Rebuilt.
563 * Makefile.am (toolexeclibdir): Define as libdir when
565 * configure: Rebuilt.
566 * configure.in (USE_LIBDIR): New conditional.
568 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz>
570 * java/net/natInetAddress.cc (lookup): Preserve caller-supplied
571 hostname in returned InetAddress objects.
572 (getLocalHostname): Fix typo.
573 * java/net/InetAddress.java (getByName): Set hostname on return
575 (getLocalHost): Call lookup directly to ensure that a fully-qualified
578 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz>
580 * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network
581 interfaces if host==NULL.
582 (accept): Throw message with InterruptedIOException.
583 (getOption): Cache localAddress.
584 * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need
585 'address' for DatagramSocket.
586 (setTimeToLive): Fix compiler warnings.
587 (getOption): Cache localAddress.
588 * java/net/Socket.java (getLocalAddress): Don't need local
589 InetAddress object. Add FIXME comment about calling checkConnect().
590 * java/net/ServerSocket.java (ServerSocket(int)): Initialize
591 connection queue to 50 as per JDK 1.2 docs.
592 (ServerSocket(int,int)): Listen on all network interfaces by
593 default, per JDK 1.2 docs.
594 * java/net/PlainDatagramSocketImpl.java: Don't need 'address'.
595 Add localAddress caching.
597 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz>
599 * java/io/FilterOutputStream.java (write(byte[])): Rewrite according
601 (write(byte[],int,int)): ditto.
603 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz>
605 * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow.
607 1999-06-11 Warren Levy <warrenl@cygnus.com>
609 * mauve-libgcj: Activated java.net Mauve tests.
611 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz>
613 * java/net/natInetAddress.cc (aton): Fix typos.
614 (lookup): Use a bigger buffer size for gethostbyname_r on all
615 versions of glibc. Updated FIXME comment explaining this.
616 Modified while loops to not set herr = ERANGE to work around glibc
617 problems. Use user specified hostname in InetAddress result when
618 available (consistent with JDK).
620 1999-06-10 Warren Levy <warrenl@cygnus.com>
622 * java/io/FileDescriptor.java (FileDescriptor(String, int)):
623 Throw FileNotFoundException instead of IOException.
625 * java/io/FileInputStream.java (FileInputStream): Doesn't throw
627 * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo
628 in static field name.
629 * java/text/DecimalFormat.java: Throw IllegalArgumentException
630 throughout rather than ParseException.
632 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz>
634 * java/lang/Runtime.java (exec): Convert prog name and arguments
636 * java/lang/natPosixProcess.cc (startProcess): Fix typo in
637 environment array conversion. Preserve current environment if envp
638 not passed. Preserve PATH unless explicitly specified.
639 * java/io/DataInputStream.java (readLine): Fix case where '\r' is
640 followed by EOF. Set a flag when a line is terminated by '\r' and
641 ignore following '\n' if set.
643 1999-06-02 Warren Levy <warrenl@cygnus.com>
645 * java/net/URL.java (URL(URL,String)): Initialize port to -1.
646 Ignore context if spec is an absolute URL. Fix braindead
648 (hashCode): Use JDK 1.2 style algorithm.
649 * java/net/URLStreamHandler.java (parseURL): Reimplement to handle
650 context URL properly.
652 1999-05-30 Anthony Green <green@cygnus.com>
654 * java/net/URLStreamHandler.java (parseURL): Parse relative URLs
655 correctly. Clean up "/../" an
\e[Bd "/./" path fragments.
657 1999-05-28 Warren Levy <warrenl@cygnus.com>
659 * java/net/DatagramSocket.java (laddr): Removed.
660 (DatagramSocket): Removed attempts to get or set laddr if null.
661 (getLocalAddress): Reimplemented per spec.
662 * java/net/MulticastSocket.java (setTimeToLive): Throw exception
664 (joinGroup): Throw NullPointerException if any argument is null.
666 * java/net/PlainDatagramSocketImpl.java: Updated comments.
667 * java/net/PlainSocketImpl.java (timeout): Added.
668 (getInputStream): Added FIXME comment on how to support timeouts
670 * java/net/ServerSocket.java (ServerSocket): Added FIXME comment.
671 * java/net/Socket.java: Added FIXME comments to identify
672 conflicting specs between the JCL and JDK 1.2 documents.
673 * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY
674 if host is null. Get localport value resolved by kernel if bind
676 (receive): Implemented support for timeouts in UDP.
677 (setOption): Implemented based on natPlainSocketImpl version.
679 * java/net/natPlainSocketImpl.cc (bind): Get localport value
680 resolved by kernel if bind lport is 0.
681 (connect): Get localport value resolved by kernel if bind wasn't
682 done to set localport.
683 (accept): Implemented support for timeouts for ServerSocket.
684 (setOption): Save value for SO_TIMEOUT.
685 (getOption): Return timeout for SO_TIMEOUT.
687 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz>
689 * java/net/DatagramSocket.java (getSoTimeout): Verify class type.
690 * java/net/DatagramSocketImpl.java (getOption): Made abstract.
691 (setOption): Made abstract.
692 * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields
693 to avoid cpp conflicts in native code.
694 * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid
695 cpp conflicts in native code.
696 * java/net/ServerSocket.java (toString): Prepended "ServerSocket".
697 * java/net/Socket.java (getLocalAddress): Implemented.
698 (setTcpNoDelay): Implemented.
699 (getTcpNoDelay): Implemented.
700 (setSoLinger): Implemented.
701 (getSoLinger): Implemented.
702 (getSoTimeout): Verify class type.
703 (setSendBufferSize): Implemented.
704 (getSendBufferSize): Implemented.
705 (setReceiveBufferSize): Implemented.
706 (getReceiveBufferSize): Implemented.
707 (toString): Prepended "Socket".
708 * java/net/SocketImpl.java (toString): Rewritten.
709 (getOption): Made abstract.
710 (setOption): Made abstract.
711 * java/net/natPlainSocketImpl.cc (connect): Set localport properly.
712 (setOption): Implemented.
713 (getOption): Implemented.
715 1999-05-26 Warren Levy <warrenl@cygnus.com>
717 * java/net/DatagramSocket.java (DatagramSocket): Get local host
718 address when null. Set SO_REUSEADDR for multicasts.
719 (getSoTimeout): Implemented.
720 (setSoTimeout): Implemented.
721 * java/net/DatagramSocketImpl.java: Implement SocketOptions interface.
722 * java/net/MulticastSocket.java (getInterface): Implemented.
723 (setInterface): Implemented.
724 (setTimeToLive): Check for invalid ttl.
725 (joinGroup): Verify multicast address and security.
726 (leaveGroup): Verify multicast address and security.
728 * java/net/PlainDatagramSocketImpl.java (timeout): Added.
734 (getTTL): Implemented as non-native.
738 * java/net/ServerSocket.java (setSoTimeout): Implemented.
739 (getSoTimeout): Implemented.
740 (setSocketFactory): Made synchronized.
741 * java/net/Socket.java (setSoTimeout): Implemented.
742 (getSoTimeout): Implemented.
743 (close): Made synchronized.
744 (setSocketImplFactory): Made synchronized.
745 * java/net/SocketImpl.java: Implement SocketOptions interface.
746 * java/net/natInetAddress.cc: Corrected module name at top of file.
747 * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union.
755 (setOption): Implemented for SO_REUSEADDR.
756 (getOption): Implemented for SO_REUSEADDR.
758 1999-05-24 Tom Tromey <tromey@cygnus.com>
760 * java/util/ResourceBundle.java (getBundle): Throw
761 NullPointerException if baseName is null.
763 1999-05-22 Tom Tromey <tromey@cygnus.com>
765 * java/util/zip/ZipInputStream.java (fill): New method.
766 (compressed_len): New instance variable.
767 (getNextStream): Set it.
768 (read): Reset inflater on EOF. Only read via `super' if entry is
770 (skip): Only skip via `super' if entry is deflated.
771 * java/util/zip/Deflater.java (last_input_count): Removed.
772 * java/util/zip/natDeflater.cc (deflate): Return 0 if input array
774 (needsInput): Don't use last_input_count.
775 (setInput): Don't set last_input_count.
776 * java/util/zip/natInflater.cc (getRemaining): Return correct
778 (inflate): Return 0 if input array is length 0.
779 (setInput): Don't set last_input_count.
780 * java/util/zip/Inflater.java (last_input_count): Removed.
782 1999-05-21 Tom Tromey <tromey@cygnus.com>
784 * Makefile.in: Rebuilt.
785 * Makefile.am (INCLUDES): Added $(ZINCS).
786 * configure: Rebuilt.
787 * configure.in (ZINCS): New subst.
789 1999-05-21 Andrew Haley <aph@cygnus.com>
791 * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
792 to signal options to allow the same exceptions to be rethrown
795 1999-05-20 Andrew Haley <aph@cygnus.com>
797 * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
799 * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
800 (INIT_FPE): Exception string made more informative.
801 * include/sparc-signal.h (INIT_FPE): Exception string made more
803 * testsuite/libjava.lang/Divide_1.java: New file.
804 * testsuite/libjava.lang/Divide_1.out: New file.
806 1999-05-19 Tom Tromey <tromey@cygnus.com>
808 * aclocal.m4, configure: Rebuilt.
809 * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
811 * java/util/zip/GZIPOutputStream.java (write(byte[])): New
814 * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.
816 * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned.
818 (update): Fail in default case. Always initialize `strat'.
820 * mauve-libgcj: Enable java.util.zip.
822 1999-05-18 Warren Levy <warrenl@cygnus.com>
824 * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java,
825 DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java,
826 PlainDatagramSocketImpl.java, and SocketOptions.java.
827 (nat_source_files): Added natPlainDatagramSocketImpl.cc.
828 * Makefile.in: Rebuilt.
830 * java/net/DatagramPacket.java: New file.
831 * java/net/DatagramSocket.java: New file.
832 * java/net/DatagramSocketImpl.java: New file.
833 * java/net/MulticastSocket.java: New file.
834 * java/net/PlainDatagramSocketImpl.java: New file.
835 * java/net/SocketOptions.java: New file.
836 * java/net/natPlainDatagramSocketImpl.cc: New file.
838 1999-05-18 Tom Tromey <tromey@cygnus.com>
840 * java/util/zip/ZipOutputStream.java (level): Initial value is
841 Deflater.DEFAULT_COMPRESSION.
843 (closeEntry): Likewise.
845 (put_version): Likewise.
846 (write_entry): Likewise.
847 (put2, put4): Now return `int'.
848 (comment): Default to empty string.
849 (bytes_written): New instance variable.
851 * java/util/zip/ZipEntry.java (setComment): Limit length of
853 (setCrc): Check CRC validity.
854 (setExtra): Check argument validity.
855 (setMethod): Likewise.
857 (ZipEntry): Likewise.
858 * include/javaprims.h: Updated namespace declarations.
859 * Makefile.in: Rebuilt.
860 * Makefile.am (ordinary_java_source_files): Mention new files.
861 (nat_source_files): Likewise.
862 * java/util/zip/ZipFile.java (readu2): Throw ZipException, not
865 (getInputStream): Handle compressed entries.
866 * java/util/zip/GZIPOutputStream.java: New file.
867 * java/util/zip/GZIPInputStream.java: New file.
868 * java/util/zip/DataFormatException.java: New file.
869 * java/util/zip/CheckedInputStream.java: New file.
870 * java/util/zip/CheckedOutputStream.java: New file.
871 * java/util/zip/InflaterInputStream.java: Implemented.
872 * java/util/zip/natInflater.cc: New file.
873 * java/util/zip/Deflater.java: Implemented.
874 * java/util/zip/natDeflater.cc: New file.
875 * java/util/zip/DeflaterOutputStream.java: Implemented.
877 * java/util/zip/ZipInputStream.java (closeZipEntry): Throw
878 ZipException, not IOException.
879 * java/util/zip/ZipFile.java (readDirectory): Throw ZipException,
882 1999-05-17 Tom Tromey <tromey@cygnus.com>
884 * java/lang/natSystem.cc (init_properties): URL now points to
887 1999-05-12 Per Bothner <bothner@cygnus.com>
889 * java/util/Calendar.java (set): First call computeFields if needed.
890 * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong.
892 1999-05-12 Tom Tromey <tromey@cygnus.com>
894 * configure: Rebuilt.
895 * configure.in: Look for -ldl when using the Boehm collector.
896 Look for sched_yield in -lposix4.
898 1999-05-12 Per Bothner <bothner@cygnus.com>
900 * java/io/File.java (mkdirs): Handle a null parent directory.
902 1999-05-12 Tom Tromey <tromey@cygnus.com>
904 * include/javaprims.h: Updated namespace declarations.
905 * classes.pl (scan): Uniquify class list.
906 * Makefile.in, configure: Rebuilt.
907 * Makefile.am (nat_source_files): Added natConcreteProcess.cc.
908 (built_java_source_files): New macro.
909 (nat_headers): Added built_java_source_files.
910 (javao_files): Likewise.
911 (EXTRA_libgcj_la_SOURCES): Likewise.
912 (libgcj.zip): Create built class files.
913 ($(built_java_source_files:.java=.class)): New target.
914 (jv_convert_LDADD): Added -L$(here)/.libs.
915 * configure.in: Create links for ConcreteProcess.java and
916 natConcreteProcess.cc.
917 * java/lang/Runtime.java (exec): Create a ConcreteProcess.
918 * java/lang/natEcosProcess.cc: New file.
919 * java/lang/EcosProcess.java: New file.
920 * java/lang/PosixProcess.java: New file.
921 * java/lang/natPosixProcess.cc: New file.
923 1999-05-12 Warren Levy <warrenl@cygnus.com>
925 * java/net/PlainSocketImpl.java: Corrected copyright & header comments.
926 * java/net/SocketImpl.java: Added marker for JDK 1.2 work.
927 * java/net/natPlainSocketImpl.cc (bind): Throw BindException.
928 (connect): Throw ConnectException.
930 1999-05-11 Tom Tromey <tromey@cygnus.com>
932 * Makefile.in: Rebuilt.
933 * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec.
934 * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after
937 * Makefile.in: Rebuilt.
938 * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed
939 and it causes problems with libtool.
941 * Makefile.in, configure: Rebuilt.
942 * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs.
943 (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
944 (jv_convert_DEPENDENCIES): Added ZDEPS.
945 * configure.in (GCSPEC): Added `-L' to point to boehm-gc build
947 (THREADSPEC): Added `-L' to point to qthreads build directory.
951 * configure, Makefile.in: Rebuilt.
952 * Makefile.am (toolexeclib_DATA): New macro.
953 * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl.
954 Recognize --with-system-zlib.
956 (THREADSPEC): New subst.
957 (SYSTEMSPEC): New subst.
958 (ZLIBSPEC): New subst.
959 * libgcj.spec.in: New file.
961 1999-05-10 Tom Tromey <tromey@cygnus.com>
963 * java/io/InputStreamReader.java (read): If length is 0, return
964 0. Reset `wpos' and `wcount' when buffer has been filled and
967 * java/util/Properties.java (save): Removed `FIXME' comment.
968 (load): Invalid characters in \u now treated as terminators.
969 Make sure to append character resulting from `\' handling.
970 Cast to `char' when appending to key or value.
971 (skip_ws): Inverted test for whitespace.
973 * java/io/RandomAccessFile.java (RandomAccessFile): Removed
975 (readLine): Likewise.
976 (readFully): Implemented.
978 * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
980 * java/awt/natToolkit.cc: Added copyright header.
981 * java/util/zip/InflaterInputStream.java: Added copyright header.
983 * java/io/FilterWriter.java (FilterWriter): Removed `FIXME'
985 * java/io/SequenceInputStream.java (SequenceInputStream): Removed
987 (getNextStream): Likewise.
989 * java/util/ResourceBundle.java (partialGetBundle): Explicitly use
991 (getBundle): Don't explicitly throw null pointer exception.
993 * gnu/gcj/RawData.java: Added copyright header.
995 * include/jni.h (_Jv_va_list): Always define as va_list.
997 1999-05-9 Anthony Green <green@cygnus.com>
999 * java/text/DateFormat.java (computeInstance): Separate time
1001 (getDateTimeInstance): Ditto.
1002 (getDateTimeInstance(int,int)): New method.
1004 * Makefile.in: Rebuilt.
1005 * Makefile.am (ordinary_java_source_files): Add new classes.
1007 * java/util/PropertyResourceBundle.java: New file.
1008 * gnu/gcj/util/EnumerationChain.java: New file.
1010 1999-05-07 Tom Tromey <tromey@cygnus.com>
1012 * acconfig.h (GCJVERSION): New undef.
1013 * java/lang/natSystem.cc (init_properties): Define java.version,
1014 java.class.version, os.name, os.arch, os.version.
1015 Include <sys/utsname.h> if required.
1016 * configure: Rebuilt.
1017 * configure.in: Compute and define GCJVERSION.
1019 * java/lang/natSystem.cc (default_file_encoding): Now static.
1021 * java/lang/natCharacter.cc (isLowerCase): Use a binary search.
1023 * libtool-version: New file.
1024 * Makefile.in: Rebuilt.
1025 * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not
1028 * mauve-libgcj: Don't omit Utf8Encoding or StringTest.
1029 Comment out FieldPosition, ParsePosition, and SimpleDateFormat
1032 * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
1033 (we pick those up already).
1035 1999-05-05 Per Bothner <bothner@cygnus.com>
1037 * java/awt/*: Check a bunch of classes, a few complete, but mostly
1038 stub classes. (This is enough to get Kawa to compile against libgcj.)
1040 * gnu/gcj/RawData.java: New class.
1041 * doc/cni.sgml: Document RawData.
1043 * java/util/zip/InflaterInputStream.java: New stub class.
1044 * java/util/zip/ZipInputStream.java: New class. Partly works.
1045 * java/util/zip/ZipConstants.java: Add two (internal) constants.
1046 * java/util/zip/ZipEntry.java (timeFromDOS): New static method.
1047 * java/util/zip/ZipFile.java: Now mostly works (unless compressed).
1048 * java/util/zip/ZipOutputStream.java: Start implementation.
1050 * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro.
1051 (default_file_encoding): New global, initial value is above macro.
1052 (init_properties): Default file.encoding to default_file_encoding.
1054 * Makefile.am: Add new classes.
1056 1999-05-05 Tom Tromey <tromey@cygnus.com>
1058 * Makefile.in: Rebuilt.
1059 * Makefile.am (CLEANFILES): Don't mention $(class_files).
1060 (clean-local): New target
1062 * java/lang/natRuntime.cc: Include <ltdl.h> if required.
1063 (load, loadLibrary): Now native.
1065 * java/lang/Runtime.java (load, loadLibrary): Now native.
1066 (init): New native method.
1067 (Runtime): Use init.
1068 * prims.cc: Include <ltdl.h> if required.
1069 (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
1071 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr>
1073 * configure.in: Switch from irix threads to posix threads
1074 * configure: Regenerate.
1076 1999-04-30 Tom Tromey <tromey@cygnus.com>
1078 * Makefile.in: Rebuilt.
1079 * Makefile.am (jv_convert_LDADD): Added -lgcc.
1081 1999-04-29 Tom Tromey <tromey@cygnus.com>
1083 * java/lang/StringBuffer.java (ensureCapacity): Don't resize
1086 * java/util/Locale.java (Locale(String,String)): Implement in
1087 terms of 3-argument version; variant now defaults to empty
1089 (toString): Assume variant is not null.
1090 (equals): Assume all strings are not null.
1091 (Locale): Throw NullPointerException if any argument is null.
1093 * java/util/ResourceBundle.java (getBundle): Don't try the base
1094 name; now implicit in partialGetBundle call.
1095 (trySomeGetBundle): Search for parent bundles and call setParent
1097 (partialGetBundle): Added `langStop' argument. Use
1098 `Locale.toString' to compute bundleName.
1099 (resource_cache): New static field.
1100 (partialGetBundle): Cache the returned resource bundle. Now
1103 * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
1106 * mauve-libgcj: Enable Collator and RuleBasedCollator.
1107 * java/text/natCollator.cc (decomposeCharacter): `base' now
1109 * Makefile.in: Rebuilt.
1110 * Makefile.am (ordinary_java_source_files): Added
1111 CollationElementIterator, CollationKey, Collator,
1113 (nat_source_files): Added natCollator.cc.
1114 * java/text/RuleBasedCollator.java (ceiNext): No longer static.
1115 (compare): Pass `this' to CollationElementIterator constructor.
1116 (getCollationElementIterator): Likewise.
1117 (ceiNext): Fix off-by-one error when finding initial substring.
1118 (next): Correctly mask off bits when computing return value.
1119 Fixed return values when one string is shorter than the other.
1120 * java/text/CollationElementIterator.java (collator): New field.
1121 (CollationElementIterator): Added collator argument.
1122 (next): Call ceiNext on collator object.
1124 1999-04-26 Tom Tromey <tromey@cygnus.com>
1126 * natCollator.cc: New file.
1128 * java/util/GregorianCalendar.java (setDefaultTime): New method.
1129 (GregorianCalendar): Use it in all constructors.
1130 * java/util/Calendar.java (Calendar): Changed argument name to
1131 `zone' to match code.
1133 * gnu/gcj/text/LocaleData_en.java: Added collatorRule element.
1134 * java/text/CollationKey.java: New file.
1135 * java/text/CollationElementIterator.java: New file.
1136 * java/text/Collator.java: New file.
1137 * java/text/RuleBasedCollator.java: New file.
1139 * Makefile.in: Rebuilt.
1140 * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs.
1141 (jv_convert_LDADD): Explicltly add -lm -lc.
1143 1999-04-26 Tom Tromey <tromey@cygnus.com>
1145 * configure, Makefile.in: Rebuilt.
1146 * configure.in: Added AM_PROG_LIBTOOL.
1147 (GCOBJS): Use `.lo' form of files.
1148 (THREADOBJS): Likewise.
1149 (GCDEPS): Use `.la' form of library.
1150 (GCLIBS): Set to be the same as GCDEPS.
1151 (THREADDEPS): Use `.la' form of library.
1152 (THREADLIBS): Set to be the same as THREADDEPS.
1153 * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from
1154 toolexeclib_LIBRARIES.
1155 (libgcj_la_SOURCES): Renamed for libtoolization.
1156 (EXTRA_libgcj_la_SOURCES): Likewise.
1157 (libgcj_la_DEPENDENCIES): Likewise.
1158 (libgcj_la_LIBADD): Likewise.
1159 ($(nat_files)): Use LTCXXCOMPILE.
1160 ($(c_files)): Use LTCOMPILE.
1161 (GCJCOMPILE): New macro.
1163 (.java.o): Likewise.
1164 ($(javao_files)): Likewise.
1165 (jv_convert_LINK): Use LIBTOOL.
1166 (nat_files): Use `.lo' files.
1167 (c_files): Likewise.
1168 (javao_files): Likewise.
1169 (.class.lo): Renamed.
1170 (.java.lo): Likewise.
1171 ($(nat_files)): Depend on %.lo.
1172 ($(c_files)): Likewise.
1173 ($(javao_files)): Likewise.
1174 (jv_convert_LDADD): Link against .lo files.
1175 (jv_convert_DEPENDENCIES): Depend on .lo files.
1176 (maintainer-check): Depend on libgcj.la, but examine .a file.
1177 (jv_convert_DEPENDENCIES): Depend on libgcj.la.
1178 (libgcj_la_LDFLAGS): New macro.
1180 1999-04-23 Warren Levy <warrenl@cygnus.com>
1182 * Makefile.am: Added URLDecoder and URLEncoder.
1183 * Makefile.in: Rebuilt.
1185 * java/net/ServerSocket.java (setSocketFactory): Renamed from
1186 setSocketImplFactory to match spec.
1187 * java/net/Socket.java (getSoLinger): Changed return type to
1190 * java/net/URLDecoder.java: New file.
1191 * java/net/URLEncoder.java: New file.
1193 1999-04-21 Tom Tromey <tromey@cygnus.com>
1195 * java/lang/natString.cc (getBytes): Reverted earlier change and
1196 applied correct fix from Per Bothner.
1198 * java/lang/String.java: Don't throw
1199 UnsupportedEncodingException.
1201 * java/lang/natString.cc (getBytes): Correctly size result
1202 buffer. From Bryce McKinlay <bryce@albatross.co.nz>.
1204 1999-04-20 Andrew Haley <aph@cygnus.com>
1206 * include/sparc-signal.h: new file.
1207 * configure.in: include/sparc-signal.h added.
1208 * configure: regenerated.
1209 * prims.cc (JvRunMain): signal handling code rewritten to be more
1211 (catch_segv): ditto.
1213 * include/i386-signal.h: reorganized.
1214 * include/default-signal.h: reorganized.
1216 1999-04-19 Tom Tromey <tromey@cygnus.com>
1218 * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
1219 once. From Anthony Green.
1221 1999-04-19 Andrew Haley <aph@cygnus.com>
1223 * Makefile.in: Processed with new automake.
1225 1999-04-19 Tom Tromey <tromey@cygnus.com>
1227 * include/javaprims.h: Removed security namespace.
1229 1999-04-20 Anthony Green <green@cygnus.com>
1231 * java/io/PrintStream.java (println): Remove extra println.
1233 1999-04-19 Anthony Green <green@cygnus.com>
1235 * Makefile.in: Rebuilt.
1236 * Makefile.am (ordinary_java_source_files): Add new security files.
1238 * java/security/NoSuchAlgorithmException.java,
1239 java/security/MessageDigest.java: New files.
1241 * include/javaprims.h: Add security namespace.
1243 1999-04-16 Per Bothner <bothner@cygnus.com>
1245 * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
1246 * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class.
1247 * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class.
1248 * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class.
1249 * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class.
1250 * gnu/gcj/convert/natInput_EUCJIS.cc: New file.
1251 * gnu/gcj/convert/natInput_SJIS.cc: New file.
1252 * gnu/gcj/convert/natOutput_EUCJIS.cc: New file.
1253 * gnu/gcj/convert/natOutput_SJIS.cc: New file.
1254 * gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
1255 * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
1256 * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table.
1257 * Makefile.am: Various changes for new files and conversions.
1259 * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])):
1260 New overloading, allows greater efficiency.
1261 * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])):
1262 New overloading (for efficiency - avoids copying).
1264 * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F.
1265 * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks.
1267 * java/io/InputStreamReader.java (<init>): Set super.in correctly.
1268 * java/io/OutputStreamWriter.java (<init>): Set super.in correctly.
1269 (writeChars): Don't be quite so eager to flush.
1270 * java/io/PrintStream.java: Rewrite. Now more similar to
1271 OutputStreamWriter, using explicit UnicodeToBytes converter.
1272 Also, autoflush does not need to flush so often.
1273 * java/lang/natString.cc (getBytes): More efficient algorithm.
1274 (init(jbyteArray,jint,jint,jstring)): More efficient.
1276 1999-04-15 Warren Levy <warrenl@cygnus.com>
1278 * Makefile.am (ordinary_java_source_files): Added new Connection
1279 and Handler classes in gnu.gcj.protocol.file package.
1280 * Makefile.in: Rebuilt.
1282 * gnu/gcj/protocol/file/Connection.java: New file.
1283 * gnu/gcj/protocol/file/Handler.java: New file.
1284 * gnu/gcj/protocol/http/Connection.java (getInputStream): Check
1285 if doInput allows input.
1286 (getOutputStream): Check if doOutput allows output.
1287 * java/net/URLStreamHandler.java (parseURL): Fix indentation.
1289 1999-04-14 Tom Tromey <tromey@cygnus.com>
1291 * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make
1292 buffer larger to work around bug.
1293 From Bryce McKinlay <bryce@albatross.co.nz>.
1295 1999-04-14 Andrew Haley <aph@cygnus.com>
1297 * java/lang/natDouble.java (doubleToLongBits): ensure that all
1298 NaNs are always converted to the same long value.
1299 * java/lang/natFloat.java (floatToIntBits): ditto, but for float
1302 1999-04-13 Tom Tromey <tromey@cygnus.com>
1304 * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray;
1305 instead switch on actual element type.
1307 * Makefile.in: Rebuilt.
1308 * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS.
1310 1999-04-13 Andrew Haley <aph@cygnus.com>
1312 * include/i386-signal.h, include/default-signal.h: New files.
1313 * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception
1315 (catch_fpe): New function.
1316 * configure.in: Make link to appropriate include/java-signal.h.
1317 * configure: Rebuilt.
1318 * Makefile.am: include/java-signal.h added to dependency list.
1319 * Makefile.in: Rebuilt.
1321 1999-04-12 Urban Widmark <urban@svenskatest.se>
1323 * java/io/DataInputStream.java (readLine): Corrected handling of
1324 empty lines, from null to "".
1326 1999-04-12 Tom Tromey <tromey@cygnus.com>
1328 * Makefile.in: Rebuilt.
1329 * Makefile.am (libgcj.zip): Put `gnu' classes into zip file.
1331 * java/lang/natSystem.cc (SystemClass): New define.
1332 (init_properties): Synchronize.
1334 1999-04-08 Geoff Berry <gcb@gnu.org>
1336 * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).
1337 * natPlainSocketImpl.cc (accept): Add missing else if check
1340 1999-04-08 Tom Tromey <tromey@cygnus.com>
1342 * java/lang/Long.java (parseLong): Corrected overflow detection
1344 * java/lang/Integer.java (parseInt): Corrected overflow detection
1347 * java/io/PrintStream.java (print): Handle null string argument.
1348 (println): Likewise.
1350 1999-04-07 Warren Levy <warrenl@cygnus.com>
1352 * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)):
1353 Set count to 0 when InputStreamReader returns -1 for EOF.
1355 1999-04-07 Tom Tromey <tromey@cygnus.com>
1357 * mauve-libgcj: Omit java.text.Collator,
1358 java.text.RuleBasedCollator.
1360 1999-04-06 Tom Tromey <tromey@cygnus.com>
1362 * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch
1363 IOException from getHttpHeaders().
1364 (getHeaderFieldKey): Likewise.
1366 * include/javaprims.h: Regenerated declarations.
1368 * Makefile.in: Rebuilt.
1369 * Makefile.am (ordinary_java_source_files): Updated for removed
1372 1999-04-06 Per Bothner <bothner@cygnus.com>
1374 * java/util/zip/Adler32.java: New class.
1375 * java/util/zip/CRC32.java: Add working method bodies.
1376 * Makefile.am (ordinary_java_source_files): Add new Adler32 class.
1377 * Makefile.in: Re-generate.
1379 Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com>
1381 * gnu/gcj/protocol/http/Connection.java: New file. Rewritten
1382 from version in removed www hierarchy.
1383 * gnu/gcj/protocol/http/Handler.java: New file. Copied from
1384 version in removed www hierarchy.
1386 * gnu/gcj/www/protocol/http/Connection.java: Removed.
1387 * gnu/gcj/www/protocol/http/Handler.java: Removed.
1388 * gnu/gcj/www/protocol/http: Removed dir.
1389 * gnu/gcj/www/protocol: Removed dir.
1390 * gnu/gcj/www: Removed dir.
1392 * java/net/HttpURLConnection.java: Revised comments to indicate
1393 missing JDK 1.2 methods.
1395 * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol
1396 hierarchy rather than the gnu/gcj/www/protocol one.
1397 * java/net/URLConnection.java: Updated status comments.
1398 (setContentHandler): Look in gnu/gcj/content hierarchy rather than
1399 the gnu/gcj/www/content one.
1401 1999-04-06 Per Bothner <bothner@cygnus.com>
1403 * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc):
1404 The gen-from-JIS program is in $(CONVERT_DIR).
1406 1999-04-06 Tom Tromey <tromey@cygnus.com>
1408 * mauve-libgcj: Renamed from mauve-libjava.
1410 Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com>
1412 * java/net/HttpURLConnection.java (getResponseCode): Implemented.
1413 (getResponseMessage): Implemented.
1414 (getResponseVals): New private method.
1416 * java/net/URLConnection.java (getContent): Implemented.
1417 (setContentHandler): Convert non-alphabetic/numeric chars per spec.
1419 1999-04-05 Tom Tromey <tromey@cygnus.com>
1421 * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert.
1422 (jv_convert_SOURCES): Renamed.
1423 (EXTRA_jv_convert_SOURCES): Likewise.
1424 (jv_convert_LDFLAGS): Likewise.
1425 (jv_convert_LINK): Likewise.
1426 (jv_convert_LDADD): Likewise.
1427 (jv_convert_DEPENDENCIES): Likewise.
1429 * Makefile.in: Rebuilt.
1430 * Makefile.am (toolexeclibdir): Reference toolexecdir, not
1433 Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com>
1435 * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals
1436 method for comparison.
1438 * java/net/URLConnection.java (getContentLength): Implemented.
1439 (getContentType): Implemented.
1440 (getContentEncoding): Implemented.
1441 (getExpiration): Implemented.
1442 (getDate): Implemented.
1443 (getLastModified): Implemented.
1444 (getHeaderFieldInt): Implemented.
1445 (getHeaderFieldDate): Implemented.
1447 Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com>
1449 * java/net/URLConnection.java (toString): Implemented.
1450 (setContentHandlerFactory): Implemented.
1451 (setContentHandler): Wrote new private helper method.
1453 1999-04-01 Tom Tromey <tromey@cygnus.com>
1455 * Makefile.in: Rebuilt.
1456 * Makefile.am ($(java_source_files:.java=.class): Reverted change
1457 of 1999-03-31; we always want to build all the .class files.
1458 Depend on java_source_files, not libgcj.zip.
1459 (nat_headers): Define in terms of ordinary_java_source_files.
1461 1999-03-31 Tom Tromey <tromey@cygnus.com>
1463 * Makefile.in: Rebuilt.
1464 * Makefile.am (special_java_source_files): New macro.
1465 (java_source_files): Use it.
1466 (ordinary_java_source_files): New macro.
1467 (java_source_files): Use it.
1468 ($(ordinary_java_source_files:.java=.class)): Renamed to avoid
1469 creating headers for those files with hand-maintained headers.
1471 * include/javaprims.h: Regenerated namespace declarations.
1472 * classes.pl (scan): Include [0-9] in regexp for matching class
1473 names; for java.util.zip.CRC32.
1475 * Makefile.in: Rebuilt.
1476 * Makefile.am (nat_headers): Redefined to generate all possible
1479 * java/util/zip/ZipException.java: In package java.util.zip, not
1482 1999-03-30 Tom Tromey <tromey@cygnus.com>
1484 * configure: Rebuilt.
1485 * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for
1486 eh-common.h when not building in tree with gcc.
1488 * Makefile.in: Rebuilt.
1489 * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS)
1490 $(libgcj_a_OBJECTS)): Changed how we list files that depend on
1492 ($(java_source_files:.java=.class)): New target.
1494 * Makefile.in: Rebuilt.
1495 * Makefile.am (java_source_files): Added
1496 java/net/HttpURLConnection.java and
1497 gnu/gcj/www/protocol/http/Connection.java.
1499 Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com>
1501 * gnu/gcj/www/protocol/http/Connection.java: New file.
1502 * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented.
1503 * java/net/HttpURLConnection.java: New file.
1504 * java/net/URLConnection.java (getHeaderField): Implemented default.
1505 (getHeaderFieldKey): Implemented default method.
1507 1999-03-30 Tom Tromey <tromey@cygnus.com>
1509 * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
1511 * java/util/zip/Deflater.java: Added copyright header.
1512 * java/util/zip/CRC32.java: Added copyright header.
1514 * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
1515 that it is automatically generated.
1516 ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
1518 * gnu/gcj/convert/BytesToUnicode.java,
1519 gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java,
1520 gnu/gcj/convert/Input_EUCJIS.java,
1521 gnu/gcj/convert/Input_UTF8.java,
1522 gnu/gcj/convert/JIS0208_to_Unicode.cc,
1523 gnu/gcj/convert/JIS0212_to_Unicode.cc,
1524 gnu/gcj/convert/Output_8859_1.java,
1525 gnu/gcj/convert/Output_JavaSrc.java,
1526 gnu/gcj/convert/Output_UTF8.java,
1527 gnu/gcj/convert/UnicodeToBytes.java,
1528 gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers.
1530 * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
1532 * Makefile.in, configure: Rebuilt.
1533 * configure.in (TESTSUBDIR): Enable if testsuite subdir exists,
1534 not if test subdir exists.
1535 (--enable-gcj-classes): Removed; gcj always used to generate
1537 (JAVA, JAVAC): Removed.
1538 (--enable-single-compilation, --enable-source-compilation):
1541 (NATIVE): New conditional.
1542 * Makefile.am (toolexecdir): Renamed from tooldir to allow
1543 `install-exec' to work.
1544 (toolexeclibdir): Likewise.
1545 (toollib_LIBRARIES): Likewise.
1546 (AM_MAKEFLAGS): Don't pass tooldir.
1548 (javao_files): Redefined.
1549 (java_source_files): New macro.
1550 (c_source_files): New macro.
1551 (c_files): Redefined in terms of c_source_files.
1552 (java_io_files, java_lang_files, java_net_files, java_text_files,
1553 java_util_files, gnu_files, java_files): Removed.
1554 (class_io_files, class_lang_files, class_net_files,
1555 class_text_files, class_util_files, class_gnu_files, class_files):
1557 (nat_source_files): New macro.
1558 (nat_files): Redefined in terms of nat_source_files.
1559 (EXTRA_libgcj_a_SOURCES): Added c_source_files,
1560 java_source_files. Removed no-such-file.c.
1562 (ETAGS_ARGS): Removed.
1563 (TAGS_DEPENDENCIES): Likewise.
1564 (libgcj.zip): Depend on java_source_files. Use $(here) and not
1566 (src_io_files, src_lang_files, src_text_files, src_util_files,
1567 src_gnu_files): Removed.
1568 Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code.
1569 (BUILT_SOURCES): Removed.
1570 (header-check): New target.
1572 (noinst_PROGRAMS): New macro.
1573 ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize
1575 ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise.
1576 (gen-from-JIS): Build in top directory.
1577 (convert_source_files): New macro.
1578 (convert_SOURCES): New macro.
1579 (convert_LDFLAGS): Likewise.
1580 (convert_LINK): Likewise.
1581 (convert_LDADD): Likewise.
1582 (convert_DEPENDENCIES): Likewise.
1584 (gen-from-JIS): Removed.
1585 (gen_from_JIS_SOURCES): New macro.
1586 (gen_from_JIS_LDADD): Likewise.
1587 (gen_from_JIS_DEPENDENCIES): Likewise.
1589 * configure: Rebuilt.
1590 * configure.in (CANADIAN): Set to `yes', not `canadian'.
1591 (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
1592 when defining conditional.
1594 Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com>
1596 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
1597 The Unicode Consortium does not permit their re-distribution.
1598 * Makefile.am, Makefile.in: Add comments with URLs for removed files.
1599 (JIS0208.h, JIS0212.h): Do not depend on removed files.
1601 Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com>
1603 * natSystem.c (init_properties): Use malloc, realloc, free after all.
1605 Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com>
1607 * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
1608 from Unicode Consortium.
1609 * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
1610 * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
1611 * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}:
1612 New tables, generated using gen-from-JIS.
1613 * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class.
1614 * gnu/gcj/convert/Output_UTF8.java: Fix bug.
1615 * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class.
1616 * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class.
1618 * gnu/gcj/convert/Convert.java: New application.
1619 * Makefile.am, Makefile.in (convert): New program, using Convert.
1620 Build the various JIS conversion tables (in maintainer mode).
1622 Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com>
1624 * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed.
1626 * java/net/URL.java (URL): Deal with null property value. Use "."
1627 as separator in building class name.
1628 * java/net/URLConnection.java: Implemented majority of stubbed methods.
1629 * java/net/URLStreamHandler.java (parseURL): Use "" in string
1630 manipulations instead of 'null'. Comment cleanup. Use 0 for the
1631 beginning of the substring rather than 'start'.
1633 1999-03-26 Tom Tromey <tromey@cygnus.com>
1635 * include/java-chartables.h: Rebuilt.
1636 * include/java-chardecomp.h: New file.
1637 * chartables.pl: Generate output files directly. Added support
1638 for generating decomposition header.
1639 (canonical_decomposition, full_decomposition): New globals.
1640 (DECOMPOSITION): New constant.
1641 (process_char): Call add_decomposition.
1642 (add_decomposition): New sub.
1643 (write_decompositions): New sub.
1645 1999-03-25 Tom Tromey <tromey@cygnus.com>
1647 * java/text/CollationElementIterator.java: New file.
1649 * mauve-libjava: Omit StringTest.
1651 Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com>
1653 * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs
1654 without a '/' when parsing protocol. Handle ref outside of parseURL.
1655 (hashCode): Implemented.
1656 (set): Don't expand -1 to default port.
1657 (getDefaultPort): Removed.
1659 * java/net/URLStreamHandler.java (parseURL): Implemented.
1660 (toExternalForm): Implemented.
1662 1999-03-23 Tom Tromey <tromey@cygnus.com>
1664 * java/text/BreakIterator.java (getSentenceInstance):
1666 * gnu/gcj/text/SentenceBreakIterator.java: New file.
1668 * Makefile.in: Rebuilt.
1669 * Makefile.am (nat_headers): Added IllegalAccessException.
1670 * java/lang/natClass.cc (newInstance): Throw
1671 IllegalAccessException, not IllegalAccessError.
1672 Include IllegalAccessException.h.
1674 1999-03-22 Tom Tromey <tromey@cygnus.com>
1676 * gnu/gcj/text/LineBreakIterator.java: New file.
1677 * java/text/BreakIterator.java (getLineInstance): Implemented.
1679 * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made
1680 copy constructor private.
1681 (previous, next): Removed erroneous comment about line
1683 (previous): Correctly recognize break between non-letter on the
1684 left and letter on the right. Handle apostrophes correctly.
1686 * java/text/BreakIterator.java (getWordInstance): Implemented.
1687 * gnu/gcj/text/WordBreakIterator.java: New file.
1688 * gnu/gcj/text/CharacterBreakIterator.java: Extend
1690 * gnu/gcj/text/BaseBreakIterator.java: New file.
1692 1999-03-19 Tom Tromey <tromey@cygnus.com>
1694 * java/text/BreakIterator.java: New file (partially stubbed out).
1695 * gnu/gcj/text/CharacterBreakIterator.java: New file.
1697 * include/config.h.in: Rebuilt.
1698 * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
1699 (HAVE_TIMEZONE): Likewise.
1700 * configure: Rebuilt.
1701 * configure.in: Added timezone checks.
1702 * java/util/natGregorianCalendar.cc (computeTime): Adjust for
1705 Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com>
1707 * gnu/gcj/convert/BytesToUnicode.java: New abstract class.
1708 * gnu/gcj/convert/UnicodeToBytes.java: New abstract class.
1709 * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class.
1710 * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class.
1711 * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class.
1712 * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class.
1713 * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode.
1714 * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes.
1716 * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag.
1717 (BSD_COMP): Kludge needed for Solaris2.
1719 Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com>
1721 * java/net/URL.java (URL(java.net.URL, string): Moved code to
1722 URL(java.net.URL, string, URLStreamHandler) and call it with a
1723 null handler. In latter constructor, added SecurityManager check.
1724 (set): Expect null handler on bad protocol rather than an exception.
1725 (setURLStreamHandler): Simplified exception handling; return null
1726 on invalid protocol.
1728 1999-03-18 Tom Tromey <tromey@cygnus.com>
1730 * java/text/DecimalFormat.java (format(long,...)): Rewrote.
1732 * java/lang/natSystem.cc (setOut, setIn, setErr): New native
1734 Include PrintStream.h, InputStream.h.
1735 * java/lang/System.java (ForwardingInputStream,
1736 ForwardingOutputStream): Removed.
1737 (setErr, setIn, setOut): Now native.
1739 Reverted patch from 1999-02-12 to work around problem in
1741 * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
1742 (_Jv_eh_free): Use free.
1744 * java/io/natFileDescriptorPosix.cc (open): Allocate enough space
1745 for path name. Minor formatting fixes.
1747 * boehm.cc (_Jv_MarkObj): Always mark `methods' field.
1749 * prims.cc (fail_on_finalization): New function.
1750 (_Jv_GCWatch): Likewise.
1752 * prims.cc (JvRunMain): Initialize `nullp'.
1753 (nullp): New global.
1754 (catch_segv): Throw nullp.
1756 * Makefile.in: Rebuilt.
1757 * Makefile.am (ZIP): In "null target" case, zip is found in the
1760 * prims.cc (_Jv_PrimClass): Initialize all elements of class
1764 * java/lang/StringBuffer.java (StringBuffer): Don't use
1765 ensureCapacity to set initial capacity.
1766 (capacity): Subtract `length' from return result.
1768 Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com>
1770 * java/io/natFileDescriptorPosix.cc (open): Throw
1771 FileNotFoundException, but with filename and errno in msg.
1773 Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com>
1775 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed;
1776 functionality folded into java/net/URL.java per spec.
1778 * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather
1779 than EEXIST for throwing FileNotFoundException.
1781 * java/net/URL.java: Folded in default URLStreamHandlerFactory
1782 algorithm per JDK 1.2 doc. Added SecurityManager checks.
1784 * java/net/URLStreamHandler.java (parseURL): Added stub.
1786 1999-03-15 Andrew Haley <aph@cygnus.com>
1788 * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off
1791 1999-03-15 Andrew Haley <aph@cygnus.com>
1793 * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock
1796 1999-03-12 Tom Tromey <tromey@cygnus.com>
1798 * prims.cc (catch_segv): New function.
1799 Include <signal.h> if HANDLE_SEGV defined. Include
1800 NullPointerException.h.
1801 (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
1804 * java/text/SimpleDateFormat.java (equals): Ensure that object is
1805 a SimpleDateFormat, not just a DateFormat.
1806 (defaultCenturyStart, formatData, pattern): Now private.
1807 (append): Now `final'. Use `NumberFormat.format'.
1809 (SimpleDateFormat): Turn off groupin in NumberFormat object.
1811 * java/lang/natString.cc (indexOf): Add `fromIndex' to successful
1814 * java/text/MessageFormat.java (format): Use default MessageFormat
1816 (parse, parseObject): Wrote.
1818 * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg
1821 1999-03-12 Andrew Haley <aph@cygnus.com>
1823 * java/lang/String.java (indexOf): Replace with native method for
1825 * java/lang/natString.cc (IndexOf): As above.
1827 * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)):
1828 Argument check corrected.
1829 (init(jbyteArray,jint,jint,jstring)): Likewise.
1831 * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK
1832 1.2 compliant method.
1834 * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods
1836 * java/lang/Float.java (byteValue, shortValue): Likewise.
1838 1999-03-11 Tom Tromey <tromey@cygnus.com>
1840 * java/text/DecimalFormat.java (parse): Wrote.
1842 * java/text/ChoiceFormat.java (parse): Set error index on
1843 ParsePosition object.
1845 * java/lang/Integer.java (parseInt): Throw exception on overflow
1846 when intermediate result is most negative number. Changed
1847 overflow detection as well.
1848 * java/lang/Long.java (parseLong): Likewise.
1850 * configure, Makefile.in: Rebuilt.
1851 * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set
1852 CANADIAN when building in source tree that doesn't include gcc.
1853 * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to
1856 * java/text/ChoiceFormat.java (nextDouble): Correct some
1857 off-by-one errors when masking or adding.
1859 * java/text/DecimalFormat.java (format): Fill in FieldPosition
1860 parameter, if given. Use `%', not IEEEremainder.
1861 (scanFix): Throw error if multiplier already set.
1862 (computePattern): Wrote.
1864 1999-03-11 Andrew Haley <aph@cygnus.com>
1866 * java/text/ChoiceFormat.java (mantissaBits): Use correct value of
1868 (nextDouble): Corrected masking logic. Handle interaction between
1869 `next' and negative numbers.
1871 Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com>
1873 * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created.
1874 * java/net/URL.java: Added general comments.
1876 1999-03-10 Tom Tromey <tromey@cygnus.com>
1878 * java/text/ChoiceFormat.java (parse): Wrote.
1880 * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'.
1882 * java/text/MessageFormat.java (MessageFormatElement.setLocale):
1883 Create ChoiceFormat objects.
1884 (format): Special-case ChoiceFormat.
1885 (scanFormatElement): Include { and } in generated style string.
1887 1999-03-09 Tom Tromey <tromey@cygnus.com>
1889 * java/text/ChoiceFormat.java: New file.
1891 Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com>
1893 * java/net/BindException.java: Created.
1894 * java/net/ConnectException.java: Created.
1895 * java/net/ContentHandler.java: Created.
1896 * java/net/ContentHandlerFactory.java: Created.
1897 * java/net/FileNameMap.java: Created.
1898 * java/net/MalformedURLException.java: Created.
1899 * java/net/NoRouteToHostException.java: Created.
1900 * java/net/ProtocolException.java: Created.
1901 * java/net/ServerSocket.java (@author): Fixed typo.
1902 * java/net/Socket.java (@author): Fixed typo.
1903 * java/net/SocketImpl.java (@author): Fixed typo.
1904 * java/net/SocketImplFactory.java (@author): Fixed typo.
1905 * java/net/URL.java: Created - nearly complete.
1906 * java/net/URLConnection.java: Created - near-empty stub.
1907 * java/net/URLStreamHandler.java: Created - incomplete stub.
1908 * java/net/URLStreamHandlerFactory.java: Created.
1909 * java/net/UnknownServiceException.java: Created.
1911 1999-03-09 Tom Tromey <tromey@cygnus.com>
1913 * java/lang/System.java (ForwardingInputStream): New class.
1914 (ForwardingOutputStream): Likewise.
1915 (in, out, err): Now `final' forwarding streams.
1916 (setIn, setOut, setErr): Use appropriate method on forwarding
1919 * java/text/MessageFormat.java (MessageFormatElement): Now `final'
1922 Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com>
1924 * java/util/zip/CRC32.java: New class (just an incomplete stub).
1925 * java/util/zip/Checksum.java: New interface (complete).
1926 * java/util/zip/Deflater.java: New class (near-empty stub).
1927 * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub).
1928 * java/util/zip/ZipConstants.java: New interface (near-empty stub).
1929 * java/util/zip/ZipEntry.java: New class (complete).
1930 * java/util/zip/ZipException.java: New class (complete).
1931 * java/util/zip/ZipFile.java: New class (incomplete stub).
1932 * java/util/zip/ZipOutputStream.java: New class (incomplete stub).
1934 1999-03-09 Tom Tromey <tromey@cygnus.com>
1936 * java/text/MessageFormat.java (MessageFormatElement): Removed
1937 `public' specifiers.
1939 * java/text/DecimalFormat.java (scanFormat): Increment index
1940 before processing exponential format. Fixed a couple typos in
1942 (format): Correct normalization of exponent.
1944 1999-03-08 Tom Tromey <tromey@cygnus.com>
1946 * java/text/SimpleDateFormat.java (parse): Throw
1947 IllegalArgumentException, not ParseException.
1949 1999-03-05 Tom Tromey <tromey@cygnus.com>
1951 * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale
1952 when constructing DateFormatSymbols. Initialize numberFormat
1953 field of superclass.
1955 * java/text/DateFormat.java (equals): Rewrote.
1956 (getAvailableLocales): New method.
1957 (getDateInstance): New methods.
1958 (getDateTimeInstance): Likewise.
1959 (getTimeInstance): Likewise.
1960 (getInstance): New method.
1961 (computeInstance): New method.
1963 * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed
1965 (safeGetResource): New method.
1966 (DateFormatSymbols): Use Locale paramater.
1967 (equals): Now protected.
1968 Made instance variables private.
1970 1999-03-04 Tom Tromey <tromey@cygnus.com>
1972 * java/text/DecimalFormat.java: New file.
1974 * java/text/NumberFormat.java (groupingUsed,
1975 maximumFractionDigits, maximumIntegerDigits,
1976 minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
1978 (setDecimalSeparatorAlwaysShown, setMultiplier,
1979 setPositivePrefix): Removed.
1980 (setMinimumFractionDigits, setMaximumFractionDigits):
1982 (format): Now final.
1983 Added many new methods.
1985 * Makefile.in: Rebuilt.
1986 * Makefile.am (gnu_files): New macro.
1987 (java_files): Added gnu_files.
1988 (class_gnu_files): New macro.
1989 (class_files): Use it.
1990 (src_gnu_files): New macro.
1991 (gnu.o): New target.
1992 (javao_files): Added gnu.o.
1994 * gnu/gcj/text/LocaleData_en_US.java: New file.
1995 * gnu/gcj/text/LocaleData_en.java: New file.
1996 * java/text/DecimalFormatSymbols.java: Import ResourceBundle.
1997 (DecimalFormatSymbols): Use ResourceBundle to find resources.
1998 (safeGetString): New method.
1999 (safeGetChar): Likewise.
2001 1999-03-03 Tom Tromey <tromey@cygnus.com>
2003 * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New
2006 * java/text/FieldPosition.java (equals): Don't check for null
2007 object; instanceof does this.
2009 * java/util/Locale.java (clone): New method.
2012 Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com>
2014 * doc/cni.sgml: New file.
2016 1999-03-03 Tom Tromey <tromey@cygnus.com>
2018 * prims.cc (_Jv_Abort): Mention libgcj, not libjava.
2020 * java/text/DecimalFormatSymbols.java: New file.
2022 1999-03-02 Tom Tromey <tromey@cygnus.com>
2024 * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it
2026 * configure: Rebuilt.
2027 * configure.in: Check for sys/filio.h.
2029 * java/lang/Runtime.java (checkLink): Throw NullPointerException
2031 (load): Always throw UnsatisfiedLinkError.
2032 (loadLibrary): Likewise.
2034 1999-03-02 Anthony Green <green@cygnus.com>
2036 * LIBGCJ_LICENSE: New file.
2037 * LIBJAVA_LICENSE: Removed.
2038 * Many files: libjava now libgcj.
2040 1999-03-02 Tom Tromey <tromey@cygnus.com>
2042 * include/java-chartables.h: Rebuilt.
2043 * chartables.pl (print_block): Make table `const'.
2044 (print_numerics): Likewise.
2045 (print_single_map): Likewise.
2046 (print_all_block): Likewise.
2047 (print_case_table): Likewise.
2048 (print_fast_tables): Likewise.
2049 * java/lang/natCharacter.cc (table_search): `table' argument now
2052 1999-03-01 Tom Tromey <tromey@cygnus.com>
2054 * java/util/Date.java (before, after): Inverted logic.
2056 * java/util/Date.java (parse): Handle case where first character
2057 in string is open parenthesis.
2058 (skipParens): Rewrote.
2060 * java/lang/reflect/natArray.cc: Include <stdlib.h>.
2061 * java/lang/reflect/natField.cc: Include <stdlib.h>.
2063 * java/util/Date.java (parse): Correctly compute beginning of
2066 * java/util/Hashtable.java (get): Throw NullPointerException if
2068 (containsKey): Likewise.
2070 * java/util/Properties.java (list): Truncate value to 37
2071 characters and add `...'.
2073 * java/lang/Byte.java (parseByte): Pass `radix' to
2076 * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not
2078 Include System.h, PrintStream.h.
2080 * java/lang/natSystem.cc (init_properties): Don't use malloc,
2083 * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it
2085 * configure: Rebuilt.
2086 * configure.in: Check for getpwuid_r. Look for `pwd.h', not
2089 * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
2091 * java/lang/SecurityManager.java: Import java.net.*.
2092 (checkMulticast): New methods.
2094 Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com>
2096 * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule.
2097 (nat_files): Add java/lang/reflect/natArray.o.
2098 (nat_headers): Add Field.h and NoSuchFieldException.h.
2100 * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
2101 _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
2102 (_Jv_FromReflectedField): Fix buglet.
2103 * include/jvm.h (_Jv_NewMultiArray): New declaration.
2104 * include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
2105 * prims.cc (_Jv_Abort): Include message in print-out.
2107 * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring).
2108 (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
2109 * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
2111 * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h.
2112 * include/config.h.in (HAVE_PWD_H): New feature macro.
2113 * java/lang/natSystem.cc (init_properties): Set file.encoding,
2114 user.name, user.home, user.dir.
2116 * java/lang/reflect/Array.java: New class.
2117 * java/lang/reflect/natArray.cc: New native methods.
2118 * include/javaprims.h: Declare java::lang::reflect::Array.
2120 * java/lang/Class.h (getField): New private method. Add friends.
2121 * java/lang/Class.java (getField): Add private overload.
2122 * java/lang/natClass.cc (getField, getField, getDeclaredField,
2123 getDeclaredMethods): Add working implementations.
2124 * java/lang/reflect/Field.java, java/lang/reflect/natField.cc:
2125 Finish implementation, except for access control.
2127 * java/lang/reflect/Modifier.java (toString): New overload.
2128 * include/java-method.h: New file.
2129 * java/lang/reflect/Method.java (index): Replaced by offset field.
2130 Remove various private fields - get them from _Jv_Field instead.
2131 * java/lang/reflect/natMethod.cc (getModifiers, getName, getType):
2132 New method implementations.
2134 * java/text/NumberFormat.java: Add a bunch of methods.
2136 Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com>
2138 * java/lang/StringBuffer.java (getChars): Fix bounds checks.
2140 1999-02-26 Tom Tromey <tromey@cygnus.com>
2142 * include/config.h.in: Rebuilt.
2143 * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT,
2144 GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R,
2145 HAVE_GETHOSTBYADDR_R): New defines.
2146 * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and
2147 gethostbyaddr_r if available.
2149 * configure: Rebuilt.
2150 * configure.in: Check for gethostbyname_r, gethostbyaddr_r.
2152 * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked.
2156 * include/jvm.h (_Jv_AllocBytesChecked): Declare.
2157 * prims.cc (_Jv_AllocBytesChecked): New function.
2159 * Makefile.in: Rebuilt.
2160 * Makefile.am (SUBDIRS): Removed `test'.
2161 * configure: Rebuilt.
2162 * configure.in: Don't build test/Makefile.
2163 * test/*: Removed all files.
2165 Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com>
2167 * java/lang/reflect/Constructor.java: Make class final to match spec.
2168 * java/lang/reflect/Method.java: Ditto.
2170 1999-02-25 Tom Tromey <tromey@cygnus.com>
2172 * java/net/natInetAddress.cc: Include <sys/types.h> before
2174 * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before
2177 * java/net/natInetAddress.cc: Declare gethostname if required.
2178 * include/config.h.in: Rebuilt.
2179 * acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
2180 * configure: Rebuilt.
2181 * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is
2182 declared in unistd.h.
2184 1999-02-24 Tom Tromey <tromey@cygnus.com>
2186 * Makefile.in: Rebuilt.
2187 * Makefile.am (java/io/FileDescriptor.h): Removed target.
2188 * java/io/FileDescriptor.java (FileDescriptor): Changed protection
2189 from private to "none".
2191 * include/javaprims.h: Regenerated class declarations with new
2193 * classes.pl (scan): Only generate decls for java.lang, java.io,
2196 1999-02-24 Tom Tromey <tromey@cygnus.com>
2198 * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads.
2199 (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
2201 1999-02-23 Tom Tromey <tromey@cygnus.com>
2203 * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if
2204 not already defined.
2205 * java/io/natFile.cc (_REENTRANT): Only define if not already
2207 * include/config.h.in: Rebuilt.
2208 * acconfig.h (HAVE_BOEHM_GC): New define.
2209 * configure: Rebuilt.
2210 * configure.in: Define HAVE_BOEHM_GC if using it.
2211 * posix-threads.cc: Include boehm-config.h and gc.h if
2213 * include/posix-threads.h: Added explanatory note about Boehm GC.
2215 * java/io/BufferedReader.java (readLine): Only return null when
2216 EOF seen before any characters read. (In particular, an empty
2217 line should not return null.)
2219 * java/io/BufferedInputStream.java (read): Only refill once per
2222 * mauve-libjava: Added java.text.StringCharacterIterator.iter,
2223 java.lang.Character.classify12, java.lang.String.hash,
2224 java.text.FieldPosition.Test, java.text.ParsePosition.Test,
2225 java.text.SimpleDateFormat.getAndSet2DigitYearStart
2227 * java/text/StringCharacterIterator.java (setIndex): No error if
2229 (next): Check for `pos == end', not `end - 1'.
2230 (StringCharacterIterator): Allow `pos == end'. Explicitly check
2231 for null text in each constructor.
2232 (clone): Fixed order of arguments to constructor.
2234 1999-02-22 Tom Tromey <tromey@cygnus.com>
2236 * include/config.h.in: Rebuilt.
2237 * acconfig.h (HAVE_INET6): New define.
2238 (HAVE_SOCKLEN_T): Likewise.
2239 * java/net/PlainSocketImpl.java: Added copyright header.
2240 * java/net/natPlainSocketImpl.cc: Added copyright header.
2241 (union SockAddr): Use HAVE_INET6, not AF_INET6.
2243 (connect): Likewise.
2245 (socklen_t): New typedef.
2246 (accept): Use socklen_t.
2247 * java/net/natInetAddress.cc: Added copyright header.
2248 (HAVE_GETHOSTNAME): Don't define.
2249 (HAVE_INET_ADDR): Likewise.
2250 (lookup): Fixed typo.
2251 (aton): Don't use `address' as name of local variable.
2252 (lookup): Use HAVE_INET6, not AF_INET6.
2254 * configure: Rebuilt.
2255 * configure.in: Look for functions inet_aton, inet_addr,
2256 gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
2257 Check for socklen_t typedef.
2259 * exception.cc (__throw): Declare as __noreturn__.
2261 Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com>
2263 * Makefile.am, Makefile.in: Also build java/net.
2264 (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
2266 * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT.
2267 * java/util/natGregorianCalendar.cc: #define _REENTRANT.
2269 * prims.cc (_Jv_malloc, _Jv_Free): New functions.
2270 * include/cni.h (JvMalloc, JvFree): New inline functions.
2271 (JvThrow): Add __noreturn__ attribute.
2272 * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
2273 (_Jv_Throw): Add __noreturn__ attribute.
2275 * java/net/PlainSocketImpl.java: Init fnum to -1.
2276 * java/net/ServerSocket.java: Add missing throws clauses.
2277 * java/lang/Socket.java: For the constructor taking a SocketImpl,
2278 don't call create on the latter. Instead, other constructors
2279 have to explicitly call SocketImpl.create.
2280 * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen
2281 from size_t to int, to match ::accept prototype.
2282 * java/net/natInetAddress.cc: Use JvFree rather than free.
2285 1999-02-22 Tom Tromey <tromey@cygnus.com>
2287 * include/javaprims.h: Added new classes.
2288 * java/text/StringCharacterIterator.java: New file.
2289 * java/text/CharacterIterator.java: New file.
2291 * java/text/ParseException.java (errorOffset): Now private.
2293 Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com>
2295 * java/net: New package.
2296 * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java,
2297 Socket.java,SocketException.java,SocketImpl.java,
2298 SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc,
2299 natPlainSocketImpl.cc}: New classes.
2301 * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
2302 <netinet.in.h>, <arpa/inet.h> and <netdb.h>.
2303 * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H,
2304 HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H.
2306 * classes.pl: Translate package into "namespace", not "class".
2307 * include/javaprims.h: Update class list, using "namespace".
2309 1999-02-21 Tom Tromey <tromey@cygnus.com>
2311 * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS):
2312 Define when appropriate.
2314 1999-02-20 Tom Tromey <tromey@cygnus.com>
2316 * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f
2317 as a single byte and \u07ff as two bytes.
2318 (_Jv_GetStringUTFLength): Likewise.
2319 * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
2320 with 0x0f, not 0x1f.
2322 1999-02-19 Tom Tromey <tromey@cygnus.com>
2324 * java/io/DataOutputStream.java (writeUTF): When encoding
2325 character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
2326 * java/io/DataInputStream.java (readUTF): Mask second byte of
2327 3-byte character with 0x3f, not 0x1f.
2329 * java/io/DataInputStream.java (readLong): Cast result of
2330 readUnsignedByte to long before using.
2332 * java/io/FileInputStream.java (finalize): Only finalize `fd' if
2335 * mauve-libjava: Re-enabled java.io.DataInputOutput.
2336 * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
2337 argument to avoid warning.
2338 * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
2339 argument to avoid warning.
2341 1999-02-18 Tom Tromey <tromey@cygnus.com>
2343 * mauve-libjava: Omit java.io.DataInputOutput and
2344 java.io.Utf8Encoding.
2346 1999-02-17 Tom Tromey <tromey@cygnus.com>
2348 * Makefile.in: Rebuilt.
2349 * Makefile.am (nat_headers): Added InterruptedIOException.h.
2350 * java/io/natFileDescriptorPosix.cc: Include
2351 InterruptedIOException.h, Thread.h.
2352 (write): Throw InterruptedIOException when required.
2354 * posix-threads.cc: Include <signal.h>.
2355 (_Jv_ThreadInterrupt): New function.
2357 (handle_intr): New function.
2358 (_Jv_InitThreads): Register handle_intr via sigaction.
2359 * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt.
2360 * include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
2361 * include/quick-threads.h (_Jv_ThreadInterrupt): New function.
2362 * include/no-threads.h (_Jv_ThreadInterrupt): New function.
2364 1999-02-19 Andrew Haley <aph@cygnus.com>
2366 * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
2368 (ThreadGroup (int)): Set the maximum priority of the initial
2371 1999-02-18 Andrew Haley <aph@cygnus.com>
2373 * java/lang/natClass.cc (forName): Check for the case where a
2374 classname is the name of an array and call FindClassFromSignature
2377 1999-02-18 Andrew Haley <aph@cygnus.com>
2379 * java/lang/StringBuffer (insert (int, String)): Move up any
2380 characters above the insert position and increase the length of
2381 the string buffer by the length of the argument.
2382 (insert (int, char[])): Likewise.
2383 (insert (int, char)): Likewise.
2384 (StringBuffer (String)): The initial capacity of the string buffer
2385 is 16 plus the length of the argument.
2386 (getChars): Add a JDK 1.2 FIXME.
2388 1999-02-18 Andrew Haley <aph@cygnus.com>
2390 * java/lang/Short.java (parseShort(String, int)): Pass radix to
2393 1999-02-18 Andrew Haley <aph@cygnus.com>
2395 * java/lang/Double.java (equals): Use a bit-by-bit comparision
2396 instead of floating-point equality. This is necessary for
2397 correct floating-point Hashtables.
2398 * java/lang/Float.java (equals): Ditto.
2400 1999-02-16 Tom Tromey <tromey@cygnus.com>
2402 * java/util/Properties.java (list): Truncate value to 37
2403 characters and add "...".
2405 1999-02-16 Tom Tromey <tromey@cygnus.com>
2407 * java/util/Vector.java (Vector): Throw IllegalArgumentException
2408 if initCap is negative.
2409 (contains): Implement JDK1.2-style handling of null argument.
2410 (removeElement): Likewise.
2411 (indexOf): Likewise. Also, correctly handle case where idx is
2413 (lastIndexOf): Likewise.
2415 1999-02-16 Tom Tromey <tromey@cygnus.com>
2417 * java/lang/natString.cc (init): Increment source pointer in
2420 1999-02-16 Tom Tromey <tromey@cygnus.com>
2422 * exception.cc: Include NullPointerException.h.
2423 (_Jv_Throw): If `value' is NULL, throw a NullPointerException.
2425 1999-02-16 Tom Tromey <tromey@cygnus.com>
2427 * Makefile.in: Rebuilt.
2428 * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo.
2430 Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com>
2432 * configure.in: Don't undefine EH_COMMON_INCLUDE just because
2433 we're compiling canadian.
2434 * configure: Regenerated.
2436 1999-02-12 Andrew Haley <aph@cygnus.com>
2438 * java/lang/sf_rint.c: Resurrected. This file shouldn't have been
2439 deleted from libgcj.
2441 1999-02-12 Tom Tromey <tromey@cygnus.com>
2443 * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
2444 (_Jv_eh_free): Don't call free.
2445 Don't declare malloc or free.
2447 1999-02-11 Tom Tromey <tromey@cygnus.com>
2449 * configure.host: Use `libgcj', not `libjava'. Removed `echo'.
2451 1999-02-11 Andrew Haley <aph@cygnus.com>
2453 * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
2454 wf_fmod.c: Deleted. These are all files from fdlibm which aren't
2455 needed by java.lang.*.
2456 * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
2457 wf_fmod.o: Removed from libjava.a.
2459 1999-02-11 Tom Tromey <tromey@cygnus.com>
2461 * include/javaprims.h: Reverted previous change; with it
2462 exception.cc can't compile.
2464 * include/javaprims.h (_Jv_Throw): Mark as noreturn.
2466 * include/config.h.in: Rebuilt.
2467 * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
2469 * configure: Rebuilt.
2470 * configure.in: Check for sched_yield. Look in thread library for
2471 all thread functions.
2473 * posix-threads.cc (_Jv_MutexInit): Handle case where system has
2474 no recursive mutexes.
2475 (_Jv_MutexDestroy): Define when required.
2476 (_Jv_MutexLock): Likewise.
2477 (_Jv_MutexUnlock): Likewise.
2478 (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
2479 * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
2480 (_Jv_Mutex_t): New structure.
2481 (_Jv_MutexDestroy): Only define if recursive mutexes available.
2482 (_Jv_MutexLock): Likewise.
2483 (_Jv_MutexUnlock): Likewise.
2485 1999-02-10 Tom Tromey <tromey@cygnus.com>
2487 * aclocal.m4, configure, Makefile.in: Rebuilt.
2488 * acinclude.m4: Renamed libjava to libgcj. Updated to use
2490 * configure.in: Changed to track library changes.
2491 * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj.
2492 (AM_CXXFLAGS): Likewise.
2493 (data_DATA): Likewise.
2494 (AM_CFLAGS): Likewise.
2495 (JC1FLAGS): Likewise.
2496 (libgcj_a_SOURCES): Likewise.
2497 (EXTRA_libgcj_a_SOURCES): Likewise.
2498 (libgcj_a_DEPENDENCIES): Likewise.
2499 (libgcj_a_LIBADD): Likewise.
2500 (libgcj.zip): Likewise.
2501 (CLEANFILES): Likewise.
2502 ($(nat_headers)): Likewise.
2503 (java/lang/FirstThread.h): Likewise.
2504 (java/lang/ThreadGroup.h): Likewise.
2505 (java/lang/String.h): Likewise.
2506 (java/lang/reflect/Field.h): Likewise.
2507 (BUILT_SOURCES): Likewise.
2508 (maintainer-check): Likewise.
2509 (CONFIG_STATUS_DEPENDENCIES): Likewise.
2510 Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com>
2512 * java/util/natGregorianCalendar.cc (computeFields): Only use
2513 gmtime_r and localtime_r when configured for posix threads.
2515 * java/io/natFile.cc (get_entry): Only use readdir_r when
2516 configured for posix threads.
2518 * java/util/natGregorianCalendar.cc: Update copyright notice.
2519 * java/util/TimeZone.java: Ditto.
2520 * java/util/SimpleTimeZone.java: Ditto.
2522 1999-02-08 Tom Tromey <tromey@cygnus.com>
2524 * java/io/PrintStream.java (line_separator): New constant.
2525 (print): Use line_separator, not `file.separator' property.
2526 (println): Use line_separator.
2528 * java/lang/natClass.cc (newInstance): Throw IllegalAccessError
2529 when trying to instantiate Class.
2531 * java/lang/ThreadGroup.java (ThreadGroup): Throw
2532 NullPointerException if argument is null.
2534 * java/lang/Thread.java (setName): Throw NullPointerException, not
2535 IllegalArgumentException.
2538 1999-02-08 Andrew Haley <aph@cygnus.com>
2540 * java/lang/natClass.cc (newInstance): Don't allow anyone to
2541 create new Classes with Class.newInstance().
2543 * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a
2544 semiciolon to end of an array Class's signature if the elements of
2545 the array aren't themselves arrays.
2547 * java/lang/natSystem.cc (arraycopy): The size of an element of an
2548 array of objects is always sizeof(jobject), not the size of the
2549 object to which the reference points.
2551 1999-02-08 Tom Tromey <tromey@cygnus.com>
2553 * java/util/BitSet.java (and): Throw NullPointerException when
2558 * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException
2559 if argument is negative.
2560 (clear): Correctly compute `offset'. Throw
2561 IndexOutOfBoundsException when required.
2563 (get): Likewise. Also, return correct value.
2564 (ensure): Changed meaning of argument.
2565 (toString): Wrap contents in `{}'; put spaces after commas.
2566 (hashCode): Don't try to examine elements off the end of array.
2567 (or): Correctly include bits past the end of this bit set.
2570 Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com>
2572 * configure.host (mips-tx39-*): Use jmr3904dram.ld link script
2573 instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
2575 1999-02-04 Andrew Haley <aph@cygnus.com>
2577 * java/lang/natClass.cc (Class::forName): Remove code which mapped
2578 '/' in signatures to '.'
2579 (Class::getName): Likewise,
2580 (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
2582 * java/lang/natFirstThread.cc (run): Change '/' in main's
2585 1999-02-03 Andrew Haley <aph@cygnus.com>
2587 * configure.host: -ffloat-store added when compiling libjava on
2588 x86. fdlibm apparently relies on this.
2590 * java/lang/ThreadGroup.java (add): throw an exception if the
2591 ThreadGroup has been destroyed.
2593 * java/lang/natMath.cc (round): Ensure correct NaN and overflow
2596 1999-01-27 Tom Tromey <tromey@cygnus.com>
2598 * java/lang/StringBuffer.java (StringBuffer): Handle null
2601 1999-01-21 Tom Tromey <tromey@cygnus.com>
2603 * java/lang/natFirstThread.cc (run): Don't require main to be
2606 Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com>
2608 * boehm.cc (_Jv_InitGC): Clear out the free lists correctly.
2610 1999-01-20 Tom Tromey <tromey@cygnus.com>
2612 * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on
2616 (unintern): Likewise.
2617 (_Jv_NewStringUtf8Const): Likewise.
2619 * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not
2620 Character.isLetter, to see if character is self-quoting. Also,
2621 correctly handle quoted characters.
2622 (parse): Fixed typo. Also now throws ParseException.
2624 1999-01-15 Tom Tromey <tromey@cygnus.com>
2626 * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren.
2628 * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where
2629 _Jv_SyncInfo has `init' member.
2631 * include/quick-threads.h (_Jv_MutexUnlock): Return result of
2634 * java/lang/natObject.cc (_Jv_MonitorExit): Throw
2635 IllegalMonitorStateException if unlock fails.
2637 * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all
2639 (_Jv_NewObjectArray): Likewise.
2641 1999-01-14 Tom Tromey <tromey@cygnus.com>
2643 * java/lang/Character.java (isJavaIdentifierPart): Allow
2644 LETTER_NUMBER characters.
2646 * chartables.pl (process_char): Fixed error messages.
2648 * include/java-chartables.h: Rebuilt with UniData 2.1.8.
2649 * chartables.pl: Updated comments. Changed detection of non-digit
2650 numeric values (no longer miss \u00b2 and friends).
2652 * java/lang/Character.java (isJavaIdentifierPart): Recognize
2653 currency symbols and connector punctuation.
2654 (isIdentifierIgnorable): Make 7f-9f ignorable.
2656 * prims.cc (_Jv_NewObjectArray): Check for overflow.
2657 (_Jv_NewPrimArray): Likewise.
2658 (SIZE_T_MAX): New define.
2660 * java/lang/ClassLoader.java (system): Now private and final.
2662 * boehm.cc (_Jv_MarkObj): Handle case where object's class is
2665 * configure: Rebuilt.
2666 * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as
2668 * exception.cc: Include gansidecl.h.
2670 1999-01-14 Andrew Haley <aph@cygnus.com>
2672 * java/lang/Math.java, java/lang/natMath.cc: min and max routines
2673 corrected: they didn't treat -0.0 and NaNs correctly.
2675 Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com>
2677 * nogc.cc: Use calloc to zero out memory.
2679 1999-01-11 Tom Tromey <tromey@cygnus.com>
2681 * java/lang/natClass.cc (isInstance): Return false if this class
2682 is primitive, not if class of `obj' is primitive.
2683 (_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
2685 * java/io/SequenceInputStream.java (close): Handle case where `in'
2688 * java/text/DateFormat.java (format): New method.
2690 * mauve-libjava: Omit java.text.DateFormat.
2692 1999-01-08 Tom Tromey <tromey@cygnus.com>
2694 * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused
2696 * include/posix-threads.h (_Jv_CondNotify): Removed name of unused
2698 (_Jv_CondNotifyAll): Likewise.
2700 * configure: Rebuilt.
2701 * configure.in: Change --enable-source-compilation logic to work
2704 1999-01-07 Andrew Haley <aph@cygnus.co.uk>
2706 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
2707 and RUNTESTFLAGS from AM_MAKEFLAGS.
2708 * configure.in: AM_RUNTESTFLAGS added.
2709 * configure.host: AM_RUNTESTFLAGS added.
2710 * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt.
2711 * configure: rebuilt.
2712 * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS.
2714 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of
2715 argv[] made conditional because embedded targets may not have
2717 * testsuite/libjava.mauve/DejaGNUTestHarness.java (main):
2718 explanatory comments added in call to super.
2720 * testsuite/libjava.mauve/test.exp (test_mauve): Test for an
2721 exception thrown in the test harness itself added.
2722 * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
2724 Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com>
2726 * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static.
2728 1999-01-06 Tom Tromey <tromey@cygnus.com>
2730 * java/io/natFile.cc (get_entry): New function.
2731 (performList): Use get_entry.
2732 * include/config.h.in: Rebuilt.
2733 * acconfig.h (HAVE_READDIR_R): New define.
2734 * configure: Rebuilt.
2735 * configure.in: Look for readdir_r.
2737 * java/util/natGregorianCalendar.cc (computeFields): Fixed comment.
2739 * java/util/natDate.cc: Added copyright header.
2741 1999-01-05 Tom Tromey <tromey@cygnus.com>
2743 * include/config.h.in: Rebuilt.
2744 * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR,
2745 HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros.
2746 * configure: Rebuilt.
2747 * configure.in: Check for access, stat, mkdir, rename, rmdir,
2748 unlink, and realpath.
2749 * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS.
2750 (stat): Conditionalize on HAVE_STAT.
2752 (getCanonicalPath): Conditionalize on HAVE_REALPATH.
2753 (performMkdir): Conditionalize on HAVE_MKDIR.
2754 (performRenameTo): Conditionalize on HAVE_RENAME.
2755 (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
2757 * include/config.h.in: Rebuilt.
2758 * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
2759 * configure: Rebuilt.
2760 * configure.in: Check for gmtime_r and localtime_r. For cross
2761 builds, assume they exist.
2763 * mauve-libjava: Include java.text.DateFormatSymbols again.
2764 * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed
2765 from setAmPmStrings.
2767 * mauve-libjava: Omit java.text.DateFormatSymbols.
2769 1999-01-04 Tom Tromey <tromey@cygnus.com>
2771 * java/io/PushbackReader.java: `off' already includes `numBytes'.
2773 * java/io/LineNumberReader.java (read): Decrement `count' in
2776 * java/io/BufferedWriter.java (write): Correctly determine when
2777 incoming data would overrun buffer. Flush buffer if write causes
2780 * java/io/BufferedOutputStream.java (write): Increment `count'
2781 after copying data into buffer.
2783 * java/io/FilterOutputStream.java (close): Call flush first.
2785 * java/io/PipedReader.java (read): If read causes `out' to catch
2786 up with `in', then set `in' to -1.
2788 * java/io/LineNumberInputStream.java (read): If no bytes read,
2789 return -1. If no bytes requested, return 0.
2791 * java/lang/StringBuffer.java (insert): If `str' is null, use
2794 1998-12-30 Anthony Green <green@cygnus.com>
2797 * LIBJAVA_LICENSE, COPYING.LIB: Created.
2799 1998-12-23 Tom Tromey <tromey@cygnus.com>
2801 * java/io/PushbackInputStream.java (read): `off' already includes
2804 1998-12-17 Tom Tromey <tromey@cygnus.com>
2806 * Makefile.in: Rebuilt.
2807 * Makefile.am (GCJ_canadian): Include target_alias.
2809 * java/lang/natFirstThread.cc (run): Require main's class to be
2812 1998-12-16 Tom Tromey <tromey@cygnus.com>
2814 * java/util/Locale.java (JAPAN): Language is `ja', not `jp'.
2816 * java/util/ResourceBundle.java (getBundle): Throw
2817 NullPointerException if locale argument is null.
2819 * java/lang/natClass.cc (forName): Throw NullPointerException if
2821 Include NullPointerException.h.
2823 1998-12-14 Tom Tromey <tromey@cygnus.com>
2825 * java/lang/Character.java (Character): Implement Comparable.
2826 (compareTo): New methods.
2828 * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use
2829 correct country and language codes.
2830 (UK, US): New constants.
2831 (setDefault): Language codes are lower-case.
2833 * java/lang/natClass.cc (getDeclaredConstructor): New method.
2834 (getDeclaredConstructors): Likewise.
2835 (getDeclaredField): Likewise.
2836 (getDeclaredFields): Likewise.
2837 (getDeclaredMethod): Likewise.
2838 (getDeclaredMethods): Likewise.
2839 (getField): Likewise.
2840 (getFields): Likewise.
2841 (getMethod): Likewise.
2842 (getMethods): Likewise.
2843 * java/lang/Class.java: Declare new methods.
2844 * java/lang/Class.h: Declare new methods.
2846 * java/lang/natString.cc: Removed `#pragma implementation'.
2847 * include/cni.h (_Jv_GetStringChars): New function.
2848 * Makefile.in: Rebuilt.
2849 * Makefile.am (java/lang/String.h): Don't generate definition for
2852 * java/lang/natString.cc: Added `#pragma implementation'.
2854 * Makefile.in: Rebuilt.
2855 * Makefile.am (libjava.zip): Put build directory first in class
2856 path to avoid bug in compiler.
2858 1998-12-14 Anthony Green <green@cygnus.com>
2860 * java/util/Locale.java: Add CANADA, FRANCE and JAPAN.
2862 * include/javaprims.h: Add EventObject, ListResourceBundle and
2865 1998-12-13 Anthony Green <green@cygnus.com>
2867 * mauve-libjava: Run the ResourceBundle tests.
2869 * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is
2872 Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com>
2874 * configure.in, configure: Make --enable-gcj-classes and
2875 --enable-source-compilation the default. (Nervously...) Yeah!
2876 Based on a patch from Tom Tromey.
2878 1998-12-13 Tom Tromey <tromey@cygnus.com>
2880 * java/util/EventObject.java: New file.
2881 * java/util/EventListener.java: New file.
2883 * include/javaprims.h: Updated class declarations.
2884 * Makefile.in: Rebuilt.
2885 * Makefile.am (nat_headers): Added Constructor.h.
2886 (java/lang/String.h): Don't inline String::length().
2887 * java/lang/Class.h (getConstructor, getConstructors): Declare.
2888 * java/lang/Class.java (initializeClass, hackRunInitializers,
2889 hackTrampoline): No need to mark `final'.
2890 (getConstructor, getConstructors): Declare.
2891 * java/lang/reflect/Field.java (equals): New method.
2892 * java/lang/natClass.cc (getConstructor): New method.
2893 (getConstructors): Likewise.
2894 Include Method.h, Field.h, Constructor.h.
2895 * java/lang/reflect/Constructor.java: New file.
2896 * java/lang/reflect/Method.java (toString): No space before open
2898 (equals): Simplified.
2900 1998-12-13 Anthony Green <green@cygnus.com>
2902 * java/util/ResourceBundle.java: New file.
2903 * java/util/ListResourceBundle.java: New file.
2905 1998-12-12 Tom Tromey <tromey@cygnus.com>
2907 * java/lang/System.java (in, out, err): Now buffered streams by
2910 * include/javaprims.h: Updated class declarations.
2911 * Makefile.in: Rebuilt.
2912 * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h,
2913 InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h,
2915 (nat_files): Added natMethod.o.
2916 * java/lang/reflect/natMethod.cc: New file.
2917 * java/lang/reflect/Field.java (Field): Now extends
2919 * java/lang/reflect/AccessibleObject.java: New file.
2920 * java/lang/reflect/InvocationTargetException.java: New file.
2922 1998-12-11 Tom Tromey <tromey@cygnus.com>
2924 * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h,
2925 java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc:
2926 Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable.
2928 * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes.
2930 1998-12-09 Tom Tromey <tromey@cygnus.com>
2932 * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if
2935 * java/lang/natCharacter.cc (toTitleCase): Handle case where
2936 character is already titlecase.
2938 * java/lang/Character.java (isJavaLetter): Follow spec.
2939 (isJavaLetterOrDigit): Likewise.
2941 * java/util/GregorianCalendar.java (gregorianCutover): Append
2944 * java/lang/Character.java (isWhitespace): Use \r and not \u000d.
2946 1998-12-08 Tom Tromey <tromey@cygnus.com>
2948 * java/lang/reflect/Modifier.java (toString): Replace second
2949 `static' with `synchronized'.
2951 * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6.
2952 * java/lang/Object.h (Object::hack12_6): Declare.
2953 * java/lang/Object.java (hack12_6): New function.
2955 1998-12-07 Tom Tromey <tromey@cygnus.com>
2957 * include/java-array.h (__JArray::clone): Removed decl.
2958 * prims.cc (__JArray::clone): Removed.
2959 * java/lang/natObject.cc (clone): Incorporate code to clone an
2962 * java/lang/natClass.cc (_Jv_NewClass): Set class loader.
2963 (_Jv_FindArrayClass): Set dtable_method_count on new class.
2964 Correctly use dtable_method_count.
2966 1998-12-07 Andrew Haley <aph@cygnus.co.uk>
2968 * java/lang/Double.java (isInfinite, isNaN): Handle correct
2971 1998-12-06 Anthony Green <green@cygnus.com>
2973 * mauve-libjava: Don't test ResourceBundle.
2975 1998-12-04 Tom Tromey <tromey@cygnus.com>
2977 More JDK 1.2 spec fixes:
2978 * java/util/Date.java (millis): Now private.
2979 * java/text/DateFormat.java (DateFormat): Constructor now
2981 * java/lang/Void.java (Void): New private constructor.
2982 * java/lang/System.java (System): New private constructor.
2983 * java/lang/SecurityManager.java (classLoaderDepth): Uncommented
2985 (currentClassLoader): New method.
2986 (currentLoadedClass): New method.
2987 * java/lang/Math.java (Math): New private constructor.
2988 * java/lang/Compiler.java (Compiler): New private constructor.
2989 * java/lang/Class.java (Class): New private constructor.
2990 * java/lang/Double.java (toString): Removed access specifier from
2991 two-argument `toString' method.
2993 1998-12-04 Andrew Haley <aph@cygnus.co.uk>
2995 * java/lang/s_rint.c (rint): Make the variable w volatile; this
2996 causes it to be flushed from an fp register (where it may be
2997 longer than double precision) to a double in memory. This is
2998 essential to ensure correct rounding behaviour.
3000 1998-12-04 Tom Tromey <tromey@cygnus.com>
3002 * include/java-assert.h (_Jv_Abort): Declare as `noreturn'
3005 * java/lang/Character.java (isIdentifierIgnorable): Added comment
3006 explaining apparent divergence from JDK 1.2.
3008 1998-12-04 Per Bothner <bothner@cygnus.com>
3010 * include/no-threads.h: Remove unused parameter names.
3011 This silences a bunch of warnings.
3013 1998-12-04 Tom Tromey <tromey@cygnus.com>
3015 * include/config.h.in: Rebuilt.
3016 * acconfig.h (HAVE_CTIME_R): New symbol.
3018 1998-12-03 Tom Tromey <tromey@cygnus.com>
3020 * mauve-libjava: Added many more categories to reject.
3022 Changes to follow JDK1.2 spec:
3023 * java/lang/System.java (arraycopy, init_properties, checkSetIO,
3024 setErr, setIn, setOut): No need to be `final'.
3025 * java/lang/natObject.cc (wait): `nanos' argument is an int.
3026 * java/lang/Object.h (Object::wait): `nanos' argument is an int.
3027 * java/lang/Object.java (wait): `nanos' argument is an int.
3028 * java/lang/VirtualMachineError.java: Class is abstract.
3029 * java/lang/ThreadDeath.java: Made constructors public.
3030 * java/io/FileDescriptor.java (FileDescriptor): Added missing
3033 Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com>
3035 * java/text/DateFormatSymbols.java (getAmPmStrings,
3036 getLocalPatternChars, setShortWeekdays): Fixed typos in method names.
3038 Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com>
3040 * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat,
3041 writeDouble, writeByte, writeBytes, writeChar, writeChars,
3042 writeShort, writeUTF): Added 'final' to signature to match JDK 1.1
3045 * java/lang/IllegalThreadStateException.java
3046 (IllegalThreadStateException): Changed extending class to match spec.
3048 * java/lang/NumberFormatException.java
3049 (java/lang/NumberFormatException): Changed extending class to match
3052 * java/util/Observer.java (Observer): Changed sig to match JCL.
3054 Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com>
3056 * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat,
3057 writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to
3058 signature to match JDK 1.1 and 1.2.
3060 Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com>
3062 * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'.
3063 * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl.
3064 * Makefile.in, configure: Rebuilt.
3066 * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method
3069 1998-12-02 Tom Tromey <tromey@cygnus.com>
3071 * mauve-libjava: New file.
3073 The remaining `-W -Wall' fixes:
3074 * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to
3076 * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous
3078 * java/lang/s_floor.c (floor): Added cast to unsigned to avoid
3080 * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to
3082 * java/lang/e_log.c (__ieee754_log): Added braces to avoid
3084 * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid
3086 * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc
3088 * java/lang/strtod.c (_strtod_r): Added parentheses per gcc
3090 * java/lang/mprec.c (Balloc): Removed unused variable.
3091 (mult): Added parentheses per gcc suggestion.
3092 (pow5mult): Likewise.
3097 * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc
3098 suggestion. Added cast to `int' to avoid signed/unsigned
3100 * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused
3102 (IsAssignableFrom): Likewise.
3103 (_Jv_JNI_GetObjectField): Likewise.
3104 (_Jv_JNI_GetByteField): Likewise.
3105 (_Jv_JNI_GetShortField): Likewise.
3106 (_Jv_JNI_GetIntField): Likewise.
3107 (_Jv_JNI_GetLongField): Likewise.
3108 (_Jv_JNI_GetStringLength): Likewise.
3109 (_Jv_JNI_ToReflectedField): Likewise.
3110 (_Jv_JNI_FromReflectedField): Likewise.
3111 (_Jv_JNIFunctions): Uncommented IsAssignableFrom.
3113 * Makefile.in: Rebuilt.
3114 * Makefile.am (AM_CFLAGS): Define conditionally.
3115 (WARNINGS): New macro.
3116 (AM_CXXFLAGS): Include WARNINGS.
3117 * configure: Rebuilt.
3118 * configure.in (USING_GCC): New conditional.
3120 * prims.cc (_Jv_Abort): Declare twice, to avoid warnings.
3122 * java/lang/Character.java: Changed classification constants to
3123 type `byte' to match JDK 1.2 docs.
3125 1998-12-01 Tom Tromey <tromey@cygnus.com>
3127 Some fixes to be `-W -Wall' clean:
3128 * boehm.cc (_Jv_MarkObj): Removed name of unused parameter.
3129 (_Jv_MarkArray): Likewise.
3130 * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned.
3131 (to_upper_title): Likewise.
3132 (isTitleCase): Likewise.
3133 (toTitleCase): Likewise.
3134 (getNumericValue): Likewise.
3135 (isLowerCase): Likewise.
3136 * java/lang/natString.cc (charAt): Don't cast `i' to unsigned
3137 (avoids compiler warning).
3138 * java/lang/natClass.cc (getDeclaredClasses): Always return a
3140 (getDeclaringClass): Likewise.
3141 (_Jv_LookupInterfaceMethod): Likewise.
3142 (_Jv_NewClass): Removed name of unused parameter.
3143 * exception.cc (_Jv_type_matcher): Removed unused variable.
3144 (_Jv_setup_eh_info): Removed name of unused parameter.
3145 * prims.cc (_Jv_NewArray): Always return a value.
3146 (_Jv_FindClassFromSignature): Likewise.
3147 * include/java-field.h (getNameUtf8Const): Removed name of unused
3149 * include/quick-threads.h (_Jv_ThreadInitData): Removed name of
3151 (_Jv_ThreadSetPriority): Likewise.
3153 * java/lang/natString.cc (hashChars): Now static.
3155 * java/lang/FirstThread.java (FirstThread): Now final.
3157 * java/io/File.java (performMkdir, performRenameTo): Now private.
3159 * java/lang/natSystem.cc (currentTimeMillis): Return a value even
3160 if no time function defined.
3162 * configure: Rebuilt.
3163 * configure.in: Look for ctime_r, ctime.
3164 * java/util/Date.java (toString): Now native.
3165 * java/util/natDate.cc (toString): Rewrote.
3167 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk>
3169 * Add LDFLAGS line to allow TX39 test cases to link when cross
3172 1998-11-23 Anthony Green <green@cygnus.com>
3174 * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc,
3175 no-threads.cc, nogc.cc, posix-threads.cc, prims.cc,
3176 quick-threads.cc, include/boehm-gc.h, include/cni.h,
3177 include/java-array.h, include/java-assert.h, include/java-field.h,
3178 include/javaprims.h, include/jni.h, include/jvm.h,
3179 include/no-gc.h, include/no-threads.h, include/posix-threads.h,
3180 include/quick-threads.h, java/io/BufferedInputStream.java,
3181 java/io/BufferedOutputStream.java, java/io/BufferedReader.java,
3182 java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java,
3183 java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java,
3184 java/io/CharArrayWriter.java,
3185 java/io/CharConversionException.java, java/io/DataInput.java,
3186 java/io/DataInputStream.java, java/io/DataOutput.java,
3187 java/io/DataOutputStream.java, java/io/EOFException.java,
3188 java/io/File.java, java/io/FileDescriptor.java,
3189 java/io/FileInputStream.java, java/io/FileNotFoundException.java,
3190 java/io/FileOutputStream.java, java/io/FileReader.java,
3191 java/io/FileWriter.java, java/io/FilenameFilter.java,
3192 java/io/FilterInputStream.java, java/io/FilterOutputStream.java,
3193 java/io/FilterReader.java, java/io/FilterWriter.java,
3194 java/io/IOException.java, java/io/InputStream.java,
3195 java/io/InputStreamReader.java,
3196 java/io/InterruptedIOException.java,
3197 java/io/LineNumberInputStream.java, java/io/LineNumberReader.java,
3198 java/io/OutputStream.java, java/io/OutputStreamWriter.java,
3199 java/io/PipedInputStream.java, java/io/PipedOutputStream.java,
3200 java/io/PipedReader.java, java/io/PipedWriter.java,
3201 java/io/PrintStream.java, java/io/PrintWriter.java,
3202 java/io/PushbackInputStream.java, java/io/PushbackReader.java,
3203 java/io/RandomAccessFile.java, java/io/Reader.java,
3204 java/io/SequenceInputStream.java, java/io/Serializable.java,
3205 java/io/StreamTokenizer.java,
3206 java/io/StringBufferInputStream.java, java/io/StringReader.java,
3207 java/io/StringWriter.java, java/io/SyncFailedException.java,
3208 java/io/UTFDataFormatException.java,
3209 java/io/UnsupportedEncodingException.java, java/io/Writer.java,
3210 java/io/natFile.cc, java/io/natFileDescriptorEcos.cc,
3211 java/io/natFileDescriptorPosix.cc,
3212 java/lang/AbstractMethodError.java,
3213 java/lang/ArithmeticException.java,
3214 java/lang/ArrayIndexOutOfBoundsException.java,
3215 java/lang/ArrayStoreException.java, java/lang/Boolean.java,
3216 java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h,
3217 java/lang/Class.java, java/lang/ClassCastException.java,
3218 java/lang/ClassCircularityError.java,
3219 java/lang/ClassFormatError.java, java/lang/ClassLoader.java,
3220 java/lang/ClassNotFoundException.java,
3221 java/lang/CloneNotSupportedException.java,
3222 java/lang/Cloneable.java, java/lang/Comparable.java,
3223 java/lang/Compiler.java, java/lang/Double.java,
3224 java/lang/Error.java, java/lang/Exception.java,
3225 java/lang/ExceptionInInitializerError.java,
3226 java/lang/FirstThread.java, java/lang/Float.java,
3227 java/lang/IllegalAccessError.java,
3228 java/lang/IllegalAccessException.java,
3229 java/lang/IllegalArgumentException.java,
3230 java/lang/IllegalMonitorStateException.java,
3231 java/lang/IllegalStateException.java,
3232 java/lang/IllegalThreadStateException.java,
3233 java/lang/IncompatibleClassChangeError.java,
3234 java/lang/IndexOutOfBoundsException.java,
3235 java/lang/InstantiationError.java,
3236 java/lang/InstantiationException.java, java/lang/Integer.java,
3237 java/lang/InternalError.java, java/lang/InterruptedException.java,
3238 java/lang/LinkageError.java, java/lang/Long.java,
3239 java/lang/Math.java, java/lang/NegativeArraySizeException.java,
3240 java/lang/NoClassDefFoundError.java,
3241 java/lang/NoSuchFieldError.java,
3242 java/lang/NoSuchFieldException.java,
3243 java/lang/NoSuchMethodError.java,
3244 java/lang/NoSuchMethodException.java,
3245 java/lang/NullPointerException.java, java/lang/Number.java,
3246 java/lang/NumberFormatException.java, java/lang/Object.h,
3247 java/lang/Object.java, java/lang/OutOfMemoryError.java,
3248 java/lang/Process.java, java/lang/Runnable.java,
3249 java/lang/Runtime.java, java/lang/RuntimeException.java,
3250 java/lang/SecurityException.java, java/lang/SecurityManager.java,
3251 java/lang/Short.java, java/lang/StackOverflowError.java,
3252 java/lang/String.java, java/lang/StringBuffer.java,
3253 java/lang/StringIndexOutOfBoundsException.java,
3254 java/lang/System.java, java/lang/Thread.java,
3255 java/lang/ThreadDeath.java, java/lang/ThreadGroup.java,
3256 java/lang/Throwable.java, java/lang/UnknownError.java,
3257 java/lang/UnsatisfiedLinkError.java,
3258 java/lang/UnsupportedOperationException.java,
3259 java/lang/VerifyError.java, java/lang/VirtualMachineError.java,
3260 java/lang/Void.java, java/lang/natCharacter.cc,
3261 java/lang/natClass.cc, java/lang/natDouble.cc,
3262 java/lang/natFirstThread.cc, java/lang/natFloat.cc,
3263 java/lang/natMath.cc, java/lang/natObject.cc,
3264 java/lang/natRuntime.cc, java/lang/natString.cc,
3265 java/lang/natSystem.cc, java/lang/natThread.cc,
3266 java/lang/reflect/Field.java, java/lang/reflect/Member.java,
3267 java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc,
3268 java/text/DateFormat.java, java/text/DateFormatSymbols.java,
3269 java/text/FieldPosition.java, java/text/Format.java,
3270 java/text/NumberFormat.java, java/text/ParseException.java,
3271 java/text/ParsePosition.java, java/text/SimpleDateFormat.java,
3272 java/util/BitSet.java, java/util/Calendar.java,
3273 java/util/ConcurrentModificationException.java,
3274 java/util/Date.java, java/util/Dictionary.java,
3275 java/util/EmptyStackException.java, java/util/Enumeration.java,
3276 java/util/GregorianCalendar.java, java/util/Hashtable.java,
3277 java/util/Locale.java, java/util/MissingResourceException.java,
3278 java/util/NoSuchElementException.java, java/util/Observable.java,
3279 java/util/Observer.java, java/util/Properties.java,
3280 java/util/Random.java, java/util/SimpleTimeZone.java,
3281 java/util/Stack.java, java/util/StringTokenizer.java,
3282 java/util/TimeZone.java, java/util/TooManyListenersException.java,
3283 java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated
3286 * exception.cc: Include eh-common.h instead of duplicating
3289 1998-11-23 Tom Tromey <tromey@cygnus.com>
3291 * configure.host: Don't add `-O2' to libjava_flags. Only add
3292 `-Os' to libjava_flags once.
3294 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk>
3296 * Makefile.am: add LIBJAVA_JAVAFLAGS.
3297 * Makefile.in: likewise
3298 * acconfig.h: add ECOS conditional for configure.h
3299 * config.h.in: likewise
3300 * configure: add test for --with-ecos
3301 * configure.in: likewise
3302 * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write):
3303 rename call to avoid name clash.
3304 * java/lang/natSystem.cc: add eCos clock support.
3305 * java/util/natGregorianCalendar.cc: add eCos support.
3307 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk>
3309 * Makefile.am, Makefile.in, configure.host: tx39 build option
3312 Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com>
3314 * java/io/BufferedReader.java: Added more comments for clarity.
3315 (mark): Used more mnemonic name for local var extraBuffSpace.
3317 * java/io/LineNumberReader.java (lineEnd): Removed method to avoid
3318 confusion with private method of same name in superclass.
3319 (skipRedundantLF): Set fields in special case to avoid infinite
3320 recursion. Check if markPos has been invalidated in special case.
3321 (readLine): Rewritten to use readLine method of superclass.
3322 (skip): Incorporated code from lineEnd.
3324 Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com>
3326 * java/io/BufferedReader.java (readLine): New method.
3327 (lineEnd): new private method.
3328 (mark): Track special case for readLine of getting '\r' at the
3335 * java/io/InputStreamReader.java (read): Return number chars skipped
3336 rather than requested.
3338 * java/lang/StringBuffer.java (append): Update count and differentiate
3339 between field and local variable.
3341 * java/util/Date.java (parseTz): Evaluate in minutes rather than
3342 seconds. Deal with military style time.
3343 (parse): Consistently treat all timezones in minutes until final
3344 calculation. Flag as non-local timezone. Return value in milliseconds.
3345 (setTime): Adjust for year offset from 1900.
3346 (UTC): Adjust for year offset from 1900.
3348 1998-11-17 Tom Tromey <tromey@cygnus.com>
3350 * configure: Rebuilt.
3351 * configure.in: Switch on host, not target.
3353 * Makefile.in: Rebuilt.
3354 * Makefile.am (GCJ_no): New macro.
3355 (GCJ): Use @CANADIAN@.
3356 (GCJH_no): New macro
3357 (GCJH_canadian): New macro.
3358 (GCJH): Use @CANADIAN@.
3359 (ZIP_no): New macro.
3360 (ZIP_canadian): New macro.
3361 (ZIP): Use @CANADIAN@.
3362 * aclocal.m4, configure: Rebuilt.
3363 * configure.in (CANADIAN): Compute and subst.
3365 Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com>
3367 * java/io/FileDescriptor.java (finalize): Only close file
3368 descriptor if valid.
3370 1998-11-17 Tom Tromey <tromey@cygnus.com>
3372 * prims.cc (_Jv_InitRuntime): Removed.
3374 1998-11-16 Tom Tromey <tromey@cygnus.com>
3376 * java/io/FileOutputStream.java (close): Only close file
3377 descriptor if valid.
3378 (finalize): New method.
3380 * prims.cc (_Jv_NewObjectArray): Set vtbl last.
3381 (_Jv_NewPrimArray): Likewise.
3382 * boehm.cc (_Jv_RegisterFinalizer): Use
3383 GC_REGISTER_FINALIZER_NO_ORDER.
3384 (GC_GENERIC_MALLOC): New define.
3385 (_Jv_AllocObj): Use it.
3386 (_Jv_AllocArray): Likewise.
3387 (_Jv_AllocBytes): Likewise.
3388 (_Jv_MarkObj): Just return if vtbl not set.
3389 (_Jv_MarkArray): Likewise.
3390 (MAYBE_MARK): New macro; use everywhere.
3391 (_Jv_MarkObj): Mark fields belonging to superclasses as well.
3393 Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com>
3395 * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t
3396 to a jlong before calculation to prevent overflow.
3398 1998-11-16 Tom Tromey <tromey@cygnus.com>
3400 * Makefile.in: Rebuilt.
3401 * Makefile.am (nat_headers): Fixed typo.
3403 1998-11-15 Tom Tromey <tromey@cygnus.com>
3405 * java/lang/Class.h (Class::getName): Removed definition.
3406 * Makefile.in: Rebuilt.
3407 * Makefile.am (nat_headers): Added InstantiationException.h,
3408 NoSuchMethodException.h.
3409 * java/lang/natClass.cc (clinit_name): Renamed from init_name.
3410 (init_name): New global.
3411 (hackRunInitializers): Use clinit_name.
3412 Include InstantiationException.h, NoSuchMethodException.h.
3413 (newInstance): Do some error checking (but not all). Call
3415 (forName): Throw exception if class not found.
3416 (getName): New method.
3417 (forName): Transform class name from external format to internal
3418 format before lookup.
3420 1998-11-15 Anthony Green <green@cygnus.com>
3422 * java/lang/Class.h (Class::forName): Method is static.
3424 * java/lang/natClass.cc (newInstance): Add simple implementation.
3427 Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com>
3429 * java/lang/Class.h (Class::accflags): Must be unsigned short (not
3430 int), for compatibility with jc1.
3432 1998-11-14 Tom Tromey <tromey@cygnus.com>
3434 * include/config.h.in: Rebuilt.
3435 * acconfig.h (LINUX_THREADS): New define.
3436 * configure: Rebuilt.
3437 * configure.in: Define LINUX_THREADS if using POSIX threads on
3438 Linux. Look for pthread_mutexattr_setkind_np function.
3439 * posix-threads.cc (throw_cleanup): New function.
3440 (really_start): Push cleanup function.
3441 (_Jv_ThreadCancel): New function.
3442 (daemon_mutex, daemon_cond, non_daemon_count): New globals.
3443 (_Jv_ThreadInitData): Set `exception' field in new structure.
3444 (_Jv_ThreadStart): Increment non_daemon_count if not a daemon
3446 (_Jv_ThreadWait): New function.
3447 (_Jv_InitThreads): Initialize daemon globals.
3448 (FLAG_DAEMON): New macro.
3449 (really_start): Notify daemon_cond when non-daemon thread exits.
3450 Include <java/lang/System.h>.
3451 (struct starter): `object' field now a thread.
3452 (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists.
3453 * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL.
3454 (_Jv_ThreadWait): Removed definition.
3455 (_Jv_Thread_t): Added `exception' field.
3456 (_Jv_ThreadCancel): Removed definition.
3458 1998-11-13 Tom Tromey <tromey@cygnus.com>
3460 * Makefile.in: Rebuilt.
3461 * Makefile.am (libjava.zip): Compute javac before changing
3464 * Makefile.in: Rebuilt.
3465 * Makefile.am (libjava.zip): Include directory entries.
3467 * Makefile.in: Rebuilt.
3468 * Makefile.am (expanded): New macro.
3471 1998-11-12 Tom Tromey <tromey@cygnus.com>
3473 * prims.cc (clone): New function.
3474 * include/java-array.h (__JArray::clone): Removed definition.
3476 * java/lang/natObject.cc (clone): Don't assert that class is not
3477 an array; array's `clone' method just calls this one.
3479 * Makefile.in: Rebuilt.
3480 * Makefile.am (libjava.zip): Renamed target from classes.stamp.
3481 Now creates zip file. Changed all users.
3483 (data_DATA): New macro.
3485 1998-11-11 Tom Tromey <tromey@cygnus.com>
3487 * configure: Rebuilt.
3488 * configure.in: Recognize --enable-java-gc, not --enable-gc.
3490 Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com>
3492 * java/io/InputStream.java (reset): Add msg to thrown exception.
3494 Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com>
3496 * java/io/LineNumberInputStream.java: Rewritten.
3498 * java/io/StringBufferInputStream.java: Removed extraneous import.
3500 Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com>
3502 * java/io/StringBufferInputStream.java: Rewritten.
3504 * java/util/Date.java (parseMonth): Optimize.
3505 (parseDayOfWeek): Created.
3506 (parse): Optimize to use parseDayOfWeek.
3508 1998-11-11 Tom Tromey <tromey@cygnus.com>
3510 * java/lang/StringBuffer.java (append): Handle case where STR is
3513 * include/javaprims.h: Regenerated class declarations.
3515 * configure: Rebuilt.
3516 * configure.in: Added --enable-gcj-classes,
3517 --enable-single-compilation, --enable-source-compilation flags.
3518 * Makefile.in: Rebuilt.
3519 * Makefile.am (java_io_files): New macro.
3520 (java_lang_files): Likewise.
3521 (java_text_files): Likewise.
3522 (java_util_files): Likewise.
3523 (java_files): Use new macros.
3524 (java-io.o): New target.
3525 (java-lang.o): Likewise.
3526 (java-text.o): Likewise.
3527 (java-util.o): Likewise.
3528 (src_io_files): New macro.
3529 (src_lang_files): Likewise.
3530 (src_text_files): Likewise.
3531 (src_util_files): Likewise.
3532 (class_io_files): New macro.
3533 (class_lang_files): Likewise.
3534 (class_text_files): Likewise.
3535 (class_util_files): Likewise.
3536 (class_files): Use new macros.
3537 (javao_files): Define conditionally.
3538 (.java.o): New target.
3539 ($(javao_files)): New target.
3541 (GCJH): Added $(EXEEXT).
3542 (CLASSPATH_ENV): Removed.
3543 (GCJCOMPILE): New macro.
3545 Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com>
3547 * java/util/Date.java (parse): Written from scratch.
3549 1998-11-11 Tom Tromey <tromey@cygnus.com>
3551 * java/lang/Throwable.java (toString): Correct sense of test for
3552 determining when to include detail message in result.
3554 * java/lang/ThreadDeath.java (ThreadDeath): Added missing
3557 Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com>
3559 * java/lang/Class.h: Use _Jv_RegisterClasses, not
3561 * java/lang/natClass.cc (_Jv_RegisterClasses): New function.
3562 (_Jv_RegisterClass): Use it.
3563 * include/jvm.h (_Jv_RegisterClasses): Declare.
3564 * java/lang/natObject.cc (init): Removed.
3565 (sync_init): Never call _Jv_InitializeSyncMutex.
3566 (_Jv_InitializeSyncMutex): Don't set `init'.
3567 * prims.cc (JvRunMain): Don't run init functions.
3569 Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com>
3571 * java/lang/natClass.cc (initializeClass): Set state before
3572 resolving constants.
3574 * java/lang/natClass.cc (STATE_CONST_INIT): Removed.
3575 (STATE_RESOLVED): New macro.
3576 (initializeClass): Call resolveConstants.
3577 (hackRunInitializers): Don't call resolveConstants.
3578 (_Jv_FindArrayClass): Move short-circuit return for primitive
3579 element types earlier in function.
3581 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com>
3583 * prims.cc (no_memory): New global.
3584 (_Jv_makeUtf8Const): Throw no_memory.
3585 (_Jv_AllocObject): Likewise.
3586 (_Jv_NewObjectArray): Likewise.
3587 (_Jv_NewPrimArray): Likewise.
3588 (JvRunMain): Initialize no_memory.
3590 Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com>
3592 * java/io/FileInputStream.java: Corrected date comment.
3593 * java/io/SequenceInputStream.java: Rewritten.
3595 Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com)
3597 * java/lang/FirstThread.java (die): New method.
3598 * java/lang/natFirstThread.cc (die): Removed.
3600 (run): Use `DIE', not `die'.
3602 Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com>
3604 * java/io/CharArrayReader.java (read): Move check into synchronized
3605 block to prevent a close while in progress.
3608 * java/io/PushbackReader.java (read): Ditto.
3611 * java/io/StringReader.java (mark): Ditto.
3616 Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com>
3618 * java/io/PipedInputStream.java: Updated status.
3619 (connect): Added code to prevent infinite recursion and to
3620 differentiate exception causes.
3621 (read): Added code to differentiate exception causes.
3622 (receive): Made exception pass string with the cause.
3624 * java/io/PipedOutputStream.java: Updated status.
3625 (connect): Added code to call connect at the other end of the pipe.
3627 Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com>
3629 * java/io/PipedInputStream.java (connect): Throw exception if
3630 already connected to the same output stream.
3631 (read): Do bounds checking first.
3633 Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com>
3635 * java/io/PipedInputStream.java: Added private boolean outClosed.
3636 (available): Removed check if output stream is open.
3637 (close): Mark the buffer as empty so available returns 0.
3638 (read): Check if the output stream was closed and then return EOF
3639 when the buffer is empty.
3640 (receive): Mark the output stream as closed when passed a -1.
3642 * java/io/PipedOutputStream.java (close): Notify the input stream
3643 that there's no more data coming.
3644 (connect): Added a FIXME comment to note more coordination needed
3645 with PipedInputStream.
3646 (flush): Added a FIXME comment to mark what this method might do
3649 Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com>
3651 * java/io/PipedInputStream.java: Rewritten.
3653 1998-10-30 Tom Tromey <tromey@cygnus.com>
3655 * java/lang/Throwable.java: Rewrote from scratch.
3657 * java/lang/Class.h (Class): Don't mention newMultiArray.
3658 * prims.cc (newMultiArray): Removed.
3659 (_Jv_NewMultiArray): Removed.
3660 (newArray): Removed.
3661 (new_multi_array): New function.
3662 (_Jv_NewMultiArray): Rewrote from scratch.
3664 * include/javaprims.h: Regenerated class declarations.
3665 * classes.pl (scan): Don't declare PrimClass.
3666 * include/cni.h (JvPrimClass): Use new names for classes.
3667 * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend;
3668 added _Jv_PrimClass.
3669 * prims.cc (_Jv_PrimClass): Renamed from PrimClass.
3670 (_Jv_initPrimClass): Removed.
3671 (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'.
3672 (_Jv_AllocObject): Added comment.
3673 (_Jv_NewObjectArray): Likewise.
3674 (_Jv_NewPrimArray): Likewise.
3676 1998-10-29 Tom Tromey <tromey@cygnus.com>
3678 * java/lang/natClass.cc (_Jv_NewClass): Initialize new field.
3679 (_Jv_FindArrayClass): Use dtable_method_count to compute size of
3681 * java/lang/Class.h (Class): Added `dtable_method_count' field.
3683 * java/lang/natObject.cc (init): New global.
3684 (sync_init): Call _Jv_InitializeSyncMutex if required.
3686 * Makefile.in: Rebuilt.
3687 * Makefile.am (nat_headers): Added ClassLoader.h.
3688 * include/jvm.h (_Jv_FindClassFromSignature): Declare.
3689 * java/lang/Class.h (Class): simpleLookupClass, insertClass,
3690 internalAddClass, lookupArray no longer friends.
3691 _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass,
3692 _Jv_FindArrayClass now friends.
3693 * java/lang/natClass.cc (HASH_LEN): New macro.
3694 (HASH_UTF): Likewise.
3695 (loaded_classes): New global.
3696 (_Jv_FindClass): New function.
3697 (ClassClass): New define.
3698 (_Jv_FindClassInCache): New function.
3699 (_Jv_RegisterClass): Likewise.
3700 (_Jv_NewClass): Likewise.
3702 (ObjectClass): New define.
3703 (CloneableClass): New define.
3704 * prims.cc (_Jv_FindClass): Removed.
3705 (simpleLookupClass): Removed.
3706 (insertClass): Removed.
3707 (CLASSHASHSZ): Removed.
3708 (classPool): Removed.
3709 (_Jv_RegisterClass): Removed.
3710 (internalAddClass): Removed.
3711 (ClassClass): Removed.
3712 (RuntimeClass): Removed.
3713 (lookupArray): Removed.
3714 (CloneableClass): Removed.
3715 (CLASSMAXSIG): Removed.
3716 Rearranged file to group related functions together.
3717 (_Jv_IsInstanceOf): Moved to natClass.cc.
3718 (abort_final): Removed.
3719 Removed some unused includes.
3720 (classFromSig): Removed.
3721 (_Jv_FindClassFromSignature): New function.
3722 (_Jv_initPrimClass): Renamed.
3723 (getClass): Removed.
3725 Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com>
3727 * java/io/FileDescriptor.java (finalize): Throws IOException
3728 instead of Throwable.
3730 * java/io/FileInputStream.java: Rewritten.
3732 * java/io/StreamTokenizer.java (nextToken): Unread newline character
3733 at the end of a comment.
3735 1998-10-29 Tom Tromey <tromey@cygnus.com>
3737 * include/javaprims.h: Regenerated class declarations.
3738 * classes.pl (scan): Don't special-case ClassLoader.
3740 * prims.cc (processClass): Removed.
3741 (_Jv_InitClass): Removed.
3742 Removed all CSTATE_ macros.
3743 (resolveConstants): Removed.
3745 (_Jv_NewMultiArray): Cleaned up.
3746 * Makefile.in: Rebuilt.
3747 * Makefile.am (nat_headers): Added NoClassDefFoundError.h.
3748 * java/lang/Class.h (Class): Declare new methods. processClass no
3750 * java/lang/Class.java (hackTrampoline): New method.
3751 (initializeClass): Declare.
3752 (hackRunInitializers): Declare.
3753 * java/lang/natClass.cc (getClassLoader): Moved into Class.h.
3754 (initializeClass): New method.
3755 (hackRunInitializers): New method.
3756 (init_name, void_signature): Moved from prims.cc.
3757 (_Jv_InitClass): New function.
3758 (isAssignableFrom): Don't call processClass.
3759 (STATE_NOTHING): New macro.
3760 (resolveConstants): New function.
3762 (ErrorClass): New define.
3764 * java/lang/Class.java (getClassLoader): Declare.
3765 * java/lang/ClassLoader.java: Rewrote from scratch.
3767 * java/lang/natClass.cc: Include IncompatibleClassChangeError.h,
3768 AbstractMethodError.h, IllegalAccessError.h,
3769 NoClassDefFoundError.h.
3770 * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts.
3771 * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no
3772 longer static. Changed return type.
3773 * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal.
3774 * java/lang/Class.h (Class): findMethodLocal no longer a friend.
3775 * prims.cc (findMethodLocal): Removed.
3776 (processClass): Use _Jv_GetMethodLocal.
3778 1998-10-28 Tom Tromey <tromey@cygnus.com>
3780 * prims.cc (_Jv_LookupInterfaceMethod): Removed.
3781 * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as
3783 * java/lang/natClass.cc (_Jv_GetMethodLocal): New function.
3784 (_Jv_LookupInterfaceMethod): New function (rewrote from scratch).
3786 * include/jni.h: Added copyright header.
3787 * include/javaprims.h: Added copyright header.
3788 * include/java-field.h: Added copyright header.
3789 * include/java-array.h: Added copyright header.
3790 * include/cni.h: Added copyright header.
3792 * include/javaprims.h: Regenerated class declarations using
3793 classes.pl; now they are complete.
3794 * classes.pl: New file.
3796 * java/lang/natMath.cc: Include <config.h>.
3797 * java/lang/reflect/natField.cc: Include <config.h>.
3798 * java/util/NativeUtil.java: Removed.
3799 * Makefile.in: Rebuilt.
3800 * Makefile.am (nat_headers): Added Math.h.
3801 * java/lang/Math.h: Removed.
3802 * java/util/natGregorianCalendar.cc: Added copyright header.
3804 * java/lang/natFloat.cc: Added copyright header.
3805 * java/lang/Byte.java: Added copyright header.
3806 * java/lang/Void.java: Added copyright header.
3807 * java/lang/Short.java: Added copyright header.
3809 Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com>
3811 * include/javaprims.h (java::io): Added bunch of missing classes.
3813 * java/io/DataInputStream.java (readLine): Added a special case
3814 for handling BufferedInputStream data to reduce the likelihood
3815 of a pushback error.
3816 (skipBytes): Added code to handle negative number of skip bytes.
3818 * java/io/StreamTokenizer.java: Rewritten.
3820 1998-10-28 Tom Tromey <tromey@cygnus.com>
3822 * java/util/natGregorianCalendar.cc (computeFields): Call
3823 getRawOffset as a method.
3825 * include/javaprims.h (java::io): Added FilterOutputStream.
3826 * Makefile.in: Rebuilt.
3827 * Makefile.am (nat_headers): Added PrintStream.h,
3828 FilterOutputStream.h.
3829 * java/lang/natFirstThread.cc: Include System.h, Modifier.h,
3831 (die): New function.
3832 (run): Die if `main' not found, is not public, or is not static.
3834 * boehm.cc (_Jv_MarkObj): Use new field names.
3835 * include/java-field.h (JvGetFirstInstanceField): Use new field
3837 (JvNumInstanceFields): Likewise.
3838 * java/lang/natClass.cc (isAssignableFrom): Use new field names.
3839 (getInterfaces): Likewise.
3840 * prims.cc (CLASS_CONSTANTS): Removed.
3841 (CLASS_CONST_SIZE): Likewise.
3842 (CLASS_CONST_TAG): Likewise.
3843 (CLASS_CONST_DATA): Likewise.
3844 (CLASS_CONST_UTF8): Likewise.
3845 (WORD2UTF): Likewise.
3846 (CLASS_CLASS): Likewise.
3847 (CLASS_PRIM_SIG): Likewise.
3848 (CLASS_ARRAY_CACHE): Likewise.
3849 (HASH_CHARS): Likewise.
3850 (hashClassName): Likewise.
3851 Many changes to use new field names.
3852 * java/lang/Class.h (Class): Renamed fields to track compiler.
3854 1998-10-27 Tom Tromey <tromey@cygnus.com>
3856 * java/lang/natClass.cc: Use #pragma implementation.
3857 (getComponentType): Moved into header.
3858 (getModifiers): Likewise.
3859 (getName): Likewise.
3860 (getSuperclass): Likewise.
3861 (isArray): Likewise.
3862 (isPrimitive): Likewise.
3863 * include/jvm.h (_Jv_FindClass): Declare.
3864 * java/lang/natFirstThread.cc (run): Updated for new Class.h.
3865 * java/lang/natSystem.cc (arraycopy): Updated for new Class.h.
3866 * include/javaprims.h: Use _Jv_Method, not JvMethod.
3867 * java/lang/Class.h: Rewrote from scratch.
3868 * prims.cc: Many changes to work with new Class.h.
3869 * include/java-field.h (CLASS_FIELDS): Removed.
3870 (CLASS_SFIELDS): Likewise.
3871 (CLASS_IFIELDS): Likewise.
3872 (CLASS_NFIELDS): Likewise.
3873 (CLASS_NIFIELDS): Likewise.
3874 (CLASS_NSFIELDS): Likewise.
3875 (CLASS_FSIZE): Likewise.
3876 (JvGetFirstInstanceField): Rewrote.
3877 (JvNumInstanceFields): Likewise.
3879 * java/lang/Object.h: Added copyright comment.
3881 Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com>
3883 * java/text: New package directory.
3884 * java/text/FieldPosition.java: New class.
3885 * java/text/ParsePosition.java: New class.
3886 * java/text/ParseException.java: New Exception class.
3887 * java/text/Format.java: New class.
3888 * java/text/NumberFormat.java: New (empty placeholder) class.
3889 * java/text/DateFormatSymbols.java: New class (no Locales support).
3890 * java/text/DateFormat.java: New Format class (incomplete).
3891 * java/text/SimpleDateFormat.java: New DateFormat class.
3893 * include/javaprims.h (java::test): Added new package and classes.
3894 * java/util/Calendar.java (clone): New method.
3895 * java/util/Date.java (toString): Added non-native implementation.
3896 (parse): Made public instead of synchronized.
3897 * java/util/natDate.cc (toString): Removed.
3898 * java/util/natGregorianCalendar.cc (computeFields):
3899 Use gmtime (or gmtime_r) if no zone offset (the default, for now!).
3901 1998-10-27 Tom Tromey <tromey@cygnus.com>
3903 * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces.
3905 * prims.cc (lookupArray): Added explanatory comment.
3906 * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of
3907 class. Mark the class of each object.
3908 (_Jv_MarkArray): Mark the object's class.
3910 * configure: Rebuilt.
3911 * configure.in: Create java-gc.h.
3912 * include/boehm-gc.h: New file.
3913 * include/no-gc.h: New file.
3914 * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if
3916 * java/lang/Object.h: Include java-gc.h.
3917 (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as
3918 friends, if defined.
3919 * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed
3921 (_Jv_MarkArray): Renamed from mark_array; changed signature.
3923 1998-10-26 Tom Tromey <tromey@cygnus.com>
3925 * java/lang/natCharacter.cc (isSpaceChar): Look for line and
3926 paragraph separators, not numbers.
3928 * java/io/Writer.java (write): Removed write(char) to avoid
3930 * java/util/Properties.java: Rewrote from scratch.
3931 * include/javaprims.h (java::io): Added PrintWriter,
3932 BufferedWriter, PushbackReader.
3934 Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com>
3936 * java/lang/System.java: exit() is a static method.
3938 1998-10-26 Tom Tromey <tromey@cygnus.com>
3940 * java/lang/natString.cc (_Jv_NewStringUTF): Use
3942 (_Jv_NewStringUtf8Const): Likewise.
3943 * include/jvm.h (_Jv_strLengthUtf8): Declare.
3944 * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8.
3946 * java/lang/Object.h (Object): Add mark_array as friend function.
3947 * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not
3948 _Jv_AllocBytes, to ensure that header is marked.
3949 * boehm.cc (mark_obj): Push sync_info field for all objects, not
3951 (mark_array): Push sync_info field for array.
3953 1998-10-24 Tom Tromey <tromey@cygnus.com>
3955 * java/lang/String.java (String): Updated for StringBuffer
3957 * java/util/BitSet.java: Renamed field (data->bits) to conform to
3959 * java/lang/StringBuffer.java: Renamed fields to conform to
3960 serialization spec: buffer->value, next->count, copy->shared.
3962 Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com>
3964 * java/util/TimeZone.java: New class.
3965 * java/util/SimpleTimeZone.java: New class.
3966 * java/util/Locale.java: New file.
3967 * java/util/Calendar.java: Make almost complete.
3968 * java/util/GregorianCalendar.java
3969 * java/util/natGregorianCalendar.cc: New file.
3970 * java/util/Date.java: Re-written from scratch.
3971 * java/util/natDate.cc (setTime): Removed - no longer native.
3972 * include/javaprims.h (java::util): Add new classes.
3973 * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o.
3974 (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h.
3976 Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com>
3978 * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before
3979 returning it as a jint.
3981 1998-10-23 Tom Tromey <tromey@cygnus.com>
3983 * prims.cc (arg_vec, main_group, main_thread): New globals.
3984 (JvRunMain): Use them.
3986 Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com>
3988 * java/io/DataInputStream.java: Rewritten.
3990 * java/io/DataOutputStream.java (writeUTF): OR secondary and
3991 tertiary bytes with 0x80 per spec.
3993 1998-10-23 Tom Tromey <tromey@cygnus.com>
3995 * java/lang/String.java (init): Changed name of `copy' argument.
3996 * java/lang/natString.cc (init): Inverted sense of `copy'
3999 * java/lang/Object.h (Object): Declare mark_obj as a friend.
4000 * java/lang/Class.h (Class): Declare mark_obj as a friend.
4001 * boehm.cc (ObjectClass): New define.
4002 (ClassClass): Likewise.
4003 (mark_obj): Special-case Object and Class.
4005 * prims.cc (_Jv_NewPrimArray): Pass correct args to memset.
4007 * java/util/BitSet.java: Rewrote from scratch.
4009 * prims.cc (lookupArray): Removed useless cast.
4011 * java/lang/natObject.cc: Use `#pragma implementation'.
4013 * java/lang/String.java (init): Added `copy' argument.
4014 (String): Look in StringBuffer to find char array.
4015 * java/lang/natString.cc (init): Added `copy' argument.
4016 * java/lang/StringBuffer.java: Rewrote from scratch.
4018 * java/lang/Compiler.java: Rewrote from scratch.
4019 * java/lang/Throwable.java: Don't use NativeLang.
4020 * include/javaprims.h (java::lang): Don't mention NativeLang.
4021 * java/lang/Process.java: Rewrote from scratch.
4022 * java/lang/SecurityManager.java (classLoaderDepth): Commented
4024 (currentClassLoader): Likewise.
4025 (currentLoadedClass): Likewise.
4026 * java/lang/natClass.cc (getClassLoader): Commented out.
4027 * java/lang/Class.java (getClassLoader): Commented out.
4028 * java/lang/Compiler.java: Removed.
4029 * java/lang/NativeLang.java: Removed.
4031 * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const.
4032 * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const.
4033 * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const.
4034 (_Jv_hashUtf8String): Now static.
4035 * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as
4036 name of return type.
4038 * java/lang/Class.h (Class): Declare checkMemberAccess.
4039 * Makefile.in: Rebuilt.
4040 * Makefile.am (nat_headers): Added Member.h.
4041 * java/lang/natClass.cc: Include Member.h.
4042 (getDeclaredClasses): Call checkMemberAccess.
4043 * java/lang/Class.java (checkMemberAccess): Call
4044 SecurityManager.checkMemberAccess.
4046 Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com>
4048 * java/lang/SecurityManager.java: Rewritten.
4050 Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com>
4052 * java/applet/Applet.java, java/applet/AppletContext.java,
4053 java/applet/AppletStub.java, java/applet/AudioClip.java,
4054 java/awt/AWTError.java, java/awt/AWTException.java,
4055 java/awt/BorderLayout.java, java/awt/Button.java,
4056 java/awt/Canvas.java, java/awt/CardLayout.java,
4057 java/awt/Checkbox.java, java/awt/CheckboxGroup.java,
4058 java/awt/CheckboxMenuItem.java, java/awt/Choice.java,
4059 java/awt/Color.java, java/awt/Component.java,
4060 java/awt/Container.java, java/awt/Dialog.java,
4061 java/awt/Dimension.java, java/awt/Event.java,
4062 java/awt/FileDialog.java, java/awt/FlowLayout.java,
4063 java/awt/Font.java, java/awt/FontMetrics.java,
4064 java/awt/Frame.java, java/awt/Graphics.java,
4065 java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java,
4066 java/awt/GridLayout.java, java/awt/Image.java,
4067 java/awt/Insets.java, java/awt/Label.java,
4068 java/awt/LayoutManager.java, java/awt/List.java,
4069 java/awt/MediaTracker.java, java/awt/Menu.java,
4070 java/awt/MenuBar.java, java/awt/MenuComponent.java,
4071 java/awt/MenuContainer.java, java/awt/MenuItem.java,
4072 java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java,
4073 java/awt/Rectangle.java, java/awt/Scrollbar.java,
4074 java/awt/TextArea.java, java/awt/TextComponent.java,
4075 java/awt/TextField.java, java/awt/Toolkit.java,
4076 java/awt/Window.java, java/awt/image/ColorModel.java,
4077 java/awt/image/CropImageFilter.java,
4078 java/awt/image/DirectColorModel.java,
4079 java/awt/image/FilteredImageSource.java,
4080 java/awt/image/ImageConsumer.java,
4081 java/awt/image/ImageFilter.java,
4082 java/awt/image/ImageObserver.java,
4083 java/awt/image/ImageProducer.java,
4084 java/awt/image/IndexColorModel.java,
4085 java/awt/image/MemoryImageSource.java,
4086 java/awt/image/PixelGrabber.java,
4087 java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java,
4088 java/awt/peer/CanvasPeer.java,
4089 java/awt/peer/CheckboxMenuItemPeer.java,
4090 java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java,
4091 java/awt/peer/ComponentPeer.java,
4092 java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java,
4093 java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java,
4094 java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java,
4095 java/awt/peer/MenuBarPeer.java,
4096 java/awt/peer/MenuComponentPeer.java,
4097 java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java,
4098 java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java,
4099 java/awt/peer/TextAreaPeer.java,
4100 java/awt/peer/TextComponentPeer.java,
4101 java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java,
4102 java/net/ContentHandler.java, java/net/ContentHandlerFactory.java,
4103 java/net/DatagramPacket.java, java/net/DatagramSocket.java,
4104 java/net/DefaultSocketImpl.java, java/net/InetAddress.java,
4105 java/net/MalformedURLException.java, java/net/NativeNet.java,
4106 java/net/ProtocolException.java, java/net/ServerSocket.java,
4107 java/net/Socket.java, java/net/SocketException.java,
4108 java/net/SocketImpl.java, java/net/SocketImplFactory.java,
4109 java/net/URL.java, java/net/URLConnection.java,
4110 java/net/URLEncoder.java, java/net/URLStreamHandler.java,
4111 java/net/URLStreamHandlerFactory.java,
4112 java/net/UnknownHostException.java,
4113 java/net/UnknownServiceException.java: Removed.
4115 1998-10-22 Tom Tromey <tromey@cygnus.com>
4117 * prims.cc (_Jv_AllocObject): Register finalizer if class'
4118 finalizer is not Object.finalize.
4119 (internalAddClass): Don't set `final' member of class.
4120 * java/lang/Object.h: Updated _JvObjectPrefix comment to mention
4121 other places that know about finalize() location.
4122 * java/lang/Class.h (Class): Removed `final' field.
4124 * aclocal.m4, configure: Rebuilt.
4125 * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use
4126 AC_CHECK_PROGS; otherwise the CXX cache variable might not be
4128 * configure.in (AC_OUTPUT): Pass CXX to config.status.
4129 * Makefile.in: Rebuilt.
4130 * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS.
4132 1998-10-21 Tom Tromey <tromey@cygnus.com>
4134 * java/lang/Object.java (finalize): Move to be first method in
4137 * configure: Rebuilt.
4138 * configure.in (GCINCS): Include contents of boehm-cflags file.
4140 Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4142 * java/lang/ArrayIndexOutOfBoundsException.java
4143 (ArrayIndexOutOfBoundsException): Fixed string literal.
4144 * java/lang/StringIndexOutOfBoundsException.java
4145 (StringIndexOutOfBoundsException): Fixed string literal.
4147 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4149 * natFileDescriptorEcos.cc added.
4150 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4152 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk>
4154 * acconfig.h: test for __int32_t and __uint32_t added.
4155 * include/config.h.in: test for __int32_t and __uint32_t added.
4156 * java/lang/fdlibm.h: test for __int32_t and __uint32_t added.
4157 * java/lang/mprec.h: test for __int32_t and __uint32_t added.
4158 * configure.in: test for __int32_t and __uint32_t added.
4159 * configure: test for __int32_t and __uint32_t added.
4161 * natFileDescriptor.cc renamed natFileDescriptorPosix.cc.
4163 * configure.in: Test for --enable ecos and link
4164 natFileDescriptor.cc to natFileDescriptorEcos.cc or
4165 natFileDescriptorPosix.cc
4167 * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG.
4169 Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com>
4171 * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed
4174 * java/io/CharArrayReader.java (close): Synchronize on lock
4175 object per Reader contract.
4176 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4177 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4178 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4179 Ensure that arg passed in isn't negative.
4181 * java/io/FilterReader.java (FilterReader): Use the lock obj when
4182 constructing the superclass.
4184 * java/io/PushbackReader.java (close): Synchronize on lock
4185 object per Reader contract.
4186 (read): Synchronize on lock obj. Verify that reader wasn't closed.
4187 (ready): Synchronize on lock obj. Throw IOException if reader
4189 (reset): Synchronize on lock obj. Verify that reader wasn't closed.
4190 (skip): Synchronize on lock obj. Verify that reader wasn't closed.
4191 Ensure that arg passed in isn't negative.
4192 (unread): Synchronize on lock obj. Verify that reader wasn't closed.
4194 * java/io/StringReader.java: Created.
4196 Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com>
4198 * java/io/CharArrayReader.java (mark): Removed synchronized modifier
4200 (read): Removed synchronized modifier to match JCL.
4201 (reset): Removed synchronized modifier to match JCL.
4202 (skip): Removed synchronized modifier to match JCL.
4204 Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com>
4206 * java/io/PushbackReader.java (PushbackReader): Made
4207 constructors public.
4209 1998-10-17 Tom Tromey <tromey@cygnus.com>
4211 * java/io/PushbackInputStream.java (PushbackInputStream): Made
4212 constructors public.
4214 1998-10-16 Anthony Green <green@cygnus.com>
4216 * aclocal.m4, configure: Rebuilt.
4217 * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new
4219 * configure.host: Rewrote.
4220 * Makefile.in: Rebuilt.
4221 * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS.
4222 (AM_CFLAGS): New macro.
4223 ($(c_files)): Use COMPILE macro.
4224 (EXTRA_libjava_a_SOURCES): Added dummy file to work around
4225 automake problem(s).
4227 Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com>
4229 * java/io/ByteArrayInputStream.java (mark): Removed temp. comment.
4231 * java/io/CharArrayReader.java: Created.
4233 Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com>
4235 * java/io/PushbackInputStream.java (PushbackInputStream): Changed
4236 size check to allow 0 per JCL.
4238 * java/io/PushbackReader.java: Created.
4240 1998-10-16 Tom Tromey <tromey@cygnus.com>
4242 * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>,
4243 <sys/time.h> includes.
4244 * java/io/natFile.cc: Conditionalize <unistd.h> include.
4245 * include/no-threads.h: Conditionalize <unistd.h> include on
4248 Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4250 * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP
4253 Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com>
4255 * java/io/FilterReader.java: Created.
4257 Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com>
4259 * java/io/PushbackInputStream.java: Rewritten.
4261 * java/io/BufferedInputStream.java (BufferedInputStream): Check
4262 that size passed to constructor is legal.
4263 (read): Check that args passed in are legal.
4264 (skip): Rewritten to get rid of the temporary buffer.
4265 (refill): Added marklimit check to grow the buffer.
4267 * java/io/ByteArrayInputStream.java (read): Optimized invalid args
4269 (bytesAvail): Removed.
4270 (read): Changed bytesAvail to Math.min.
4271 (skip): Changed bytesAvail to Math.min.
4273 * java/io/InputStream.java (read): Got rid of extraneous exceptions
4274 from the throws clause.
4275 (skip): Rewritten to use a temporary buffer.
4277 Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk>
4279 * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on
4282 * java/lang/dtoa.c: (print): Made #ifdef DEBUG only.
4284 * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster
4285 to write the double one word at a time.
4287 Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com>
4289 * java/io/BufferedInputStream.java: Rewritten.
4291 1998-10-12 Tom Tromey <tromey@cygnus.com>
4293 * jni.cc: Include config.h and stddef.h.
4295 * java/lang/Class.h (_dispatchTable): Removed again.
4296 Removed all ACC_* defines again.
4298 Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com>
4300 * Makefile.am (nat_files): Add netField.o.
4301 (libjava_a_SOURCES): Add jni.cc.
4302 (java/lang/reflect/Field.h): New rule.
4303 * Makefile.in: Re-generated.
4304 * include/javaprims.h: Add some extra class and typedefs.
4305 * include/jni.h: New file.
4308 * include/java-field.h: New file.
4309 * include/jvm.h: #include <java-field.h>.
4310 * boehm.cc: #include <java-field.h>.
4311 * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h.
4312 * java/lang/reflect/Member.java: New class.
4313 * java/lang/reflect/Field.java: New class. (Very incomplete.)
4314 * java/lang/reflect/natField.cc: New file. (Very incomplete.)
4316 Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com>
4318 * Makefile.in, aclocal.m4, configure, test/Makefile.in,
4319 testsuite/Makefile.in: Rebuilt.
4320 * Makefile.am, acinclude.m4, configure.in: Add multilib support.
4321 * configure.host: Created.
4323 1998-10-10 Tom Tromey <tromey@cygnus.com>
4325 * java/lang/natObject.cc (sync_init): Always allocate a new
4328 1998-10-09 Tom Tromey <tromey@cygnus.com>
4330 * java/io/ByteArrayInputStream.java (mark): Renamed from
4333 * java/io/FileOutputStream.java (finalize): Removed.
4334 * java/io/FileDescriptor.java (finalize): New method.
4336 Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com>
4338 * ByteArrayInputStream.java: Corrected status comment.
4340 Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com>
4342 * ByteArrayInputStream.java, FilterInputStream.java: Rewritten.
4344 1998-10-08 Tom Tromey <tromey@cygnus.com>
4346 * prims.cc (lookupArray): Use static array to initialize list of
4349 Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com>
4351 * prims.cc (lookupArray): Initialize the msize for new
4354 Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com>
4356 * configure: Rebuilt.
4357 * configure.in: Check for fsync and sleep.
4358 * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added.
4360 * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with
4361 HAVE_SLEEP. Include config.h.
4363 * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added.
4364 * java/io/natFileDescriptor.cc (sync): Wrap fsync() use
4367 1998-10-08 Tom Tromey <tromey@cygnus.com>
4369 * java/io/natFile.cc: Don't include SecurityManager.h.
4370 (performList): Renamed.
4371 (performMkdir): Likewise.
4372 (performRenameTo): Likewise.
4373 (performDelete): Likewise.
4375 * java/io/File.java (performDelete): Renamed from natDelete.
4376 (list): Now written in Java.
4377 (performList): New method.
4378 (performMkdir): New method.
4379 (mkdir): Now written in Java.
4380 (performRenameTo): New method.
4381 (renameTo): Now written in Java.
4383 1998-10-06 Tom Tromey <tromey@cygnus.com>
4385 * Makefile.in: Rebuilt.
4386 * Makefile.am (ETAGS_ARGS): New macro.
4387 (TAGS_DEPENDENCIES): Likewise.
4389 Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com>
4391 * Makefile.in: Rebuilt.
4392 * Makefile.am: Use -classpath option with javac.
4394 Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com>
4396 * java/io/FileOutputStream.java (finalize): Call
4399 Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com>
4401 * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts
4403 * java/lang/mprec.c: Ditto.
4405 * java/lang/mprec.h: Include math.h for HUGE_VAL when
4408 Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com>
4410 * java/io/InputStream.java (skip): Make local var i a long.
4412 Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com>
4414 * java/lang/natObject.cc (clone): Use memcpy, not memmove.
4415 * prims.cc (lookupArray): Use memcpy, not memmove.
4416 * include/config.h.in: Rebuilt.
4417 * acconfig.h (HAVE_MEMCPY): Added.
4418 * configure: Rebuilt.
4419 * configure.in: Check for memcpy again.
4421 * java/io/RandomAccessFile.java (RandomAccessFile): Use
4422 String.compareTo, not ==.
4424 * java/lang/Class.h (Class): Use _Jv_DispatchTable.
4425 (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable.
4426 * java/lang/natObject.cc (struct _dispatchTable): Removed.
4427 * include/jvm.h (struct _Jv_DispatchTable): New structure.
4428 * prims.cc (lookupArray): Removed dead code. Copy Object's dtable
4429 into new array's dtable.
4430 (_Jv_AllocObject): Use _Jv_DispatchTable.
4431 (_Jv_NewPrimArray): Likewise.
4432 (_Jv_NewObjectArray): Likewise.
4434 Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4436 * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the
4437 offending index value.
4438 (_Jv_NewPrimArray): Throw NegativeArraySizeException when
4440 * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration.
4441 * java/lang/Throwable.java: (Throwable): fixed argument to this().
4443 Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com>
4445 * java/io/DataInput.java, java/io/InputStream.java: Rewritten.
4447 * java/io/OutputStream.java (write): Use off and len parameters to
4448 output partial byte array.
4450 * java/io/BufferedReader.java, java/io/FileReader.java,
4451 java/io/InputStreamReader.java, java/io/LineNumberReader.java,
4452 java/io/OutputStreamWriter.java, java/io/PrintWriter.java,
4453 java/io/Reader.java, java/io/UnsupportedEncodingException.java,
4454 java/io/Writer.java: Added COPYRIGHT-TBD comment.
4456 * include/javaprims.h (java::lang): Added
4457 ExceptionInInitializerError, IllegalStateException,
4458 NoSuchFieldException, and UnsupportedOperationException.
4460 Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com>
4462 * java/lang/natObject.cc (CloneableClass): Is a Class, not a
4465 * include/java-array.h (__JArray): Added clone method.
4466 * prims.cc (CloneableClass): New define.
4467 (lookupArray): Initialize array class to indicate that it
4468 implements Cloneable.
4470 * java/lang/Class.h: Removed all ACC_* defines.
4471 * prims.cc: Include Modifier.h.
4472 (_Jv_LookupInterfaceMethod): Use methods in
4473 java.lang.reflect.Modifier, not ACC_ defines.
4475 * java/lang/Class.h (Class): Declare getClasses,
4476 getDeclaredClasses, getDeclaringClass, getModifiers,
4477 * java/lang/Class.java: Rewrote from scratch.
4479 * include/javaprims.h (java::lang): Added reflect and
4481 * Makefile.in: Rebuilt.
4482 * Makefile.am (nat_headers): Added Modifier.h.
4484 * prims.cc (_Jv_IsInstanceOf): Return false if class is
4487 Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com>
4489 * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert
4490 instead of test and abort.
4492 * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to
4493 remove compiler warning.
4495 Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk>
4497 * java/lang/natDouble.cc: zero terminate string.
4498 * strtod.c: Set errno if no digits are found in fraction.
4500 Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com>
4502 * java/lang/reflect/Modifier.java: New file.
4504 * java/lang/VirtualMachineError.java: Rewrote from scratch.
4505 * java/lang/VerifyError.java: Rewrote from scratch.
4506 * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch.
4507 * java/lang/UnknownError.java: Rewrote from scratch.
4508 * java/lang/StackOverflowError.java: Rewrote from scratch.
4509 * java/lang/OutOfMemoryError.java: Rewrote from scratch.
4510 * java/lang/InternalError.java: Rewrote from scratch.
4511 * java/lang/IllegalAccessError.java: Rewrote from scratch.
4512 * java/lang/ExceptionInInitializerError.java: New file.
4513 * java/lang/Error.java: Rewrote from scratch.
4514 * java/lang/ClassFormatError.java: Rewrote from scratch.
4515 * java/lang/ClassCircularityError.java: Rewrote from scratch.
4516 * java/lang/AbstractMethodError.java: Rewrote from scratch.
4517 * java/lang/NoClassDefFoundError.java: Rewrote from scratch.
4518 * java/lang/NoSuchFieldError.java: Rewrote from scratch.
4519 * java/lang/LinkageError.java: Rewrote from scratch.
4520 * java/lang/IncompatibleClassChangeError.java: Rewrote from
4522 * java/lang/NoSuchMethodError.java: Rewrote from scratch.
4524 * java/lang/natObject.cc (_Jv_FinalizeObject): New function.
4525 * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a
4527 * include/cni.h (JvAllocObject): Moved from prims.cc.
4529 * prims.cc (JvAllocObject): Moved to cni.h.
4530 (_Jv_AllocObject): Use _Jv_FinalizeObject.
4531 (finalize_name): Removed.
4533 Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com>
4535 * java/lang/Class.h (Class): Added size() method.
4536 * prims.cc (_Jv_MonitorEnter): Removed.
4537 (_Jv_MonitorExit): Removed.
4538 * java/lang/Object.h (JvSyncInfo): Removed.
4539 * Makefile.in: Rebuilt.
4540 * Makefile.am (nat_headers): Added Cloneable.h,
4541 CloneNotSupportedException.h.
4542 * java/lang/Object.h: Rewrote.
4543 * java/lang/natObject.cc: Rewrote from scratch.
4544 * java/lang/Object.java: Rewrote from scratch.
4546 * java/io/natFile.cc: Conditionally include <dirent.h>.
4547 (list): If no <dirent.h>, always return NULL.
4548 * configure: Rebuilt.
4549 * configure.in: Check for dirent.h.
4551 * prims.cc (lookupArray): Don't use sprintf.
4553 * java/util/Hashtable.java (containsKey): Use `abs' to compute
4560 * java/util/Hashtable.java (hsize): Renamed from size to avoid
4561 name conflict with method.
4563 * include/javaprims.h (java::util): Added HashtableEntry.
4565 Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com>
4567 * java/util/Hashtable.java: Rewritten.
4569 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
4571 * java/io/natFileDescriptor.cc (write): Correctly test `write'
4575 * java/lang/natThread.cc (join): Fixed assertion to refer to `nt',
4578 * posix-threads.cc (_Jv_CondWait): Now returns int.
4579 * include/javaprims.h (java::lang): Added
4580 IllegalMonitorStateException.
4581 * Makefile.in: Rebuilt.
4582 * Makefile.am (nat_headers): Added IllegalMonitorStateException.h.
4583 * include/no-threads.h (_Jv_CondDestroy): Removed.
4584 (_Jv_MutexDestroy): Removed.
4585 (_Jv_CondWait): Now returns int.
4586 (_Jv_CondNotify): Likewise. Added mutex argument.
4587 (_Jv_CondNotifyAll): Likewise.
4588 (_Jv_MutexLock): Always succeed.
4589 (_Jv_MutexUnlock): Likewise.
4590 * include/posix-threads.h (_Jv_HaveCondDestroy): Define.
4591 (_Jv_HaveMutexDestroy): Define.
4592 (_Jv_CondNotify): Now returns int. Added mutex argument.
4593 (_Jv_CondNotifyAll): Likewise.
4594 * include/quick-threads.h (_Jv_CondDestroy): Removed.
4595 (_Jv_MutexDestroy): Removed.
4596 (_Jv_CondWait): Now returns int.
4597 (_Jv_CondNotify): Likewise. Added mutex argument.
4598 (_Jv_CondNotifyAll): Likewise.
4599 * java/lang/natObject.cc (finalize_sync_info): New function.
4600 (init_mutex): Initialize `init' and register finalizer if
4603 (init_mutex): Use it.
4605 (notifyAll): Use it.
4607 (notify): Throw IllegalMonitorStateException on failure.
4608 (notifyAll): Likewise.
4609 (wait): Likewise. Also, throw InterruptedException if
4611 Include cni.h, Thread.h, IllegalMonitorStateException.h,
4612 InterruptedException.h, IllegalArgumentException.h.
4613 * java/lang/Object.h (struct JvSyncInfo): Added `init' member.
4615 * java/lang/natString.cc: Renamed all `JvPriv' functions.
4616 * java/lang/natRuntime.cc: Renamed all `JvPriv' functions.
4617 * java/lang/Object.h: Renamed all `JvPriv' functions (and types).
4618 * java/lang/natObject.cc: Renamed all `JvPriv' functions.
4619 * java/lang/natThread.cc: Renamed all `JvPriv' functions.
4620 * quick-threads.cc: Renamed all `JvPriv' functions.
4621 * prims.cc: Renamed all `JvPriv' functions.
4622 * posix-threads.cc: Renamed all `JvPriv' functions.
4623 * nogc.cc: Renamed all `JvPriv' functions.
4624 * no-threads.cc: Renamed all `JvPriv' functions.
4625 * boehm.cc: Renamed all `JvPriv' functions.
4626 * include/quick-threads.h: Renamed all `JvPriv' functions.
4627 * include/posix-threads.h: Renamed all `JvPriv' functions.
4628 * include/no-threads.h: Renamed all `JvPriv' functions.
4629 * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'.
4631 * include/no-threads.h (JvPrivCondWait): Wrote minimal
4633 (JvPrivCondNotify): Do nothing.
4634 (JvPrivCondNotifyAll): Do nothing.
4636 * prims.cc (processClass): Handle case where state is
4639 * java/lang/natFirstThread.cc: Include <stdlib.h>
4641 * configure: Rebuilt.
4642 * configure.in: Fixed sense of --enable-libjava-debug.
4644 * java/lang/natThread.cc (join): Declare `t' outside the loop so
4645 it can be used afterward by the assertion.
4647 * configure: Rebuilt.
4648 * configure.in: When cross-compiling, assume alloca.
4650 * java/lang/natDouble.cc: Updated alloca magic to avoid use of
4651 __builtin_alloca (autoconf docs are wrong here).
4653 * java/io/natFileDescriptor.cc (close): Set fd to -1 before
4655 (available): Use `FD_ZERO' (typo fix).
4657 Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
4659 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
4660 java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed
4662 * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c,
4663 java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed
4666 * java/lang/natDouble.cc: layout changed to match GNU coding standard.
4668 Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com>
4670 * java/lang/natDouble.cc: Declare alloca safely.
4672 * configure, include/config.h.in: Rebuilt.
4673 * configure.in: Add alloca check.
4675 Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com>
4677 * java/lang/natThread.cc (finish_): Hold mutex for interrupt
4678 condition while calling notify.
4679 (join): Remove `curr_nt' from `nt's join list, not vice versa.
4680 (interrupt): Hold mutex for interrupt condition while calling
4683 * java/lang/natString.cc (init): Allocate and try to read `count'
4684 characters, not `count - offset' characters.
4686 * java/io/ByteArrayInputStream.java (ByteArrayInputStream):
4687 Correctly compute `count'.
4689 * java/lang/Boolean.java (getBoolean): Return false if property
4692 * java/lang/System.java (setProperties): Set prop_init.
4694 Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com>
4696 * java/io/PrintStream.java (println): Use line.separator, not
4698 * java/lang/System.java (out, err): Make both autoflush streams.
4699 * java/io/ByteArrayOutputStream.java (write): Increment `count'.
4701 * include/config.h.in: Rebuilt.
4702 * acconfig.h (HAVE_MEMCPY): Removed.
4703 * configure: Rebuilt.
4704 * configure.in: Never define HAVE_MEMCPY.
4706 * java/lang/natString.cc: Don't include OutOfMemoryError.h or
4708 (_Jv_AllocString): Use JvAllocObject again.
4709 * java/lang/Class.h (thread): New field.
4710 (_Jv_AllocString): No longer a friend.
4711 * prims.cc (processClass): Removed dead code. Changed to more
4712 closely follow the Java Language Specification.
4713 (processClass): Return early if already at the right state.
4715 * prims.cc (JvNewStringUTF): Removed.
4716 * include/cni.h (JvNewStringUTF): New function.
4717 (_Jv_NewStringUTF): Declare as `extern "C"'.
4718 * java/lang/natString.cc (_Jv_NewStringUTF): New function.
4720 * java/lang/natDouble.cc: Added copyright info and header
4721 comment. Include <stdlib.h>.
4722 (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many
4723 bytes as are chars in string.
4725 Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com>
4727 * java/util/Hashtable.java (hkeys): Member renamed from to avoid
4731 * java/lang/System.java (init_properties): Now native.
4732 * java/lang/natSystem.cc (init_properties): New method.
4733 Include java/util/Properties.h.
4735 * Makefile.in: Rebuilt.
4736 * Makefile.am (nat_headers): Added ByteArrayOutputStream.h,
4737 OutputStreamWriter.h, ByteArrayInputStream.h,
4738 InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h,
4739 Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h,
4740 SyncFailedException.h, EOFException.h, FileNotFoundException.h,
4741 Properties.h, Hashtable.h, Dictionary.h.
4744 * include/javaprims.h (java::io): Added Reader, Writer,
4745 InputStreamReader, OutputStreamWriter,
4746 UnsupportedEncodingException, ByteArrayInputStream,
4747 ByteArrayOutputStream, EOFException, SyncFailedException,
4748 PushbackInputStream.
4749 (java::lang): Added Cloneable.
4750 (java::util): Added NoSuchElementException, VectorEnumeration,
4751 Dictionary, HashtableEnumeration, PropertiesEnumeration.
4753 * java/io/PipedReader.java: New file.
4755 Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com>
4757 * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick
4760 * java/io/io-defs.h: Removed.
4762 * java/io/FileInputStream.java (skip): Use FileDescriptor.seek.
4763 (FileInputStream): Use new constructor. Can throw IOException.
4765 * java/lang/System.java (getProperty): Don't throw
4766 NullPointerException.
4768 * java/io/RandomAccessFile.java: Rewrote from scratch.
4770 * java/io/natFileDescriptor.cc: Include EOFException.h.
4772 (length): New method.
4773 (getFilePointer): New method.
4775 (available): New method.
4776 * java/io/FileDescriptor.java (SET, CUR): New constants.
4777 (seek, length, getFilePointer, read, available): New decls.
4779 * java/io/PipedWriter.java: New file.
4780 * java/io/StringWriter.java: New file.
4781 * java/io/CharArrayWriter.java: New file.
4782 * java/io/CharConversionException.java: New file.
4783 * java/io/BufferedWriter.java: New file.
4784 * java/io/FilterWriter.java: New file.
4785 * java/io/FileWriter.java: New file.
4787 * java/lang/natString.cc: Include ByteArrayOutputStream.h,
4788 OutputStreamWriter.h, NullPointerException.h,
4789 ByteArrayInputStream.h, InputStreamReader.h.
4790 (getBytes): New method.
4791 (init): Throw NullPointerException.
4792 (init): New function.
4793 * java/lang/String.java (getBytes): Added missing decl.
4794 (getBytes): New method.
4795 (String): Added byte[]-based constructors.
4796 (copyValueOf): Wrote.
4797 (init): Declare variant which takes byte array and encoding.
4798 Import java.io.UnsupportedEncodingException.
4800 * java/io/File.java: Rewrote from scratch.
4801 * java/io/natFileDescriptor.cc: Rewrote from scratch.
4802 * java/io/FileDescriptor.java: Rewrote from scratch.
4803 * java/io/FilenameFilter.java: Rewrote from scratch.
4805 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
4807 * java/io/SyncFailedException.java: New file.
4808 * java/io/UTFDataFormatException.java: Rewrote from scratch.
4809 * java/io/InterruptedIOException.java: Rewrote from scratch.
4810 * java/io/FileNotFoundException.java: Rewrote from scratch.
4811 * java/io/EOFException.java: Rewrote from scratch.
4812 * java/io/IOException.java: Rewrote from scratch.
4813 * java/io/PrintStream.java: Rewrote from scratch.
4814 * java/io/DataOutputStream.java: Rewrote from scratch.
4815 * java/io/BufferedOutputStream.java: Rewrote from scratch.
4816 * java/io/FilterOutputStream.java: Rewrote from scratch.
4817 * java/io/ByteArrayOutputStream.java: Rewrote from scratch.
4818 * java/io/PipedOutputStream.java: Rewrote from scratch.
4819 * java/io/FileOutputStream.java: Rewrote from scratch.
4820 * java/io/OutputStream.java: Rewrote from scratch.
4821 * java/io/DataOutput.java: Rewrote from scratch.
4823 Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com>
4825 * prims.cc (_Jv_CheckCast): Add missing ! operator.
4827 Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com>
4829 * configure.in: Add --enable-libjava-debug
4831 * Makefile.am (nat_headers): Add java/lang/Float.h and
4834 * acconfig.h: Add DEBUG and HAVE_MEMCPY.
4836 * Makefile.in, configure, include/config.h.in: Rebuilt.
4838 Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk>
4840 * java/lang/Float.java: Rewritten
4841 * java/lang/Double.java: Rewritten
4842 * java/lang/natFloat.cc: toString() added.
4843 * java/lang/natDouble.cc: toString() added.
4844 * java/lang/natDouble.cc: doubleValueOf() added.
4845 * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h,
4846 java/lang/strtod.c: added.
4847 * ieeefp.h: __sparc added.
4848 * Makefile.am: java/lang/Float.h and java/lang/Double.h added.
4850 Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com>
4852 * include/javaprims.h (java::lang): Added
4853 CloneNotSupportedException.
4855 * java/lang/Object.java (clone): No longer native. Implemented.
4856 * java/lang/natObject.cc (clone): Removed.
4858 Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com>
4860 * prims.cc: Don't make definitions `extern "C"'.
4861 (_Jv_RegisterClass): Renamed from registerClass.
4862 * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare.
4863 (_Jv_NewArray): Likewise.
4864 (_Jv_NewMultiArray): Likewise.
4865 (_Jv_CheckCast): Likewise.
4866 (_Jv_LookupInterfaceMethod): Likewise.
4867 (_Jv_CheckArrayStore): Likewise.
4868 (_Jv_RegisterClass): Likewise.
4870 * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed.
4871 * configure: Rebuilt.
4872 * configure.in: Don't check for fmod; it is provided by the fdlibm
4874 * prims.cc (fmod): Removed.
4876 * java/lang/natString.cc (charAt): Use _Jv_uint.
4877 * java/lang/Class.h (class JvField): Use _Jv_ushort.
4878 * prims.cc (HASH_CHARS): Use _Jv_ushort.
4879 (equalUtf8Consts): Likewise.
4880 (internalAddClass): Use _Jv_uint.
4881 (processClass): Likewise.
4882 * include/javaprims.h (_Jv_ushort): Renamed from uint16.
4883 (_Jv_uint): Renamed from uint32.
4884 (struct _Jv_Utf8Const): Changed members to use new type names.
4886 * configure: Rebuilt.
4887 * configure.in: Don't check for memcpy. Require memmove and a way
4889 * java/lang/natSystem.cc (arraycopy): Removed dead code, and
4891 (currentTimeMillis): Don't use #error.
4893 Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk>
4895 * java/lang/Math.java: static member random renamed to random_ to
4896 avoid conflict with member function of the same name.
4897 * include/javaprims.h: java.util.Random added.
4899 Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com>
4901 * include/java-chartables.h: Regenerated.
4902 * chartables.pl: End COMPACT_CHARACTER #if after fast tables
4905 Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk>
4907 * java/lang/Math.java: Rewritten.
4908 * java/lang/natMath.cc: New file.
4909 * Files added from fdlibm:
4910 java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c,
4911 java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c,
4912 java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c,
4913 java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c,
4914 java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c,
4915 java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c,
4916 java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c,
4917 java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c,
4918 java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c,
4919 java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c,
4920 java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c,
4921 java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c,
4922 java/lang/k_cos.c, java/lang/sf_ceil.c,
4923 java/lang/k_rem_pio2.c, java/lang/sf_fabs.c,
4924 java/lang/ieeefp.h, java/lang/fdlibm.h
4925 * Makefile.am: rules added for compiling C files from fdlibm.
4927 Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com>
4929 * chartables.pl: Minor documentation fixes.
4931 * configure: Rebuilt.
4932 * configure.in: Fixed --help output for --enable-fast-character.
4934 Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com>
4936 * configure: Rebuilt.
4937 * configure.in: Recognize --enable-fast-character.
4938 * acconfig.h (COMPACT_CHARACTER): New define.
4939 * include/config.h.in: Rebuilt.
4940 * include/java-chartables.h: New file.
4941 * Makefile.in: Rebuilt.
4942 * Makefile.am (nat_files): Added natCharacter.o.
4943 * java/lang/natCharacter.cc: New file.
4944 * chartables.pl (set_attribute): New function.
4945 (@attributes, @second_attributes): New globals.
4946 ($ROMAN_START, $ROMAN_END): Likewise.
4947 (process_char): Call set_attribute when required.
4948 (print_char): Just print hex value.
4949 (print_block): Generate C++ syntax.
4950 (print_numerics): Likewise.
4951 (print_single_map): Likewise.
4952 (print_all_block): Likewise.
4953 (print_case_table): Likewise.
4954 (print_fast_tables): New function.
4955 Generate C++ code suitable for a header file.
4956 * java/lang/Character.java (table_search): Removed.
4957 (digit_value): Now native.
4958 (getNumericValue): Likewise.
4959 (getType): Likewise.
4960 Removed all automatically-generated tables.
4961 (Tamil_Digit_One): Removed.
4962 (isSpaceChar): Now native.
4963 (isTitleCase): Likewise.
4964 (isLowerCase): Likewise.
4965 (isUpperCase): Likewise.
4966 (toLowerCase): Likewise.
4967 (toTitleCase): Likewise.
4968 (toUpperCase): Likewise.
4969 (isDefined): Fixed sense of test.
4971 Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com>
4973 * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete
4975 (regionMatches): Likewise.
4977 Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com>
4979 * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class.
4981 * java/lang/Class.h (Object): For now, declare _Jv_AllocString as
4983 * java/lang/natString.cc (_Jv_AllocString): For now, don't call
4986 * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar,
4989 * java/lang/natClass.cc (isAssignableFrom): Handle arrays.
4991 Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com>
4993 * prims.cc (instanceof_class): Removed.
4994 (instanceof_array): Likewise.
4995 (instanceof): Likewise.
4996 (_Jv_IsInstanceOf): Use Class::isAssignableFrom.
4997 (_Jv_CheckCast): Likewise.
4998 * java/lang/natClass.cc (isAssignableFrom): New method.
4999 * java/lang/Class.java (isAssignableFrom): Now native.
5001 * include/cni.h (JvThrow): Use `extern inline'.
5002 (JvAllocObject): Likewise.
5003 (JvInitClass): Likewise.
5005 * java/lang/natSystem.cc (arraycopy): Only check class of source
5008 * prims.cc (_Jv_CheckArrayStore): Wrote.
5009 (_Jv_MonitorEnter): Prefer `JvThrow'.
5010 Include ArrayStoreException.h.
5011 (_Jv_CheckCast): Indentation cleanup.
5013 Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com>
5015 * chartables.pl: New file.
5016 * java/lang/Character.java: Rewrote from scratch.
5018 Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com>
5020 * java/lang/ArithmeticException.java,
5021 java/lang/ArrayIndexOutOfBoundsException.java,
5022 java/lang/ArrayStoreException.java,
5023 java/lang/ClassCastException.java,
5024 java/lang/ClassNotFoundException.java,
5025 java/lang/CloneNotSupportedException.java,
5026 java/lang/Exception.java, java/lang/IllegalAccessException.java,
5027 java/lang/IllegalArgumentException.java,
5028 java/lang/IllegalMonitorStateException.java,
5029 java/lang/IllegalThreadStateException.java,
5030 java/lang/IndexOutOfBoundsException.java,
5031 java/lang/InstantiationException.java,
5032 java/lang/InterruptedException.java,
5033 java/lang/NegativeArraySizeException.java,
5034 java/lang/NoSuchMethodException.java,
5035 java/lang/NullPointerException.java,
5036 java/lang/NumberFormatException.java,
5037 java/lang/RuntimeException.java, java/lang/SecurityException.java,
5038 java/lang/StringIndexOutOfBoundsException.java: Rewritten.
5040 * java/lang/IllegalStateException.java,
5041 java/lang/NoSuchFieldException.java,
5042 java/lang/UnsupportedOperationException.java: Created.
5044 Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com>
5046 * java/lang/Integer.java, java/lang/Long.java: Rewritten.
5047 * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented.
5049 Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com>
5051 * prims.cc (JvRunMain): No longer need to call _Jv_InitClass.
5053 Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com>
5055 * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h.
5057 * Makefile.in: Rebuilt.
5059 * include/javaprims.h (java::lang): Added
5060 StringIndexOutOfBoundsException.
5062 * java/lang/String.java: Added header comment and FIXME comment for
5063 missing constructors/methods.
5064 (endsWith): Adjusted offset into string to look at just the last chars.
5065 Commented out undocumented method.
5067 * java/lang/natString.cc: Added includes for
5068 ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h.
5069 (String::init): Throw StringIndexOutOfBoundsException.
5070 (String::charAt): Throw StringIndexOutOfBoundsException.
5071 (String::substring): Throw StringIndexOutOfBoundsException.
5072 (String::getChars): Throw ArrayIndexOutOfBoundsException.
5073 (String::getBytes): Throw ArrayIndexOutOfBoundsException.
5074 (String::compareTo): Return difference/offset between chars/strings.
5076 Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com>
5078 * java/lang/Boolean.java (TYPE): Added comment.
5080 * java/lang/Byte.java (decode): Added - commented out until dependent
5081 code for Integer is written.
5082 (compareTo): JDK 1.2 methods written.
5083 (hashCode): Added comment to note that values have been verified.
5085 * java/lang/Short.java (decode): Added - commented out until dependent
5086 code for Integer is written.
5087 (compareTo): JDK 1.2 methods written.
5088 (hashCode): Added comment to note that values have been verified.
5090 * java/lang/Comparable.java: Created - JDK 1.2 interface.
5092 Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com>
5094 * include/javaprims.h (java::lang): Added VirtualMachineError,
5096 * Makefile.in: Rebuilt.
5097 * Makefile.am (nat_headers): Added OutOfMemoryError.h,
5098 VirtualMachineError.h.
5099 * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError.
5100 (lookupArray): Likewise.
5101 (makeUtf8Const): Likewise.
5102 (_Jv_AllocObject): Likewise.
5103 (_Jv_NewObjectArray): Likewise.
5104 Include OutOfMemoryError.h.
5106 * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers
5107 to use JvNewStringLatin1.
5109 * java/io/io-defs.h: Include java/lang/IOException.h.
5110 * Makefile.in: Rebuilt.
5111 * Makefile.am (nat_headers): Added
5112 ArrayIndexOutOfBoundsException.h,
5113 ClassFormatError.h,ClassNotFoundException.h,
5114 ClassCircularityError.h, ClassCastException.h,
5115 IncompatibleClassChangeError.h, AbstractMethodError.h,
5116 IllegalAccessError.h, LinkageError.h, Error.h,
5117 NegativeArraySizeException.h, IOException.h.
5118 * include/cni.h (SignalError): Removed declaration.
5119 * java/util/natDate.cc (setTime): Use JvFail, not sorry.
5120 * java/lang/natObject.cc (clone): Use JvFail, not sorry.
5121 * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry.
5122 (newInstance): Likewise.
5123 (forName): Likewise.
5124 * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not
5126 (read): Use JvThrow, not SignalError.
5131 (open_read): Likewise.
5132 (open_write): Likewise.
5135 (newstr): New function.
5136 * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not
5138 (lastModifiedUnchecked): Likewise.
5139 (lengthUnchecked): Likewise.
5140 * include/javaprims.h (sorry): Removed declaration.
5141 (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError,
5142 ClassFormatError, ClassNotFoundException, ClassCircularityError,
5143 ClassCastException, IncompatibleClassChangeError,
5144 AbstractMethodError, IllegalAccessError, NegativeArraySizeException.
5145 * prims.cc (instanceof_array): Use JvFail, not sorry.
5147 Include ArrayIndexOutOfBoundsException.h,
5148 ClassFormatError.h,ClassNotFoundException.h,
5149 ClassCircularityError.h, ClassCastException.h,
5150 IncompatibleClassChangeError.h, AbstractMethodError.h,
5151 IllegalAccessError.h, NegativeArraySizeException.h.
5152 (_Jv_ThrowBadArrayIndex): Implemented.
5153 (JvNewStringUTF): Use JvFail, not sorry.
5154 (_Jv_FindClass): Likewise.
5155 (_Jv_NewArray): Likewise.
5156 (throwException): Removed.
5157 (getClass): Use JvThrow.
5158 (processClass): Likewise.
5159 (_Jv_NewObjectArray): Likewise.
5160 (_Jv_NewMultiArray): Likewise.
5161 (_Jv_CheckCast): Likewise.
5162 (_Jv_LookupInterfaceMethod): Likewise.
5163 (SignalError): Removed.
5164 (getClass): Use _Jv_NewStringUtf8Const to create String.
5166 * java/lang/natSystem.cc (arraycopy): Throw
5167 ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException.
5169 * Makefile.in: Rebuilt.
5170 * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all
5172 * include/java-array.h: Mention gcjh, not gjavah.
5174 * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion.
5175 (canReadUnchecked): Likewise.
5176 (canWriteUnchecked): Likewise.
5177 (isFileUnchecked): Likewise.
5178 * java/io/natFileDescriptor.cc: Don't include cni.h.
5180 * java/lang/Thread.java (run__): Declare.
5181 * java/lang/natThread.cc (run__): New method, to avoid compiler
5183 (start): Use run__, not run_.
5185 * java/io/io-defs.h: Include cni.h and jvm.h.
5187 Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com>
5189 Re-implement java.lang.String, using "COMPACT_STRINGS" representation.
5190 * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved
5191 to natString.cc (with suitable renaming, inlines etc).
5192 (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion.
5193 * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const.
5194 * java/lang/String.h: Removed - now generated using gjavah.
5195 * java/lang/String.java: Re-written from scratch. Many native methods.
5196 * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>.
5197 * java/lang/natString.cc: Many functions re-written for "compact
5198 strings" representation, or native java.lang.String methods added.
5199 (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const.
5200 (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods.
5201 * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const.
5202 * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion.
5203 * include/cni.h: Add inline method.
5204 * include/java-array.h (jobjectArrayjchar): gjavah bug work-around.
5205 * include/javaprims.h: Moved some stuff frm String.h.
5206 * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here.
5207 * Makefile.am (nat_header): Added Character.h and String.h.
5208 (String.h): Add new rule.
5210 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5212 * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include
5214 * posix-threads.cc: Include cni.h, jvm.h.
5215 * quick-threads.cc: Include cni.h, jvm.h.
5216 * nogc.cc: Include cni.h, not javaprims.h.
5217 * java/lang/natFirstThread.cc: Include cni.h, jvm.h.
5218 * java/lang/natThread.cc: Rearranged #include ordering. Don't
5219 include java-assert.h.
5220 * java/lang/natSystem.cc: Include cni.h. Don't include
5222 * java/lang/natRuntime.cc: Include cni.h. Don't include
5224 * prims.cc: Rearranged #include ordering. Don't include
5225 java-array.h or java-assert.h.
5226 * boehm.cc: Include config.h, cni.h.
5227 * exception.cc: Include config.h, cni.h.
5228 * include/jvm.h: Include java-assert.h.
5229 * include/cni.h: Include java/lang/Object.h. Don't include
5230 java-threads.h or java-array.h.
5232 Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com>
5234 * java/lang/Boolean.java: Rewritten.
5236 Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com>
5238 * java/lang/natFirstThread.cc (main_func): New typedef.
5239 (run): Use main_func, not JvPrivThreadStartFunc.
5240 * include/no-threads.h (JvPrivThreadStartFunc): Use correct
5242 * include/posix-threads.h (JvPrivThreadStartFunc): Use correct
5244 * include/quick-threads.h (JvPrivThreadStartFunc): Use correct
5247 Can't throw Java exceptions with C++ `throw':
5248 * quick-threads.cc (qthrow): Use _Jv_Throw, not throw.
5249 * java/lang/natThread.cc (join): Use _Jv_Throw, not throw.
5250 (setPriority): Likewise.
5254 * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw.
5255 * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw.
5257 Can't catch Java exceptions from C++:
5258 * java/lang/natThread.cc (finish_): New method.
5260 * java/lang/Thread.java (run_): Rewrote in Java.
5261 (finish_): New native method.
5263 Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com>
5265 * java/lang/Cloneable.java, java/lang/Number.java: Rewritten.
5267 * include/javaprims.h (java::io): Added Serializable.
5269 Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com>
5271 * java/util/EmptyStackException.java,
5272 java/util/NoSuchElementException.java: Rewritten.
5274 * java/util/ConcurrentModificationException.java,
5275 java/util/MissingResourceException.java,
5276 java/util/TooManyListenersException.java: Created.
5278 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5280 * include/cni.h (JvThrow): New function.
5281 * include/javaprims.h (_Jv_Throw): Declare.
5283 Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com>
5285 * java/util/Observable.java: Rewritten.
5287 Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com>
5289 * prims.cc (_Jv_MonitorExit): Assert that object is non-null.
5290 (_Jv_MonitorEnter): Throw NullPointerException if object is null.
5291 Include NullPointerException.h.
5293 Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com>
5295 * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy
5296 assignability checks. Don't bother using memcpy.
5298 * quick-threads.cc (JvPrivThreadStart): Don't call coop_start.
5300 * include/quick-threads.h (JvPrivThreadWait): New function.
5301 * include/no-threads.h (JvPrivThreadWait): New function.
5302 * include/posix-threads.h (JvPrivThreadWait): New function.
5303 * prims.cc (JvRunMain): Call JvPrivThreadWait.
5305 * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0.
5307 * java/lang/natSystem.cc (arraycopy): Multiply both src and dst
5308 offsets by size of type that is being copied.
5310 * java/lang/natThread.cc (start): Don't pass `object' argument to
5312 * no-threads.cc (JvPrivThreadStart): Removed `object' argument.
5313 * posix-threads.cc (JvPrivThreadStart): Removed `object'
5315 * quick-threads.cc (JvPrivThreadStart): Removed `object' argument;
5316 always pass thread as object.
5317 * include/quick-threads.h, include/posix-threads.h,
5318 include/no-threads.h (JvPrivThreadStart): Removed `object'
5321 Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com>
5323 * java/util/Dictionary.java: Rewritten.
5325 Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com>
5327 * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL.
5328 (JvPrivThreadDestroy): Likewise.
5330 Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com>
5332 * java/lang/natRuntime.cc (exit): Changed final call to ::exit.
5334 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5336 * java/lang/natSystem.cc: Rewrote from scratch.
5337 * java/lang/System.java: Rewrote from scratch.
5338 * java/lang/Class.h (Class): Declare isAssignableFrom.
5339 * include/javaprims.h (java::lang): Added ArrayStoreException,
5340 IndexOutOfBoundsException.
5341 * Makefile.in: Rebuilt.
5342 * Makefile.am (nat_headers): Added ArrayStoreException.h,
5343 IndexOutOfBoundsException.h.
5344 * java/lang/natObject.cc (hashCode): Use _Jv_HashCode.
5345 * include/jvm.h (_Jv_HashCode): New function.
5347 * java/lang/natThread.cc (suspend): Call checkAccess.
5349 * java/lang/Thread.java (setDaemon): Call checkAccess.
5351 Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com>
5353 * java/lang/Runtime.java: Rewrote from scratch.
5354 * java/lang/natRuntime.cc: Rewrote from scratch.
5356 * nogc.cc (JvPrivGCTotalMemory): New function.
5357 (JvPrivGCFreeMemory): Likewise.
5358 (total): New global.
5359 (JvPrivAllocObj): Increment total.
5360 (JvPrivAllocArray): Likewise.
5361 (JvPrivAllocBytes): Likewise.
5362 * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory.
5363 * boehm.cc (JvPrivGCTotalMemory): New function.
5364 (sum_blocks): Likewise.
5365 (JvPrivGCFreeMemory): Likewise.
5367 Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com>
5369 * include/javaprims.h (java::lang): Added FirstThread.
5370 * java/lang/natFirstThread.cc: New file.
5371 * java/lang/FirstThread.java: New file.
5372 * prims.cc (main_signature): Removed.
5373 (main_name): Removed.
5374 #include FirstThread.h.
5375 * Makefile.in: Rebuilt.
5376 * Makefile.am (TFRIEND): Removed.
5377 (java/lang/Thread.h): Likewise.
5378 (FTFRIEND): New macro.
5379 (java/lang/FirstThread.h): New target.
5380 (nat_files): Added natFirstThread.o.
5381 (nat_headers): Added FirstThread.h.
5382 * include/jvm.h (_Jv_StartFirstThread): Don't declare.
5383 * java/lang/natThread.cc (_Jv_StartFirstThread): Removed.
5385 * java/lang/Thread.java (setName): Throw IllegalArgumentException
5389 * java/lang/natThread.cc (start): Synchronize the thread.
5390 (stop): Synchronize the thread.
5392 * java/lang/ThreadDeath.java: Rewrote from scratch.
5394 * Makefile.in: Rebuilt.
5395 * Makefile.am (TGFRIEND): New macro.
5396 (java/lang/ThreadGroup.h): New target.
5397 ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the
5399 ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed.
5401 * nogc.cc: Include config.h.
5403 * java/lang/ThreadGroup.java: Rewrote from scratch.
5405 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
5407 * java/lang/Thread.java (checkAccess): Only call in to security
5408 manager if it exists.
5409 (Thread): Don't check access when creating the first thread. Add
5410 this thread to the appropriate ThreadGroup.
5412 * java/lang/natThread.cc (run_): Call uncaughtException method on
5415 * java/lang/Runnable.java: Rewrote from scratch.
5416 * java/lang/Thread.java: Updated copyright comment to correct
5419 Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com>
5421 * java/util/Random.java: Rewritten.
5423 Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5425 * prims.cc (_Jv_NewMultiArray): Need one more slot to store
5426 trailing 0 in array[].
5428 Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com>
5430 * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT,
5431 and RUNTESTFLAGS from AM_MAKEFLAGS.
5432 (SUBDIRS): Conditionally include testsuite.
5433 * Makefile.in: Rebuilt.
5435 Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com>
5437 * java/lang/Object.h: Include java-assert.h.
5439 Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com>
5441 * Makefile.am: Add testsuite directory.
5442 * configure.in: Build testsuite/Makefile.
5443 * Makefile.in, configure: Rebuilt.
5445 Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com>
5447 * prims.cc (JvRunMain): Use _Jv_StartFirstThread.
5448 * include/jvm.h (_Jv_StartFirstThread): Declare.
5450 * include/javaprims.h (java::lang): Added Exception,
5453 * Makefile.in: Rebuilt.
5454 * Makefile.am (nat_headers): Added NullPointerException.h,
5455 InterruptedException.h, IllegalArgumentException.h, Exception.h,
5456 Throwable.h, RuntimeException.h, IllegalThreadStateException.h.
5457 (java/lang/Thread.h): New target.
5458 (TFRIEND): New macro
5460 * include/java-assert.h (JvFail): Use 0 and not NULL.
5462 * posix-threads.cc (JvPrivThreadStart): Use getPriority() method
5463 instead of assuming we are a friend of Thread.
5464 * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method
5465 instead of assuming we are a friend of Thread.
5467 Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com>
5469 * java/lang/natThread.cc: Rewrote from scratch.
5470 * java/lang/Thread.java: Rewrote from scratch.
5471 * prims.cc (JvRunMain): Use new Thread constructor.
5472 * include/javaprims.h (java::lang): Added InterruptedException.
5473 * Makefile.in: Rebuilt.
5474 * Makefile.am (nat_headers): Added java/lang/Thread.h.
5475 * java/lang/Thread.h: Removed.
5476 * quick-threads.cc (JvPrivThreadStart): Added `data' argument.
5477 * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t
5479 * posix-threads.cc (JvPrivThreadJoin): Removed.
5480 (JvPrivThreadInitData): Don't initialize join_mutex or join_cond.
5481 (really_start): Don't notify join_cond.
5482 (JvPrivThreadStart): Added `data' argument.
5483 * include/no-threads.h (JvPrivThreadInterrupt): Removed.
5484 (JvPrivThreadJoin): Likewise.
5485 Use JvFail instead of sorry.
5486 (JvPrivThreadSuspend): Removed.
5487 (JvPrivThreadResume): Removed.
5488 * include/quick-threads.h (JvPrivThreadInterrupt): Removed.
5489 (JvPrivThreadJoin): Likewise.
5490 (JvPrivThreadSuspend): Use JvFail.
5491 (JvPrivThreadResume): Likewise.
5492 (JvPrivThreadSuspend): Removed.
5493 (JvPrivThreadResume): Likewise.
5494 * include/posix-threads.h (JvPrivThreadInterrupt): Removed.
5495 (JvPrivThread_t): Removed join_mutex, join_cond.
5496 Use JvFail instead of sorry.
5497 (JvPrivThreadSuspend): Removed.
5498 (JvPrivThreadResume): Likewise.
5500 Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com>
5502 * java/util/Observer.java: Rewritten
5503 * java/util/Enumeration.java: Rewritten
5505 Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com>
5507 * java/util/StringTokenizer.java: Rewritten
5508 * java/util/Stack.java: Added COPYRIGHT-TBD comment
5509 * java/util/Vector.java: Added COPYRIGHT-TBD comment
5510 * java/io/Serializable.java: Added COPYRIGHT-TBD comment
5512 Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com>
5514 * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG
5517 * no-threads.cc (JvPrivThreadStart): Use JvAssert.
5518 Include java-assert.h.
5519 * include/java-assert.h: New file.
5520 * prims.cc (_Jv_Abort): New function.
5521 Include java-assert.h, not assert.h.
5522 (_Jv_MonitorExit): Use JvAssert.
5523 (resolveConstants): Likewise.
5524 (processClass): Likewise.
5525 (JvRunMain): Assert that method is found.
5527 * configure: Rebuilt.
5528 * configure.in: Check for test subdir.
5529 * Makefile.in: Rebuilt.
5530 * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR.
5532 * prims.cc (JvRunMain): Use NORM_PRIORITY.
5533 * java/lang/Thread.h (Thread): Added NORM_PRIORITY.
5535 * prims.cc (resolveConstants): Removed unused variables.
5536 (processClass): Likewise.
5538 * include/quick-threads.h (JvPrivThreadCurrent): Use
5540 * quick-threads.cc (destroy_data): New function.
5541 (JvPrivInitThreads): Create key.
5542 (JvPrivThreadKey): New global.
5543 (JvPrivThreadStart): Use coop_setspecific.
5545 * include/quick-threads.h, include/posix-threads.h,
5546 include/no-threads.h, no-threads.cc, quick-threads.cc,
5547 posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment.
5549 Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com>
5551 * include/no-threads.h (JvPrivThreadInitData): Don't set
5554 * include/quick-threads.h (JvPrivCondWait): coop function now
5556 (JvPrivThreadJoin): Likewise.
5558 * java/lang/Thread.h (Thread): Updated declaration of
5560 * include/quick-threads.h, include/posix-threads.h: Updated
5561 declaration of JvPrivThreadStart.
5562 * include/no-threads.h (JvPrivThreadStart): Changed definition
5564 * no-threads.cc (JvPrivThreadStart): Removed `data' argument.
5565 * quick-threads.cc (JvPrivThreadStart): Removed `data' argument.
5566 * posix-threads.cc (JvPrivThreadStart): Removed `data' argument.
5568 Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com>
5570 * quick-threads.cc (qthrow): New function.
5571 (JvPrivInitThreads): New function.
5572 (started): New global.
5573 (JvPrivThreadStart): Call coop_start if required.
5574 * include/quick-threads.h (JvPrivThreadCancel): Implement.
5575 (JvPrivThreadDestroy): Likewise.
5576 (JvPrivInitThreads): Removed.
5577 * include/posix-threads.h (JvPrivThreadCancel): Added error
5579 * java/lang/natThread.cc (stop_): Pass exception to
5582 Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com>
5584 * include/javaprims.h (java::lang): Added
5585 IllegalArgumentException, IllegalThreadStateException, Math,
5586 NullPointerException, ThreadDeath.
5587 (java::util): Added Enumeration.
5589 * Makefile.in: Rebuilt.
5590 * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h.
5592 * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor
5594 (threadsv): Renamed from threads to avoid clash in C++ header.
5595 (groupsv): Likewise.
5596 * include/no-threads.h (JvPrivThreadStart): Removed.
5597 * no-threads.cc (JvPrivThreadStart): New function.
5598 * java/lang/Thread.java (Thread): New constructor for internal use.
5599 * java/lang/Thread.h (Thread): Declare JvRunMain as friend.
5600 (Thread): Declare constructor.
5601 * prims.cc (JvRunMain): Create the initial Thread and
5603 Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>.
5604 * posix-threads.cc (JvPrivThreadStart): Added `thread' argument.
5605 Removed `daemon' argument.
5607 * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex.
5608 * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as
5610 * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function.
5612 * Makefile.in: Rebuilt.
5613 * Makefile.am (INCLUDES): Include THREADINCS.
5615 * configure: Rebuilt.
5616 * configure.in: Recognize `qt' as a threads package.
5618 Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com>
5620 * java/util/Stack.java (pop): Null out topmost node for robustness.
5622 Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com>
5624 * java/util/Stack.java: Rewritten.
5625 * java/util/Vector.java (isEmpty): Simplified expression.
5627 Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com>
5629 * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray.
5630 (soft_anewarray): Removed, _Jv_NewObjectArray used instead.
5632 * include/java-array.h (JvNewObjectArray): Created inline to
5635 * java/lang/Class.h (_Jv_NewObjectArray): Renamed from
5638 Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com>
5640 * java/util/Vector.java: Rewritten.
5641 * java/io/Serializable.java: Created.
5643 Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com>
5645 * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY):
5646 Infinity is 1/0, not 1/1.
5648 * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc.
5650 * configure: Rebuilt.
5651 * configure.in: Removed duplicate AC_ARG_WITH.
5653 Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com>
5655 * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from
5657 (_Jv_InitClass): Renamed from soft_initialise_class.
5658 (_Jv_NewMultiArray): Renamed from soft_multianewarray.
5659 (_Jv_CheckCast): Renamed from soft_checkcast.
5660 (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod.
5661 (_Jv_CheckArrayStore): Renamed from soft_checkarraystore.
5662 (JvRunMain): Call JvInitClass instead of soft_initialise_class.
5663 * include/cni.h (JvInitClass): New function.
5664 (_Jv_InitClass): Renamed from soft_initialise_class.
5666 Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com>
5668 * configure: Rebuilt.
5669 * configure.in (CXX): Don't set.
5670 * Makefile.in: Rebuilt.
5671 * Makefile.am (AM_CXXFLAGS): New macro.
5673 * Makefile.in: Rebuilt.
5674 * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o
5675 nogc.o): New target.
5677 * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm
5679 (mark_array): Likewise.
5681 Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com>
5683 * java/lang/Class.h (JvMethod): Removed some unused fields.
5684 (JvField.info): Removed unused idx union variant.
5686 Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com>
5688 * prims.cc (makeUtf8Const): Mask off high bits of hash value to
5691 Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com>
5693 * configure.in, configure (CXX): Add -fvtable-thunks.
5695 Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com>
5697 * java/lang/Object.java (finalize): Move first.
5698 * java/lang/Object.h (_JvObjectPrefix): New dummy base class.
5699 (Object): Re-arrange order to match Object.java.
5701 Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com>
5703 * prims.cc (hashUtf8String): Fix - use new JavaSoft specification.
5704 * java/lang/natString.cc (hashChars): Likewise.
5706 * prims.cc (RuntimeClass): New macro.
5707 (JvRunMain): Do soft_initialise_class of RuntimeClass before exit.
5709 Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com>
5711 * Makefile.in: Rebuilt.
5712 * Makefile.am (AM_MAKEFLAGS): New macro.
5714 Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com>
5716 * nogc.cc: Include <javaprims.h>.
5718 * Makefile.in: Rebuilt.
5719 * Makefile.am (GJAVAH): gjavah no longer in java subdir.
5721 Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com>
5723 * exception.cc (terminate): Removed.
5724 (unexpected): Removed.
5726 * configure: Rebuilt.
5727 * configure.in: Handle case where target subdir is ".".
5729 * configure: Rebuilt.
5730 * configure.in: Compute COMPPATH based on --with-target-subdir
5731 option. Added --with-target-subdir and --with-cross-host. Use
5732 --with-cross-host to determine when a cross compiler is in use.
5734 * Makefile.in: Rebuilt.
5735 * Makefile.am (GJAVAH): Include COMPPATH.
5736 * configure: Rebuilt.
5737 * configure.in: Subst COMPPATH.
5739 Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com>
5741 * prims.cc (lockMutex): Removed.
5742 (unlockMutex): Likewise.
5743 (processClass): Lock the class using a JvSynchronize object.
5745 Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com>
5747 * java/lang/natString.cc (gc_calloc_fixed): Removed.
5748 (gc_free_fixed): Removed.
5749 (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother
5750 freeing old value of strhash.
5752 * exception.cc (_Jv_type_matcher): Cast first argument to
5755 Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com>
5757 * include/java-array.h (jstringArray): New type.
5758 * java/lang/natSystem.cc (setProperty): Removed.
5759 (initProperties): Directly call JvNewStringLatin1 for arguments.
5760 * java/util/natDate.cc: Include java/util/Date.h, not
5763 * java/io/FileDescriptor.java (available): No longer static.
5764 * java/lang/natDouble.cc (Double): Removed class definition.
5765 * include/javaprims.h (java::lang::Number): Declare.
5766 (java::lang::NumberFormatException): Likewise.
5767 (java::io::FilenameFilter): Likewise.
5768 (java::lang::Character): Likewise.
5769 (java::lang::Error): Likewise.
5770 (java::lang::SecurityManager): Likewise.
5771 (java::util::Vector): Likewise.
5772 (java::io::FileNotFoundException): Likewise.
5773 (java::io::IOException): Likewise.
5774 (java::lang::NativeLang): Likewise.
5775 (java::lang::UnsatisfiedLinkError): Likewise.
5776 (java::util::StringTokenizer): Likewise.
5777 (java::io::InputStream, java::io::OutputStream): Likewise.
5778 (java::io::PrintStream, java::lang::SecurityException): Likewise.
5779 (java::util::Hashtable): Likewise.
5780 * Makefile.in: Rebuilt.
5781 * Makefile.am (nat_headers): Added java/lang/Double.h,
5782 java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h.
5783 (MOSTLYCLEANFILES): Added nat_headers.
5784 * include/jvm.h: Moved many defines, declarations, and functions
5785 to java/lang/Class.h.
5786 (struct JvSyncInfo): Moved to java/lang/Object.h.
5787 (UTF8_GET): Moved to java/lang/String.h.
5789 Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com>
5791 * java/io/io-defs.h: Don't include java-io.h.
5792 * include/java-io.h: Removed.
5793 * include/javaprims.h: Include java::io.
5795 Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com>
5797 * include/java-io.h (File): Removed
5798 (FileDescriptor): Likewise.
5800 * java/io/io-defs.h: Include java/io/File.h and
5801 java/io/FileDescriptor.h.
5803 * Makefile.in: Rebuilt.
5804 * Makefile.am (GJAVAH): New macro.
5805 (.class.h): New rule.
5806 (SUFFIXES): Added .h.
5807 (nat_headers): New macro.
5808 ($(nat_headers)): New target.
5809 (BUILT_SOURCES): Added nat_headers.
5811 * include/java-util.h: Removed.
5813 Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com>
5815 * include/java-io.h: Changed to avoid java-lang.h.
5816 * java/lang/natThread.cc: Include java/lang/Thread.h, not
5818 * java/lang/natSystem.cc: Include java/lang/System.h, not
5820 * java/lang/natString.cc: Include java/lang/String.h, not
5822 * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not
5824 * java/lang/natClass.cc: Include java/lang/Class.h, not
5826 * java/lang/natDouble.cc: Include java/lang/Object.h, not
5828 * java/lang/natObject.cc: Include java/lang/Object.h, not
5830 * exception.cc: Don't include java-lang.h.
5831 * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h.
5832 * no-threads.cc: Include java/lang/Thread.h, not java-lang.h.
5833 * nogc.cc: Don't include java-lang.h.
5834 * boehm.cc: Include java/lang/Class.h, not java-lang.h.
5835 * prims.cc (processClass): Don't use `init_type'; just cast to
5837 Include java/lang/Class.h and jvm.h, not java-lang.h.
5838 (JvAllocObject): Wrote single-argument version.
5839 (PrimClass): Inherit from Class.
5840 (initPrimClass): Removed.
5841 * include/java-lang.h: Removed.
5842 * include/jvm.h: Declare struct _dispatchTable.
5843 * include/cni.h: Don't declare _Jv_MonitorEnter,
5844 _Jv_MonitorExit, struct _dispatchTable.
5845 * include/javaprims.h: Moved all typedefs here, from cni.h.
5846 * java/lang/Class.h: New file.
5847 * include/java-array.h: New file.
5848 * java/lang/Object.h: New file.
5850 * prims.cc (classFromSig): Now static.
5852 Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com>
5854 * include/cni.h: Don't mention soft_new.
5855 * include/java-lang.h (Object): Don't mention soft_new. Mention
5856 _Jv_NewPrimArray, not newPrimArray.
5857 * prims.cc (soft_new): Removed.
5858 (_Jv_NewArray): Renamed from soft_newarray.
5859 (soft_anewarray): Use JvNewObjectArray.
5860 (newArray): Likewise.
5861 (newRefArray): Removed.
5862 (_Jv_NewPrimArray): Renamed from newPrimArray.
5863 (equalUtf8Consts): Now static.
5864 (soft_instanceof): Removed.
5865 * java/lang/natDouble.cc (doubleToString): Now static.
5867 * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits,
5868 java_lang_Double_longBitsToDouble, java_lang_Double_toString):
5871 Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com>
5873 * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and
5875 * include/cni.h: Renamed functions to _Jv_MonitorEnter and
5877 * include/no-threads.h (JvPrivMutexLock): Always return -1.
5878 (JvPrivMutexUnlock): Likewise.
5879 * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter.
5880 Return value now jint.
5881 (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value
5884 * Makefile.in: Rebuilt.
5885 * Makefile.am: Don't allow `jV' names.
5886 (maintainer-check): Depend on libjava.a.
5887 * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free.
5889 * Makefile.in: Rebuilt.
5890 * Makefile.am (NM): New macro.
5891 (maintainer-check): New target.
5893 * include/posix-threads.h (_MIT_POSIX_THREADS): Removed.
5895 * configure: Rebuilt.
5896 * configure.in: Use --enable-threads, not --enable-gc. Fix
5897 documentation for --enable-threads. Changed option to work like
5898 identical option in gcc/configure.
5900 Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com>
5902 * boehm.cc (mark_array): Use JvGetArrayLength.
5904 Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com>
5906 * exception.cc: New file (mostly written by Andrew MacLeod),
5907 exception handling support.
5908 * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc.
5909 Remove -fexceptions - it is now the default.
5911 * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf.
5912 (JvAllocObject): Renamed to _Jv_AllocObject.
5913 (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc.
5914 (loadClass): Renamed to _Jv_FindClass.
5915 * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into
5916 inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject.
5917 * include/java-lang.h (JvGetArrayLength): New CNI function.
5918 * include/jvm.h (_Jv_FindClass): Added declaration.
5920 * java/lang/natString.cc: More implementation if COMPACT_STRINGS.
5922 Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com>
5924 * java/lang/natClass.cc (getName): Add implementation.
5925 * java/lang/Throwable.java (printStackTrace): Handle missing backtrace.
5927 Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com>
5929 * Makefile.in: Rebuilt.
5930 * Makefile.am (.class.o): Added -fexceptions.
5932 Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com>
5934 * configure: Rebuilt.
5935 * configure.in: Don't check for __nanosleep.
5936 * posix-threads.cc (nanosleep): Never define.
5938 Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com>
5940 * posix-threads.cc (JvPrivCondWait): Fixed computation of
5943 Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com>
5945 * java/lang/natThread.cc (enumerate): Uncommented.
5946 * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'.
5947 (interrupt): Call it.
5949 Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com>
5951 * configure: Rebuilt.
5952 * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it.
5954 Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com>
5956 * include/no-threads.h (JvPrivThreadInterrupt): New method.
5957 * include/java-lang.h (Thread): Added `interrupted_' method.
5958 * java/lang/Thread.java (interrupted_): New method.
5959 * java/lang/natThread.cc (join): Possibly throw interrupted
5960 exception after join finishes.
5961 (interrupted_): New method.
5962 * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex,
5964 (JvPrivThreadJoin): New function.
5965 (really_start): Notify all threads waiting for this thread.
5966 (struct starter): Added `data' member.
5967 (JvPrivThreadStart): Set it.
5968 * include/posix-threads.h (JvPrivThread_t): Added join_mutex,
5970 (JvPrivThreadJoin): No longer inline.
5971 (JvPrivThreadInterrupt): New function.
5973 * include/no-threads.h (JvPrivThreadSleep): Removed.
5974 * posix-threads.cc (JvPrivThreadSleep): Removed.
5976 Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com>
5978 * configure: Rebuilt.
5979 * configure.in (THREADOBJS): Initialize to no-threads.o in
5981 * posix-threads.cc (key): New global.
5982 (JvPrivInitThreads): New function.
5983 (really_start): Set thread-specific data to point to object.
5984 (JvPrivThreadStart): Added `daemon' argument.
5985 (JvPrivThreadSleep): Added `data' argument.
5986 * include/posix-threads.h (JvPrivInitThreads): Removed
5988 (JvPrivThreadCurrent): New function.
5989 * include/no-threads.h (JvPrivThreadInitData): Initialize
5990 JvPrivOnlyThread. Added `thread' argument.
5991 (JvPrivThreadCurrent): New function.
5992 (JvPrivThreadStart): Added `daemon' argument.
5993 * no-threads.cc: New file.
5994 * java/lang/natThread.cc (init_data): New function.
5996 (start): Set `alive' member.
5997 (stop_): Clear `alive' member.
5998 (destroy): Likewise.
5999 (currentThread): Implemented.
6000 (start): Pass `daemon' argument to JvPrivThreadStart.
6002 * include/java-lang.h (Thread): Added `alive', `tsync' members.
6003 (Thread): Added `init_data' method.
6004 * java/lang/Thread.java (alive, data): New instance variables.
6005 (init_data): New private method.
6006 (isAlive): No longer native.
6008 Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com>
6010 * include/java-lang.h (JvRunMain): Declare.
6011 * include/jvm.h (JvPrivInitGC): Revert to C++ linkage.
6012 * prims.cc (JvRunMain): New function.
6013 (main_signature, main_name): New globals.
6015 * boehm.cc (mark_array): Use `elements' function and not
6016 operator[] on jarray.
6018 * posix-threads.cc: Include <config.h>. Define nanosleep if
6021 * configure: Rebuilt.
6022 * configure.in: Check for _nanosleep.
6024 * configure: Rebuilt.
6025 * configure.in: Check for pthread_mutexattr_settype.
6027 * include/cni.h (class JvSynchronize): New class.
6028 * java/lang/Thread.java (sleep): Throws InterruptedException.
6029 (join): Throws InterruptedException.
6030 (resume): Not native.
6031 (resume_): New method.
6032 (start): Now synchronized.
6033 (stop_): New method.
6034 (Thread): Synchronize when accessing threadNumber.
6036 * java/lang/natThread.cc (throwException): New macro.
6037 (sleep): Throw InterruptedException.
6040 * include/java-lang.h (Runtime): Added interrupted().
6042 * boehm.cc (call_finalizer): Correctly initialize jobj.
6043 * include/java-lang.h (Runtime): Added getRuntime() and exit().
6045 * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not
6048 * configure: Rebuilt.
6049 * configure.in: Added support for --disable-threads.
6050 * include/no-threads.h: New file.
6052 * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro.
6054 * Makefile.in: Rebuilt.
6055 * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc.
6056 (libjava_a_DEPENDENCIES): Added THREADOBJS.
6057 (libjava_a_LIBADD): Added THREADOBJS.
6058 * configure: Rebuilt.
6059 * configure.in: Added --with-threads option.
6060 * posix-threads.cc: New file.
6061 * include/posix-threads.h: New file.
6062 * include/java-lang.h (Object): Added static member sync_mutex,
6063 member sync_info, method init_mutex.
6064 (struct JvSyncInfo): New struct.
6065 Include "java-threads.h".
6066 * prims.cc (soft_monitorenter): Wrote.
6067 (soft_monitorexit): Likewise.
6068 * java/lang/natObject.cc (init_mutex): New method.
6072 (sync_mutex): Define.
6073 Include "java-threads.h".
6075 Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com>
6077 * include/java-lang.h (JvPrivInitGC): Make extern "C".
6078 * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise.
6080 Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com>
6082 * include/cni.h (jbyte etc): Re-define using __java_byte etc.
6083 Added extern "Java" in places to tell G++ Object is a "Java" type.
6084 Other minor renaming and fixes.
6085 * include/java-io.h (FileDescriptor): Add friend class declarations.
6086 G++ no longer allows non-Java types in method parameters and results
6087 of Java classes. Converted most offending methods to friends.
6088 * java/lang/natDouble.cc (Double::toString): Rename to doubleToString.
6089 * java/lang/natSystem.cc (setProperty): Make friend.
6090 * java/lang/natString.cc, include/java-lang.h (String): Rename
6091 methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot.
6092 * include/java-lang.h (JArray): Remove getData and eoprator[].
6093 Add elements friend function instead.
6094 * java/lang/natSystem.cc (arraycopy): Use elements function.
6095 * java/io/natFileDescriptor.cc (read, write): Likewise.
6096 * include/java-lang.h (Object): Remove unused make method.
6097 (System::setProperty(char*,char*)): Turn into friend function.
6098 (Class): Rename newObject by JvAllocObject.
6099 * prims.cc: Update to use JvAllocObject, and elements.
6101 * java/lang/natDouble.cc: Fix double -> jdouble.
6103 Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com>
6105 * Makefile.am (INCLUDES): Add -Iinclude (to get config.h).
6107 Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com>
6109 * java/lang/natRuntime.cc (finalize_on_exit): Define.
6110 * include/java-lang.h (Runtime): finalize_on_exit and
6111 runFinalizersOnExit now static.
6112 * java/lang/Runtime.java (runFinalizersOnExit): Now static, to
6114 (finalize_on_exit): Now static.
6116 * boehm.cc (mark_obj): Get class using getClass() method on
6118 (_dispatchTable): Removed.
6120 Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com>
6122 * java/io/natFileDescriptor.cc (open_read): Only call open if
6124 (open_write): Likewise.
6126 * Makefile.in: Rebuilt.
6127 * Makefile.am ($(nat_files)): Depend on config.h.
6129 Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com>
6131 * prims.cc (ObjectClass): Now a macro; updated for new class name
6133 (StringClass): Likewise.
6134 (ClassClass): Likewise.
6136 Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com>
6138 * java/io/natFileDescriptor.cc (available): Do nothing unless
6139 HAVE_SELECT defined.
6140 * java/util/natDate.cc (setTime): Conditional on
6142 (toString): Conditional on HAVE_TIME.
6143 * aclocal.m4, configure: Rebuilt.
6144 * acinclude.m4: New file.
6145 * configure.in: Don't actually call AM_EXEEXT. Call
6146 AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added
6147 --with-target-subdir option. Check for select and open
6150 Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com>
6152 * boehm.cc (JvPrivRegisterFinalizer): Changed interface.
6153 (call_finalizer): Likewise.
6154 * nogc.cc (JvPrivRegisterFinalizer): Changed interface.
6155 * prims.cc (newObject): Pass actual method pointer to
6156 JvPrivRegisterFinalizer.
6157 * include/jvm.h (JvPrivFinalizerFunc): New typedef.
6158 (JvPrivRegisterFinalizer): Changed interface.
6160 * Makefile.in: Rebuilt.
6161 * Makefile.am (MOSTLYCLEANFILES): New macro.
6162 (CLEANFILES): Removed javao_files.
6164 Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com>
6166 * nogc.cc: New file.
6167 * Makefile.in: Rebuilt.
6168 * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc.
6169 (EXTRA_libjava_a_SOURCES): New macro.
6170 (libjava_a_SOURCES): Removed boehm.cc.
6171 (libjava_a_DEPENDENCIES): Added GCOBJS.
6172 (libjava_a_LIBADD): Likewise.
6173 * configure: Rebuilt.
6174 * configure.in: Added code for --enable-gc=TYPE.
6176 Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com>
6178 * boehm.cc (mark_array): Don't further dereference pointer from
6181 * boehm.cc: Include <boehm-config.h>, not <private/config.h>.
6182 * Makefile.in: Rebuilt.
6183 * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added
6184 one for boehm-gc build directory.
6186 Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com>
6188 * include/java-lang.h (finalize_on_exit): New instance variable in
6189 java::lang::Runtime.
6190 (runFinalizersOnExit): New method.
6191 * java/lang/Runtime.java (finalize_on_exit): New instance
6193 (runAllFinalizers_): New private method.
6194 (runFinalizersOnExit): New method.
6195 * boehm.cc (JvPrivRunFinalizers): New function.
6196 (JvPrivRunAllFinalizers): Likewise.
6197 (JvPrivRunGC): Likewise.
6198 * java/lang/natRuntime.cc: Include "jvm.h".
6199 (gc): Call JvPrivRunGC.
6200 (runFinalization): Call JvPrivRunFinalizers.
6201 (runFinalizersOnExit): New method.
6202 (exit_): Call JvPrivRunAllFinalizers if required.
6203 * include/jvm.h: Declare JvPrivRunFinalizers,
6204 JvPrivRunAllFinalizers, JvPrivRunGC.
6206 Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com>
6208 * boehm.cc (JvPrivRegisterFinalizer): New function.
6209 (call_finalizer): Likewise.
6210 * include/jvm.h: Declare JvPrivRegisterFinalizer.
6211 * prims.cc (finalize_name): New global.
6212 (newObject): Just call other newObject.
6213 (newObject): Register finalizer if it exists.
6215 Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com>
6217 * prims.cc (gc_malloc): Removed.
6218 (makeUtf8Const): Use JvPrivAllocBytes.
6219 (lookupArray): Likewise.
6220 (newPrimArray): Likewise.
6221 (JvNewObjectArray): Use JvPrivAllocArray.
6222 (newObject): Use JvPrivAllocObj.
6223 (newObject): Likewise.
6224 Changed Method -> JvMethod everywhere.
6225 Changed Field -> JvField everywhere.
6226 * include/java-lang.h (Object): Changed type of `fields' to
6228 (jmethodID, jfieldID): New typedefs.
6229 (Object): JvGetFirstInstanceField and JvNumInstanceFields now
6231 * include/jvm.h (struct JvMethod): Renamed from Method, and moved
6233 (METHOD_NATIVECODE): Moved from java-lang.h.
6234 (class JvField): New class.
6235 (JvGetFirstInstanceField): New function.
6236 (JvFieldIsRef): Likewise.
6237 (JvGetObjectField): Likewise.
6238 (JvNumInstanceFields): Likewise.
6240 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6242 * boehm.cc: New file.
6243 * Makefile.in: Rebuilt.
6244 * Makefile.am (libjava_a_SOURCES): Added boehm.cc.
6245 (INCLUDES): Added -I options to find boehm-gc files.
6247 Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com>
6249 * configure: Rebuilt.
6250 * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS.
6252 * Makefile.in: Rebuilt.
6253 * Makefile.am (nat_files): New macro.
6254 (libjava_a_DEPENDENCIES): Use it.
6255 (libjava_a_LIBADD): Likewise.
6256 ($(nat_files)): New static pattern rule.
6257 (class_files): Run separate find to find .class files.
6258 (javao_files): Compute based on class_files.
6259 (BUILT_SOURCES): New macro.
6261 Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com>
6263 * Makefile.am (java_files): New macro.
6264 (class_files): Likewise.
6265 (javao_files): Likewise.
6266 (libjava_a_DEPENDENCIES): Include $(javao_files).
6267 (libjava_a_LIBADD): Likewise.
6268 (classes.stamp): Depend on $(java_files); only recompile changed
6271 (CLEANFILES): Don't run find; use macros. Don't mention
6273 (.class.o): New target.
6274 (compiled.stamp): Removed.
6276 Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com>
6278 * java/io/{Reader,InputStreamReader,FileReader,BufferedReader,
6279 LineNumberReader}>java: Newly-implemented standard classes.
6281 Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com>
6283 * Makefile.in: Rebuilt.
6284 * Makefile.am (compiled.stamp): Use $(CC), not $(GCC).
6286 * Makefile.in: Rebuilt.
6287 * Makefile.am (hack): New macro.
6288 (libjava_a_LIBADD): Use $(hack) to work around automake oddity.
6290 Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com>
6292 * include/config.h.in: New file.
6293 * include/config.h: Removed.
6294 * acconfig.h: New file.
6295 * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed.
6296 (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES,
6297 libjava_a_LIBADD): New macros.
6298 (INCLUDES): New macro.
6301 (SUFFIXES): Removed.
6303 (libjava.a): Removed.
6305 * configure: Rebuilt.
6306 * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB.
6307 Look for headers and functions we require. Create
6310 Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com>
6312 * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv,
6313 soft_instanceof, newObject, JbNewObjectArray, soft_checkcast,
6314 soft_lookupinterfacemethod): New functions.
6315 (PrimClass): Actually initialize the primitive classes.
6316 (Utf8Const2JavaString): Moved to java/lang/natString.cc.
6318 * include/java-util.h: Removed java::util definition.
6319 * include/cni.h: Moved java::util here and added Properties.
6320 Added more function prototypes.
6321 * include/java-lang.h: Added mroe methods and friend declarations.
6322 * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added.
6323 * include/jvm.h (strLengthUtf8): Add declaration.
6325 * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE):
6327 * java/lang/{Byte,Short,Void}.java: New classes.
6328 * java/lang/Character.java (isJavaIdentifierStart,
6329 JavaIdentifierPart): New static methods.
6330 * java/lang/Number.java (byteValue, shortValue): New methods.
6332 * java/lang/String.java (intern, hashCode): Make native.
6333 * java/lang/natString.cc: New file. Handle the string pool.
6334 * Makefile.am: Build natString.o. Use CXXFLAGS.
6336 * java/lang/Class.java (isArray, isPrimitive, getComponentType,
6337 isInstance, isAssignableFrom), java/lang/natClass.cc: New methods.
6338 * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet.
6339 * java/lang/System.java (setProperty): New private method.
6340 (initProperties): Take argument, and make native.
6341 * java/lang/natSystem.cc: Implement (preliminary) initProperties.
6342 (currentTimeMillis): Make more robust.
6344 * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes.
6345 * java/io/UnsupportedEncodingException.java: New exception class.
6347 * java/io/DataInputStream.java: Don't use a PushbackInputStream.
6348 * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'.
6350 Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com>
6352 * Makefile.am (CXXFLAGS, JC1FLAGS): New macro.
6353 * prims.cc: Added bunch of stuff.
6354 * include/cni.h: Added various definitions.
6355 * include/java-lang.h: Added Method, various friends, some macros.
6357 * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY.
6358 * java/lang/System.java (arraycopy): Make native.
6360 Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com>
6362 * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc,
6363 natSystem.cc,natThread.cc}: Native (C++) methods for various classes.
6364 * java/lang/ClassLoader.java (defineClass): Now takes extra argument.
6365 * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble):
6367 * java/lang/Runtime.java: Declare methods as native instead of
6369 * java/lang/SecurityManager.java (getClassContext): Just throw Error.
6370 * java/lang/System.java: Comment out some stuff, for now.
6371 * java/lang/Thread.java: Re-write. Use native methods.
6372 * java/lang/NativeLang.java: Remove most of it.
6374 * java/util/natDate.cc: Native (C++) methods for Date.
6375 * java/util/{Calendar.java,GregorianCalendar.java}: New classes.
6376 * java/util/Date.java: Complete re-write.
6378 * java/io/io-defs.h: New header file.
6379 * java/io/FileDescriptor.java: Add a bunch of private methods,
6380 mostly moved from NativeIO.java and natNativeIO.cc.
6381 * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code.
6382 * java/io/File.java: Use new code.
6383 * java/io/{FileInputStream.java.FileOutputStream.java,
6384 RandomAccessFile.java}: Use new private FileDescriptor methods.
6385 * java/io/NativeIO.java: Removed, no longer used.
6387 * java/io/StreamTokenizer.java (numericChars): Make char array.
6389 * include/*.h: Various header files used by the C++ native code.
6391 * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in:
6392 New autoconf+automake-based setup.
6393 * prims.cc: New file for Java "primitives".