[
https://issues.apache.org/jira/browse/WINK-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849041#action_12849041
]
Mike Rheinheimer commented on WINK-219:
---------------------------------------
Thanks Bryant. So, I added a resource method that does as you describe, but
with AddInts still annotated with @XmlRootElement. This worked. So refactored
AddInts to be called AddIntsAnnotated and added another type called
AddIntsNotAnnotated and ran the same test.
I temporarily changed JAXBXmlProvider.isWriteable to allow AddIntsNotAnnotated
and changed the AbstractJAXBProvider.getDefaultContext to take both the type
and genericType so they would *both* be included in the JAXBContext instance.
I *still* get the same exception I reported above.
I'm thinking this is not supportable. The net of my testing so far shows that
the Object passed down to the AbstractJAXBProvider.writeTo is
AddIntsNotAnnotated, to which we cannot unmarshal due to JAXB requiring the
@XmlRootElement annotation on that class. The class is already in the
JAXBContext in my prototype, so it's certainly not a matter of it being missed
during JAXBContext instance creation.
Maybe I need some clarification on the expectations. Please see the attached
revised test. I have not included the prototype fix; the description above
captures what I did.
> JAXBXmlProvider should be able to handle inherited types, since JAXB is able
> to handle them
> -------------------------------------------------------------------------------------------
>
> Key: WINK-219
> URL: https://issues.apache.org/jira/browse/WINK-219
> Project: Wink
> Issue Type: Bug
> Components: Common
> Affects Versions: 1.0
> Reporter: Kaloyan Kolev
> Assignee: Mike Rheinheimer
> Priority: Minor
> Attachments: WINK-219.patch, WINK-219_2.patch
>
>
> Here is the issue which led to opening this one:
> https://issues.apache.org/jira/browse/WINK-218
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.