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/08/27 04:02:59 UTC
[jira] Commented: (WINK-153) Jackson calls getContextResolver(type,
null)
[ https://issues.apache.org/jira/browse/WINK-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748232#action_12748232 ]
Bryant Luk commented on WINK-153:
---------------------------------
I wanted to open this issue in case there's any feedback before making the change.
> 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
> 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.