[
https://issues.apache.org/jira/browse/CXF-8531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17334484#comment-17334484
]
David Blevins commented on CXF-8531:
------------------------------------
New sorting logic is done. Will submit a PR after a full TCK run and fixing of
any unseen issues.
> Provider class sorting requires rework
> --------------------------------------
>
> Key: CXF-8531
> URL: https://issues.apache.org/jira/browse/CXF-8531
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.4.3
> Reporter: David Blevins
> Priority: Major
> Fix For: 3.5.0
>
>
> The current code to sort MessageBodyReaders and MessageBodyWriters appears to
> have some issues:
> - It sorts in descending order, so the most generic types are at the top of
> the list and {{Foo implements MessageBodyReader<Object>}} wins over {{Bar
> implements MessageBodyReader<Color>}}
> - It grabs any generics it finds, even if they don't relate to the
> interface. If your provider implements several generic interfaces such as
> {{Foo implements MessageBodyReader<Object>, MessageBodyWriter<URI>}} you
> would not be guaranteed to have your sort in the {{messageReader}} or
> {{messageWriter}} list reflect your actual generic type for that specific
> interface.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)