[weld-issues] [JBoss JIRA] Closed: (WELDRAD-25) The project created from the weld-jsf-jee archetype contains a qualifier type with @Target({FIELD, METHOD, PARAMETER})
Dan Allen (JIRA)
jira-events at lists.jboss.org
Fri Feb 4 01:09:39 EST 2011
[ https://issues.jboss.org/browse/WELDRAD-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Allen closed WELDRAD-25.
----------------------------
> The project created from the weld-jsf-jee archetype contains a qualifier type with @Target({FIELD, METHOD, PARAMETER})
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: WELDRAD-25
> URL: https://issues.jboss.org/browse/WELDRAD-25
> Project: Weld Archetypes
> Issue Type: Bug
> Components: javaee6-webapp
> Reporter: Alexey Kazakov
> Assignee: Dan Allen
> Fix For: javaee6-webapp-1.0.1.Beta2
>
>
> There is
> @Qualifier
> @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
> @Retention(RetentionPolicy.RUNTIME)
> public @interface WidgetRepository {}
> But JSR-299 describes a qualifier type as:
> 2.3.2. Defining new qualifier types
> A qualifier type is a Java annotation defined as @Target({METHOD, FIELD, PARAMETER, TYPE}) and @Retention(RUNTIME).
> ...
> 10.1. Event types and qualifier types
> ...
> An event qualifier type is just an ordinary qualifier type as specified in Section 2.3.2, "Defining new qualifier types" with the exception that it may be declared @Target({FIELD, PARAMETER}).
> ...
> Though the spec doesn't require to treat such annotations (like @Target({FIELD, METHOD, PARAMETER})) as definition errors JBoss Tools mark them as errors.
> Please see https://jira.jboss.org/browse/JBIDE-7710 for details.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list