[
https://issues.apache.org/jira/browse/WODEN-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arseniy Tashoyan updated WODEN-235:
-----------------------------------
Description:
When I try to build woden 1.0M9 with Java7, the unit test
QNameDeserializeTest.testGoodDeserializeQNameWithoutPrefix() fails.
{color:green}
-------------------------------------------------------------------------------
Test set: javax.xml.namespace.QNameDeserializeTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec <<<
FAILURE!
testGoodDeserializeQNameWithoutPrefix(javax.xml.namespace.QNameDeserializeTest)
Time elapsed: 0.017 sec <<< FAILURE!
junit.framework.AssertionFailedError: Expected a null 'prefix' to be
initialized to the empty string "".
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at
javax.xml.namespace.QNameDeserializeTest.testGoodDeserializeQNameWithoutPrefix(QNameDeserializeTest.java:65)
{color}
This is because the test uses serialized form of QName, that was created in
Java 6 environment. But Java 7 serialized form is different.
*Failure of this test means, that integration of two applications running in
different Java environments is broken. One application is unable to use
serialized QNames, received from another application.*
was:
When I try to build woden 1.0M9 with Java7, the unit test
QNameDeserializeTest.testGoodDeserializeQNameWithoutPrefix() fails.
-------------------------------------------------------------------------------
Test set: javax.xml.namespace.QNameDeserializeTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec <<<
FAILURE!
testGoodDeserializeQNameWithoutPrefix(javax.xml.namespace.QNameDeserializeTest)
Time elapsed: 0.017 sec <<< FAILURE!
junit.framework.AssertionFailedError: Expected a null 'prefix' to be
initialized to the empty string "".
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at
javax.xml.namespace.QNameDeserializeTest.testGoodDeserializeQNameWithoutPrefix(QNameDeserializeTest.java:65)
This is because the test uses serialized form of QName, that was created in
Java 6 environment. But Java 7 serialized form is different.
Failure of this test means, that integration of two applications running in
different Java environments is broken. One application is unable to use
serialized QNames, received from another application.
> Failed to build Woden on Java 7 - unit test fails
> -------------------------------------------------
>
> Key: WODEN-235
> URL: https://issues.apache.org/jira/browse/WODEN-235
> Project: Woden
> Issue Type: Bug
> Affects Versions: M9
> Environment: java version "1.7.0_45"
> Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
> Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
> Red Hat Enterprise Linux Server release 5.10 (Tikanga)
> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
> 17:51:28+0400)
> Maven home: /work/install/maven/latest
> Java version: 1.7.0_45, vendor: Oracle Corporation
> Java home: /usr/java/jdk1.7.0_45/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.18-371.8.1.el5", arch: "amd64", family: "unix"
> Reporter: Arseniy Tashoyan
> Labels: integration, jdk7, serialization, test
>
> When I try to build woden 1.0M9 with Java7, the unit test
> QNameDeserializeTest.testGoodDeserializeQNameWithoutPrefix() fails.
> {color:green}
> -------------------------------------------------------------------------------
> Test set: javax.xml.namespace.QNameDeserializeTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec <<<
> FAILURE!
> testGoodDeserializeQNameWithoutPrefix(javax.xml.namespace.QNameDeserializeTest)
> Time elapsed: 0.017 sec <<< FAILURE!
> junit.framework.AssertionFailedError: Expected a null 'prefix' to be
> initialized to the empty string "".
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.assertTrue(Assert.java:20)
> at
> javax.xml.namespace.QNameDeserializeTest.testGoodDeserializeQNameWithoutPrefix(QNameDeserializeTest.java:65)
> {color}
> This is because the test uses serialized form of QName, that was created in
> Java 6 environment. But Java 7 serialized form is different.
> *Failure of this test means, that integration of two applications running in
> different Java environments is broken. One application is unable to use
> serialized QNames, received from another application.*
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]