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

Mike Rheinheimer updated WINK-71:
---------------------------------

    Attachment: patch.txt

> getContextResolver search algorithm does not expand for text/*
> --------------------------------------------------------------
>
>                 Key: WINK-71
>                 URL: https://issues.apache.org/jira/browse/WINK-71
>             Project: Wink
>          Issue Type: Bug
>          Components: Common
>    Affects Versions: 0.1
>            Reporter: Mike Rheinheimer
>             Fix For: 0.1
>
>         Attachments: patch.txt
>
>
> I'm hoping this patch gets overwritten by WINK-47, but they are not related.  
> There is a definite existing bug in that when we have a provider:
>     @Provider
>     @Produces( "text/plain", "*/*" )
>     public static class StringContextResolver implements 
> ContextResolver<String> {
>         ...
> And search by:
>      ProvidersRegistry.getContextResolver(String.class, new MediaType("text", 
> "*"), null)
> We'll get null back.  The algorithm in 
> ProvidersRegistry.MediaTypeMap.getProvidersByMediaType(MediaType, Class<?>)  
> needs fixed.  Please see patch for test that demonstrates the problem, and 
> the fix.
> This Jira can be closed if WINK-47 is integrated prior to integrating the 
> attached patch.

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