Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8531

Provider class sorting requires rework

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.3
    • Fix Version/s: 3.5.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dblevins David Blevins
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: