[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-9453) CDI validator should mark a bean with duplicated EL name if @Named declared in the stereotype
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Wed Aug 3 21:31:06 EDT 2011
CDI validator should mark a bean with duplicated EL name if @Named declared in the stereotype
---------------------------------------------------------------------------------------------
Key: JBIDE-9453
URL: https://issues.jboss.org/browse/JBIDE-9453
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi
Affects Versions: 3.3.0.M3
Reporter: Alexey Kazakov
Assignee: Alexey Kazakov
Fix For: 3.3.0.M3
EXECUTE: Create a CDI project
EXECUTE: Add the following code to the project:
{code}
@Stereotype
@Named
@Target({ TYPE, METHOD, FIELD })
@Retention(RUNTIME)
@Documented
public @interface TestS {
}
{code}
{code}
import javax.enterprise.inject.Produces;
import javax.inject.Named;
public class MyBean {
@Produces @Named // Duplicate EL name
public String foo4() {return "";}
@Produces @TestS // Duplicate EL name
public String foo4;
}
{code}
ASSERT: See comments in MyBean.java. There should be a problem marker on annotation @TestS of field foo4 in MyBean.java instead of annotation @Named in TestS.java.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list