OSDN Git Service

* cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index 5530021..56fecfb 100644 (file)
@@ -1,8 +1,110 @@
+2001-09-27  Tom Tromey  <tromey@redhat.com>
+
+       * java/util/IdentityHashMap.java (containsKey): Use getHash.
+       (get): Likewise.
+       (put): Likewise.
+       (remove): Likewise.
+       (getHash): New method.
+       (tombstone, emptyslot): Now static final.
+       (put): Correctly determine when to rehash, and correctly rehash.
+       (containsKey, remove): Test against table length with `>='.
+
+2001-09-26  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/classpath/Configuration.java.in (INIT_LOAD_LIBRARY): New
+       constant.
+       * java/io/StreamTokenizer.java, java/util/ResourceBundle.java:
+       Re-merged with Classpath.
+
+       * java/io/DataInputStream.java (readChar): Use readFully.
+       (readInt): Likewise.
+       (readLong): Likewise.
+       (readShort): Likewise.
+       (readUnsignedShort): Likewise.
+
+2001-09-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/lang/PosixProcess.java (exitValue): Implement here. Throw 
+       IllegalThreadStateException if process hasn't exited yet.
+       * java/lang/natPosixProcess.cc (exitValue): Removed.
+       (waitFor): Only check thread interrupted status if waitpid() returned
+       an error. Use WIFEXITED and WEXITSTATUS to process process's exit
+       value.
+       
+       * java/security/cert/X509Extension.java: Merge from classpath.
+
+2001-09-22  Anthony Green  <green@redhat.com>
+
+       * java/security/DummyKeyPairGenerator.java (initialize): New
+       method (with AlgorithmParameterSpec argument).
+
+2001-09-22  Anthony Green  <green@redhat.com>
+
+       * java/security/spec/EncodedKeySpec.java: Implements KeySpec.
+
+       * gnu/java/security/provider/SHA1PRNG.java: Extend from
+       SecureRandomSpi.  
+       (engineNextBytes): Fix order of memory copies.
+       
+2001-09-21  Richard Henderson  <rth@redhat.com>
+
+       * include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
+       add get_method, set_method, vtable_elt_size, new_vtable.
+       (_Jv_ArrayVTable): Derive from _Jv_VTable.
+       * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
+       * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
+       * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.
+
+2001-09-21  Richard Henderson  <rth@redhat.com>
+
+       * no-threads.cc (_Jv_ThreadStart): Remove names of unused arguments.
+       * java/lang/mprec.c (lo0bits): Fix paren typo.
+
+2001-09-20  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of 
+       blocking IO via pthread_kill().
+       * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread 
+       interrupted status flag only if ::write returned an error.
+       (write (jbyteArray, jint, jint): Likewise.
+       (read (jint)): Likewise.
+       (read (jbyteArray, jint, jint): Likewise.
+
+2001-09-19  Anthony Green  <green@redhat.com>
+
+       * gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
+       when host is null.
+
+2001-09-17  Andreas Jaeger  <aj@suse.de>
+
+       * jni.cc (array_from_valist): Use promoted types for va_arg.
+
+2001-09-16  Anthony Green  <green@redhat.com>
+
+       * gnu/java/locale/LocaleInformation.java: Extend
+       LocaleInformation_en_US, not LocaleInformation_en.
+
+2001-09-16  Anthony Green  <green@redhat.com>
+
+       * gnu/gcj/convert/IOConverter.java: Add support for iso8859_1.
+
+2001-09-14  Tom Tromey  <tromey@redhat.com>
+
+       * java/util/TimeZone.java: Updated list of timezones from
+       Classpath.
+
+       * java/lang/CloneNotSupportedException.java: Re-merged with
+       Classpath.
+
 2001-09-14  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
-       * java/io/File.java (normalizePath): Use equals() not '==' for string 
+       * java/io/File.java (normalizePath): Use equals() not '==' for string
        comparison.
 
+       * java/util/Hashtable.java (Enumerator): Ensure that if
+       hasMoreElements() returns true, nextElement() will always return
+       something even if the table has been modified.
+
 2001-09-12  Tom Tromey  <tromey@redhat.com>
 
        * Makefile.in: Rebuilt.
 
 2001-09-05  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
-        * java/text/MessageFormat.java (setLocale): Don't catch ParseException 
-        here, DecimalFormat.applyPattern() does not throw it.
+       * java/text/MessageFormat.java (setLocale): Don't catch ParseException
+       here, DecimalFormat.applyPattern() does not throw it.
 
 2001-09-04  Tom Tromey  <tromey@redhat.com>
 
        Re-write it to avoid constructing unneeded temporaries.
        (<init>(int,int,Random)):  Use new init method to avoid constructing
        extra temporary BigIntegers.
-       
+
 2001-08-27  Tom Tromey  <tromey@redhat.com>
 
        * java/rmi/activation/Activatable.java,
        * gcj/javaprims.h: Add prototypes for _Jv_ThreadRun and new variant
        of _Jv_AttachCurrentThread.
        * gnu/gcj/runtime/FirstThread.java (FirstThread): Now extends Thread.
-       (run): New method. Take care of looking up main class manifest 
+       (run): New method. Take care of looking up main class manifest
        attribute and calling forName if neccessary. Then call call_main.
        (call_main): New native method.
-       * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code 
-       relocated from prims.cc. Look up and call main method. 
+       * gnu/gcj/runtime/natFirstThread.cc (call_main): New function, code
+       relocated from prims.cc. Look up and call main method.
        * java/lang/Thread.java (run_): Removed.
        * java/lang/natThread.cc (run_): Renamed to...
        (_Jv_ThreadRun): this. JVMPI notification code moved to ...
        UnsupportedOperationExceptions rather than JvFail'ing.
        (_Jv_AttachCurrentThread): New variant takes a Thread argument.
        Existing version wraps new variant.
-       
+
 
 2001-08-23  Tom Tromey  <tromey@redhat.com>
 
 
 2001-08-21  Anthony Green  <green@redhat.com>
 
-        * java/lang/natClassLoader.cc (findClass): Search for
-        lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
+       * java/lang/natClassLoader.cc (findClass): Search for
+       lib-gnu-pkg-quux.so, not gnu-pkg-quux.so.
 
 2001-08-21  Jeff Sturm  <jsturm@one-point.com>
 
 2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
 
        * BigInteger.java: fix right shifts by nonzero multiples of 32.
-       
+
 2001-08-15  Tom Tromey  <tromey@redhat.com>
 
        * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
        * include/posix.h (_POSIX_PII_SOCKET): Define.
        * configure.in (HAVE_SOCKLEN_T): Define.
        * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
-       definition up. 
+       definition up.
        (_JV_accept): New function, avoids Tru64 UNIX accept macro.
        (java::net::PlainSocketImpl::accept): Use it.
        Fixes PRs libgcj/3694, libgcj/3696.
-       
+
        * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
        * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
        * configure, include/config.h.in: Regenerate.
 
 2001-07-26  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
-       * java/util/Calendar.java (set): Never recompute fields here. They 
+       * java/util/Calendar.java (set): Never recompute fields here. They
        will already be set if someone set time explicitly, and it can cause
        problems to do so. Don't invalidate AM_PM setting if HOUR is set.
        * java/util/GregorianCalendar.java (computeTime): Don't ignore an
-       HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is 
+       HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
        sane.
        * java/text/SimpleDateFormat.java (defaultCentury): New field.
-       (readObject): Call set2DigitYearStart if appropriate so that 
+       (readObject): Call set2DigitYearStart if appropriate so that
        defaultCentury is calculated.
        (SimpleDateFormat): Don't bother clearing calendar here. Call
        computeCenturyStart().
 
 2001-07-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
-       * java/util/LinkedList.java (clone): Clear the copy list with clear(), 
+       * java/util/LinkedList.java (clone): Clear the copy list with clear(),
        not by setting its size field.
 
 2001-07-13  Alexandre Petit-Bianco  <apbianco@redhat.com>
 
 2001-07-12  Tom Tromey  <tromey@redhat.com>
            David Brownell  <david-b@pacbell.net>
-       
+
        Fix for PR libgcj/3426:
        * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
        errno.h.
        * java/lang/ThreadLocal.java: Initial import.
 
 2001-07-07  Jeff Sturm  <jsturm@one-point.com>
-       
+
        * Makefile.am (libgcj.jar): Don't recursively make
        built_java_source_files.  Avoid long command lines.
        Don't change to $(srcdir) to invoke javac.
        * Makefile.in: Rebuild.
        * Makefile.am: Ditto.
        * libgcjdata.c: Remove.
-       
+
 2001-06-02  Anthony Green  <green@redhat.com>
 
        * configure: Rebuild.
 
 2001-05-29  Andrew Haley  <aph@redhat.com>
 
-        * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
-        pointer: the dwarf unwinder in libgcc will do everything that's
-        needed.
-        (HANDLE_DIVIDE_OVERFLOW): Tidy.  Don't mess with stack frames any
-        more than we absolutely need to.
-        * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
-        * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
-        Alpha.
-        (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
-        "$libgcj_sjlj".
-        * configure: Rebuilt.
-        * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
-        for Alpha.
-        (SIGNAL_HANDLER): Use siginfo style handler.
-        (INIT_SEGV): Likewise.
-        (INIT_FPE): Likewise.
-        * include/ppc-signal.h: Delete whole file.
+       * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame
+       pointer: the dwarf unwinder in libgcc will do everything that's
+       needed.
+       (HANDLE_DIVIDE_OVERFLOW): Tidy.  Don't mess with stack frames any
+       more than we absolutely need to.
+       * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha.
+       * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on
+       Alpha.
+       (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not
+       "$libgcj_sjlj".
+       * configure: Rebuilt.
+       * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC
+       for Alpha.
+       (SIGNAL_HANDLER): Use siginfo style handler.
+       (INIT_SEGV): Likewise.
+       (INIT_FPE): Likewise.
+       * include/ppc-signal.h: Delete whole file.
 
 2001-05-24  Tom Tromey  <tromey@redhat.com>
 
        * Makefile.am (libgcj_la_DEPENDENCIES):  Add $(nat_files).
        (libgcj_la_LIBADD):  Likewise.
        (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD):  Add $(x_nat_files).
-       
+
 2001-05-21  Per Bothner  <per@bothner.com>
 
        * gcj/javaprims.h (_Jv_FormatInt):  New declaration.
 
 2001-05-18  Andrew Haley  <aph@cambridge.redhat.com>
 
-       * include/dwarf2-signal.h: New file.    
+       * include/dwarf2-signal.h: New file.
        * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
        * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
-        * configure: Rebuilt.
+       * configure: Rebuilt.
 
 2001-05-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
 
 2001-05-17  Martin Kahlert  <martin.kahlert@infineon.com>
 
-       * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error 
+       * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error
        with length of ioffset table.
        (_Jv_IsAssignableFrom): Likewise.
 
 
 2001-05-11  Richard Henderson  <rth@redhat.com>
 
-        * exception.cc: Include unwind-pe.h.  Remove all pointer
+       * exception.cc: Include unwind-pe.h.  Remove all pointer
        encoding logic.
 
 2001-05-10  Tom Tromey  <tromey@redhat.com>
 2001-04-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
        Fix PR libgcj/2237:
-       * java/io/ObjectStreamClass.java (setClass): Calculate 
+       * java/io/ObjectStreamClass.java (setClass): Calculate
        serialVersionUID for local class and compare it against the UID
        from the Object Stream. Throw InvalidClassException upon mismatch.
        (setUID): Renamed to...
-       (getClassUID): this. Return the calculated class UID rather than 
+       (getClassUID): this. Return the calculated class UID rather than
        setting uid field directly.
        (getDefinedSUID): Removed.
-       * java/io/ObjectInputStream.java (resolveClass): Use the 
-       three-argument Class.forName(). 
+       * java/io/ObjectInputStream.java (resolveClass): Use the
+       three-argument Class.forName().
        * java/io/InvalidClassException (toString): Don't include classname in
        result if it is null.
 
 
        java.security merge and ClassLoader compliance fixes.
 
-       * java/lang/Class.h (Class): Include ProtectionDomain.h. 
+       * java/lang/Class.h (Class): Include ProtectionDomain.h.
        New protectionDomain field.
-       (forName): Add initialize parameter. Fixes declaration to comply with 
+       (forName): Add initialize parameter. Fixes declaration to comply with
        JDK spec.
        * java/lang/natClass.cc (forName): Correct declaration of the three-arg
        variant. Honour "initialize" flag.
        * java/net/NetPermission.java: Likewise.
        * java/net/SocketPermission.java: Likewise.
        * gnu/java/security/provider/DefaultPolicy.java: Likewise.
-       
+
        * Makefile.am: Add new classes.
        * Makefile.in: Rebuilt.
        * gcj/javaprims.h: CNI namespace rebuild.
 
 2001-04-12  Bryce McKinlay  <bryce@albatross.co.nz>
 
-       * java/io/File.java (normalizePath): New private method. 
+       * java/io/File.java (normalizePath): New private method.
        (File (String)): Use normalizePath().
        (File (String, String)): Likewise.
 
        * Makefile.am (libffi_files): Removed.
-       (libgcj.la): Link libffi as a convenience library instead of 
+       (libgcj.la): Link libffi as a convenience library instead of
        refering to its object files directly.
        * Makefile.in: Rebuilt.
 
@@ -3238,20 +3340,20 @@ Sun Nov 26 21:30:25 2000  Anthony Green  <green@redhat.com>
 2000-11-26  Anthony Green  <green@redhat.com>
 
        * javax/naming/spi/NamingManager.java,
-       javax/naming/spi/ObjectFactory.java,
-       javax/naming/spi/InitialContextFactory.java,
-       javax/naming/spi/InitialContextFactoryBuilder.java,
-       javax/naming/RefAddr.java, javax/naming/Reference.java,
-       javax/naming/NamingException.java, javax/naming/Context.java,
-       javax/naming/Referenceable.java,
-       javax/naming/directory/InitialDirContext.java,
-       javax/naming/directory/DirContext.java,
-       javax/naming/directory/Attributes.java,
-       javax/naming/directory/Attribute.java,
-       javax/naming/StringRefAddr.java,
-       javax/naming/NamingEnumeration.java, javax/naming/Name.java,
-       javax/naming/InitialContext.java,
-       javax/naming/NoInitialContextException.java: New files.
+       javax/naming/spi/ObjectFactory.java,
+       javax/naming/spi/InitialContextFactory.java,
+       javax/naming/spi/InitialContextFactoryBuilder.java,
+       javax/naming/RefAddr.java, javax/naming/Reference.java,
+       javax/naming/NamingException.java, javax/naming/Context.java,
+       javax/naming/Referenceable.java,
+       javax/naming/directory/InitialDirContext.java,
+       javax/naming/directory/DirContext.java,
+       javax/naming/directory/Attributes.java,
+       javax/naming/directory/Attribute.java,
+       javax/naming/StringRefAddr.java,
+       javax/naming/NamingEnumeration.java, javax/naming/Name.java,
+       javax/naming/InitialContext.java,
+       javax/naming/NoInitialContextException.java: New files.
 
 2000-11-25  Anthony Green  <green@redhat.com>