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

Bad handling of JAX-RS generic interfaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.0.6, 3.1.2
    • JAX-RS
    • None
    • Unknown
    • 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

        1. InjectionUtils.patch
          6 kB
          Vladimir Kulev

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: