You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Bryant Luk (JIRA)" <ji...@apache.org> on 2009/09/14 00:51:57 UTC

[jira] Closed: (WINK-153) Jackson calls getContextResolver(type, null)

     [ https://issues.apache.org/jira/browse/WINK-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryant Luk closed WINK-153.
---------------------------


> Jackson calls getContextResolver(type, null)
> --------------------------------------------
>
>                 Key: WINK-153
>                 URL: https://issues.apache.org/jira/browse/WINK-153
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>            Reporter: Bryant Luk
>            Assignee: Bryant Luk
>             Fix For: 0.2
>
>
> Jackson ( http://jackson.codehaus.org/ ) calls Providers.getContextResolver(type, null).  I'm assuming that the code could just as easily be Providers.getContextResolver(type, MediaType.WILDCARD).
> The change is simple enough I think in ProvidersRegistry:
> {code}
>     @SuppressWarnings("unchecked")
>     public <T> ContextResolver<T> getContextResolver(final Class<T> contextType,
>                                                      MediaType mediaType,
>                                                      RuntimeContext runtimeContext) {
>         if (contextType == null) {
>             throw new NullPointerException("contextType");
>         }
>         if (mediaType == null) {
>             mediaType = MediaType.WILDCARD_TYPE;
> //            throw new NullPointerException("mediaType");
>         }
> {code}

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