You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Julian Sedding (JIRA)" <ji...@apache.org> on 2013/05/13 16:03:16 UTC
[jira] [Updated] (FELIX-4063) Avoid warnings when using
@SlingServlet and @SlingFilter annotations
[ https://issues.apache.org/jira/browse/FELIX-4063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Sedding updated FELIX-4063:
----------------------------------
Attachment: FELIX-4063.patch
The attached patch makes properties private only if metatype = true. This avoids warnings to be generated.
> Avoid warnings when using @SlingServlet and @SlingFilter annotations
> --------------------------------------------------------------------
>
> Key: FELIX-4063
> URL: https://issues.apache.org/jira/browse/FELIX-4063
> Project: Felix
> Issue Type: Bug
> Components: Maven SCR Plugin
> Affects Versions: scr annotations 1.9.2
> Reporter: Julian Sedding
> Priority: Minor
> Attachments: FELIX-4063.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira