You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "Jeremy Hughes (JIRA)" <ji...@apache.org> on 2007/02/06 15:27:10 UTC

[jira] Created: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
--------------------------------------------------------------------------------

                 Key: WODEN-137
                 URL: https://issues.apache.org/jira/browse/WODEN-137
             Project: Woden
          Issue Type: Bug
    Affects Versions: M7
         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
            Reporter: Jeremy Hughes


A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin reassigned WODEN-137:
----------------------------------

    Assignee: Dan Harvey  (was: John Kaputin)

Dan supplied the patch, so assigning the JIRA to him.

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: Dan Harvey
>             Fix For: M8
>
>         Attachments: patch-item-137.txt
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "Daniel Harvey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511727 ] 

Daniel Harvey commented on WODEN-137:
-------------------------------------

I have just run this test against the Sun 1.5.0_12 JRE and the test still fails, so sun haven't fixed this yet.

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: John Kaputin
>             Fix For: M8
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin updated WODEN-137:
-------------------------------

    Fix Version/s: M8

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>             Fix For: M8
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512115 ] 

John Kaputin commented on WODEN-137:
------------------------------------

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.QNameTest.testGoodDeserializeQNameWithoutPrefix(QNameTest.java:476)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: John Kaputin
>             Fix For: M8
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512422 ] 

John Kaputin commented on WODEN-137:
------------------------------------

Background:
According to the Java 5 javadoc for the QName class, the prefix field must be non-null. It must be specified on the 3 arg ctor and it should default to the empty space "" when using the 2 arg or 1 arg ctors.  However, when a serialized QName object is deserialized the namespace, local name and prefix fields are set from the values in the serialized object.  Before Java 5 the QName class did not have the prefix field. If an older (pre-Java 5) serialized QName object is deserialized by Java 5, the deserialization should detect that there is no prefix value and initialize the prefix field to the empty string.

The Woden QName class does this by overriding the readObject method to check the deserialized object for a null prefix and set it to the empty string. The IBM Java 5 JRE also initializes the prefix to empty string when deserializing an older (pre-Java5) QName object. However, the Sun 1.5.0 JRE does not - it leaves the prefix field in the deserialized object as null, which contradicts non-null invariant implied by Sun's QName javadoc.

Our attempts to get this fixed in the Sun JRE have been unsuccessful.  So instead, we will extract the test method  in question , QNameTest.testGoodDeserializeQNameWithoutPrefix(), into a separate test class called QNameDeserializeTest and exclude this from the Maven continuum build. That way the remaining QName tests can be included with the Maven  build (which runs at Apache on Solaris using the Sun Java  JRE)  without the deserialize testcase breaking the build. The new test class can be included with the Woden Junit test suite when perform regression testing separately to the Maven build.

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: John Kaputin
>             Fix For: M8
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin resolved WODEN-137.
--------------------------------

    Resolution: Fixed

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: Dan Harvey
>             Fix For: M8
>
>         Attachments: AllWodenTests.java.patch, patch-item-137.txt, pom.xml.patch
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin updated WODEN-137:
-------------------------------

    Attachment: pom.xml.patch
                AllWodenTests.java.patch

Added a couple more patches - AllWodenTest changed to include the new QNameDeserializeTest class and pom.xml changed to exclude QNameDeserializeTest instead of QNameTest.

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: Dan Harvey
>             Fix For: M8
>
>         Attachments: AllWodenTests.java.patch, patch-item-137.txt, pom.xml.patch
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517976 ] 

John Kaputin commented on WODEN-137:
------------------------------------

r563181
pom.xml

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: Dan Harvey
>             Fix For: M8
>
>         Attachments: AllWodenTests.java.patch, patch-item-137.txt, pom.xml.patch
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin updated WODEN-137:
-------------------------------

    Attachment: patch-item-137.txt

Thanks to Dan Harvey for contributing a fix in file patch-item-137.txt

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: John Kaputin
>             Fix For: M8
>
>         Attachments: patch-item-137.txt
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin reassigned WODEN-137:
----------------------------------

    Assignee: John Kaputin

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: John Kaputin
>             Fix For: M8
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WODEN-137) QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WODEN-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517974 ] 

John Kaputin commented on WODEN-137:
------------------------------------

r563179
Update:
QNameTest.java
QNameDeserializeTest.java
AllWodenTests.java

> QNameTest.testGoodDeserializeQNameWithoutPrefix fails for Sun 1.5.0_07->_11 JREs
> --------------------------------------------------------------------------------
>
>                 Key: WODEN-137
>                 URL: https://issues.apache.org/jira/browse/WODEN-137
>             Project: Woden
>          Issue Type: Bug
>    Affects Versions: M7
>         Environment: Sun 1.5.0_07, 1.5.0_09 JRE or 1.5.0_11 JRE.
>            Reporter: Jeremy Hughes
>            Assignee: Dan Harvey
>             Fix For: M8
>
>         Attachments: AllWodenTests.java.patch, patch-item-137.txt, pom.xml.patch
>
>
> A v1.0 QName serialized object when deserialized into the QName implementation in the Sun JRE results in a QName with a null 'prefix' value. According to the javadoc for QName this shouldn't be allowed. This is a bug with the Sun JRE, just reporting it here to track the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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