[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wink-dev
Subject:    [jira] Commented: (WINK-153) Jackson calls getContextResolver(type, null)
From:       "Hudson (JIRA)" <jira () apache ! org>
Date:       2009-08-27 16:36:59
Message-ID: 1898435490.1251391019710.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/WINK-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748434#action_12748434 \
] 

Hudson commented on WINK-153:
-----------------------------

Integrated in Wink-Trunk-JDK1.5 #120 (See \
[http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/120/])  Allow null as \
MediaType in ContextResolver

[See ]


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic