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

Bad handling of JAX-RS generic interfaces

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown
    • Flags:
      Patch

      Description

      Here is a simple example of the code which does not work as intended:

      interface GenericInterface<A> {
          @GET
          List<A> list();
      }
      
      interface ServiceInterface extends GenericInterface<String> {}
      
      public static class TestService implements ServiceInterface {
          @Override
          public List<String> list() {
              return new ArrayList<>();
          }
      }
      

      I have found that the shape of InjectionUtils is pretty bad, so please accept this patch slightly improving the situation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                lightoze Vladimir Kulev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: