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

REGRESSION:org_w3c/org_xml exceptions changed their serialVersionUID's

XMLWordPrintable

    • tiger
    • generic, sparc
    • generic, solaris_2.6
    • Verified

      Name: acR10002 Date: 08/26/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b16"
      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_w3c/dom/DOMException/serial/index.html#Input[serial2005,serial2006]
      api/org_xml/sax/SAXException/serial/index.html#Input[serial2004]
      api/org_xml/sax/SAXNotRecognizedException/serial/index.html#Input[serial2004]
      api/org_xml/sax/SAXNotSupportedException/serial/index.html#Input[serial2004]
      api/org_xml/sax/SAXParseException/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

      The following classes have changed their serialVersionUID's in b15,
      so their serial forms have been changed incompatibly:

      >java -version
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b16)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b16, mixed mode)

      >serialver org.w3c.dom.DOMException org.xml.sax.SAXException=20
      org.xml.sax.SAXNotRecognizedException org.xml.sax.SAXNotSupportedException
      org.w3c.dom.DOMException: static final long s
      3883659305141610252L;
      org.xml.sax.SAXException: static final long serialVersionUID
      8251803752662179270L;
      org.xml.sax.SAXNotRecognizedException: static final long serialVersionUID
      1398555601346822626L;
      org.xml.sax.SAXNotSupportedException: static final long serialVersionUID
      7373565723188945450L;

      The correct serialVersionUID's should be those ones that were released previously in JDK 1.4.X:

      >/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)

      >/set/java/jdk1.4.2/solaris/bin/serialver org.w3c.dom.DOMException
      org.xml.sax.SAXException org.xml.sax.SAXNotRecognizedException
      org.xml.sax.SAXNotSupportedException
      org.w3c.dom.DOMException: static final long serialVersionUID
      6627732366795969916L;
      org.xml.sax.SAXException: static final long serialVersionUID
      583241635256073760L;
      org.xml.sax.SAXNotRecognizedException: static final long serialVersionUID
      5440506620509557213L;
      org.xml.sax.SAXNotSupportedException: static final long serialVersionUID
      1422818934641823846L;

      Please add the correct "static final long serialVersionUID" constants to the
      above exceptions to make them compatible across J2SE versions.


      JCK test source location:

      /java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests

      Specific Machine Info:

      SunOS mars 5.9 Beta_Refresh sun4u sparc SUNW,Ultra-60

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: