blob: 540531b97b1203f9bc950b71b1e34c23e5dae900 [file] [log] [blame]
1999-12-21 Per Bothner <>
* java/lang/ (getDeclaredMethods): Correctly compute
offset in new Method.
1999-12-22 Bryce McKinlay <>
* java/lang/ (notify): Throw message with
(notifyAll): Ditto.
(wait): Ditto.
* java/lang/ (isInterrupted): Don't clear interrupt_flag.
(isInterrupted_): New function, which does clear interrupt_flag.
(interrupt): Use `isInterrupted_'.
* java/lang/ (interrupt): Add comment.
(join): Set `prev' in joiner loop.
Change various calls to `isInterrupted' to use `isInterrupted_'.
* (_Jv_CondWait): Allways use pthread_cond_timedwait
on linux. Set result to 0 on an interrupt. Test interrupted status
of java Thread object directly.
(_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails.
(_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED.
(_Jv_InitThreads): Don't block SIGINT.
(_Jv_ThreadWait): Don't configure SIGINT handler.
1999-12-21 Tom Tromey <>
* mauve-libgcj: Added java.lang.reflect.Modifier.toString12.
1999-12-20 Tom Tromey <>
* java/lang/reflect/ (STRICT): New constant.
(isStrict): New method.
(toString): Added `strict'.
1999-12-23 Anthony Green <>
* configure: Rebuilt.
* (LIBDATASTARTSPEC): Force data_start in with
linker trick.
1999-12-19 Anthony Green <>
* libgcjdata.c: New file.
* Use @LIBDATASTARTSPEC@ in startfile.
* configure: Rebuilt.
* (LIBDATASTARTSPEC): Force data with a known name
into the program.
* Rebuilt.
* Build libgcjdata.a.
* Use @FORCELIBGCCSPEC@ in startfile.
* configure: Rebuilt.
* (FORCELIBGCCSPEC): Force important parts of libgcc
into every program.
1999-12-17 Tom Tromey <>
* java/lang/reflect/ (toString): Call getType if
required. Partial fix for PR libgcj/111. From Per Bothner.
* java/lang/ (startProcess): Don't use sprintf.
1999-12-16 Bryce McKinlay <>
* java/lang/ (Boolean(String)): Set `value' to false on a
null String constructor parameter.
* java/net/ Remove unneccessary sprintf calls
for exception messages.
BooleanClass: declare.
(setOption): Use BooleanClass instead of Class.forName() for
instanceof test.
(bind): Cast 4th parameter of setsockopt to `char *' for
compatibility with older Solaris headers.
* java/net/ Remove unneccessary
sprintf calls for exception messages.
BooleanClass, IntegerClass: declare.
(setOption): Use BooleanClass and IntegerClass, not Class.forName()
for instanceof test.
1999-12-15 Tom Tromey <>
* java/lang/ (init_properties): Don't set or
user.home if NO_GETUID defined. Only set user.dir if getcwd
* include/ Rebuilt.
* acconfig.h (NO_GETUID): New define.
* Rebuilt.
* Define NO_GETUID in cross case. Check for getcwd
in native case.
1999-12-08 Tom Tromey <>
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case
where no recursive mutexes exist. Fixes PR libgcj/117.
1999-12-05 Anthony Green <>
* include/jvm.h: Declare many functions with
* gcj/javaprims.h: Ditto.
Thu Dec 2 17:26:47 1999 Anthony Green <>
* THANKS: Giving credit where credit is due.
1999-12-02 Bryce McKinlay <>
* java/net/ (ServerSocket): Bind to any interface
if bindAddr is null.
* java/lang/ (equalsIgnoreCase): return false if
anotherString is null.
* java/lang/ (valueOf): return FALSE if argument is
1999-11-30 Tom Tromey <>
* (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get
mutex to initialize. Initialize `count' if required.
Fixes PR libgcj/98.
1999-11-27 Per Bothner <>
* Remove prototype declarations for malloc and free.
These clash with recent versions of glibc, which specifies `throws ()'
when __cplusplus is defined. Instead, #include <stdlib.h>.
1999-11-24 Tom Tromey <>
* (_Jv_NewObjectArray): Use
(_Jv_NewPrimArray): Likewise.
* java/lang/ (clone): Use
_Jv_GetArrayElementFromElementType instead of sizeof.
* java/lang/ (arraycopy): Use
* include/jvm.h (_Jv_GetArrayElementFromElementType): New
1999-11-23 Bryce McKinlay <>
* java/net/ Fix potential buffer overruns in
Exception messages. PR
(bind): set SO_REUSEADDR before bind.
* java/net/ Fix potential buffer
overruns. PR
1999-11-19 Tom Tromey <>
* (DIVIDESPEC): Removed.
1999-11-19 Andrew Haley <>
* (JCFLAGS): Add -L$(here)
(JC1FLAGS): Ditto.
* Rebuild.
1999-11-18 Tom Tromey <>
* java/lang/ Include <config.h>.
* include/ Rebuilt.
* acconfig.h (SJLJ_EXCEPTIONS): Undefine.
* Force -fsjlj-exceptions on non-sparc, non-x86
* configure: Rebuilt.
* (EXCEPTIONSPEC): Allow -fsjlj-exceptions to be
requested by Don't put `-D' option into
libgcj.spec; instead, define SJLJ_EXCEPTIONS with AC_DEFINE.
* configure: Rebuilt.
* (EXCEPTIONSPEC): Changed `_' to `-' in
1999-11-18 Andrew Haley <>
(JC1FLAGS): Ditto.
* Rebuild
* acconfig.h: remove SJLJ_EXCEPTIONS
* gcj/, include/ rebuild.
* include/ remove SJLJ_EXCEPTIONS.
1999-11-18 Andrew Haley <>
* (main): Rename label to prevent conflict.
* (_Jv_type_matcher): Don't check the table if we're
using setjmp/longjmp exceptions: there isn't one.
1999-11-17 Andrew Haley <>
* (_Jv_type_matcher): Ignore null exception tables.
(_Jv_Throw ): Add SJLJ_EXCEPTIONS.
(__sjthrow): Add declaration.
(JC1FLAGS): Ditto
(AM_CFLAGS): Ditto
* Rebuild
* acconfig.h: Add SJLJ_EXCEPTIONS
* configure: Rebuild.
* gcj/ Rebuild.
* gcj/cni.h: Add support for sjlj-exceptions.
* gcj/javaprims.h: Add _Jv_Sjlj_Throw.
* include/ Rebuild.
* include/default-signal.h: Add support for sjlj-exceptions.
1999-11-18 Tom Tromey <>
* (_Jv_ThreadStart): Use JvFail and not JvAssert.
* java/lang/ (MCACHE_SIZE): Define as a power of 2
minus 1.
(method_cache): Made larger.
1999-11-11 Tom Tromey <>
* (_Jv_MutexInit): Use _Jv_PthreadGetMutex when
initializing mutex. Initialize `count' when required.
1999-11-07 Anthony Green <>
* java/util/zip/ Compute the offset of the ZipEntry
data correctly.
1999-11-05 Tom Tromey <>
* java/lang/ (destroy): Removed incorrect comment.
1999-11-05 Jeff Sturm <>
* (_Jv_GCSetInitialHeapSize): Swapped size & current.
* (parse_heap_size): Use end, not spec. Use 1024
multipler for `k'.
1999-11-05 Tom Tromey <>
* java/lang/ (stop): Removed argument name.
* java/lang/ (ThreadGroup(int)): No longer
`private'; now has default access.
* Rebuilt.
* (java/lang/ThreadGroup.h): Removed.
1999-11-04 Tom Tromey <>
* java/lang/ (method_cache_count): Removed.
(_Jv_FindMethodInCache): Don't loop looking for the hash entry.
(_Jv_AddMethodToCache): Don't loop.
* Removed `qt' threads case.
* include/quick-threads.h: Removed.
* Removed.
* include/quick-threads.h (_Jv_ThreadCancel): Removed.
(_Jv_ThreadDestroy): Likewise.
* include/no-threads.h (_Jv_ThreadCancel): Removed.
(_Jv_ThreadDestroy): Likewise.
* include/posix-threads.h (struct _Jv_Thread_t): Removed
`exception' field.
(_Jv_ThreadCancel): Removed decl.
(_Jv_ThreadDestroy): Removed.
* (_Jv_ThreadCancel): Removed.
(throw_cleanup): Removed.
(really_start): Don't push or pop cleanup.
(_Jv_ThreadInitData): Don't initialize `exception' field.
* java/lang/ (stop): Officially unimplemented.
* java/lang/ (stop): Officially unimplemented.
1999-11-02 Bryce McKinlay <>
* Don't include boehm-config.h. Include gcconfig.h
1999-11-02 Tom Tromey <>
* Don't include boehm-config.h.
1999-11-01 Tom Tromey <>
* (_Jv_InitGC): Set GC_java_finalization.
(sum_blocks): Removed.
(_Jv_GCFreeMemory): Use GC_get_free_bytes.
1999-11-01 Bryce McKinlay <>
* java/io/PrintStream (PrintStream): Fix illegal usage of "this"
before "super".
* java/io/OutputStreamWriter (OutputStreamWriter): ditto.
* java/io/InputStreamReader (InputStreamReader): ditto.
1999-10-22 Tom Tromey <>
* Rebuilt.
* (java/lang/ClassLoader.h): New target.
* java/lang/ (_Jv_FindClass): Removed reference
to `redirect'.
* include/java-props.h (_Jv_Compiler_Properties): Changed
* gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
* include/jvm.h (_Jv_GCSetInitialHeapSize,
_Jv_GCSetMaximumHeapSize): Declare.
(JvRunMain, _Jv_RunMain): Declare.
(_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
* (_Jv_GCSetInitialHeapSize): New function.
(_Jv_GCSetMaximumHeapSize): Likewise.
* (_Jv_GCSetInitialHeapSize): New function.
(_Jv_GCSetMaximumHeapSize): Likewise.
* (parse_heap_size): New function.
(_Jv_SetInitialHeapSize): Likewise.
(_Jv_SetMaximumHeapSize): Likewise.
(_Jv_Compiler_Properties): New global.
* (help): New function.
(version): Likewise.
(heap_size): Likewise.
(heap_max_size): Likewise.
(main): Parse arguments. Set _Jv_Compiler_Properties.
Include <config.h>, <java-props.h>.
(_Jv_Compiler_Properties): Removed.
1999-10-18 Tom Tromey <>
* gnu/gcj/runtime/ (getVMClassLoader): New
(redirect): New static field.
* java/lang/ (getSystemClassLoader): Now
(getVMClassLoader0): Removed.
* java/lang/ (getVMClassLoader0): Removed.
(redirect): Removed.
(getSystemClassLoader): Implemented.
1999-10-16 Anthony Green <>
* java/lang/ (getSystemResource): Use
getSystemClassLoader instead of ClassLoader.system.
(getSystemResourceAsStream): Ditto.
* java/lang/ (redirect): Make static and
remove #ifdef INTERPRETER so it is always defined.
(getVMClassLoader0): Remove #ifdef INTERPRETER so it always
returns a VMClassLoader.
* java/util/ (trySomeGetBundle): Create a
PropertyResourceBundle if a properties file is found before a
ResourceBundle class.
1999-10-15 Tom Tromey <>
* (main): Formatting fixes.
(_Jv_Compiler_Properties): Define.
* java/lang/ (_Jv_Environment_Properties): Don't
(init_properties): Set properites from _Jv_Compiler_Properties.
* include/java-props.h (_Jv_Compiler_Properties,
_Jv_Environment_Properties): Declare.
* include/java-props.h: Added copyright.
1999-10-13 Anthony Green <>
* libtool-version: Catch up by incrementing current.
* Disable use of GCJ_PROPERTIES for mips-tx39.
* configure, include/ Rebuilt.
* acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
* Added --disable-getenv-properties and new define
(next_property_key): New function.
(next_property_value): New function.
(process_gcj_properties): New function.
(JvRunMain): Call process_gcj_properties.
(_JvRunMain): Ditto.
* java/lang/ (init_properties): Set properties defined
* include/java-props.h: New file.
* java/lang/ (init_properties): Add new properties to
conform with Java Product Versioning Specification.
1999-10-12 Tom Tromey <>
* configure: Rebuilt.
* Fixed test for --disable-java-net.
1999-10-06 Tom Tromey <>
* (GCJ): Define as "target-gcj", not "target/gcj"
when building Canadian cross.
(NATIVE): Don't define when cross-compiling.
1999-10-04 Tom Tromey <>
* java/net/ Don't include headers if is disabled.
* Rebuilt.
* (ZINCS): Removed. This is defined in
when needed, and must be left empty when not needed.
1999-10-01 Anthony Green <>
* THANKS: Refreshed from htdocs version.
1999-10-01 Steve Chamberlain <>
* Rebuilt.
* (ZINCS): Define
* configure: Rebuilt.
* (ZLIBSPEC): Spell -lzgcj correctly.
* java/lang/ieeefp.h: Add definitions for picoJava.
1999-10-01 Tom Tromey <>
* configure: Rebuilt.
* Set classpath when invoking gcj. Use changequote
around sed invocation.
* java/net/ Stub native functions if
DISABLE_JAVA_NET is defined.
* java/net/ (setTimeToLive): Fixed
typo in exception string.
(getTimeToLive): Likewise.
Stub native functions if DISABLE_JAVA_NET is defined.
* java/net/ Stub native functions if
DISABLE_JAVA_NET is defined.
* Disable for mips-tx39.
* configure, include/ Rebuilt.
* acconfig.h (DISABLE_JAVA_NET): Undefine.
* Added --disable-java-net and new define
1999-09-30 Tom Tromey <>
* java/net/ Indentation fix.
1999-09-29 Bryce McKinlay <>
* README: New file.
1999-09-28 Tom Tromey <>
* configure: Rebuilt.
* (PROCESS): In POSIX case, only set if not already
* (PROCESS): Set in mips-tx39 case.
* aclocal.m4, configure: Rebuilt.
* acinclude.m4 (LIB_AC_PROG_CC, LIB_AC_PROG_CXX): Provide
appropriate AC_PROG_ symbol.
1999-09-24 Tom Tromey <>
* include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a
`void *'.
(MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'.
Fix for PR java.util/47:
* configure, include/config.h: Rebuilt.
* Don't look for ctime or ctime_r.
* Rebuilt.
* (nat_source_files): Don't mention
* java/util/ Removed.
* java/util/ (tzIDs, rawOffsets, timeZones): New
static fields.
(getAvailableIDs): Rewrote.
(getTimeZone): Rewrote.
* java/util/ (toGMTString): New method.
(toLocaleString): New method.
(toString): Rewrote.
1999-09-23 Tom Tromey <>
* configure: Rebuilt.
* Print message when checking to see if gcj can
handle -fuse-divide-subroutine.
* java/lang/ (run): Renamed from `run0'. Removed
dead code.
* java/lang/ (run0): Renamed to `run'.
(run): Removed.
* (main_init): New function.
(JvRunMain): Call it.
(_Jv_RunMain): Likewise.
Include <signal.h>.
(main_init): Ignore SIGPIPE. Fixes PR 51.
1999-09-22 Tom Tromey <>
* Use `jc1' spec, not `cc1' spec.
1999-09-16 Bryce McKinlay <>
* java/text/ (MessageFormat(String)): Set the
default locale.
* java/text/ Check that object is a Number. If
not, throw IllegialArgumentException.
1999-09-21 Tom Tromey <>
* gnu/gcj/convert/ (write): Don't exit loop unless
both `inlength' and `bytes_todo' are 0. Simplified 2-byte case.
* include/posix-threads.h (_Jv_MutexDestroy): Use
(_Jv_MutexLock): Likewise.
(_Jv_MutexUnlock): Likewise.
* java/io/ (OutputStreamWriter): Reverted
previous patch; it too was incorrect.
* java/io/ (PrintStream): Likewise.
* java/io/ (OutputStreamWriter): Don't
refer to `this' before calling superclass constructor.
* java/io/ (PrintStream): Don't refer to `this'
before calling superclass constructor.
1999-09-20 Tom Tromey <>
* configure: Rebuilt.
* Send output of `-fuse-divide-subroutine' test
compilation to /dev/null.
1999-09-14 Tom Tromey <>
* include/java-insns.h: Turned constants into an enum. Added
multiple-inclusion protection.
1999-09-10 Tom Tromey <>
* configure: Rebuilt.
* Build include/Makefile.
* Rebuilt.
* (SUBDIRS): Added gcj and include.
(install-data-local): New target.
(extra_headers): New macro.
* include/ New file.
* include/ New file.
* Don't include gcj/field.h or gcj/cni.h.
* java/lang/reflect/ Don't include gcj/field.h or
* Don't include java-threads.h or gcj/field.h.
* Include config.h.
* Include config.h.
* include/java-interp.h: Don't include config.h.
* include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
* gcj/javaprims.h: Regenerated namespace decls.
* (scan): Don't put `;' after closing brace.
* Rebuilt.
* (INCLUDES): Added -I for top_srcdir.
* Create gcj/Makefile.
* gcj/ New file.
* gcj/ New file.
* java/lang/Object.h: Don't include any other headers.
* gcj/array.h: Renamed from include/java-array.h.
* gcj/field.h: Renamed from include/java-field.h.
* gcj/method.h: Renamed from include/java-method.h.
* gcj/cni.h, gcj/javaprims.h: Moved from include/.
Updated all files to reflect new include structure.
1999-09-09 Tom Tromey <>
* configure: Rebuilt.
* Fixed typo; variable is THREADSPEC and not
1999-09-08 Tom Tromey <>
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted
previous change and implemented a correct test in the __m_count
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test
in __m_count case.
1999-09-07 Tom Tromey <>
* (_Jv_CondWait): pthread_ calls return error
code and don't set errno.
* (_Jv_CondWait): Check `errno' against EINTR,
not `r'. Changed `done_sleeping' to a `bool'.
1999-09-07 Matt Welsh <>
* libjava/ Added _Jv_ThreadDataKey.
Added FLAG_INTERRUPTED to indicate that a thread was interrupted
by another thread, rather than by the GC.
(_Jv_CondWait): Prevent premature thread wakeup by GC.
(_Jv_InitThreads): Initialize _Jv_ThreadDataKey.
* libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New
1999-09-03 Tom Tromey <>
* configure: Rebuilt.
* Check for fstat function.
* java/io/ (available): Use fstat() if
1999-09-02 Tom Tromey <>
* include/java-array.h (jobjectArrayjchar): Removed unused
* java/lang/ (_Jv_WaitForState): Call
_Jv_PrepareCompiledClass while holding class mutex.
1999-09-01 Tom Tromey <>
* include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.
(_Jv_PthreadGetMutex): Use it.
(_Jv_PthreadCheckMonitor): Use new M_COUNT macros.
(_Jv_MutexLock): Likewise.
(_Jv_MutexUnlock): Likewise.
* include/ Rebuilt.
* configure: Rebuilt.
* Don't mention INTERPSPEC.
* (INTERPSPEC): Removed.
Only run pthreads-related checks when using POSIX threads. Check
for m_count and __m_count in mutex structure.
1999-09-01 Matt Welsh <>
* java/lang/ Fixed notification of threads
when class initialization is complete.
1999-09-01 Tom Tromey <>
* java/lang/reflect/ (ALL_FLAGS): New constant.
* Removed constants defined by
Include <java/lang/reflect/Modifier.h>.
(_Jv_ResolvePoolEntry): Use values from Modifier.
(_Jv_DetermineVTableIndex): Likewise.
(_Jv_PrepareClass): Likewise.
(ncode): Likewise.
* (_Jv_ClassReader): Removed constants defined by
Include <java/lang/reflect/Modifier.h>.
(checkExtends): Use values from Modifier.
(checkImplements): Likewise.
(handleField): Likewise.
(handleConstantValueAttribute): Likewise.
(handleFieldsEnd): Likewise.
(handleMethod ): Likewise.
(handleMethodsEnd): Likewise.
(handleClassBegin): Likewise.
* Removed constants defined by
(continue1): Use values from Modifier.
* java/lang/ Removed constants defined by
* java/lang/ (_Jv_NewClass): Use
* java/lang/Class.h: Replaced JV_STATE_ defines with enum.
* (_Jv_CondWait): Use _Jv_PthreadGetMutex.
* include/posix-threads.h (_Jv_Mutex_t): Define as structure,
except on Linux.
(_Jv_PthreadGetMutex): New function.
(_Jv_PthreadCheckMonitor): Use it.
(_Jv_MutexInit): Likewise. ALso, initialize `count'.
(_Jv_MutexLock): Update `count'.
(_Jv_MutexUnlock): Likewise.
(_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when
1999-09-01 Kresten Krab Thorup <>
* (.java.lo): Add rule.
* Rebuilt.
1999-09-01 Tom Tromey <>
* (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.
* include/posix-threads.h (_Jv_PthreadCheckMonitor): New
(_Jv_CondNotify): Use it.
(_Jv_CondNotifyAll): Likewise.
* java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling.
1999-08-31 Tom Tromey <>
* include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused
1999-08-24 Bryce McKinlay <>
* Include <errno.h>.
1999-08-23 Tom Tromey <>
* Undefine TRUE and FALSE.
* (_Jv_CondWait): Use ETIMEDOUT, not ETIME.
1999-08-21 Tom Tromey <>
* (_Jv_CondWait): Treat a timeout as a normal
result. PR 40.
1999-08-21 Alexandre Oliva <>
* Check for in_addr_t in netinet/in.h too. Check
for ip_mreq too.
* acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
* configure, include/ Rebuilt.
* java/net/ (aton): Typedef in_addr_t to jint
if needed.
* java/net/ (McastReq, mcastGrp):
Disable if ip_mreq is not available.
* Check types ssize_t and in_addr_t.
* acconfig.h: Undefine them.
* configure, include/ Rebuilt.
* java/lang/ (getpwuid_adaptor): New overloaded
function that detects the signature of getpwuid_r.
(init_properties): Use it.
* java/util/ (ctime_adaptor): Likewise for ctime_r.
(toString): Use it.
1999-08-20 Kresten Krab Thorup <>
* (continue1): Implement explicit dispatch table.
insn_target: Explicit interpreter switch table.
SAVE_PC: New macro, moves pc saving code into instructions that
require so.
NEXT_INSN: New macro, replaces `goto next_insn' in all insns.
INLINE_SWITCH: New macro. Constrols dispatching strategy.
opcode: Remove local variable.
{i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions.
(POKEI): Use _Jv_word.
(iinc): Use _Jv_word.
(dupx): Change reference argument (sp) to pointer.
(jvdump): Remove
* Remove instruction timing instrumentation.
* java/lang/ (_Jv_PrepareCompiledClass): Changed
comment. Don't use _Jv_ClassNameSamePackage.
* gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry,
URLPathEntry, CacheEntry}: Removed.
* (ordinary_java_source_files): Remove gnu/gcj/util/path
(.java.lo): Rule removed.
* Rebuilt.
1999-08-19 Tom Tromey <>
* java/lang/ (class locker): New class.
(join): Use a locker around _Jv_CondWait.
(sleep): Likewise.
1999-08-18 Tom Tromey <>
* java/lang/ Fixed now-erroneous comment.
* java/lang/ (finish_): Call ThreadGroup.remove.
1999-08-18 Tom Tromey <>
* include/javaprims.h ("Java"): Regenerated namespace decls.
1999-08-18 Kresten Krab Thorup <>
* java/lang/ (_Jv_PrepareCompiledClass): Renamed
from _Jv_InternClassStrings.
* (_Jv_RunMain): New function.
(JvRunMain): Remove gij-support.
* (main): Use _Jv_RunMain.
* java/util/zip/ Call readDirectory in constructor.
argument in temp variable.
(continue1): For all op_x2y insns, use temp variable for
intermediate value. Also remove some comments.
* java/lang/ (newInstance): Call _Jv_InitClass.
(forName): Don't call _Jv_InitClass.
* java/lang/ (getResource,getResourceAsStream): Implement.
* java/util/zip/ (ZipEntry(ZipEntry)): New construcor.
* java/util/jar/ New file.
* java/util/jar/ New file.
* java/util/jar/ New file.
* java/net/ New file.
* java/net/ New file.
* gnu/gcj/protocol/jar/ New file.
* gnu/gcj/protocol/jar/ New file.
* java/security/ New file.
* java/lang/ (parent): New variable.
(ClassLoader (ClassLoader)): new constructor.
(findClass): New method.
(loadClass): Add default 1.2 implementation.
(getSystemResourceAsBytes, getResourceAsBytes): Removed.
(readfully): Removed.
* gnu/gcj/runtime/ Moved from java/lang.
(findSystemClass): New method.
(VMClassLoader): Constructor rewritten.
(init): New method.
All other methods removed.
* java/lang/ Change use of java::lang::VMClassLoader
to gnu::gcj::runtime::VMClassLoader.
(_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle
class entries.
(VMClassLoader::findSystemClass): renamed from findBootClass.
* Add new files.
(FirstThread.h, ThreadGroup.h): Add _Jv_Main friend.
* Rebuilt.
1999-08-17 Tom Tromey <>
* java/lang/ (sleep): Turn 0 millis and 0 nanos into 1
* include/quick-threads.h (_Jv_CondWait): Don't round to 0
1999-08-16 Tom Tromey <>
* configure: Rebuilt.
* Set DIVIDESPEC to empty string if compiler does
not support -fuse-divide-subroutine.
1999-08-14 Per Bothner <>
* (_Jv_PrepareClass): Use ClassLoader::resolveClass0.
* java/lang/ (initializeClass): Likewise.
* java/lang/ (resolveClass0): New static method.
(resolveClass): Call resolveClass0.
(findSystemClass): No longer static.
1999-08-12 Alexandre Oliva <>
* include/javaprims.h (TRUE, FALSE): Redefine as themselves.
1999-08-11 Bryce McKinlay <>
* java/util/ (set, clear, hashCode): specify "1" constant
as long.
Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* Makefile: Rebuilt.
* (toolexeclibdir): Add $(MULTISUBDIR) even for native
* java/net/ Include <sys/select.h> only if
* configure: Rebuilt.
* Properly align --help output, fix capitalization
and punctuation.
* acinclude.m4: Likewise.
1999-08-09 Kresten Krab Thorup <>
* include/javaprims.h (_Jv_word, _Jv_word2): New types.
* include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word.
(_Jv_callInterpretedMethod): Unused. Remove.
Use ffi_raw.
* include/java-cpool.h (_Jv_get, _Jv_put): Remove.
(_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word.
* (_Jv_MarkObj): Use _Jv_word.
* use _Jv_word.
* use_Jv_word.
* Use _Jv_word.
(_Jv_ResolvePoolEntry): Return _Jv_word.
* java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool.
* java/lang/ (_Jv_InternClassStrings): Use _Jv_word.
* (gnu::gcj::runtime::MethodInvocation::continue1):
Change comment.
Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* configure: Rebuilt.
* (sched_yield): Try librt first, then libposix4.
Add -lrt, -lposix4 to THREADSPEC.
1999-08-08 Anthony Green <>
* gnu/gcj/util/path/ Comment out verbose output.
1999-08-08 Anthony Green <>
* (_Jv_VerifyClassName): Verify array names
1999-08-08 Anthony Green <>
* New file.
* include/ Rebuilt.
* acconfig.h: Add INTERPRETER.
* Rebuilt.
* (libffi_files): Identify the libffi object files for
inclusion in libgcj.
* (gnu::gcj::runtime::MethodInvocation::continue1):
Dummy definition for configurations without an interpreter.
* java/net/ (getOption): Disamiguate call to
java::lang::Boolean constructor.
* include/java-interp.h: Always include java-cpool.h.
* java/lang/ (getVMClassLoader0): Always return 0
when INTERPRETER not defined.
* java/lang/Class.h (finalize): Define.
* gnu/gcj/util/path/ (getURL): Catch
IOException from File.getCanonicalPath.
(getStream): Likewise.
* NEWS: More news.
* THANKS: More thanks.
1999-08-08 Kresten Krab Thorup <>
* (get_ffi_type_from_signature): Generate uint16 for
jchar type.
(_Jv_PrepareClass): Allow non-abstract classes to
have abstract subclasses.
(_Jv_ResolvePoolEntry): Revert subclass check for protected
fields and methods.
* (continue1/perform_invoke): Don't sign extend
uint16 return val.
(continue1/lshl,lshr): Push long, not int.
(continue1/ulshr): Use UINT64, not long long.
* (handleFieldsEnd): Handle case when all fields
are static.
* java/lang/ (forName): Add call to _Jv_InitClass.
* java/lang/ (run): Add top-level exception
(run0): Renamed from run.
1999-08-08 Kresten Krab Thorup <>
* (--with-interpreter): Added.
* include/ (INTERPRETER): Added.
* java/lang/ File replaced.
* java/lang/ New file.
* java/lang/ New file.
* gnu/gcj/runtime/ New file.
* gnu/gcj/util/path/ New file.
* gnu/gcj/util/path/ New file.
* gnu/gcj/util/path/ New file.
* gnu/gcj/util/path/ New file.
* gnu/gcj/util/path/ New file.
* gnu/gcj/util/path/ New file.
* include/java-interp.h: New file.
* include/java-cpool.h: New file.
* include/java-insns.h: New file.
* New file.
* New file.
* New file.
* java/lang/ (loaded_classes, _Jv_RegisterClass,
_Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass,
_Jv_NewClass, _Jv_FindArrayClass): Moved to
(finalize): New.
STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_
(initializeClass): Use new JV_ prefixed names. Also, call
ClassLoader::resolveClass instead of _Jv_ResolveClass.
(_Jv_WaitForState, _Jv_RegisterInitiatingLoader,
_Jv_UnregisterClass, _Jv_InternClassStrings): New friends.
(_Jv_IsInterpretedClass, _Jv_InitField, _Jv_LookupDeclaredMethod,
_Jv_DetermineVTableIndex, _Jv_ResolvePoolEntry, _Jv_PrepareClass,
_Jv_ClassReader, _Jv_InterpClass, _Jv_InterpMethod,
_Jv_InterpMethodInvocation): New friends for interpreter.
(finalize): New.
(CONSTANT_Class, CONSTANT_String, etc.): Moved to
include/java-cpool.h and renamed with JV_ prefix.
* include/jvm.h (_Jv_makeUtf8Const, _Jv_makeUtf8TypeConst): New
(_Jv_UnregisterClass): New decl.
* java/lang/ (_Jv_FindArrayClass): Added
class loader argument.
(_Jv_FindClass): Use class loader.
* (_Jv_makeUtf8Const): New function.
(_Jv_NewObjectArray): Change use of _Jv_FindArrayClass.
(_Jv_NewPrimArray): Ditto.
(_Jv_FindClassFromSignature): Ditto.
* java/lang/reflect/ (newInstance): Ditto.
* java/lang/reflect/ (getType): Ditto.
* include/java-field.h (_Jv_Field::isRef): Make robust for
non-resolved contexts.
* (_Jv_MarkObj): Mark interpreter-related fields.
Also, don't mark class->next field.
* java/lang/ Added FIXME note.
* (INTERPSPEC): New spec.
* Added gcjh friends for java/lang/VMClassLoader and
(libgcj_la_SOURCES): Added
(ordinary_java_source_files): Added above mentioned java classes.
* configure: Rebuilt.
* Rebuilt.
1999-08-06 Tom Tromey <>
* configure: Rebuilt.
* Look for sched_yield in -lrt.
1999-08-06 Mojo Jojo <>
(toString): Print correctly when `country' is empty.
1999-08-04 Per Bothner <>
1999-08-02 Tom Tromey <>
* aclocal.m4, configure: Rebuilt for new libtool.
1999-08-02 Bryce McKinlay <>
* (_Jv_RegisterFinalizer): Cast `meth' to GC_PTR.
* (_Jv_Throw): Cast `_Jv_type_matcher' to __eh_matcher.
* java/net/ Define ANY_IF.
(ServerSocket (int,int)): Use ANY_IF instead of null to bind to
all network interfaces.
* java/net/ (DatagramSocket): ditto.
* java/net/ (bind): Expect `' instead of
* java/net/natPlainDatagramSocketImpl (bind): Expect `'
instead of null.
* java/io/ (performMkdir): Remove FIXME.
* java/io/ (open): Use 0644 file mode.
1999-08-01 Alexandre Oliva <>
* Check for bstring.h.
* configure, include/ Rebuilt.
* java/net/ #include bstring.h.
* java/net/ Likewise.
1999-07-31 Tom Tromey <>
* NEWS: Likewise.
* THANKS: New file.
1999-07-31 Alexandre Oliva <>
* Check for struct hostent_data and need for
-D_REENTRANT for gethostbyname_r declaration.
* java/net/ Define _REENTRANT if needed.
(lookup): Use hostent_data for fixed_buffer.
* configure, include/ Rebuilt.
1999-07-31 Alexandre Oliva <>
* java/lang/ (arraycopy): Use bcopy if memmove is not
available. Don't cast memmove args to (void*).
* Do not abort if memmove is not available.
1999-07-22 Bryce McKinlay <>
* java/lang/ (substring): optimize where substring is
entire String.
* java/io/ (getName): don't return separator with file name.
* java/io/ (attr): fix overflow.
Sun Jul 25 01:43:34 1999 Anthony Green <>
* mauve-libgcj: Disable Object Serialization tests.
1999-07-20 Warren Levy <>
* java/net/ (DatagramSocket(int, InetAddress)):
Default to using PlainDatagramSocketImpl.
* java/net/ (close): Catch IOException.
1999-07-19 Tom Tromey <>
* include/ New file.
1999-07-12 Tom Tromey <>
* java/lang/mprec.h: Protect definition of uint32_t with #ifndef
1999-07-07 Andrew Haley <>
* include/i386-signal.h (MAKE_THROW_FRAME): Advance EIP by two
bytes to make it point after the instruction where the trap
1999-07-07 Tom Tromey <>
* mauve-libgcj: Explicitly enable formerly disabled java.text
* mauve-libgcj: Turn off ClassTest test. Enable java.text tests
Mon Jul 5 12:01:35 1999 Anthony Green <>
* java/net/ (equals): Compare strings using String.equals.
* java/net/ (sameFile): Ditto.
1999-07-02 Warren Levy <>
* configure: Rebuilt.
* Added inet_ntoa to AC_CHECK_FUNCS.
* include/ Rebuilt.
* java/net/ Added header checking.
(mcastGrp): Updated FIXME comments.
(setOption): Fixed typo.
(getOption):Implemented IP_MULTICAST_IF.
1999-07-02 Warren Levy <>
* java/net/ (ttl): Removed.
* java/net/ (setTimeToLive): Implemented.
(getTimeToLive): Implemented.
(setOption): Implemented IP_MULTICAST_IF.
1999-07-01 Bryce McKinlay <>
* java/lang/ (toString): Check for this == null and throw
1999-07-01 Warren Levy <>
* gnu/gcj/convert/ (read): Changed outlength
to count and revised comments to match.
* gnu/gcj/convert/ (read): Same as
* gnu/gcj/convert/ (read): ditto.
* gnu/gcj/convert/ (read): ditto.
* gnu/gcj/convert/ (read): ditto.
* gnu/gcj/convert/ (read): ditto.
* gnu/gcj/convert/ (read): ditto.
1999-07-01 John-Marc Chandonia <>
* gnu/gcj/convert/ (read): Use 3rd parameter
properly as count rather than outlength.
* java/io/ (write(byte[],int,int): Flush
output on overflow rather than buffer fill.
* java/io/ (fill): Don't clear out the buffer
if markPos is 0 and there is still room in the buffer.
1999-07-01 Andrew Haley <>
* include/i386-signal.h: Replace sigaction () with __sigaction ().
This is a workaround for a bug in glibc's pthreads package which
doesn't deliver any sigcontext information to a signal handler.
1999-06-24 Tom Tromey <>
* java/lang/e_asin.c: Don't use __int32_t or __uint32_t.
* java/lang/fdlibm.h (HUGE): Conditionally define.
Fri May 28 22:20:03 1999 Anthony Green <>
* java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h.
* java/lang/e_log.c: Don't use __uint32_t.
1999-05-27 Eric Christopher <>
* configure: Rebuilt
* Fixed ISO C9X and namespace collision with __uint32_t
* acconfig.h: Rebuilt
* include/ Rebuilt
* java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c,
java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c,
e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c,
java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h,
k_tan.c, java/lang/mprec.h, java/lang/s_atan.c,
java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c,
s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X
and namespace collision with __uint32_t
1999-06-23 Tom Tromey <>
* java/util/zip/ (read): Throw
ZipException if inflater throws a DataFormatException.
1999-06-23 Warren Levy <>
* java/net/ (localPort): Fixed typo to match JDK.
* java/net/ (bind): ditto.
* java/text/ (nextDouble(double, boolean)): Method
is not final per JDK.
* java/util/ (handleGetObject): Method is
public per JDK.
* java/util/zip/ Class extends Exception.
* java/util/zip/ (finalize): Method is protected per JDK.
* java/util/zip/ Class implements ZipConstants.
* java/util/zip/ ditto.
(closeEntry): Changed method name to match JDK spec.
1999-06-21 Tom Tromey <>
* java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
From Jeff Sturm.
* Rebuilt.
* (toolexeclibdir): Define as libdir when
* configure: Rebuilt.
* (USE_LIBDIR): New conditional.
1999-06-18 Bryce McKinlay <>
* java/net/ (lookup): Preserve caller-supplied
hostname in returned InetAddress objects.
(getLocalHostname): Fix typo.
* java/net/ (getByName): Set hostname on return
(getLocalHost): Call lookup directly to ensure that a fully-qualified
name is returned.
1999-06-17 Bryce McKinlay <>
* java/net/ (bind): Bind to any/all network
interfaces if host==NULL.
(accept): Throw message with InterruptedIOException.
(getOption): Cache localAddress.
* java/net/ (bind): Don't need
'address' for DatagramSocket.
(setTimeToLive): Fix compiler warnings.
(getOption): Cache localAddress.
* java/net/ (getLocalAddress): Don't need local
InetAddress object. Add FIXME comment about calling checkConnect().
* java/net/ (ServerSocket(int)): Initialize
connection queue to 50 as per JDK 1.2 docs.
(ServerSocket(int,int)): Listen on all network interfaces by
default, per JDK 1.2 docs.
* java/net/ Don't need 'address'.
Add localAddress caching.
1999-06-15 Bryce McKinlay <>
* java/io/ (write(byte[])): Rewrite according
to JDK 1.2 docs.
(write(byte[],int,int)): ditto.
1999-06-14 Bryce McKinlay <>
* (_Jv_CondWait): Fix currentTimeMillis() overflow.
1999-06-11 Warren Levy <>
* mauve-libgcj: Activated Mauve tests.
1999-06-10 Bryce McKinlay <>
* java/net/ (aton): Fix typos.
(lookup): Use a bigger buffer size for gethostbyname_r on all
versions of glibc. Updated FIXME comment explaining this.
Modified while loops to not set herr = ERANGE to work around glibc
problems. Use user specified hostname in InetAddress result when
available (consistent with JDK).
1999-06-10 Warren Levy <>
* java/io/ (FileDescriptor(String, int)):
Throw FileNotFoundException instead of IOException.
(open): ditto.
* java/io/ (FileInputStream): Doesn't throw
* java/text/ (CANONICAL_DECOMPOSITION): Fixed typo
in static field name.
* java/text/ Throw IllegalArgumentException
throughout rather than ParseException.
1999-06-09 Bryce McKinlay <>
* java/lang/ (exec): Convert prog name and arguments
to string array.
* java/lang/ (startProcess): Fix typo in
environment array conversion. Preserve current environment if envp
not passed. Preserve PATH unless explicitly specified.
* java/io/ (readLine): Fix case where '\r' is
followed by EOF. Set a flag when a line is terminated by '\r' and
ignore following '\n' if set.
1999-06-02 Warren Levy <>
* java/net/ (URL(URL,String)): Initialize port to -1.
Ignore context if spec is an absolute URL. Fix braindead
string comparison.
(hashCode): Use JDK 1.2 style algorithm.
* java/net/ (parseURL): Reimplement to handle
context URL properly.
1999-05-30 Anthony Green <>
* java/net/ (parseURL): Parse relative URLs
correctly. Clean up "/../" and "/./" path fragments.
1999-05-28 Warren Levy <>
* java/net/ (laddr): Removed.
(DatagramSocket): Removed attempts to get or set laddr if null.
(getLocalAddress): Reimplemented per spec.
* java/net/ (setTimeToLive): Throw exception
when ttl is 0.
(joinGroup): Throw NullPointerException if any argument is null.
(leaveGroup): ditto.
* java/net/ Updated comments.
* java/net/ (timeout): Added.
(getInputStream): Added FIXME comment on how to support timeouts
for TCP.
* java/net/ (ServerSocket): Added FIXME comment.
* java/net/ Added FIXME comments to identify
conflicting specs between the JCL and JDK 1.2 documents.
* java/net/ (bind): Use INADDR_ANY
if host is null. Get localport value resolved by kernel if bind
lport is 0.
(receive): Implemented support for timeouts in UDP.
(setOption): Implemented based on natPlainSocketImpl version.
(getOption): ditto.
* java/net/ (bind): Get localport value
resolved by kernel if bind lport is 0.
(connect): Get localport value resolved by kernel if bind wasn't
done to set localport.
(accept): Implemented support for timeouts for ServerSocket.
(setOption): Save value for SO_TIMEOUT.
(getOption): Return timeout for SO_TIMEOUT.
1999-05-26 Bryce McKinlay <>
* java/net/ (getSoTimeout): Verify class type.
* java/net/ (getOption): Made abstract.
(setOption): Made abstract.
* java/net/ Mirror SocketOptions fields
to avoid cpp conflicts in native code.
* java/net/ Mirror SocketOptions fields to avoid
cpp conflicts in native code.
* java/net/ (toString): Prepended "ServerSocket".
* java/net/ (getLocalAddress): Implemented.
(setTcpNoDelay): Implemented.
(getTcpNoDelay): Implemented.
(setSoLinger): Implemented.
(getSoLinger): Implemented.
(getSoTimeout): Verify class type.
(setSendBufferSize): Implemented.
(getSendBufferSize): Implemented.
(setReceiveBufferSize): Implemented.
(getReceiveBufferSize): Implemented.
(toString): Prepended "Socket".
* java/net/ (toString): Rewritten.
(getOption): Made abstract.
(setOption): Made abstract.
* java/net/ (connect): Set localport properly.
(setOption): Implemented.
(getOption): Implemented.
1999-05-26 Warren Levy <>
* java/net/ (DatagramSocket): Get local host
address when null. Set SO_REUSEADDR for multicasts.
(getSoTimeout): Implemented.
(setSoTimeout): Implemented.
* java/net/ Implement SocketOptions interface.
* java/net/ (getInterface): Implemented.
(setInterface): Implemented.
(setTimeToLive): Check for invalid ttl.
(joinGroup): Verify multicast address and security.
(leaveGroup): Verify multicast address and security.
(send): Implemented.
* java/net/ (timeout): Added.
(iface): Added.
(ttl): Added.
(setOption): Added.
(getOption): Added.
(mcastGrp): Added.
(getTTL): Implemented as non-native.
(setTTL): ditto.
(join): ditto.
(leave): ditto.
* java/net/ (setSoTimeout): Implemented.
(getSoTimeout): Implemented.
(setSocketFactory): Made synchronized.
* java/net/ (setSoTimeout): Implemented.
(getSoTimeout): Implemented.
(close): Made synchronized.
(setSocketImplFactory): Made synchronized.
* java/net/ Implement SocketOptions interface.
* java/net/ Corrected module name at top of file.
* java/net/ (McastReq): Added union.
(bind): Added FIXME.
(peek): Implemented.
(setTTL): Removed.
(getTTL): Removed.
(join): Removed.
(leave): Removed.
(mcastGrp): Added.
(setOption): Implemented for SO_REUSEADDR.
(getOption): Implemented for SO_REUSEADDR.
1999-05-24 Tom Tromey <>
* java/util/ (getBundle): Throw
NullPointerException if baseName is null.
1999-05-22 Tom Tromey <>
* java/util/zip/ (fill): New method.
(compressed_len): New instance variable.
(getNextStream): Set it.
(read): Reset inflater on EOF. Only read via `super' if entry is
(skip): Only skip via `super' if entry is deflated.
* java/util/zip/ (last_input_count): Removed.
* java/util/zip/ (deflate): Return 0 if input array
is length 0.
(needsInput): Don't use last_input_count.
(setInput): Don't set last_input_count.
* java/util/zip/ (getRemaining): Return correct
(inflate): Return 0 if input array is length 0.
(setInput): Don't set last_input_count.
* java/util/zip/ (last_input_count): Removed.
1999-05-21 Tom Tromey <>
* Rebuilt.
* (INCLUDES): Added $(ZINCS).
* configure: Rebuilt.
* (ZINCS): New subst.
1999-05-21 Andrew Haley <>
* include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added
to signal options to allow the same exceptions to be rethrown
1999-05-20 Andrew Haley <>
* libjava/ (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW
* include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro.
(INIT_FPE): Exception string made more informative.
* include/sparc-signal.h (INIT_FPE): Exception string made more
* testsuite/libjava.lang/ New file.
* testsuite/libjava.lang/Divide_1.out: New file.
1999-05-19 Tom Tromey <>
* aclocal.m4, configure: Rebuilt.
* acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE.
* java/util/zip/ (write(byte[])): New
* java/util/zip/ (inflate): Cast `len' to unsigned.
Include <stdlib.h>.
* java/util/zip/ (deflate): Cast `len' to unsigned.
Include <stdlib.h>.
(update): Fail in default case. Always initialize `strat'.
* mauve-libgcj: Enable
1999-05-18 Warren Levy <>
* (ordinary_java_source_files): Added,,,,, and
(nat_source_files): Added
* Rebuilt.
* java/net/ New file.
* java/net/ New file.
* java/net/ New file.
* java/net/ New file.
* java/net/ New file.
* java/net/ New file.
* java/net/ New file.
1999-05-18 Tom Tromey <>
* java/util/zip/ (level): Initial value is
(close): New method.
(closeEntry): Likewise.
(finish): Likewise.
(put_version): Likewise.
(write_entry): Likewise.
(put2, put4): Now return `int'.
(comment): Default to empty string.
(bytes_written): New instance variable.
(chain): Likewise.
* java/util/zip/ (setComment): Limit length of
comment string.
(setCrc): Check CRC validity.
(setExtra): Check argument validity.
(setMethod): Likewise.
(setSize): Likewise.
(ZipEntry): Likewise.
* include/javaprims.h: Updated namespace declarations.
* Rebuilt.
* (ordinary_java_source_files): Mention new files.
(nat_source_files): Likewise.
* java/util/zip/ (readu2): Throw ZipException, not
(read4): Likewise.
(getInputStream): Handle compressed entries.
* java/util/zip/ New file.
* java/util/zip/ New file.
* java/util/zip/ New file.
* java/util/zip/ New file.
* java/util/zip/ New file.
* java/util/zip/ Implemented.
* java/util/zip/ New file.
* java/util/zip/ Implemented.
* java/util/zip/ New file.
* java/util/zip/ Implemented.
* java/util/zip/ (closeZipEntry): Throw
ZipException, not IOException.
* java/util/zip/ (readDirectory): Throw ZipException,
not IOException.
1999-05-17 Tom Tromey <>
* java/lang/ (init_properties): URL now points to
1999-05-12 Per Bothner <>
* java/util/ (set): First call computeFields if needed.
* java/util/ (computeTime): Cast 1000 to jlong.
1999-05-12 Tom Tromey <>
* configure: Rebuilt.
* Look for -ldl when using the Boehm collector.
Look for sched_yield in -lposix4.
1999-05-12 Per Bothner <>
* java/io/ (mkdirs): Handle a null parent directory.
1999-05-12 Tom Tromey <>
* include/javaprims.h: Updated namespace declarations.
* (scan): Uniquify class list.
*, configure: Rebuilt.
* (nat_source_files): Added
(built_java_source_files): New macro.
(nat_headers): Added built_java_source_files.
(javao_files): Likewise.
(EXTRA_libgcj_la_SOURCES): Likewise.
( Create built class files.
($( New target.
(jv_convert_LDADD): Added -L$(here)/.libs.
* Create links for and
* java/lang/ (exec): Create a ConcreteProcess.
* java/lang/ New file.
* java/lang/ New file.
* java/lang/ New file.
* java/lang/ New file.
1999-05-12 Warren Levy <>
* java/net/ Corrected copyright & header comments.
* java/net/ Added marker for JDK 1.2 work.
* java/net/ (bind): Throw BindException.
(connect): Throw ConnectException.
1999-05-11 Tom Tromey <>
* Rebuilt.
* (jv_convert_DEPENDENCIES): Include libgcj.spec.
* Don't use `+'. Instead, put old lib spec after
our libraries.
* Rebuilt.
* (jv_convert_LDADD): Removed `-L.'; it is not needed
and it causes problems with libtool.
*, configure: Rebuilt.
* (jv_convert_LDFLAGS): Removed -nodefaultlibs.
(jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc.
(jv_convert_DEPENDENCIES): Added ZDEPS.
* (GCSPEC): Added `-L' to point to boehm-gc build
(THREADSPEC): Added `-L' to point to qthreads build directory.
(ZLIBS): New subst.
(ZDEPS): New subst.
* configure, Rebuilt.
* (toolexeclib_DATA): New macro.
* Create libgcj.spec. Look for -lsocket and -lnsl.
Recognize --with-system-zlib.
(GCSPEC): New subst.
(THREADSPEC): New subst.
(SYSTEMSPEC): New subst.
(ZLIBSPEC): New subst.
* New file.
1999-05-10 Tom Tromey <>
* java/io/ (read): If length is 0, return
0. Reset `wpos' and `wcount' when buffer has been filled and
* java/util/ (save): Removed `FIXME' comment.
(load): Invalid characters in \u now treated as terminators.
Make sure to append character resulting from `\' handling.
Cast to `char' when appending to key or value.
(skip_ws): Inverted test for whitespace.
* java/io/ (RandomAccessFile): Removed
`FIXME' comment.
(readLine): Likewise.
(readFully): Implemented.
* java/lang/ (sync_init): Use _Jv_AllocBytesChecked.
* java/awt/ Added copyright header.
* java/util/zip/ Added copyright header.
* java/io/ (FilterWriter): Removed `FIXME'
* java/io/ (SequenceInputStream): Removed
`FIXME' comment.
(getNextStream): Likewise.
* java/util/ (partialGetBundle): Explicitly use
(getBundle): Don't explicitly throw null pointer exception.
* gnu/gcj/ Added copyright header.
* include/jni.h (_Jv_va_list): Always define as va_list.
1999-05-9 Anthony Green <>
* java/text/ (computeInstance): Separate time
and date styles.
(getDateTimeInstance): Ditto.
(getDateTimeInstance(int,int)): New method.
* Rebuilt.
* (ordinary_java_source_files): Add new classes.
* java/util/ New file.
* gnu/gcj/util/ New file.
1999-05-07 Tom Tromey <>
* acconfig.h (GCJVERSION): New undef.
* java/lang/ (init_properties): Define java.version,
java.class.version,, os.arch, os.version.
Include <sys/utsname.h> if required.
* configure: Rebuilt.
* Compute and define GCJVERSION.
* java/lang/ (default_file_encoding): Now static.
* java/lang/ (isLowerCase): Use a binary search.
* libtool-version: New file.
* Rebuilt.
* (libgcj_la_LDFLAGS): Use -version-info, not
* mauve-libgcj: Don't omit Utf8Encoding or StringTest.
Comment out FieldPosition, ParsePosition, and SimpleDateFormat
again (oops).
* mauve-libgcj: Test more from java.text. Don't mention 1.1 tests
(we pick those up already).
1999-05-05 Per Bothner <>
* java/awt/*: Check a bunch of classes, a few complete, but mostly
stub classes. (This is enough to get Kawa to compile against libgcj.)
* gnu/gcj/ New class.
* doc/cni.sgml: Document RawData.
* java/util/zip/ New stub class.
* java/util/zip/ New class. Partly works.
* java/util/zip/ Add two (internal) constants.
* java/util/zip/ (timeFromDOS): New static method.
* java/util/zip/ Now mostly works (unless compressed).
* java/util/zip/ Start implementation.
* java/lang/ (DEFAULT_FILE_ENCODING): New macro.
(default_file_encoding): New global, initial value is above macro.
(init_properties): Default file.encoding to default_file_encoding.
* Add new classes.
1999-05-05 Tom Tromey <>
* Rebuilt.
* (CLEANFILES): Don't mention $(class_files).
(clean-local): New target
* java/lang/ Include <ltdl.h> if required.
(load, loadLibrary): Now native.
(init): New method.
* java/lang/ (load, loadLibrary): Now native.
(init): New native method.
(Runtime): Use init.
* Include <ltdl.h> if required.
1999-05-05 Gilles Zunino <>
* Switch from irix threads to posix threads
* configure: Regenerate.
1999-04-30 Tom Tromey <>
* Rebuilt.
* (jv_convert_LDADD): Added -lgcc.
1999-04-29 Tom Tromey <>
* java/lang/ (ensureCapacity): Don't resize
vector when shared.
* java/util/ (Locale(String,String)): Implement in
terms of 3-argument version; variant now defaults to empty
(toString): Assume variant is not null.
(equals): Assume all strings are not null.
(Locale): Throw NullPointerException if any argument is null.
* java/util/ (getBundle): Don't try the base
name; now implicit in partialGetBundle call.
(trySomeGetBundle): Search for parent bundles and call setParent
as required.
(partialGetBundle): Added `langStop' argument. Use
`Locale.toString' to compute bundleName.
(resource_cache): New static field.
(partialGetBundle): Cache the returned resource bundle. Now
* gnu/gcj/text/ (contents): [collatorRule] Added
missing `<'.
* mauve-libgcj: Enable Collator and RuleBasedCollator.
* java/text/ (decomposeCharacter): `base' now
* Rebuilt.
* (ordinary_java_source_files): Added
CollationElementIterator, CollationKey, Collator,
(nat_source_files): Added
* java/text/ (ceiNext): No longer static.
(compare): Pass `this' to CollationElementIterator constructor.
(getCollationElementIterator): Likewise.
(ceiNext): Fix off-by-one error when finding initial substring.
(next): Correctly mask off bits when computing return value.
Fixed return values when one string is shorter than the other.
* java/text/ (collator): New field.
(CollationElementIterator): Added collator argument.
(next): Call ceiNext on collator object.
1999-04-26 Tom Tromey <>
* New file.
* java/util/ (setDefaultTime): New method.
(GregorianCalendar): Use it in all constructors.
* java/util/ (Calendar): Changed argument name to
`zone' to match code.
* gnu/gcj/text/ Added collatorRule element.
* java/text/ New file.
* java/text/ New file.
* java/text/ New file.
* java/text/ New file.
* Rebuilt.
* (jv_convert_LDFLAGS): Added -nodefaultlibs.
(jv_convert_LDADD): Explicltly add -lm -lc.
1999-04-26 Tom Tromey <>
* configure, Rebuilt.
(GCOBJS): Use `.lo' form of files.
(THREADOBJS): Likewise.
(GCDEPS): Use `.la' form of library.
(GCLIBS): Set to be the same as GCDEPS.
(THREADDEPS): Use `.la' form of library.
(THREADLIBS): Set to be the same as THREADDEPS.
* (toolexeclib_LTLIBRARIES): Renamed from
(libgcj_la_SOURCES): Renamed for libtoolization.
(EXTRA_libgcj_la_SOURCES): Likewise.
(libgcj_la_DEPENDENCIES): Likewise.
(libgcj_la_LIBADD): Likewise.
($(nat_files)): Use LTCXXCOMPILE.
($(c_files)): Use LTCOMPILE.
(GCJCOMPILE): New macro.
(.class.o): Use it.
(.java.o): Likewise.
($(javao_files)): Likewise.
(jv_convert_LINK): Use LIBTOOL.
(nat_files): Use `.lo' files.
(c_files): Likewise.
(javao_files): Likewise.
(.class.lo): Renamed.
(.java.lo): Likewise.
($(nat_files)): Depend on %.lo.
($(c_files)): Likewise.
($(javao_files)): Likewise.
(jv_convert_LDADD): Link against .lo files.
(jv_convert_DEPENDENCIES): Depend on .lo files.
(maintainer-check): Depend on, but examine .a file.
(jv_convert_DEPENDENCIES): Depend on
(libgcj_la_LDFLAGS): New macro.
1999-04-23 Warren Levy <>
* Added URLDecoder and URLEncoder.
* Rebuilt.
* java/net/ (setSocketFactory): Renamed from
setSocketImplFactory to match spec.
* java/net/ (getSoLinger): Changed return type to
match spec.
* java/net/ New file.
* java/net/ New file.
1999-04-21 Tom Tromey <>
* java/lang/ (getBytes): Reverted earlier change and
applied correct fix from Per Bothner.
* java/lang/ Don't throw
* java/lang/ (getBytes): Correctly size result
buffer. From Bryce McKinlay <>.
1999-04-20 Andrew Haley <>
* include/sparc-signal.h: new file.
* include/sparc-signal.h added.
* configure: regenerated.
* (JvRunMain): signal handling code rewritten to be more
(catch_segv): ditto.
(catch_fpe): ditto.
* include/i386-signal.h: reorganized.
* include/default-signal.h: reorganized.
1999-04-19 Tom Tromey <>
* java/lang/ (init_properties): Only declare pwd_entry
once. From Anthony Green.
1999-04-19 Andrew Haley <>
* Processed with new automake.
1999-04-19 Tom Tromey <>
* include/javaprims.h: Removed security namespace.
1999-04-20 Anthony Green <>
* java/io/ (println): Remove extra println.
1999-04-19 Anthony Green <>
* Rebuilt.
* (ordinary_java_source_files): Add new security files.
* java/security/,
java/security/ New files.
* include/javaprims.h: Add security namespace.
1999-04-16 Per Bothner <>
* gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table.
* gnu/gcj/convert/ New BytesToUnicode class.
* gnu/gcj/convert/ New BytesToUnicode class.
* gnu/gcj/convert/ New UnicodeToBytes class.
* gnu/gcj/convert/ New UnicodeToBytes class.
* gnu/gcj/convert/ New file.
* gnu/gcj/convert/ New file.
* gnu/gcj/convert/ New file.
* gnu/gcj/convert/ New file.
* gnu/gcj/convert/make-trie.c: New file: functions to make a trie.
* gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output.
* gnu/gcj/convert/ New generated trie table.
* Various changes for new files and conversions.
* gnu/gcj/convert/ (write(String,int,int,char[])):
New overloading, allows greater efficiency.
* gnu/gcj/convert/ (write(String,int,int,char[])):
New overloading (for efficiency - avoids copying).
* gnu/gcj/convert/ Fix typo: 0xC0 -> 0c3F.
* gnu/gcj/convert/ Fix typos in bit masks.
* java/io/ (<init>): Set correctly.
* java/io/ (<init>): Set correctly.
(writeChars): Don't be quite so eager to flush.
* java/io/ Rewrite. Now more similar to
OutputStreamWriter, using explicit UnicodeToBytes converter.
Also, autoflush does not need to flush so often.
* java/lang/ (getBytes): More efficient algorithm.
(init(jbyteArray,jint,jint,jstring)): More efficient.
1999-04-15 Warren Levy <>
* (ordinary_java_source_files): Added new Connection
and Handler classes in gnu.gcj.protocol.file package.
* Rebuilt.
* gnu/gcj/protocol/file/ New file.
* gnu/gcj/protocol/file/ New file.
* gnu/gcj/protocol/http/ (getInputStream): Check
if doInput allows input.
(getOutputStream): Check if doOutput allows output.
* java/net/ (parseURL): Fix indentation.
1999-04-14 Tom Tromey <>
* java/net/ (lookup): On glibc2.0 systems, make
buffer larger to work around bug.
From Bryce McKinlay <>.
1999-04-14 Andrew Haley <>
* java/lang/ (doubleToLongBits): ensure that all
NaNs are always converted to the same long value.
* java/lang/ (floatToIntBits): ditto, but for float
converted to int.
1999-04-13 Tom Tromey <>
* java/lang/ (arraycopy): Don't always use jbyteArray;
instead switch on actual element type.
* Rebuilt.
1999-04-13 Andrew Haley <>
* include/i386-signal.h, include/default-signal.h: New files.
* (catch_segv): Call MAKE_THROW_FRAME in exception
(catch_fpe): New function.
* Make link to appropriate include/java-signal.h.
* configure: Rebuilt.
* include/java-signal.h added to dependency list.
* Rebuilt.
1999-04-12 Urban Widmark <>
* java/io/ (readLine): Corrected handling of
empty lines, from null to "".
1999-04-12 Tom Tromey <>
* Rebuilt.
* ( Put `gnu' classes into zip file.
* java/lang/ (SystemClass): New define.
(init_properties): Synchronize.
1999-04-08 Geoff Berry <>
* (lookup): Fix typo (AF_INET16 -> AF_INET6).
* (accept): Add missing else if check
for AF_INET6.
1999-04-08 Tom Tromey <>
* java/lang/ (parseLong): Corrected overflow detection
* java/lang/ (parseInt): Corrected overflow detection
* java/io/ (print): Handle null string argument.
(println): Likewise.
1999-04-07 Warren Levy <>
* java/lang/ (init(jbyteArray,jint,jint,jstring)):
Set count to 0 when InputStreamReader returns -1 for EOF.
1999-04-07 Tom Tromey <>
* mauve-libgcj: Omit java.text.Collator,
1999-04-06 Tom Tromey <>
* gnu/gcj/protocol/http/ (getHeaderField): Catch
IOException from getHttpHeaders().
(getHeaderFieldKey): Likewise.
* include/javaprims.h: Regenerated declarations.
* Rebuilt.
* (ordinary_java_source_files): Updated for removed
1999-04-06 Per Bothner <>
* java/util/zip/ New class.
* java/util/zip/ Add working method bodies.
* (ordinary_java_source_files): Add new Adler32 class.
* Re-generate.
Tue Apr 6 18:28:42 1999 Warren Levy <>
* gnu/gcj/protocol/http/ New file. Rewritten
from version in removed www hierarchy.
* gnu/gcj/protocol/http/ New file. Copied from
version in removed www hierarchy.
* gnu/gcj/www/protocol/http/ Removed.
* gnu/gcj/www/protocol/http/ Removed.
* gnu/gcj/www/protocol/http: Removed dir.
* gnu/gcj/www/protocol: Removed dir.
* gnu/gcj/www: Removed dir.
* java/net/ Revised comments to indicate
missing JDK 1.2 methods.
* java/net/ (setURLStreamHandler): Look in gnu/gcj/protocol
hierarchy rather than the gnu/gcj/www/protocol one.
* java/net/ Updated status comments.
(setContentHandler): Look in gnu/gcj/content hierarchy rather than
the gnu/gcj/www/content one.
1999-04-06 Per Bothner <>
* (,
The gen-from-JIS program is in $(CONVERT_DIR).
1999-04-06 Tom Tromey <>
* mauve-libgcj: Renamed from mauve-libjava.
Tue Apr 6 03:18:38 1999 Warren Levy <>
* java/net/ (getResponseCode): Implemented.
(getResponseMessage): Implemented.
(getResponseVals): New private method.
* java/net/ (getContent): Implemented.
(setContentHandler): Convert non-alphabetic/numeric chars per spec.
1999-04-05 Tom Tromey <>
* (bin_PROGRAMS): Renamed convert to jv-convert.
(jv_convert_SOURCES): Renamed.
(EXTRA_jv_convert_SOURCES): Likewise.
(jv_convert_LDFLAGS): Likewise.
(jv_convert_LINK): Likewise.
(jv_convert_LDADD): Likewise.
(jv_convert_DEPENDENCIES): Likewise.
* Rebuilt.
* (toolexeclibdir): Reference toolexecdir, not
Mon Apr 5 02:14:35 1999 Warren Levy <>
* java/net/ (setRequestMethod): Use String.equals
method for comparison.
* java/net/ (getContentLength): Implemented.
(getContentType): Implemented.
(getContentEncoding): Implemented.
(getExpiration): Implemented.
(getDate): Implemented.
(getLastModified): Implemented.
(getHeaderFieldInt): Implemented.
(getHeaderFieldDate): Implemented.
Fri Apr 2 18:04:52 1999 Warren Levy <>
* java/net/ (toString): Implemented.
(setContentHandlerFactory): Implemented.
(setContentHandler): Wrote new private helper method.
1999-04-01 Tom Tromey <>
* Rebuilt.
* ($( Reverted change
of 1999-03-31; we always want to build all the .class files.
Depend on java_source_files, not
(nat_headers): Define in terms of ordinary_java_source_files.
1999-03-31 Tom Tromey <>
* Rebuilt.
* (special_java_source_files): New macro.
(java_source_files): Use it.
(ordinary_java_source_files): New macro.
(java_source_files): Use it.
($( Renamed to avoid
creating headers for those files with hand-maintained headers.
* include/javaprims.h: Regenerated namespace declarations.
* (scan): Include [0-9] in regexp for matching class
names; for
* Rebuilt.
* (nat_headers): Redefined to generate all possible
header files.
* java/util/zip/ In package, not
1999-03-30 Tom Tromey <>
* configure: Rebuilt.
* (EH_COMMON_INCLUDE): Look in ../compat-include for
eh-common.h when not building in tree with gcc.
* Rebuilt.
* ($(nat_files) $(GCOBJS) $(THREADOBJS)
$(libgcj_a_OBJECTS)): Changed how we list files that depend on
($( New target.
* Rebuilt.
* (java_source_files): Added
java/net/ and
Tue Mar 30 15:20:45 1999 Warren Levy <>
* gnu/gcj/www/protocol/http/ New file.
* gnu/gcj/www/protocol/http/ (openConnection): Implemented.
* java/net/ New file.
* java/net/ (getHeaderField): Implemented default.
(getHeaderFieldKey): Implemented default method.
1999-03-30 Tom Tromey <>
* gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt.
* java/util/zip/ Added copyright header.
* java/util/zip/ Added copyright header.
* ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file
that it is automatically generated.
($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise.
* gnu/gcj/convert/,
gnu/gcj/convert/, gnu/gcj/convert/,
gnu/gcj/convert/ Added copyright headers.
* gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf.
*, configure: Rebuilt.
* (TESTSUBDIR): Enable if testsuite subdir exists,
not if test subdir exists.
(--enable-gcj-classes): Removed; gcj always used to generate
.class files.
(JAVA, JAVAC): Removed.
(--enable-single-compilation, --enable-source-compilation):
(here): New subst.
(NATIVE): New conditional.
* (toolexecdir): Renamed from tooldir to allow
`install-exec' to work.
(toolexeclibdir): Likewise.
(toollib_LIBRARIES): Likewise.
(AM_MAKEFLAGS): Don't pass tooldir.
(JAVAC): New macro.
(javao_files): Redefined.
(java_source_files): New macro.
(c_source_files): New macro.
(c_files): Redefined in terms of c_source_files.
(java_io_files, java_lang_files, java_net_files, java_text_files,
java_util_files, gnu_files, java_files): Removed.
(class_io_files, class_lang_files, class_net_files,
class_text_files, class_util_files, class_gnu_files, class_files):
(nat_source_files): New macro.
(nat_files): Redefined in terms of nat_source_files.
(EXTRA_libgcj_a_SOURCES): Added c_source_files,
java_source_files. Removed no-such-file.c.
(here): Removed.
(ETAGS_ARGS): Removed.
( Depend on java_source_files. Use $(here) and not
pwd in rule.
(src_io_files, src_lang_files, src_text_files, src_util_files,
src_gnu_files): Removed.
(header-check): New target.
(javadir): Removed.
(noinst_PROGRAMS): New macro.
($(srcdir)/$(CONVERT_DIR)/ Conditionalize
($(srcdir)/$(CONVERT_DIR)/ Likewise.
(gen-from-JIS): Build in top directory.
(convert_source_files): New macro.
(convert_SOURCES): New macro.
(convert_LDFLAGS): Likewise.
(convert_LINK): Likewise.
(convert_LDADD): Likewise.
(convert_DEPENDENCIES): Likewise.
(convert): Removed.
(gen-from-JIS): Removed.
(gen_from_JIS_SOURCES): New macro.
(gen_from_JIS_LDADD): Likewise.
(gen_from_JIS_DEPENDENCIES): Likewise.
* configure: Rebuilt.
* (CANADIAN): Set to `yes', not `canadian'.
(NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET
when defining conditional.
Tue Mar 30 10:36:27 1999 Per Bothner <>
* gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files.
The Unicode Consortium does not permit their re-distribution.
*, Add comments with URLs for removed files.
(JIS0208.h, JIS0212.h): Do not depend on removed files.
Mon Mar 29 18:58:13 1999 Per Bothner <>
* natSystem.c (init_properties): Use malloc, realloc, free after all.
Mon Mar 29 13:41:02 1999 Per Bothner <>
* gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables
from Unicode Consortium.
* gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers.
* gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only.
* gnu/gcj/convert/{,}:
New tables, generated using gen-from-JIS.
* gnu/gcj/convert/ New UnicodeToBytes class.
* gnu/gcj/convert/ Fix bug.
* gnu/gcj/convert/ New BytesToUnicode class.
* gnu/gcj/convert/ Native methods for new class.
* gnu/gcj/convert/ New application.
*, (convert): New program, using Convert.
Build the various JIS conversion tables (in maintainer mode).
Fri Mar 26 16:51:30 1999 Warren Levy <>
* gnu/gcj/www/protocol/http/ New file - stubbed.
* java/net/ (URL): Deal with null property value. Use "."
as separator in building class name.
* java/net/ Implemented majority of stubbed methods.
* java/net/ (parseURL): Use "" in string
manipulations instead of 'null'. Comment cleanup. Use 0 for the
beginning of the substring rather than 'start'.
1999-03-26 Tom Tromey <>
* include/java-chartables.h: Rebuilt.
* include/java-chardecomp.h: New file.
* Generate output files directly. Added support
for generating decomposition header.
(canonical_decomposition, full_decomposition): New globals.
(DECOMPOSITION): New constant.
(process_char): Call add_decomposition.
(add_decomposition): New sub.
(write_decompositions): New sub.
1999-03-25 Tom Tromey <>
* java/text/ New file.
* mauve-libjava: Omit StringTest.
Wed Mar 24 15:17:49 1999 Warren Levy <>
* java/net/ (URL(URL, String, URLStreamHandler)): Allow URLs
without a '/' when parsing protocol. Handle ref outside of parseURL.
(hashCode): Implemented.
(set): Don't expand -1 to default port.
(getDefaultPort): Removed.
* java/net/ (parseURL): Implemented.
(toExternalForm): Implemented.
1999-03-23 Tom Tromey <>
* java/text/ (getSentenceInstance):
* gnu/gcj/text/ New file.
* Rebuilt.
* (nat_headers): Added IllegalAccessException.
* java/lang/ (newInstance): Throw
IllegalAccessException, not IllegalAccessError.
Include IllegalAccessException.h.
1999-03-22 Tom Tromey <>
* gnu/gcj/text/ New file.
* java/text/ (getLineInstance): Implemented.
* gnu/gcj/text/ (WordBreakIterator): Made
copy constructor private.
(previous, next): Removed erroneous comment about line
(previous): Correctly recognize break between non-letter on the
left and letter on the right. Handle apostrophes correctly.
* java/text/ (getWordInstance): Implemented.
* gnu/gcj/text/ New file.
* gnu/gcj/text/ Extend
* gnu/gcj/text/ New file.
1999-03-19 Tom Tromey <>
* java/text/ New file (partially stubbed out).
* gnu/gcj/text/ New file.
* include/ Rebuilt.
* acconfig.h (STRUCT_TM_HAS_GMTOFF): New define.
(HAVE_TIMEZONE): Likewise.
* configure: Rebuilt.
* Added timezone checks.
* java/util/ (computeTime): Adjust for
Fri Mar 19 15:26:35 1999 Per Bothner <>
* gnu/gcj/convert/ New abstract class.
* gnu/gcj/convert/ New abstract class.
* gnu/gcj/convert/ New BytesToUnicode sub-class.
* gnu/gcj/convert/ New BytesToUnicode sub-class.
* gnu/gcj/convert/ New UnicodeToBytes sub-class.
* gnu/gcj/convert/ New UnicodeToBytes sub-class.
* java/io/ Rewrite to use BytesToUnicode.
* java/io/ Rewrite to use UnicodeToBytes.
* java/io/ (open): Use O_BINARY flag.
(BSD_COMP): Kludge needed for Solaris2.
Fri Mar 19 01:49:46 1999 Warren Levy <>
* java/net/ (URL(, string): Moved code to
URL(, string, URLStreamHandler) and call it with a
null handler. In latter constructor, added SecurityManager check.
(set): Expect null handler on bad protocol rather than an exception.
(setURLStreamHandler): Simplified exception handling; return null
on invalid protocol.
1999-03-18 Tom Tromey <>
* java/text/ (format(long,...)): Rewrote.
* java/lang/ (setOut, setIn, setErr): New native
Include PrintStream.h, InputStream.h.
* java/lang/ (ForwardingInputStream,
ForwardingOutputStream): Removed.
(setErr, setIn, setOut): Now native.
Reverted patch from 1999-02-12 to work around problem in
* (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes.
(_Jv_eh_free): Use free.
* java/io/ (open): Allocate enough space
for path name. Minor formatting fixes.
* (_Jv_MarkObj): Always mark `methods' field.
* (fail_on_finalization): New function.
(_Jv_GCWatch): Likewise.
* (JvRunMain): Initialize `nullp'.
(nullp): New global.
(catch_segv): Throw nullp.
* Rebuilt.
* (ZIP): In "null target" case, zip is found in the
build tree.
* (_Jv_PrimClass): Initialize all elements of class
Include Modifier.h.
* java/lang/ (StringBuffer): Don't use
ensureCapacity to set initial capacity.
(capacity): Subtract `length' from return result.
Thu Mar 18 01:53:35 1999 Warren Levy <>
* java/io/ (open): Throw
FileNotFoundException, but with filename and errno in msg.
Wed Mar 17 11:09:30 1999 Warren Levy <>
* gnu/gcj/www/protocol/ Removed;
functionality folded into java/net/ per spec.
* java/io/ (open): Check for ENOENT rather
than EEXIST for throwing FileNotFoundException.
* java/net/ Folded in default URLStreamHandlerFactory
algorithm per JDK 1.2 doc. Added SecurityManager checks.
* java/net/ (parseURL): Added stub.
1999-03-15 Andrew Haley <>
* java/text/ (nextDouble): Simplify and fix off
by one errors.
1999-03-15 Andrew Haley <>
* java/lang/ (currentTimeMillis): Restore eCos clock
1999-03-12 Tom Tromey <>
* (catch_segv): New function.
Include <signal.h> if HANDLE_SEGV defined. Include
(JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV
* java/text/ (equals): Ensure that object is
a SimpleDateFormat, not just a DateFormat.
(defaultCenturyStart, formatData, pattern): Now private.
(append): Now `final'. Use `NumberFormat.format'.
(parse): Wrote.
(SimpleDateFormat): Turn off groupin in NumberFormat object.
* java/lang/ (indexOf): Add `fromIndex' to successful
* java/text/ (format): Use default MessageFormat
(parse, parseObject): Wrote.
* java/text/ (SimpleDateFormat): Wrote no-arg
1999-03-12 Andrew Haley <>
* java/lang/ (indexOf): Replace with native method for
better performance.
* java/lang/ (IndexOf): As above.
* java/lang/ (init(jbyteArray,jint,jint,jint)):
Argument check corrected.
(init(jbyteArray,jint,jint,jstring)): Likewise.
* java/lang/ (ensureCapacity): Replace with JDK
1.2 compliant method.
* java/lang/ (byteValue, shortValue): JDK 1.1 methods
* java/lang/ (byteValue, shortValue): Likewise.
1999-03-11 Tom Tromey <>
* java/text/ (parse): Wrote.
* java/text/ (parse): Set error index on
ParsePosition object.
* java/lang/ (parseInt): Throw exception on overflow
when intermediate result is most negative number. Changed
overflow detection as well.
* java/lang/ (parseLong): Likewise.
* configure, Rebuilt.
* (NULL_TARGET, CANADIAN): New conditionals. Set
CANADIAN when building in source tree that doesn't include gcc.
* (ZIP, GCJ, GCJH): Use automake conditionals to
* java/text/ (nextDouble): Correct some
off-by-one errors when masking or adding.
* java/text/ (format): Fill in FieldPosition
parameter, if given. Use `%', not IEEEremainder.
(scanFix): Throw error if multiplier already set.
(computePattern): Wrote.
1999-03-11 Andrew Haley <>
* java/text/ (mantissaBits): Use correct value of
(nextDouble): Corrected masking logic. Handle interaction between
`next' and negative numbers.
Wed Mar 10 18:58:37 1999 Warren Levy <>
* gnu/gcj/www/protocol/ Created.
* java/net/ Added general comments.
1999-03-10 Tom Tromey <>
* java/text/ (parse): Wrote.
* java/text/ (toPattern): Use `#', not `<'.
* java/text/ (MessageFormatElement.setLocale):
Create ChoiceFormat objects.
(format): Special-case ChoiceFormat.
(scanFormatElement): Include { and } in generated style string.
1999-03-09 Tom Tromey <>
* java/text/ New file.
Tue Mar 9 17:09:18 1999 Warren Levy <>
* java/net/ Created.
* java/net/ Created.
* java/net/ Created.
* java/net/ Created.
* java/net/ Created.
* java/net/ Created.
* java/net/ Created.
* java/net/ Created.
* java/net/ (@author): Fixed typo.
* java/net/ (@author): Fixed typo.
* java/net/ (@author): Fixed typo.
* java/net/ (@author): Fixed typo.
* java/net/ Created - nearly complete.
* java/net/ Created - near-empty stub.
* java/net/ Created - incomplete stub.
* java/net/ Created.
* java/net/ Created.
1999-03-09 Tom Tromey <>
* java/lang/ (ForwardingInputStream): New class.
(ForwardingOutputStream): Likewise.
(in, out, err): Now `final' forwarding streams.
(setIn, setOut, setErr): Use appropriate method on forwarding
* java/text/ (MessageFormatElement): Now `final'
Tue Mar 9 12:16:53 1999 Per Bothner <>
* java/util/zip/ New class (just an incomplete stub).
* java/util/zip/ New interface (complete).
* java/util/zip/ New class (near-empty stub).
* java/util/zip/ New class (incomplete stub).
* java/util/zip/ New interface (near-empty stub).
* java/util/zip/ New class (complete).
* java/util/zip/ New class (complete).
* java/util/zip/ New class (incomplete stub).
* java/util/zip/ New class (incomplete stub).
1999-03-09 Tom Tromey <>
* java/text/ (MessageFormatElement): Removed
`public' specifiers.
* java/text/ (scanFormat): Increment index
before processing exponential format. Fixed a couple typos in
exception messages.
(format): Correct normalization of exponent.
1999-03-08 Tom Tromey <>
* java/text/ (parse): Throw
IllegalArgumentException, not ParseException.
1999-03-05 Tom Tromey <>
* java/text/ (SimpleDateFormat): Use locale
when constructing DateFormatSymbols. Initialize numberFormat
field of superclass.
* java/text/ (equals): Rewrote.
(getAvailableLocales): New method.
(getDateInstance): New methods.
(getDateTimeInstance): Likewise.
(getTimeInstance): Likewise.
(getInstance): New method.
(computeInstance): New method.
* java/text/ (zoneStringsDefault): Completed
for US.
(safeGetResource): New method.
(DateFormatSymbols): Use Locale paramater.
(equals): Now protected.
Made instance variables private.
1999-03-04 Tom Tromey <>
* java/text/ New file.
* java/text/ (groupingUsed,
maximumFractionDigits, maximumIntegerDigits,
minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly):
New fields.
(setDecimalSeparatorAlwaysShown, setMultiplier,
setPositivePrefix): Removed.
(setMinimumFractionDigits, setMaximumFractionDigits):
(format): Now final.
Added many new methods.
* Rebuilt.
* (gnu_files): New macro.
(java_files): Added gnu_files.
(class_gnu_files): New macro.
(class_files): Use it.
(src_gnu_files): New macro.
(gnu.o): New target.
(javao_files): Added gnu.o.
* gnu/gcj/text/ New file.
* gnu/gcj/text/ New file.
* java/text/ Import ResourceBundle.
(DecimalFormatSymbols): Use ResourceBundle to find resources.
(safeGetString): New method.
(safeGetChar): Likewise.
1999-03-03 Tom Tromey <>
* java/text/ (equals): Don't check for null
object; instanceof does this.
* java/util/ (clone): New method.
(equals): Likewise.
Wed Mar 3 17:20:15 1999 Anthony Green <>
* doc/cni.sgml: New file.
1999-03-03 Tom Tromey <>
* (_Jv_Abort): Mention libgcj, not libjava.
* java/text/ New file.
1999-03-02 Tom Tromey <>
* java/io/ Include sys/filio.h if it
* configure: Rebuilt.
* Check for sys/filio.h.
* java/lang/ (checkLink): Throw NullPointerException
if required.
(load): Always throw UnsatisfiedLinkError.
(loadLibrary): Likewise.
1999-03-02 Anthony Green <>
* Many files: libjava now libgcj.
1999-03-02 Tom Tromey <>
* include/java-chartables.h: Rebuilt.
* (print_block): Make table `const'.
(print_numerics): Likewise.
(print_single_map): Likewise.
(print_all_block): Likewise.
(print_case_table): Likewise.
(print_fast_tables): Likewise.
* java/lang/ (table_search): `table' argument now
1999-03-01 Tom Tromey <>
* java/util/ (before, after): Inverted logic.
* java/util/ (parse): Handle case where first character
in string is open parenthesis.
(skipParens): Rewrote.
* java/lang/reflect/ Include <stdlib.h>.
* java/lang/reflect/ Include <stdlib.h>.
* java/util/ (parse): Correctly compute beginning of
* java/util/ (get): Throw NullPointerException if
key is null.
(containsKey): Likewise.
* java/util/ (list): Truncate value to 37
characters and add `...'.
* java/lang/ (parseByte): Pass `radix' to
* (_Jv_Abort): In non-DEBUG case, use System.err, not
Include System.h, PrintStream.h.
* java/lang/ (init_properties): Don't use malloc,
realloc, or free.
* java/lang/ (init_properties): Use getpwuid_r if it
* configure: Rebuilt.
* Check for getpwuid_r. Look for `pwd.h', not
* mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute.
* java/lang/ Import*.
(checkMulticast): New methods.
Fri Feb 26 14:54:52 1999 Per Bothner <>
*, (java/lang/reflect/Method.h): New rule.
(nat_files): Add java/lang/reflect/natArray.o.
(nat_headers): Add Field.h and NoSuchFieldException.h.
* include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField,
_Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods.
(_Jv_FromReflectedField): Fix buglet.
* include/jvm.h (_Jv_NewMultiArray): New declaration.
* include/java-assert.h (JvFail): Pass message string to _Jv_Abort.
* (_Jv_Abort): Include message in print-out.
* (_Jv_equal): New method (compare Utf8Const and jstring).
(new_multi_array): Rename to _Jv_NewMultiArray. Make non-static.
* include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations.
* (AC_CHECK_HEADERS), configure: Add pwd.h.
* include/ (HAVE_PWD_H): New feature macro.
* java/lang/ (init_properties): Set file.encoding,, user.home, user.dir.
* java/lang/reflect/ New class.
* java/lang/reflect/ New native methods.
* include/javaprims.h: Declare java::lang::reflect::Array.
* java/lang/Class.h (getField): New private method. Add friends.
* java/lang/ (getField): Add private overload.
* java/lang/ (getField, getField, getDeclaredField,
getDeclaredMethods): Add working implementations.
* java/lang/reflect/, java/lang/reflect/
Finish implementation, except for access control.
* java/lang/reflect/ (toString): New overload.
* include/java-method.h: New file.
* java/lang/reflect/ (index): Replaced by offset field.
Remove various private fields - get them from _Jv_Field instead.
* java/lang/reflect/ (getModifiers, getName, getType):
New method implementations.
* java/text/ Add a bunch of methods.
Mon Feb 22 17:52:34 1999 Per Bothner <>
* java/lang/ (getChars): Fix bounds checks.
1999-02-26 Tom Tromey <>
* include/ Rebuilt.
* java/net/ (lookup): Use gethostbyname_r and
gethostbyaddr_r if available.
Include <errno.h>.
* configure: Rebuilt.
* Check for gethostbyname_r, gethostbyaddr_r.
* java/net/ (aton): Use _Jv_AllocBytesChecked.
Don't use JvFree.
(lookup): Likewise.
Include <jvm.h>.
* include/jvm.h (_Jv_AllocBytesChecked): Declare.
* (_Jv_AllocBytesChecked): New function.
* Rebuilt.
* (SUBDIRS): Removed `test'.
* configure: Rebuilt.
* Don't build test/Makefile.
* test/*: Removed all files.
Thu Feb 25 17:27:37 1999 Warren Levy <>
* java/lang/reflect/ Make class final to match spec.
* java/lang/reflect/ Ditto.
1999-02-25 Tom Tromey <>
* java/net/ Include <sys/types.h> before
* java/net/ Include <sys/types.h> before
* java/net/ Declare gethostname if required.
* include/ Rebuilt.
* acconfig.h (HAVE_GETHOSTNAME_DECL): New define.
* configure: Rebuilt.
* Define HAVE_GETHOSTNAME_DECL when gethostname is
declared in unistd.h.
1999-02-24 Tom Tromey <>
* Rebuilt.
* (java/io/FileDescriptor.h): Removed target.
* java/io/ (FileDescriptor): Changed protection
from private to "none".
* include/javaprims.h: Regenerated class declarations with new
* (scan): Only generate decls for java.lang,,
and java.util.
1999-02-24 Tom Tromey <>
* (_Jv_InitThreads): Mask SIGINT in all threads.
(_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread.
1999-02-23 Tom Tromey <>
* java/util/ (_REENTRANT): Only define if
not already defined.
* java/io/ (_REENTRANT): Only define if not already
* include/ Rebuilt.
* acconfig.h (HAVE_BOEHM_GC): New define.
* configure: Rebuilt.
* Define HAVE_BOEHM_GC if using it.
* Include boehm-config.h and gc.h if
* include/posix-threads.h: Added explanatory note about Boehm GC.
* java/io/ (readLine): Only return null when
EOF seen before any characters read. (In particular, an empty
line should not return null.)
* java/io/ (read): Only refill once per
* mauve-libjava: Added java.text.StringCharacterIterator.iter,
java.lang.Character.classify12, java.lang.String.hash,
java.text.FieldPosition.Test, java.text.ParsePosition.Test,
* java/text/ (setIndex): No error if
index == end.
(next): Check for `pos == end', not `end - 1'.
(StringCharacterIterator): Allow `pos == end'. Explicitly check
for null text in each constructor.
(clone): Fixed order of arguments to constructor.
1999-02-22 Tom Tromey <>
* include/ Rebuilt.
* acconfig.h (HAVE_INET6): New define.
(HAVE_SOCKLEN_T): Likewise.
* java/net/ Added copyright header.
* java/net/ Added copyright header.
(union SockAddr): Use HAVE_INET6, not AF_INET6.
(bind): Likewise.
(connect): Likewise.
(accept): Likewise.
(socklen_t): New typedef.
(accept): Use socklen_t.
* java/net/ Added copyright header.
(HAVE_GETHOSTNAME): Don't define.
(HAVE_INET_ADDR): Likewise.
(lookup): Fixed typo.
(aton): Don't use `address' as name of local variable.
(lookup): Use HAVE_INET6, not AF_INET6.
* configure: Rebuilt.
* Look for functions inet_aton, inet_addr,
gethostname, inet_pton, uname. Check for sockaddr_in6 structure.
Check for socklen_t typedef.
* (__throw): Declare as __noreturn__.
Mon Feb 22 15:27:35 1999 Per Bothner <>
*, Also build java/net.
(java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl.
* java/util/ #define _REENTRANT.
* (_Jv_malloc, _Jv_Free): New functions.
* include/cni.h (JvMalloc, JvFree): New inline functions.
(JvThrow): Add __noreturn__ attribute.
* include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations.
(_Jv_Throw): Add __noreturn__ attribute.
* java/net/ Init fnum to -1.
* java/net/ Add missing throws clauses.
* java/lang/ For the constructor taking a SocketImpl,
don't call create on the latter. Instead, other constructors
have to explicitly call SocketImpl.create.
* java/net/ (accept): Change variable addrlen
from size_t to int, to match ::accept prototype.
* java/net/ Use JvFree rather than free.
1999-02-22 Tom Tromey <>
* include/javaprims.h: Added new classes.
* java/text/ New file.
* java/text/ New file.
* java/text/ (errorOffset): Now private.
Mon Feb 22 12:54:53 1999 Per Bothner <>
* java/net: New package.
* java/net/{,,,,,,,,,}: New classes.
* (AC_CHECK_HEADERS): Also check for <sys/socket.h>,
<>, <arpa/inet.h> and <netdb.h>.
* include/ Add place-holders for HAVE_ARPA_INET_H,
* Translate package into "namespace", not "class".
* include/javaprims.h: Update class list, using "namespace".
1999-02-21 Tom Tromey <>
Define when appropriate.
1999-02-20 Tom Tromey <>
* java/lang/ (_Jv_GetStringUTFRegion): Encode \u007f
as a single byte and \u07ff as two bytes.
(_Jv_GetStringUTFLength): Likewise.
* include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding
with 0x0f, not 0x1f.
1999-02-19 Tom Tromey <>
* java/io/ (writeUTF): When encoding
character as 3 bytes, `or' first byte with 0xe0, not 0xc0.
* java/io/ (readUTF): Mask second byte of
3-byte character with 0x3f, not 0x1f.
* java/io/ (readLong): Cast result of
readUnsignedByte to long before using.
* java/io/ (finalize): Only finalize `fd' if
it is not null.
* mauve-libjava: Re-enabled
* include/no-threads.h (_Jv_ThreadInterrupt): Removed name of
argument to avoid warning.
* include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of
argument to avoid warning.
1999-02-18 Tom Tromey <>
* mauve-libjava: Omit and
1999-02-17 Tom Tromey <>
* Rebuilt.
* (nat_headers): Added InterruptedIOException.h.
* java/io/ Include
InterruptedIOException.h, Thread.h.
(write): Throw InterruptedIOException when required.
(read): Likewise.
* Include <signal.h>.
(_Jv_ThreadInterrupt): New function.
(INTR): New define.
(handle_intr): New function.
(_Jv_InitThreads): Register handle_intr via sigaction.
* java/lang/ (interrupt): Call _Jv_ThreadInterrupt.
* include/posix-threads.h (_Jv_ThreadInterrupt): Declare.
* include/quick-threads.h (_Jv_ThreadInterrupt): New function.
* include/no-threads.h (_Jv_ThreadInterrupt): New function.
1999-02-19 Andrew Haley <>
* java/lang/ThreadGroup (setMaxPriority): Set the maximum priority
of subgroups.
(ThreadGroup (int)): Set the maximum priority of the initial
1999-02-18 Andrew Haley <>
* java/lang/ (forName): Check for the case where a
classname is the name of an array and call FindClassFromSignature
to find the Class.
1999-02-18 Andrew Haley <>
* java/lang/StringBuffer (insert (int, String)): Move up any
characters above the insert position and increase the length of
the string buffer by the length of the argument.
(insert (int, char[])): Likewise.
(insert (int, char)): Likewise.
(StringBuffer (String)): The initial capacity of the string buffer
is 16 plus the length of the argument.
(getChars): Add a JDK 1.2 FIXME.
1999-02-18 Andrew Haley <>
* java/lang/ (parseShort(String, int)): Pass radix to
1999-02-18 Andrew Haley <>
* java/lang/ (equals): Use a bit-by-bit comparision
instead of floating-point equality. This is necessary for
correct floating-point Hashtables.
* java/lang/ (equals): Ditto.
1999-02-16 Tom Tromey <>
* java/util/ (list): Truncate value to 37
characters and add "...".
1999-02-16 Tom Tromey <>
* java/util/ (Vector): Throw IllegalArgumentException
if initCap is negative.
(contains): Implement JDK1.2-style handling of null argument.
(removeElement): Likewise.
(indexOf): Likewise. Also, correctly handle case where idx is
(lastIndexOf): Likewise.
1999-02-16 Tom Tromey <>
* java/lang/ (init): Increment source pointer in
1999-02-16 Tom Tromey <>
* Include NullPointerException.h.
(_Jv_Throw): If `value' is NULL, throw a NullPointerException.
1999-02-16 Tom Tromey <>
* Rebuilt.
* (AUTOMAKE_OPTIONS): Added `no-installinfo.
Sat Feb 13 20:25:09 1999 Bonzo Armstrong <>
* Don't undefine EH_COMMON_INCLUDE just because
we're compiling canadian.
* configure: Regenerated.
1999-02-12 Andrew Haley <>
* java/lang/sf_rint.c: Resurrected. This file shouldn't have been
deleted from libgcj.
1999-02-12 Tom Tromey <>
* (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc.
(_Jv_eh_free): Don't call free.
Don't declare malloc or free.
1999-02-11 Tom Tromey <>
* Use `libgcj', not `libjava'. Removed `echo'.
1999-02-11 Andrew Haley <>
* ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c,
wf_fmod.c: Deleted. These are all files from fdlibm which aren't
needed by java.lang.*.
* ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o,
wf_fmod.o: Removed from libjava.a.
1999-02-11 Tom Tromey <>
* include/javaprims.h: Reverted previous change; with it can't compile.
* include/javaprims.h (_Jv_Throw): Mark as noreturn.
* include/ Rebuilt.
* include/posix-threads.h (_Jv_ThreadYield): Conditionalize on
* configure: Rebuilt.
* Check for sched_yield. Look in thread library for
all thread functions.
* (_Jv_MutexInit): Handle case where system has
no recursive mutexes.
(_Jv_MutexDestroy): Define when required.
(_Jv_MutexLock): Likewise.
(_Jv_MutexUnlock): Likewise.
(_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX.
* include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define.
(_Jv_Mutex_t): New structure.
(_Jv_MutexDestroy): Only define if recursive mutexes available.
(_Jv_MutexLock): Likewise.
(_Jv_MutexUnlock): Likewise.
1999-02-10 Tom Tromey <>
* aclocal.m4, configure, Rebuilt.
* acinclude.m4: Renamed libjava to libgcj. Updated to use
automake 1.4.
* Changed to track library changes.
* (toollib_LIBRARIES): Renamed libjava to libgcj.
(AM_CXXFLAGS): Likewise.
(data_DATA): Likewise.
(AM_CFLAGS): Likewise.
(JC1FLAGS): Likewise.
(libgcj_a_SOURCES): Likewise.
(EXTRA_libgcj_a_SOURCES): Likewise.
(libgcj_a_DEPENDENCIES): Likewise.
(libgcj_a_LIBADD): Likewise.
( Likewise.
(CLEANFILES): Likewise.
($(nat_headers)): Likewise.
(java/lang/FirstThread.h): Likewise.
(java/lang/ThreadGroup.h): Likewise.
(java/lang/String.h): Likewise.
(java/lang/reflect/Field.h): Likewise.
(BUILT_SOURCES): Likewise.
(maintainer-check): Likewise.
Tue Feb 9 11:06:38 1999 Anthony Green <>
* java/util/ (computeFields): Only use
gmtime_r and localtime_r when configured for posix threads.
* java/io/ (get_entry): Only use readdir_r when
configured for posix threads.
* java/util/ Update copyright notice.
* java/util/ Ditto.
* java/util/ Ditto.
1999-02-08 Tom Tromey <>
* java/io/ (line_separator): New constant.
(print): Use line_separator, not `file.separator' property.
(println): Use line_separator.
* java/lang/ (newInstance): Throw IllegalAccessError
when trying to instantiate Class.
* java/lang/ (ThreadGroup): Throw
NullPointerException if argument is null.
* java/lang/ (setName): Throw NullPointerException, not
(Thread): Likewise.
1999-02-08 Andrew Haley <>
* java/lang/ (newInstance): Don't allow anyone to
create new Classes with Class.newInstance().
* java/lang/ (_Jv_FindArrayClass): Only add a
semiciolon to end of an array Class's signature if the elements of
the array aren't themselves arrays.
* java/lang/ (arraycopy): The size of an element of an
array of objects is always sizeof(jobject), not the size of the
object to which the reference points.
1999-02-08 Tom Tromey <>
* java/util/ (and): Throw NullPointerException when
(or): Likewise.
(xor): Likewise.
* java/util/ (BitSet): Throw NegativeArraySizeException
if argument is negative.
(clear): Correctly compute `offset'. Throw
IndexOutOfBoundsException when required.
(set): Likewise.
(get): Likewise. Also, return correct value.
(ensure): Changed meaning of argument.
(toString): Wrap contents in `{}'; put spaces after commas.
(hashCode): Don't try to examine elements off the end of array.
(or): Correctly include bits past the end of this bit set.
(xor): Likewise.
Thu Feb 4 12:48:03 1999 Warren Levy <>
* (mips-tx39-*): Use jmr3904dram.ld link script
instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM).
1999-02-04 Andrew Haley <>
* java/lang/ (Class::forName): Remove code which mapped
'/' in signatures to '.'
(Class::getName): Likewise,
(_Jv_FindArrayClass): Add a semiciolon to end of an array Class's
* java/lang/ (run): Change '/' in main's
signature to '.'.
1999-02-03 Andrew Haley <>
* -ffloat-store added when compiling libjava on
x86. fdlibm apparently relies on this.
* java/lang/ (add): throw an exception if the
ThreadGroup has been destroyed.
* java/lang/ (round): Ensure correct NaN and overflow
1999-01-27 Tom Tromey <>
* java/lang/ (StringBuffer): Handle null
1999-01-21 Tom Tromey <>
* java/lang/ (run): Don't require main to be
Wed Jan 20 15:44:56 1999 Anthony Green <>
* (_Jv_InitGC): Clear out the free lists correctly.
1999-01-20 Tom Tromey <>
* java/lang/ (_Jv_StringFindSlot): Synchronize on
(rehash): Likewise.
(intern): Likewise.
(unintern): Likewise.
(_Jv_NewStringUtf8Const): Likewise.
* java/text/ (format): Use [a-zA-z], not
Character.isLetter, to see if character is self-quoting. Also,
correctly handle quoted characters.
(parse): Fixed typo. Also now throws ParseException.
1999-01-15 Tom Tromey <>
* java/lang/ (INIT_NEEDED): Added missing close paren.
* java/lang/ (INIT_NEEDED): Added cast in case where
_Jv_SyncInfo has `init' member.
* include/quick-threads.h (_Jv_MutexUnlock): Return result of
* java/lang/ (_Jv_MonitorExit): Throw
IllegalMonitorStateException if unlock fails.
* (_Jv_NewPrimArray): Assume allocated memory is all
(_Jv_NewObjectArray): Likewise.
1999-01-14 Tom Tromey <>
* java/lang/ (isJavaIdentifierPart): Allow
LETTER_NUMBER characters.
* (process_char): Fixed error messages.
* include/java-chartables.h: Rebuilt with UniData 2.1.8.
* Updated comments. Changed detection of non-digit
numeric values (no longer miss \u00b2 and friends).
* java/lang/ (isJavaIdentifierPart): Recognize
currency symbols and connector punctuation.
(isIdentifierIgnorable): Make 7f-9f ignorable.
* (_Jv_NewObjectArray): Check for overflow.
(_Jv_NewPrimArray): Likewise.
(SIZE_T_MAX): New define.
* java/lang/ (system): Now private and final.
* (_Jv_MarkObj): Handle case where object's class is
* configure: Rebuilt.
* (EH_COMMON_INCLUDE): Add -I for `../include' as
* Include gansidecl.h.
1999-01-14 Andrew Haley <>
* java/lang/, java/lang/ min and max routines
corrected: they didn't treat -0.0 and NaNs correctly.
Wed Jan 13 13:32:22 1999 Anthony Green <>
* Use calloc to zero out memory.
1999-01-11 Tom Tromey <>
* java/lang/ (isInstance): Return false if this class
is primitive, not if class of `obj' is primitive.
(_Jv_IsInstanceOf): Rewrote to use Class.isInstance.
* java/io/ (close): Handle case where `in'
is already null.
* java/text/ (format): New method.
* mauve-libjava: Omit java.text.DateFormat.
1999-01-08 Tom Tromey <>
* (_Jv_ThreadInitData): Removed name of unused
* include/posix-threads.h (_Jv_CondNotify): Removed name of unused
(_Jv_CondNotifyAll): Likewise.
* configure: Rebuilt.
* Change --enable-source-compilation logic to work
1999-01-07 Andrew Haley <>
*, test/, testsuite/ rebuilt.
* configure: rebuilt.
* testsuite/libjava.mauve/ (main): use of
argv[] made conditional because embedded targets may not have
* testsuite/libjava.mauve/ (main):
explanatory comments added in call to super.
* testsuite/libjava.mauve/test.exp (test_mauve): Test for an
exception thrown in the test harness itself added.
* testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine.
Wed Jan 6 17:27:39 1999 Per Bothner <>
* java/text/ (zoneStringsDefault): Make static.
1999-01-06 Tom Tromey <>
* java/io/ (get_entry): New function.
(performList): Use get_entry.
* include/ Rebuilt.
* acconfig.h (HAVE_READDIR_R): New define.
* configure: Rebuilt.
* Look for readdir_r.
* java/util/ (computeFields): Fixed comment.
* java/util/ Added copyright header.
1999-01-05 Tom Tromey <>
* include/ Rebuilt.
* configure: Rebuilt.
* Check for access, stat, mkdir, rename, rmdir,
unlink, and realpath.
* java/io/ (access): Conditionalize on HAVE_ACCESS.
(stat): Conditionalize on HAVE_STAT.
(attr): Likewise.
(getCanonicalPath): Conditionalize on HAVE_REALPATH.
(performMkdir): Conditionalize on HAVE_MKDIR.
(performRenameTo): Conditionalize on HAVE_RENAME.
(performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK.
* include/ Rebuilt.
* acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines.
* configure: Rebuilt.
* Check for gmtime_r and localtime_r. For cross
builds, assume they exist.
* mauve-libjava: Include java.text.DateFormatSymbols again.
* java/text/ (setLocalPatternChars): Renamed
from setAmPmStrings.
* mauve-libjava: Omit java.text.DateFormatSymbols.
1999-01-04 Tom Tromey <>
* java/io/ `off' already includes `numBytes'.
* java/io/ (read): Decrement `count' in
* java/io/ (write): Correctly determine when
incoming data would overrun buffer. Flush buffer if write causes
it to become full.
* java/io/ (write): Increment `count'
after copying data into buffer.
* java/io/ (close): Call flush first.
* java/io/ (read): If read causes `out' to catch
up with `in', then set `in' to -1.
* java/io/ (read): If no bytes read,
return -1. If no bytes requested, return 0.
* java/lang/ (insert): If `str' is null, use
string "null".