xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37267] New: - serialVersion UID incorrect in javax.xml.namespace.QName
Date Thu, 27 Oct 2005 12:52:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37267>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37267

           Summary: serialVersion UID incorrect in javax.xml.namespace.QName
           Product: XmlCommons
           Version: 1.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: JAXP
        AssignedTo: commons-dev@xml.apache.org
        ReportedBy: hughesj@apache.org
                CC: hughesj@apache.org


Overview Description:
The serialVersionUID for the original QName as used by JAX-RPC 1.0 was
-9120448754896609940. The suid for the JAXP 1.3 version is 4418622981026545151.
This means instances of the old class cannot be serialized into the new class. 

Steps to Reproduce:

Use a J2SE 1.4 JVM (don't use J2SE 5 as this includes QName class in rt.jar -
we're testing the QName in XmlCommons xml-apis.jar)

Test case at:
http://people.apache.org/~hughesj/bugs/QName/QNameReadObjectNull.zip
cd into QNameReadObjectNull/bin directory.
java -cp .;<path to xml-apis.jar shipped in xerces2_7_1>;<path to junit.jar>
javax.xml.namespace.QNameTest

results in:

.E
Time: 0.2
There was 1 error:
1)
testGoodDeserializeQNameWithoutPrefix(javax.xml.namespace.QNameTest)java.io.InvalidClassException:
javax.xml.namespace.QName; local class incompatible: stream classdesc
serialVersionUID = -9120448754896609940, local class serialVersionUID =
4418622981026545151

...


Expected Results: Test should pass

Note this test case is a subset of a test case in Apache Woden:

http://svn.apache.org/repos/asf/incubator/woden/java/test/javax/xml/namespace/

Thanks,
Jeremy Hughes (hughesj at apache.org)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message