aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2001-04-02libjava.exp: Correct typo...Zack Weinberg2-223/+217
* testsuite/lib/libjava.exp: Correct typo: 'output from source compiled test', not 'execution from source compiled test'. Use UNTESTED, not XFAIL, for tests which are not run because they depend on a previous test which failed. From-SVN: r41026
2001-04-02configure.in (GCC_UNWIND_INCLUDE): Assume we're built within the same tree ↵Richard Henderson4-228/+213
as gcc. * configure.in (GCC_UNWIND_INCLUDE): Assume we're built within the same tree as gcc. * configure: Rebuilt. * exception.cc (_Jv_Throw): Clarify commentary. From-SVN: r41025
2001-04-02jni.cc (wrap_value<jclass>): New specialization.Marcus G. Daniels2-0/+13
2001-04-02 Marcus G. Daniels <mgd@swarm.org> * jni.cc (wrap_value<jclass>): New specialization. From-SVN: r41021
2001-04-02PrintStream.java (out): Removed field.Tom Tromey2-37/+51
* java/io/PrintStream.java (out): Removed field. Fixes PR java/2449. (write): Call flush, not out.flush, per spec. (close): Flush output stream, per spec. Handle InterruptedIOException. (checkError): Likewise. (flush, print, write): Handle InterruptedIOException per spec. (PrintStream): Don't create BufferedOutputStream. (work_bytes): New field. (writeChars): Use work_bytes. Don't assume `out' is a BufferedOutputStream. From-SVN: r41014
2001-04-02re PR libgcj/2429 (java.text.MessageFormat should usefully set text on ↵Torsten Rueger2-1/+6
exceptions) 2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com> * java/text/MessageFormat.java (setLocale): Added missing `else'. For PR libgcj/2429. From-SVN: r41012
2001-04-02jni.cc (add_char): Correctly encode non-ascii characters.Tom Tromey2-5/+13
* jni.cc (add_char): Correctly encode non-ascii characters. (add_char): Define even when INTERPRETER not defined. (mangled_name): Likewise. (_Jv_GetJNIEnvNewFrame): Likewise. (_Jv_LookupJNIMethod): Likewise. From-SVN: r41010
2001-04-02* configure.host: Enable interpreter for PPC.Kevin B Hendricks2-0/+8
From-SVN: r41009
2001-04-02natSystem.cc (init_properties): Revert yesterday's changes to ↵Bryce McKinlay5-34/+26
"file.separator"... * java/lang/natSystem.cc (init_properties): Revert yesterday's changes to "file.separator", "path.separator", and "java.io.tmpdir" property initialization. * java/io/File.java: Likewise. * java/io/natFile.cc (init_native): Likewise. * java/io/natFileWin32.cc (init_native): Likewise. From-SVN: r40994
2001-04-01natString.cc (intern): If string's data does not point to this String, make ↵Per Bothner3-7/+17
a fresh String that does. * java/lang/natString.cc (intern): If string's data does not point to this String, make a fresh String that does. * java/lang/natString.cc (unintern): Replace by static function. * java/lang/String.java (unintern): Remove method. From-SVN: r40990
2001-04-01DeflaterOutputStream.java (deflate): Loop while def.needsInput.Per Bothner3-51/+110
* DeflaterOutputStream.java (deflate): Loop while def.needsInput. (finish): def.deflate needs to be called in a loop. (inbuf, inbufLength): New private fields. (write(int)): Use inbuf. (write(byte[],int,int): Check if pending output in inbuf. * ZipOutputStream.java: Don't use Deflater if stored. Use a Checksum object directly, not via a CheckedOutputStream. (uncompressed_size): New field, (closeEntry): Only write data_directory if needed. (write): If STORED, write directly. Always update crc, and uncompressed_size. (write_entry): Fix lots of protocol erors. From-SVN: r40988
2001-04-011.3-Compliant Implementation of java.io.File.Bryce McKinlay8-303/+583
* java/lang/natSystem.cc (init_properties): Get "file.separator", "path.separator", and "java.io.tmpdir" from the File class, instead of setting them explicitly. * java/io/File.java: Do not canonicalize paths for security manager checks. Call init_native() from static initializer. Do not pass path argument to native methods. New native method declarations. Some security manager checks moved to checkWrite(). (equals): Check file system case sensitivity and act appropriatly. (hashCode): Likewise. (isHidden): New method implemented. (performList): Changed prototype. Now takes a class argument specifying the class of the returned array: Strings or File objects. Also added FileFilter argument. (listFiles): New variants with "File" return type implemented. (createTempFile): Use createNewFile(). Use maxPathLen. (setReadOnly): New method implemented. (listRoots): Likewise. (compareTo): Likewise. (setLastModified): Likewise. (checkWrite): New method. (setPath): Removed. * java/io/natFile.cc: Various functions no longer take canonical path argument. (stat): Handle ISHIDDEN query. (isAbsolute): Remove WIN32 cruft. (performList): New arguments. Handle returning either File[] or String[] arrays. Check with FileFilter or FilenameFilter arguments as appropriate. Use an ArrayList, not a Vector, for the temporary list. (performSetReadOnly): New method implemented. (performListRoots): Likewise. (performSetLastModified): Likewise. (performCreate): Likewise. (init_native): New initialization function. * java/io/natFileWin32.cc: Various functions no longer take canonical path argument. (stat): Add FIXME about ISHIDDEN query. (performList): New arguments. Handle returning either File[] or String[] arrays. Check with FileFilter or FilenameFilter arguments as appropriate. Use an ArrayList, not a Vector, for the temporary list. (performSetReadOnly): New. Stubbed. (performListRoots): Likewise. (performSetLastModified): Likewise. (performCreate): Likewise. (init_native) New initialization function. * configure.in: Check for utime() and chmod(). * configure: Rebuilt. * include/config.h.in: Rebuilt. Resolves PR libgcj/1759. From-SVN: r40985
2001-03-28IA-64 ABI Exception Handling.Richard Henderson9-536/+984
From-SVN: r40924
2001-03-28InitialContext.java (init): Fix typo.Joerg Brunsmann4-8/+24
2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de> * javax/naming/InitialContext.java (init): Fix typo. (composeName): Remove unnecessary semicolon. (addToEnvironment): Remove unnecessary semicolon. (addToEnvironment): Use put() instead of add(). * javax/naming/InitialContext.java (InitialContext): Make public. (destroySubcontext): Method doesn't return a result. * javax/naming/Context.java: Import java.util.Hashtable. * javax/naming/Name.java: Import java.util.Enumeration. From-SVN: r40888
2001-03-27Makefile.am (libffi_files): Use 'find' to pick up libffi libtool objects in ↵Bryce McKinlay3-2/+8
subdirectories. * Makefile.am (libffi_files): Use 'find' to pick up libffi libtool objects in subdirectories. * Makefile.in: Rebuilt. From-SVN: r40857
2001-03-25exception.cc (java_eh_info): Make value type jthrowable.Richard Henderson36-284/+294
* exception.cc (java_eh_info): Make value type jthrowable. (_Jv_type_matcher): Remove now unneeded cast. (_Jv_Throw): Make argument type jthrowable. Munge name for SJLJ_EXCEPTIONS here ... * gcj/cni.h: ... not here. (JvThrow): Remove. * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations. * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc, prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc, gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc, gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc, gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc, java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc, java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc, java/lang/natClass.cc, java/lang/natClassLoader.cc, java/lang/natDouble.cc, java/lang/natObject.cc, java/lang/natPosixProcess.cc, java/lang/natRuntime.cc, java/lang/natString.cc, java/lang/natSystem.cc, java/lang/natThread.cc, java/lang/reflect/natArray.cc, java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc, java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc, java/util/zip/natInflater.cc: Use throw, not JvThrow or _Jv_Throw. From-SVN: r40838
2001-03-24HashMap.java (HashMap): If 0 is given for initialCapacity paramater, bump it ↵Bryce McKinlay3-3/+13
to 1. 2001-03-24 Bryce McKinlay <bryce@albatross.co.nz> * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity paramater, bump it to 1. * java/util/Hashtable.java (Hashtable): Likewise. From-SVN: r40812
2001-03-23Left out while checking in java/lang/natDouble.cc (parseDouble) change.Per Bothner1-0/+5
From-SVN: r40811
2001-03-23natDouble.cc (parseDouble): Cannot use errno to check for errors...Per Bothner1-15/+25
* java/lang/natDouble.cc (parseDouble): Cannot use errno to check for errors, since we don't want to throw exception on overflow/underflow. Instead, trim whitespace, and then check that _strtod_r uses up all the rest of the string. From-SVN: r40800
2001-03-23natClass.cc (_Jv_IsAssignableFrom): Checking the ancestors array is invalid ↵Per Bothner2-7/+16
for interfaces... * java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the ancestors array is invalid for interfaces, so do that *after* check that the target type is not an interface. From-SVN: r40797
2001-03-23prims.cc (_Jv_FindClassFromSignature): Check return of recursive call.Jeff Sturm2-3/+13
2000-03-23 Jeff Sturm <jsturm@one-point.com> * prims.cc (_Jv_FindClassFromSignature): Check return of recursive call. Do not abort on invalid signature; return NULL instead. From-SVN: r40787
2001-03-23jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields.Tom Tromey7-33/+40
* jni.cc (_Jv_JNI_GetAnyFieldID): Handle unresolved fields. * java/lang/reflect/natField.cc (getType): Use _Jv_ResolveField unconditionally. * include/jvm.h (_Jv_ResolveField): Declare. * include/java-interp.h (_Jv_ResolveField): Don't declare. * resolve.cc (_Jv_ResolveField): No longer conditional on INTERPRETER. From-SVN: r40785
2001-03-23field.out: New file.Tom Tromey4-0/+56
* libjava.jni/field.out: New file. * libjava.jni/field.c: New file. * libjava.jni/field.java: New file. From-SVN: r40776
2001-03-23re PR libgcj/1736 ([irix 6.5] Cannot create libgcj - Arg list too long)Bryce McKinlay3-50/+60
Fix for PR libgcj/1736. Thanks to Robert Boehne and Alexandre Oliva for libtool hacking. * Makefile.am (libgcj.la): New explicit rule. Echo the list of objects to a temporary file, then invoke libtool with the -objectlist paramater. (libgcjx.la): Likewise. * Makefile.in: Rebuilt. From-SVN: r40775
2001-03-23Context.java (SECURITY_CREDENTIALS): Fix typo.Joerg Brunsmann2-1/+5
2001-03-22 Joerg Brunsmann <joerg_brunsmann@yahoo.de> * javax/naming/Context.java (SECURITY_CREDENTIALS): Fix typo. From-SVN: r40771
2001-03-22jni.cc (add_char): Handle `.' like `/'.Marcus G. Daniels2-1/+8
2001-03-22 Marcus G. Daniels <mgd@swarm.org> * jni.cc (add_char): Handle `.' like `/'. From-SVN: r40748
2001-03-22Method.java (getExceptionTypes): Call getType() to initialize if ↵Bryce McKinlay4-2/+18
exception_types is null. * java/lang/reflect/Method.java (getExceptionTypes): Call getType() to initialize if exception_types is null. * java/lang/reflect/Constructor.java: Likewise. * java/lang/reflect/natConstructor.cc (getType): Initialize exception_types to an empty Object array. From-SVN: r40730
2001-03-21uesc.java: New file.Tom Tromey3-0/+15
* libjava.compile/uesc.java: New file. * libjava.compile/uesc.xfail: New file. From-SVN: r40704
2001-03-21configure: Rebuilt.Tom Tromey8-307/+343
* configure: Rebuilt. * configure.in (GCJFLAGS): Subst. * Makefile.in: Rebuilt. * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc. (gij_LDFLAGS): Likewise. (JC1FLAGS): Added GCJFLAGS and removed -g. From-SVN: r40700
2001-03-21re PR libgcj/2338 (RandomAccessFile does not create the file if not found)Tom Tromey2-2/+7
* java/io/natFileDescriptorPosix.cc (open): Add O_CREAT in read/write case. Fixes PR libgcj/2338. From-SVN: r40692
2001-03-20TimeZone.java: Sync up with Classpath.Warren Levy2-97/+108
* java/util/TimeZone.java: Sync up with Classpath. Includes new and corrected SimpleTimeZone's for the timezones hash table. From-SVN: r40650
2001-03-19URLStreamHandler.java (parseURL): Fix bug which would "canonicalize" ↵Per Bothner2-1/+6
"../../xxx" to "/xxx". * java/net/URLStreamHandler.java (parseURL): Fix bug which would "canonicalize" "../../xxx" to "/xxx". From-SVN: r40641
2001-03-19ArrayList.java: Remove RCS keywords from commentsMark Wielaard13-533/+802
* java/util/ArrayList.java: Remove RCS keywords from comments * java/util/BasicMapEntry.java: idem * java/util/Dictionary.java: idem * java/util/HashSet.java: idem * java/util/EventObject.java: reindent * java/util/Properties.java: idem * java/util/SortedMap.java: idem * java/util/Enumeration.java: Merge with Classpath * java/util/EventListener.java: idem * java/util/Observable.java: idem * java/util/Observer.java: idem * java/util/Stack.java: idem From-SVN: r40639
2001-03-18Remove conflict markers that I commited by mistakeMark Wielaard1-14/+0
From-SVN: r40605
2001-03-18natClass.cc (_Jv_CheckCast): add class names to exceptionMark Wielaard3-2/+23
* java/lang/natClass.cc (_Jv_CheckCast): add class names to exception * gnu/gcj/runtime/FirstThread.java (main): replace / with . in jarMainClassName From-SVN: r40604
2001-03-18natString.cc (rehash): Don't bother with memset; _Jv_AllocBytes returns ↵Tom Tromey2-18/+71
zero'd memory. * java/lang/natString.cc (rehash): Don't bother with memset; _Jv_AllocBytes returns zero'd memory. Use _Jv_AllocBytesChecked. Use UNMASK_PTR. (UNMASK_PTR): New macro. (intern): Unmask pointer before returning it. Register finalizer for the string. (unintern): Handle case where (MASK_PTR): New macro. (PTR_MAKSED): Likewise. (_Jv_NewStringUtf8Const): Use UNMASK_PTR. From-SVN: r40593
2001-03-16libjava.exp (libjava_arguments): Rewrote computation of LD_LIBRARY_PATH.Tom Tromey2-10/+27
* lib/libjava.exp (libjava_arguments): Rewrote computation of LD_LIBRARY_PATH. Add gcc build directory if it contains libgcc_s.so. From-SVN: r40564
2001-03-14assignment.xfail: Removed.Tom Tromey3-4/+5
* libjava.compile/assignment.xfail: Removed. * libjava.compile/assignment_2.xfail: Removed. From-SVN: r40463
2001-03-14natThrowable.cc (printRawStackTrace): Copy the stackTrace buffer to a ↵Andrew Haley2-3/+9
correctly aligned pointer array. 2001-03-01 Andrew Haley <aph@redhat.com> * java/lang/natThrowable.cc (printRawStackTrace): Copy the stackTrace buffer to a correctly aligned pointer array. From-SVN: r40456
2001-03-12ExceptionInInitializerError.java (printStackTrace): Only try to print the ↵Bryce McKinlay1-3/+3
subordinate stack trace if "exception" is set. * java/lang/ExceptionInInitializerError.java (printStackTrace): Only try to print the subordinate stack trace if "exception" is set. Print our class name first. From-SVN: r40404
2001-03-12Runtime.java (_exit): Declare new package-private native.Bryce McKinlay7-10/+65
2001-03-12 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/Runtime.java (_exit): Declare new package-private native. * java/lang/natRuntime.cc (_exit): Implemented. Same as exit() but without a security manager check. (exit): Call _exit after security check. * prims.cc (JvRunMain): Call Runtime._exit to shutdown the runtime "naturally". * java/lang/System.java (setSecurityManager): If a security manager is already in place, call checkPermission. * java/lang/ThreadGroup.java (uncaughtException): If printStackTrace() throws an exception, try to deal with it gracefully. * java/lang/ExceptionInInitializerError.java (printStackTrace): Only try to print the subordinate stack trace if "exception" is set. Print our class name first. From-SVN: r40401
2001-03-09re PR libgcj/1971 (ObjectOutputStream generates incorrect serialVersionUID's ↵Tom Tromey2-5/+15
for array classes) * java/io/ObjectStreamClass.java (setUID): Don't write interface info for array classes. Fixes PR libgcj/1971. From-SVN: r40337
2001-03-06TreeSet.java (writeObject): Use a for-loop instead of Iterator.hasNext().Bryce McKinlay3-12/+18
2001-03-06 Bryce McKinlay <bryce@albatross.co.nz> * java/util/TreeSet.java (writeObject): Use a for-loop instead of Iterator.hasNext(). 2001-03-05 Jochen Hoenicke <jochen@gnu.org> * java/util/TreeMap.java (writeObject): Use defaultWriteObject() instead of the new JDK1.2 API. This is simpler and makes back-porting the classes to JDK1.1 trivial. (readObject): likewise. From-SVN: r40252
2001-03-01Changes merged from Kawa's gnu.math.Per Bothner3-35/+44
* java/math/BigInteger.java * gnu/gcj/math/MPN.java (rshift0): New method handles zero shift count. (rshift(int[],int[],int,int): Removed - not needed. (gcd): Use rshift0 rather than rshift. * java/math/BigInteger.java (setShiftRight): Likewise. (divide): Simplify by using rshift0. (divide): Zero-extend results if high-order bit set. From-SVN: r40177
2001-02-27libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static linking.Bryce McKinlay2-1/+6
* libgcj.spec.in: Insert %(libgcc) before %(liborig) to fix static linking. From-SVN: r40089
2001-02-23Change to sometimes include class name in ClassFormatError message.Per Bothner4-55/+115
From-SVN: r40030
2001-02-23Throwable.java (CPlusPlusDemangler): Pass -s java to c++filt to select ↵Per Bothner2-1/+6
java-style output. * java/lang/Throwable.java (CPlusPlusDemangler): Pass -s java to c++filt to select java-style output. From-SVN: r40027
2001-02-22fixBryce McKinlay1-2/+2
From-SVN: r39973
2001-02-22Disable libgcjx by default.Bryce McKinlay5-287/+369
* configure.in: Add support for --enable-java-awt configure option. Use --enable-java-awt=xlib to build the xlib peers (libgcjx). * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X. * Makefile.in: Rebuilt. * configure: Rebuilt. From-SVN: r39970
2001-02-22re PR java/2040 (java.util.Hashtable(int,float) is stricter than sun's version)Bryce McKinlay3-20/+22
Fix for PR java/2040: * java/util/HashMap.java (HashMap): Don't throw exception for loadFactor > 1. Add exception messages. * java/util/Hashtable.java (Hashtable): Likewise. From-SVN: r39969
2001-02-20PipedWriter.java (flush): Throw exception if stream closed.Tom Tromey5-29/+120
* java/io/PipedWriter.java (flush): Throw exception if stream closed. * java/io/OutputStreamWriter.java (write): Throw exception if stream closed. (writeChars): Don't throw exception if stream closed. * java/io/CharArrayWriter.java (closed): New field. (close): Set it. (flush): Throw exception if stream closed. (reset): Synchronize on correct lock. Allow stream to be reopened. (toCharArray, toString, writeTo): Synchronize. (write): Throwe exception if stream closed. * java/io/BufferedWriter.java (close): Clear `buffer'. (flush): Throw IOException if stream is closed. (write): Likewise. From-SVN: r39927