David Blevins created CXF-8531:
----------------------------------
Summary: 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
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)