[ 
https://issues.apache.org/jira/browse/WINK-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757999#action_12757999
 ] 

Mike Rheinheimer commented on WINK-193:
---------------------------------------

To be compliant with C004, we need to know whether a given provider writer is 
user-defined or a system provider.  For example, if a user specifies a writer 
that handles Object, but we have a system writer that handles String, and the 
type is String, the user-defined Object writer should still be chosen over the 
String writer.

Since we can no longer simply rely on the order of the providers in the 
ProvidersRegistry as a priority list, we need some other mechanism, so you'll 
see a slight change to the way priority is defined and managed.

Honestly, I'm not a big fan of this mechanism, so consider this patch a 
suggestion for now, and committer, please review it and post your 
feedback/opinion.  Thanks..

The two tests that primarily drove these changes were
1)  
org.apache.wink.common.internal.registry.ProvidersRegistry11Test.testGenericTypeInheritanceSorting
  (from patch)
2)  
org.apache.wink.server.internal.providers.entity/MessageBodyWriterProviderCorrectParametersTest.testUserProviderOverBuiltIn



> JAX-RS 1.1 support:  C004
> -------------------------
>
>                 Key: WINK-193
>                 URL: https://issues.apache.org/jira/browse/WINK-193
>             Project: Wink
>          Issue Type: Improvement
>            Reporter: Mike Rheinheimer
>
> Need support for C004 at 
> http://jcp.org/aboutJava/communityprocess/maintenance/jsr311/311ChangeLog.html

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