[jbosstools-issues] [JBoss JIRA] Resolved: (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
Thu Aug 4 17:51:33 EDT 2011


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

Alexey Kazakov resolved JBIDE-9453.
-----------------------------------

      Assignee: Viacheslav Kabanovich  (was: Alexey Kazakov)
    Resolution: Done


Fixed.

> 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