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

Subresource operations do not see root resource Produces or Consumes annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6.9, 2.7.6, 3.0.0-milestone1
    • JAX-RS
    • None
    • Unknown

    Description

      If we have

      @Path("/root")
      @Produces("text/xml")
      public class Root {
        @Path("/sub")  
        public SubRoot getSubRoot() {
        } 
      }
      
      public class SubRoot {
      
        @GET
        public Order get() {
        }
      }
      

      then SubRoot.get() method will not inherit Root's @Produces

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: