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: [email protected]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


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.

Reply via email to