[jboss-jira] [JBoss JIRA] (JBRULES-3541) FactHandle has marshalling problems with JAXB
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Wed Jun 13 03:20:05 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700935#comment-12700935 ]
Mark Proctor commented on JBRULES-3541:
---------------------------------------
I had added and commited a unit test to illustrate what is going on. At the moment the test will fail as DefaultFactHandle has no setter. Addd the setter for this to work:
public void setExternalForm(String externalForm) {
createFromExternalFormat(externalForm);
}
> FactHandle has marshalling problems with JAXB
> ---------------------------------------------
>
> Key: JBRULES-3541
> URL: https://issues.jboss.org/browse/JBRULES-3541
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Mark Proctor
> Assignee: Mark Proctor
>
> There are two issues when serialising the FactHandle. The first is that there is no setExternalForm, on older JAXB this throws an exception, on newer one's it just doesn't set the field.
> The other issue is with XmlAdapter, when the FactHandle is nested. It seems JAXB is not picking up it has annotations and renders it as a generic xsi:type, which is ugly verbose. This may be a limitation of XmlAdapter and it's generics arguments.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list