[jbosstools-issues] [JBoss JIRA] (JBIDE-9988) Legal types of default bean producer without @DefaultBean annotation should be restricted by its member type

Jaroslav Jankovič (Closed) (JIRA) jira-events at lists.jboss.org
Mon Dec 19 05:37:09 EST 2011


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

Jaroslav Jankovič closed JBIDE-9988.
------------------------------------



Verified in JBDS 5.0.0.v201112150534M-H62-M5. Closing JIRA.
                
> Legal types of default bean producer without @DefaultBean annotation should be restricted by its member type
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-9988
>                 URL: https://issues.jboss.org/browse/JBIDE-9988
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI extensions
>    Affects Versions: 3.3.0.M4
>            Reporter: Viacheslav Kabanovich
>            Assignee: Alexey Kazakov
>             Fix For: 3.3.0.M5
>
>
> EXECUTE: Create in a CDI solder project these three classes:
> {code}
> @DefaultBean(Test1.class)
> public class Test1 {
> 	
> 	@Inject
> 	TypeB b;
> 	@Inject
> 	TypeA a;
> 	
> 	@Produces
> 	TypeB pb;
> 	@Produces
> 	TypeA pa;
> }
> public class TypeA {
> 	TypeA(String s) {}
> }
> public class TypeB extends TypeA {
> 	TypeB(String s) {
> 		super(s);
> 	}
> }
> {code}
> ASSERT: Injection point 'a' is resolved to producer 'pa', and injection point 'b' is resolved to producer 'pb'.
> FAILURE: Injection point 'a' is resolved to the both producers 'pa' and 'pb', which can be seen by marker 'Multiple beans are eligible...' and in 'Assignable Beans' dialog

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list