incubator-wink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WINK-229) JAXBXmlProvider should tolerate user jaxb contexts
Date Tue, 10 Nov 2009 12:32:28 GMT

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

Hudson commented on WINK-229:
-----------------------------

Integrated in Wink-Trunk-JDK1.5-itests #15 (See [http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5-itests/15/])
    : tolerate XmlRootElement in JAXB objects, but JAXBContext created with package string,
causing it to use xjc-generated ObjectFactory


> JAXBXmlProvider should tolerate user jaxb contexts
> --------------------------------------------------
>
>                 Key: WINK-229
>                 URL: https://issues.apache.org/jira/browse/WINK-229
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 1.1
>            Reporter: Mike Rheinheimer
>             Fix For: 1.1
>
>         Attachments: WINK-229.patch, WINK-229_2.patch
>
>
> Ran into a sample that had an extra creator method in the ObjectFactory that returned
a JAXBElement.  When this method exists, and the jaxbcontext is created using the String signature
in a user's JAXB context resolver, the unmarshaller will call the ObjectFactory method that
returns the JAXBElement, and thus the provider will return a JAXBElement, which may not be
the desired object for the resource -- this would result in an IllegalArgumentException: argument
type mismatch when calling the resource method.
> See patch, with test.  It'll make sense.
> Also, we don't have a good set of tests for the JAXBXmlProvider.  The one included here
in the patch is a good one to use for additional JAXB tests.

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


Mime
View raw message