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.

Reply via email to