Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4063

Avoid warnings when using @SlingServlet and @SlingFilter annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • scr annotations 1.9.2
    • scr annotations 1.9.4
    • SCR Tooling
    • None

    Description

      FELIX-4033 introduced build-time warning messages for private properties defined for components with metatype = false.

      The @SlingServlet and @SlingFilter annotations set several properties to be private, thus causing warnings like the following to be reported if metatype = false (the default value).

      [WARNING] /path/TheServlet.java [0:0]: Property sling.servlet.methods in class TheServlet is set as private. This is redundant as no metatype will be generated.

      Attachments

        1. FELIX-4063.patch
          5 kB
          Julian Sedding

        Activity

          People

            cziegeler Carsten Ziegeler
            jsedding Julian Sedding
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: