Uploaded image for project: 'Woden'
  1. Woden
  2. WODEN-235

Failed to build Woden on Java 7 - unit test fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • M9
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            sagara Sagara Gunathunga
            arseniy Arseniy Tashoyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: