[ 
https://issues.apache.org/jira/browse/WINK-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849177#action_12849177
 ] 

Kaloyan Kolev commented on WINK-219:
------------------------------------

To try to make it more clearer I would also expect this to translate to 
something like:

{code}
AddInts addInts = new AddInts();

        JAXBContext context = JAXBContext.newInstance(AddInts.class, 
AddNumbers.class); \
        // or just JAXBContext context = 
JAXBContext.newInstance(AddNumbers.class);
        // not sure which of them is supposed to work.

        Marshaller marshaller = context.createMarshaller();
        Writer writer = new StringWriter();

        // here you might also need to wrap it in JAXBElement to specify that 
the instance should 
        // be serialized as AddNumbers
        marshaller.marshal(addInts, writer);
{code}


> 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.

Reply via email to