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

Bad handling of JAX-RS generic interfaces

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment