[
https://issues.apache.org/jira/browse/CXF-7629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348839#comment-16348839
]
Carlos Sierra commented on CXF-7629:
------------------------------------
Looks like the logic in
org.apache.cxf.jaxrs.provider.ProviderFactory#setCommonProviders does not check
for the registered contracts but for the implemented interfaces. Could that be
the issue?
> When registering a provider that implements MessageBodyReader and
> MessageBodyWriter interfaces through a Feature CXF ignores the interfaces in
> the contract and registers them all
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CXF-7629
> URL: https://issues.apache.org/jira/browse/CXF-7629
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.2.2
> Reporter: Carlos Sierra
> Priority: Major
>
> when using
>
> {code:java}
> javax.ws.rs.core.Configurable#register(java.lang.Object,
> MessageBodyReader.class)
> {code}
> to register a provider that implements both MessageBodyReader and
> MessageBodyWriter, CXF ignores the specified contract and registers the
> provider for both MessageBodyReader and MessageBodyWriter, instead of only
> for MessageBodyReader.class.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)