[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-9453) CDI validator should mark a bean with duplicated EL name if @Named declared in the stereotype

Jaroslav Jankovič (JIRA) jira-events at lists.jboss.org
Tue Aug 9 05:11:24 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jaroslav Jankovič closed JBIDE-9453.
------------------------------------



verified on JBoss Developer Studio 5.0.0.v201108060131N-H712-M3

> 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: Viacheslav Kabanovich
>             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