The project created from the weld-jsf-jee archetype contains a qualifier type with
@Target({FIELD, METHOD, PARAMETER})
----------------------------------------------------------------------------------------------------------------------
Key: WELDRAD-25
URL:
https://jira.jboss.org/browse/WELDRAD-25
Project: Weld Archetypes
Issue Type: Bug
Affects Versions: 1.0.0.Beta1
Reporter: Alexey Kazakov
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