aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
1999-10-02The following patches include a couple of fixes for cross toolchains,Steve Chamberlain1-0/+8
and endian bits for the picojava port. I am committing this (and the rebuilt Makefile.in/configure files). From-SVN: r29765
1999-10-02configure: Rebuilt.Tom Tromey3-2/+141
* configure: Rebuilt. * configure.in: Set classpath when invoking gcj. Use changequote around sed invocation. * java/net/natPlainSocketImpl.cc: Stub native functions if DISABLE_JAVA_NET is defined. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed typo in exception string. (getTimeToLive): Likewise. Stub native functions if DISABLE_JAVA_NET is defined. * java/net/natInetAddress.cc: Stub native functions if DISABLE_JAVA_NET is defined. * configure.host: Disable java.net for mips-tx39. * configure, include/config.h.in: Rebuilt. * acconfig.h (DISABLE_JAVA_NET): Undefine. * configure.in: Added --disable-java-net and new define `DISABLE_JAVA_NET'. From-SVN: r29759
1999-09-30* java/net/natPlainDatagramSocketImpl.cc: Indentation fix.Tom Tromey1-3/+3
From-SVN: r29737
1999-09-24re GNATS java.util/47 (Date.toString() returns embedded newline)Tom Tromey3-77/+96
Fix for PR java.util/47: * configure, include/config.h: Rebuilt. * configure.in: Don't look for ctime or ctime_r. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Don't mention natDate.cc. * java/util/natDate.cc: Removed. * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New static fields. (getAvailableIDs): Rewrote. (getTimeZone): Rewrote. * java/util/Date.java (toGMTString): New method. (toLocaleString): New method. (toString): Rewrote. From-SVN: r29656
1999-09-23natFirstThread.cc (run): Renamed from `run0'.Tom Tromey2-20/+2
* java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed dead code. * java/lang/FirstThread.java (run0): Renamed to `run'. (run): Removed. From-SVN: r29626
1999-09-22MessageFormat.java (MessageFormat(String)): Set the default locale.Bryce McKinlay2-1/+6
1999-09-16 Bryce McKinlay <bryce@albatross.co.nz> * java/text/MessageFormat.java (MessageFormat(String)): Set the default locale. * java/text/NumberFormat.java: Check that object is a Number. If not, throw IllegialArgumentException. From-SVN: r29574
1999-09-21OutputStreamWriter.java (OutputStreamWriter): Reverted previous patch; it ↵Tom Tromey2-10/+6
too was incorrect. * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted previous patch; it too was incorrect. * java/io/PrintStream.java (PrintStream): Likewise. From-SVN: r29566
1999-09-21OutputStreamWriter.java (OutputStreamWriter): Don't refer to `this' before ↵Tom Tromey2-6/+10
calling superclass constructor. * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't refer to `this' before calling superclass constructor. * java/io/PrintStream.java (PrintStream): Don't refer to `this' before calling superclass constructor. From-SVN: r29560
1999-09-10configure: Rebuilt.Tom Tromey30-39/+37
* configure: Rebuilt. * configure.in: Build include/Makefile. * Makefile.in: Rebuilt. * Makefile.am (SUBDIRS): Added gcj and include. (install-data-local): New target. (extra_headers): New macro. * include/Makefile.in: New file. * include/Makefile.am: New file. * interpret.cc: Don't include gcj/field.h or gcj/cni.h. * java/lang/reflect/natField.cc: Don't include gcj/field.h or gcj/cni.h. * boehm.cc: Don't include java-threads.h or gcj/field.h. * resolve.cc: Include config.h. * defineclass.cc: Include config.h. * include/java-interp.h: Don't include config.h. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h, cni.h. * gcj/javaprims.h: Regenerated namespace decls. * classes.pl (scan): Don't put `;' after closing brace. * Makefile.in: Rebuilt. * Makefile.am (INCLUDES): Added -I for top_srcdir. * configure.in: Create gcj/Makefile. * gcj/Makefile.in: New file. * gcj/Makefile.am: 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. From-SVN: r29278
1999-09-03re GNATS libgcj/3 (FileInputStream.available always returns 0)Tom Tromey1-11/+55
* configure: Rebuilt. * configure.in: Check for fstat function. * java/io/natFileDescriptorPosix.cc (available): Use fstat() if FIONREAD fails. This fixes PR 3 From-SVN: r29078
1999-09-02natClassLoader.cc (_Jv_WaitForState): Call _Jv_PrepareCompiledClass while ↵Tom Tromey1-2/+4
holding class mutex. * java/lang/natClassLoader.cc (_Jv_WaitForState): Call _Jv_PrepareCompiledClass while holding class mutex. From-SVN: r29063
1999-09-02natClass.cc: Fixed notification of threads when class initialization is ↵Matt Welsh1-2/+2
complete. * java/lang/natClass.cc: Fixed notification of threads when class initialization is complete. From-SVN: r29043
1999-09-01Modifier.java (ALL_FLAGS): New constant.Tom Tromey2-13/+3
* java/lang/reflect/Modifier.java (ALL_FLAGS): New constant. * resolve.cc: Removed constants defined by java.lang.reflect.Modifier. Include <java/lang/reflect/Modifier.h>. (_Jv_ResolvePoolEntry): Use values from Modifier. (_Jv_DetermineVTableIndex): Likewise. (_Jv_PrepareClass): Likewise. (ncode): Likewise. * defineclass.cc (_Jv_ClassReader): Removed constants defined by java.lang.reflect.Modifier. 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. * interpret.cc: Removed constants defined by java.lang.reflect.Modifier. (continue1): Use values from Modifier. * java/lang/natClassLoader.cc: Removed constants defined by java.lang.reflect.Modifier. From-SVN: r29037
1999-09-01natClassLoader.cc (_Jv_NewClass): Use JV_STATE_NOTHING, not `0'.Tom Tromey2-16/+17
* java/lang/natClassLoader.cc (_Jv_NewClass): Use JV_STATE_NOTHING, not `0'. * java/lang/Class.h: Replaced JV_STATE_ defines with enum. From-SVN: r29033
1999-09-01posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.Tom Tromey2-2/+2
* posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor. * include/posix-threads.h (_Jv_PthreadCheckMonitor): New function. (_Jv_CondNotify): Use it. (_Jv_CondNotifyAll): Likewise. * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling. From-SVN: r29030
1999-08-22Added missing whitespace in function calls within adaptorsAlexandre Oliva2-4/+4
Pointed out by Tom From-SVN: r28803
1999-08-21configure.in: Check for in_addr_t in netinet/in.h too.Alexandre Oliva2-1/+10
* configure.in: 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. (HAVE_STRUCT_IP_MREQ): Added. * configure, include/config.h.in: Rebuilt. * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint if needed. * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp): Disable if ip_mreq is not available. From-SVN: r28798
1999-08-21natSystem.cc (getpwuid_adaptor): New overloaded function that detects the ↵Alexandre Oliva2-2/+53
signature of getpwuid_r. * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded function that detects the signature of getpwuid_r. (init_properties): Use it. * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r. (toString): Use it. From-SVN: r28790
1999-08-20interpret.cc (continue1): Implement explicit dispatch table.Kresten Krab Thorup1-13/+4
* interpret.cc (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. PC_REGISTER_ASM: New macro. 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 * interpret.cc: Remove instruction timing instrumentation. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed comment. Don't use _Jv_ClassNameSamePackage. * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry, URLPathEntry, CacheEntry}: Removed. * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path package. (.java.lo): Rule removed. * Makefile.in: Rebuilt. From-SVN: r28777
1999-08-19natThread.cc (class locker): New class.Tom Tromey1-7/+31
* java/lang/natThread.cc (class locker): New class. (join): Use a locker around _Jv_CondWait. (sleep): Likewise. From-SVN: r28770
1999-08-18ThreadGroup.java: Fixed now-erroneous comment.Tom Tromey2-3/+3
* java/lang/ThreadGroup.java: Fixed now-erroneous comment. * java/lang/natThread.cc (finish_): Call ThreadGroup.remove. From-SVN: r28753
1999-08-18natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed from ↵Kresten Krab Thorup14-234/+875
_Jv_InternClassStrings. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed from _Jv_InternClassStrings. * prims.cc (_Jv_RunMain): New function. (JvRunMain): Remove gij-support. * gij.cc (main): Use _Jv_RunMain. * java/util/zip/ZipFile.java: Call readDirectory in constructor. * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store argument in temp variable. (continue1): For all op_x2y insns, use temp variable for intermediate value. Also remove some comments. * java/lang/natClass.cc (newInstance): Call _Jv_InitClass. (forName): Don't call _Jv_InitClass. * java/lang/Class.java (getResource,getResourceAsStream): Implement. * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor. * java/util/jar/JarInputStream.java: New file. * java/util/jar/JarEntry.java: New file. * java/util/jar/JarFile.java: New file. * java/net/URLClassLoader.java: New file. * java/net/JarURLConnection.java: New file. * gnu/gcj/protocol/jar/Handler.java: New file. * gnu/gcj/protocol/jar/Connection.java: New file. * java/security/SecureClassLoader.java: New file. * java/lang/ClassLoader.java (parent): New variable. (ClassLoader (ClassLoader)): new constructor. (findClass): New method. (loadClass): Add default 1.2 implementation. (getSystemResourceAsBytes, getResourceAsBytes): Removed. (readfully): Removed. * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. (findSystemClass): New method. (VMClassLoader): Constructor rewritten. (init): New method. All other methods removed. * java/lang/natClassLoader.cc: 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. * Makefile.am: Add new files. (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend. * Makefile.in: Rebuilt. From-SVN: r28748
1999-08-18natThread.cc (sleep): Turn 0 millis and 0 nanos into 1 nano.Tom Tromey1-0/+3
* java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1 nano. * include/quick-threads.h (_Jv_CondWait): Don't round to 0 inappropriately. From-SVN: r28742
1999-08-14resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0.Per Bothner2-12/+9
1999-08-14 Per Bothner <per@bothner.com> * resolve.cc (_Jv_PrepareClass): Use ClassLoader::resolveClass0. * java/lang/natClass.cc (initializeClass): Likewise. * java/lang/ClassLoader.java (resolveClass0): New static method. (resolveClass): Call resolveClass0. (findSystemClass): No longer static. From-SVN: r28711
1999-08-11BitSet.java (set, [...]): specify "1" constant as long.Bryce McKinlay1-3/+3
* java/util/BitSet.java (set, clear, hashCode): specify "1" constant as long. From-SVN: r28680
1999-08-10[multiple changes]Anthony Green3-4/+6
Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * Makefile: Rebuilt. * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native builds. * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if present. * configure: Rebuilt. * configure.in: Properly align --help output, fix capitalization and punctuation. * acinclude.m4: Likewise. 1999-08-09 Kresten Krab Thorup <krab@gnu.org> * include/javaprims.h (_Jv_word, _Jv_word2): New types. * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word. (_Jv_callInterpretedMethod): Unused. Remove. (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class): Use ffi_raw. * include/java-cpool.h (_Jv_get, _Jv_put): Remove. (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word. * boehm.cc (_Jv_MarkObj): Use _Jv_word. * interpret.cc: use _Jv_word. * defineclass.cc: use_Jv_word. * resolve.cc: Use _Jv_word. (_Jv_ResolvePoolEntry): Return _Jv_word. * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool. * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): Change comment. From-SVN: r28641
1999-08-08[multiple changes]Anthony Green12-366/+1319
1999-08-09 Anthony Green <green@cygnus.com> * gij.cc: New file. * include/config.h.in: Rebuilt. * acconfig.h: Add INTERPRETER. * configure: Rebuilt. * Makefile.in: Rebuilt. * Makefile.am (libffi_files): Identify the libffi object files for inclusion in libgcj. (LIBFFIINCS): Define. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): Dummy definition for configurations without an interpreter. * java/net/natPlainSocketImpl.cc (getOption): Disamiguate call to java::lang::Boolean constructor. * include/java-interp.h: Always include java-cpool.h. * java/lang/natClassLoader.cc (getVMClassLoader0): Always return 0 when INTERPRETER not defined. * java/lang/Class.h (finalize): Define. * gnu/gcj/util/path/DirectoryPathEntry.java (getURL): Catch IOException from File.getCanonicalPath. (getStream): Likewise. * NEWS: More news. * THANKS: More thanks. 1999-08-09 Kresten Krab Thorup <krab@gnu.org> * resolve.cc (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. * interpret.cc (continue1/perform_invoke): Don't sign extend uint16 return val. (continue1/lshl,lshr): Push long, not int. (continue1/ulshr): Use UINT64, not long long. * defineclass.cc (handleFieldsEnd): Handle case when all fields are static. * java/lang/natClass.cc (forName): Add call to _Jv_InitClass. * java/lang/FirstThread.java (run): Add top-level exception handler. (run0): Renamed from run. 1999-08-08 Kresten Krab Thorup <krab@gnu.org> * configure.in (--with-interpreter): Added. * include/config.h.in (INTERPRETER): Added. * java/lang/ClassLoader.java: File replaced. * java/lang/VMClassLoader.java: New file. * java/lang/natClassLoader.cc: New file. * gnu/gcj/runtime/MethodInvocation.java: New file. * gnu/gcj/util/path/SearchPath.java: New file. * gnu/gcj/util/path/PathEntry.java: New file. * gnu/gcj/util/path/DirectoryPathEntry.java: New file. * gnu/gcj/util/path/ZipPathEntry.java: New file. * gnu/gcj/util/path/URLPathEntry.java: New file. * gnu/gcj/util/path/CacheEntry.java: New file. * include/java-interp.h: New file. * include/java-cpool.h: New file. * include/java-insns.h: New file. * defineclass.cc: New file. * interpret.cc: New file. * resolve.cc: New file. * java/lang/natClass.cc (loaded_classes, _Jv_RegisterClass, _Jv_RegisterClasses, _Jv_FindClassInCache, _Jv_FindClass, _Jv_NewClass, _Jv_FindArrayClass): Moved to natClassLoader.cc. (finalize): New. (STATE_NOTHING, STATE_RESOLVED, STATE_IN_PROGRESS, STATE_DONE, STATE_ERROR): Moved to java/lang/Class.h and renamed with JV_ prefix. (initializeClass): Use new JV_ prefixed names. Also, call ClassLoader::resolveClass instead of _Jv_ResolveClass. * java/lang/Class.h (JV_STATE_PRELOADING, JV_STATE_LOADING, JV_STATE_LOADED, JV_STATE_COMPILED, JV_STATE_PREPARED, JV_STATE_LINKED): New. (_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 decls. (_Jv_UnregisterClass): New decl. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added class loader argument. (_Jv_FindClass): Use class loader. * prims.cc (_Jv_makeUtf8Const): New function. (_Jv_NewObjectArray): Change use of _Jv_FindArrayClass. (_Jv_NewPrimArray): Ditto. (_Jv_FindClassFromSignature): Ditto. * java/lang/reflect/natArray.cc (newInstance): Ditto. * java/lang/reflect/natMethod.cc (getType): Ditto. * include/java-field.h (_Jv_Field::isRef): Make robust for non-resolved contexts. * boehm.cc (_Jv_MarkObj): Mark interpreter-related fields. Also, don't mark class->next field. * java/lang/VirtualMachineError.java: Added FIXME note. * configure.in (INTERPSPEC): New spec. * libgcj.spec.in: Added INTERPSPEC. * Makefile.am: Added gcjh friends for java/lang/VMClassLoader and gnu/gcj/runtime/MethodInvocation. (libgcj_la_SOURCES): Added resolve.cc defineclass.cc interpret.cc. (ordinary_java_source_files): Added above mentioned java classes. * configure: Rebuilt. * Makefile.in: Rebuilt. From-SVN: r28597
1999-08-06Locale.java (CHINESE, [...]): New locales.Mojo Jojo1-5/+31
1999-08-06 Mojo Jojo <mojojojo@pacbell.net> * java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN, ITALIAN, JAPANESE, KOREAN, CANADA_FRENCH, GERMANY, ITALY, KOREA, SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE, PRC, TAIWAN, CHINA): New locales. (toString): Print correctly when `country' is empty. From-SVN: r28548
1999-08-03natFile.cc (performMkdir): Remove FIXME.Bryce McKinlay2-3/+1
* java/io/natFile.cc (performMkdir): Remove FIXME. * java/io/natFileDescriptorPosix.cc (open): Use 0644 file mode. From-SVN: r28430
1999-08-03ServerSocket.java: Define ANY_IF.Bryce McKinlay4-22/+13
* java/net/ServerSocket.java: Define ANY_IF. (ServerSocket (int,int)): Use ANY_IF instead of null to bind to all network interfaces. * java/net/DatagramSocket.java (DatagramSocket): ditto. * java/net/natPlainSocketImpl.cc (bind): Expect 0.0.0' instead of null. * java/net/natPlainDatagramSocketImpl (bind): Expect 0.0.0' instead of null. From-SVN: r28429
1999-08-01configure.in: Check for bstring.h.Alexandre Oliva2-0/+10
1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br> * configure.in: Check for bstring.h. * configure, include/config.h.in: Rebuilt. * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h. * java/net/natPlainSocketImpl.cc: Likewise. From-SVN: r28378
1999-08-01configure.in: Check for struct hostent_data and need for -D_REENTRANT for ↵Alexandre Oliva1-2/+18
gethostbyname_r... 1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br> * configure.in: Check for struct hostent_data and need for -D_REENTRANT for gethostbyname_r declaration. * java/net/natInetAddress.cc: Define _REENTRANT if needed. (lookup): Use hostent_data for fixed_buffer. * configure, include/config.h.in: Rebuilt. From-SVN: r28369
1999-07-31natSystem.cc (arraycopy): Use bcopy if memmove is not available.Alexandre Oliva1-1/+6
1999-07-31 Alexandre Oliva <oliva@dcc.unicamp.br> * java/lang/natSystem.cc (arraycopy): Use bcopy if memmove is not available. Don't cast memmove args to (void*). * configure.in: Do not abort if memmove is not available. From-SVN: r28360
1999-07-26natString.cc (substring): optimize where substring is entire String.Bryce McKinlay3-4/+4
1999-07-22 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/natString.cc (substring): optimize where substring is entire String. * java/io/File.java (getName): don't return separator with file name. * java/io/natFile.cc (attr): fix overflow. From-SVN: r28246
1999-07-20DatagramSocket.java (DatagramSocket(int, InetAddress)): Default to using ↵Warren Levy2-4/+29
PlainDatagramSocketImpl. * java/net/DatagramSocket.java (DatagramSocket(int, InetAddress)): Default to using PlainDatagramSocketImpl. * java/net/PlainDatagramSocketImpl.java (close): Catch IOException. From-SVN: r28195
1999-07-12mprec.h: Protect definition of uint32_t with #ifndef _UINT32_T.Tom Tromey1-0/+6
* java/lang/mprec.h: Protect definition of uint32_t with #ifndef _UINT32_T. From-SVN: r28065
1999-07-05URL.java (equals): Compare strings using String.equals.Anthony Green1-10/+22
* java/net/URL.java (equals): Compare strings using String.equals. * java/net/URL.java (sameFile): Ditto. From-SVN: r27947
1999-07-02configure: Rebuilt.Warren Levy1-4/+31
* configure: Rebuilt. * configure.in: Added inet_ntoa to AC_CHECK_FUNCS. * include/config.h.in: Rebuilt. * java/net/natPlainDatagramSocketImpl.cc: Added header checking. (mcastGrp): Updated FIXME comments. (setOption): Fixed typo. (getOption):Implemented IP_MULTICAST_IF. From-SVN: r27929
1999-07-02PlainDatagramSocketImpl.java (ttl): Removed.Warren Levy2-12/+61
* java/net/PlainDatagramSocketImpl.java (ttl): Removed. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented. (getTimeToLive): Implemented. (setOption): Implemented IP_MULTICAST_IF. From-SVN: r27922
1999-07-01String.java (toString): Check for this == null and throw NullPointerException.Bryce McKinlay1-0/+3
1999-07-01 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/String.java (toString): Check for this == null and throw NullPointerException. From-SVN: r27895
1999-07-01[multiple changes]Warren Levy2-3/+6
1999-07-01 Warren Levy <warrenl@cygnus.com> * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength to count and revised comments to match. * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java. * gnu/gcj/convert/Input_JavaSrc.java (read): ditto. * gnu/gcj/convert/Input_SJIS.java (read): ditto. * gnu/gcj/convert/Input_UTF8.java (read): ditto. * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto. * gnu/gcj/convert/natInput_SJIS.cc (read): ditto. 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu> * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter properly as count rather than outlength. * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush output on overflow rather than buffer fill. * java/io/BufferedReader.java (fill): Don't clear out the buffer if markPos is 0 and there is still room in the buffer. From-SVN: r27892
1999-06-24[multiple changes]Tom Tromey2-16/+15
1999-06-24 Tom Tromey <tromey@cygnus.com> * 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 <green@cygnus.com> * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h. * java/lang/e_log.c: Don't use __uint32_t. From-SVN: r27733
1999-06-24[multiple changes]Tom Tromey26-407/+425
Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com> * 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 <echristo@cygnus.com> * configure: Rebuilt * configure.in: Fixed ISO C9X and namespace collision with __uint32_t * acconfig.h: Rebuilt * include/config.h.in: 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 From-SVN: r27729
1999-06-23InflaterInputStream.java (read): Throw ZipException if inflater throws a ↵Tom Tromey1-1/+8
DataFormatException. * java/util/zip/InflaterInputStream.java (read): Throw ZipException if inflater throws a DataFormatException. From-SVN: r27719
1999-06-23DatagramSocketImpl.java (localPort): Fixed typo to match JDK.Warren Levy8-12/+12
* java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK. * java/net/natPlainDatagramSocketImpl.cc (bind): ditto. * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method is not final per JDK. * java/util/PropertyResourceBundle.java (handleGetObject): Method is public per JDK. * java/util/zip/DataFormatException.java: Class extends Exception. * java/util/zip/Deflater.java (finalize): Method is protected per JDK. * java/util/zip/ZipEntry.java: Class implements ZipConstants. * java/util/zip/ZipInputStream.java: ditto. (closeEntry): Changed method name to match JDK spec. From-SVN: r27717
1999-06-21ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.Tom Tromey1-0/+4
* java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha. From Jeff Sturm. From-SVN: r27671
1999-06-18natInetAddress.cc (lookup): Preserve caller-supplied hostname in returned ↵Bryce McKinlay2-6/+8
InetAddress objects. * java/net/natInetAddress.cc (lookup): Preserve caller-supplied hostname in returned InetAddress objects. (getLocalHostname): Fix typo. * java/net/InetAddress.java (getByName): Set hostname on return object. (getLocalHost): Call lookup directly to ensure that a fully-qualified name is returned. From-SVN: r27587
1999-06-17natPlainSocketImpl.cc (bind): Bind to any/all network interfaces if host==NULL.Bryce McKinlay6-50/+72
* java/net/natPlainSocketImpl.cc (bind): Bind to any/all network interfaces if host==NULL. (accept): Throw message with InterruptedIOException. (getOption): Cache localAddress. * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need 'address' for DatagramSocket. (setTimeToLive): Fix compiler warnings. (getOption): Cache localAddress. * java/net/Socket.java (getLocalAddress): Don't need local InetAddress object. Add FIXME comment about calling checkConnect(). * java/net/ServerSocket.java (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/PlainDatagramSocketImpl.java: Don't need 'address'. Add localAddress caching. From-SVN: r27559
1999-06-15FilterOutputStream.java (write(byte[])): Rewrite according to JDK 1.2 docs.Bryce McKinlay1-2/+3
* java/io/FilterOutputStream.java (write(byte[])): Rewrite according to JDK 1.2 docs. (write(byte[],int,int)): ditto. From-SVN: r27537
1999-06-11natInetAddress.cc (aton): Fix typos.Bryce McKinlay1-18/+23
* java/net/natInetAddress.cc (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). From-SVN: r27484