You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2015/04/23 15:33:39 UTC

[jira] [Closed] (FELIX-3620) using @SlingServlet and @Service without generateService = false should produce an error

     [ https://issues.apache.org/jira/browse/FELIX-3620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed FELIX-3620.
-----------------------------------

> using @SlingServlet and @Service without generateService = false should produce an error
> ----------------------------------------------------------------------------------------
>
>                 Key: FELIX-3620
>                 URL: https://issues.apache.org/jira/browse/FELIX-3620
>             Project: Felix
>          Issue Type: Bug
>          Components: SCR Tooling
>    Affects Versions: maven-scr-plugin-1.7.4
>            Reporter: Justin Edelson
>            Priority: Minor
>
> If you annotate a class with
> @Component
> @SlingServlet(paths="/bin/foo")
> you get an error like this:
> Class <class> has more than one scr.component tag. Merge the tags to a single tag. at Java annotations in <class>:8
> Which is correct because you should add generateComponent = false to the @SlingServlet annotation.
> However, the same is not true with @Service and @SlingServlet.
> @Service
> @SlingServlet(paths="/bin/foo")
> should produce a similar error



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)