Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4944740

REGRESSION: org.xml.sax.SAXNotSupportedException changed its serialVersionUID

XMLWordPrintable

    • 1.3
    • sparc
    • solaris_2.6

        Name: ygR10224 Date: 10/28/2003


        Filed By : SPB JCK team (###@###.###)
        JDK : java full version "1.5.0-beta-b25"
        JCK : 1.5
        Platform[s] : Solaris
        switch/Mode :
        JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
        Failing Test [s] :
            api/org_xml/sax/SAXNotSupportedException/serial/index.html#Input[serial2004]

        Specification excerpt:
        -------- J2SE API spec v.1.5 ---------
        ...
        >From JOSS, ch. 4.6 "Stream Unique Identifiers":
        The stream-unique identifier is a 64-bit hash of the class name, interface
        class names, methods, and fields. The value must be declared in all versions
        of a class except the first. It may be declared in the original class but
        is
        not required. The value is fixed for all compatible classes.
        ...
        --------- end-of-excerpt ---------------

        Problem description
        ===================
        After the integrating the fixes for 4912586 the serialVersionUID
        of class org.xml.sax.SAXNotSupportedException still remains invalid
        in 1.5.0-beta-b25:

        <gyi@helmet(pts/2).688> /set/java/jdk1.5.0/solaris/bin/java -version
        java version "1.5.0-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b25)
        Java HotSpot(TM) Client VM (build 1.5.0-beta-b25, mixed mode)
        <gyi@helmet(pts/2).688> /set/java/jdk1.5.0/solaris/bin/serialver org.xml.sax.SAXNotSupportedException
        org.xml.sax.SAXNotSupportedException: static final long serialVersionUID = 1422818934641823846L;

        <gyi@helmet(pts/2).690> /set/java/jdk1.4.2/solaris/bin/java -version
        java version "1.4.2-rc"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-rc-b25)
        Java HotSpot(TM) Client VM (build 1.4.2-rc-b25, mixed mode)
        <gyi@helmet(pts/2).691> /set/java/jdk1.4.2/solaris/bin/serialver org.xml.sax.SAXNotSupportedException
        org.xml.sax.SAXNotSupportedException: static final long serialVersionUID = -1422818934641823846L;

        Please change the value of field "private static final long serialVersionUID"
        in class org.xml.sax.SAXNotSupportedException from
        "1422818934641823846L"
        to
        "-1422818934641823846L"
        to make serial form of this class compatible with previous J2SE releases.



        Minimized test output:
        ======================
        ----------ref:(22/1575)----------
        Checking for JDK Version : 1.4

        Creating StreamObject from spec
        Converting the StreamObject to Object
        I/O error. Got exception:
        java.io.InvalidClassException: org.xml.sax.SAXNotSupportedException; local class
        incompatible: stream classdesc serialVersionUID = -1422818934641823846, local class
        serialVersionUID = 1422818934641823846
        at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:522)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1543)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
        at javasoft.sqe.serial.util.Convert.streamObjectToObject(Convert.java:51)
        at javasoft.sqe.tests.api.org.xml.sax.SAXNotSupportedException.serial.InputTests.serial2004(InputTests.java:64)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.org.xml.sax.SAXNotSupportedException.serial.InputTests.main(InputTests.java:30)

        serial2004 failed.
        ----------log:(2/104)----------

        serial2004: Failed. FAILED
        STATUS:Failed.test cases: 1; all failed; first test case failure: serial2004
        result: Failed. test cases: 1; all failed; first test case failure: serial2004
        JCK test source location:
        ==========================
        /java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

        Specific Machine Info:
        =====================
        SunOS helmet 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-2

        ======================================================================

              jsuttorsunw Jeff Suttor (Inactive)
              gyisunw Gyi Gyi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: