Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-297

@Context does not inject ServletContext in super class

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • None
    • 1.1.GA
    • jaxrs
    • None

    Description

      I have a resource class with the following instance variable in its base class. It is never injected.

      @Context ServletContext context;

      The 1.0 specification section 3.6 states that JAX-RS annotations should be "inherited" (only class annotations are inherited in Java and then only if marked as inheritable). Presumably that means the super classes and interfaces will be introspected for JAX-RS annos.

      We unit test via the RESTEasy proxy so "inheriting" the annos on the interface would save us some typing and maintenance effort.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            treespace_jira treespace (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: