ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arseniy Tashoyan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WODEN-235) Failed to build Woden on Java 7 - unit test fails
Date Thu, 05 Jun 2014 07:14:01 GMT
Arseniy Tashoyan created WODEN-235:
--------------------------------------

             Summary: 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


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message