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

@Description on class level not "inherited"

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.3
    • Fix Version/s: 2.6
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      This is really a minor one: if you define a resource via interface

      @Description(title = "My resource")
      interface AResource {
      
      
      @GET
      @Description(title = "bar")
      Response foo();
      
      }

      and then implement it:

      class ResourceImpl implements AResource{
      
      @PathParam("id")
      protected int id;
      
      @Context
      private HttpHeaders httpHeaders;
      	
      @Context
      protected UriInfo uriInfo;
      
      public Response foo(){
       return Response.ok().build();
      }
      
      }

      Then the generated WADL document will contain the method description ("bar") but not the resource level description ("My resource").

      Workaround: annotate concrete implementation classes - this is of course rather tedious.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              jboch Jakub BocheĊ„ski

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment