[jbosstools-issues] [JBoss JIRA] (JBIDE-9988) Legal types of default bean producer without @DefaultBean annotation should be restricted by its member type
Viacheslav Kabanovich (Updated) (JIRA)
jira-events at lists.jboss.org
Thu Oct 20 19:52:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Viacheslav Kabanovich updated JBIDE-9988:
-----------------------------------------
Affects Version/s: (was: 3.3.0.M3)
> 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: Viacheslav Kabanovich
> Fix For: 3.3.0.Beta1
>
>
> 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