You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Laurent Domenech (JIRA)" <xm...@xml.apache.org> on 2006/08/25 01:39:50 UTC
[jira] Created: (XMLBEANS-286)
XmlObject.copy().getDomNode().getOwnerDocument() throws ClassCastException
for simple types and complex types.
XmlObject.copy().getDomNode().getOwnerDocument() throws ClassCastException for simple types and complex types.
--------------------------------------------------------------------------------------------------------------
Key: XMLBEANS-286
URL: http://issues.apache.org/jira/browse/XMLBEANS-286
Project: XMLBeans
Issue Type: Bug
Components: DOM
Affects Versions: Version 2.2
Environment: Windows XP Pro SP2, Mac OSX 10.4
Java 1.5.0_06
Reporter: Laurent Domenech
The following code fails:
--------------------------------------------------------------------------------
XmlString string = XmlString.Factory.newInstance();
string.setStringValue("test");
string.copy().getDomNode().getOwnerDocument();
--------------------------------------------------------------------------------
With the exception:
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Exception in thread "main" java.lang.ClassCastException: org.apache.xmlbeans.impl.store.Xobj$DocumentFragXobj
at org.apache.xmlbeans.impl.store.DomImpl._node_getOwnerDocument(DomImpl.java:1180)
at org.apache.xmlbeans.impl.store.Xobj$NodeXobj.getOwnerDocument(Xobj.java:2568)
----------------------------------------------------------------------------------------------------------------------------------------------------------------
I can trace it to the org.apache.xmlbeans.impl.store.Cur class in the createDomDocumentRootXobj method where l._ownerDoc is set even is a fragment was created which is not appropriate.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Assigned: (XMLBEANS-286)
XmlObject.copy().getDomNode().getOwnerDocument() throws ClassCastException
for simple types and complex types.
Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wing Yew Poon reassigned XMLBEANS-286:
--------------------------------------
Assignee: Cezar Andrei
> XmlObject.copy().getDomNode().getOwnerDocument() throws ClassCastException for simple types and complex types.
> --------------------------------------------------------------------------------------------------------------
>
> Key: XMLBEANS-286
> URL: https://issues.apache.org/jira/browse/XMLBEANS-286
> Project: XMLBeans
> Issue Type: Bug
> Components: DOM
> Affects Versions: Version 2.2
> Environment: Windows XP Pro SP2, Mac OSX 10.4
> Java 1.5.0_06
> Reporter: Laurent Domenech
> Assignee: Cezar Andrei
>
> The following code fails:
> --------------------------------------------------------------------------------
> XmlString string = XmlString.Factory.newInstance();
> string.setStringValue("test");
> string.copy().getDomNode().getOwnerDocument();
> --------------------------------------------------------------------------------
> With the exception:
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> Exception in thread "main" java.lang.ClassCastException: org.apache.xmlbeans.impl.store.Xobj$DocumentFragXobj
> at org.apache.xmlbeans.impl.store.DomImpl._node_getOwnerDocument(DomImpl.java:1180)
> at org.apache.xmlbeans.impl.store.Xobj$NodeXobj.getOwnerDocument(Xobj.java:2568)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> I can trace it to the org.apache.xmlbeans.impl.store.Cur class in the createDomDocumentRootXobj method where l._ownerDoc is set even is a fragment was created which is not appropriate.
--
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org