[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-8325) Injection point should be re-validated automatically if any bean with the same bean type created.

Lukas Jungmann (JIRA) jira-events at lists.jboss.org
Thu Jun 23 03:18:23 EDT 2011


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

Lukas Jungmann closed JBIDE-8325.
---------------------------------



v. in M2

> Injection point should be re-validated automatically if any bean with the same bean type created.
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-8325
>                 URL: https://issues.jboss.org/browse/JBIDE-8325
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi (jsr-299)
>    Affects Versions: 3.2.0.CR1
>            Reporter: Alexey Kazakov
>            Assignee: Alexey Kazakov
>             Fix For: 3.3.0.M1
>
>
> 1. Create ITestBean interface.
> 2. Create public class TestBeanImpl implements ITestBean {...}
> 3. Add @Inject ITestBean foo; field to any bean but TestBeanImpl.
> 4. Validate the project. @Inject ITestBean foo; is valid since there is the only bean TestBeanImpl to be injected.
> 5. Create public class TestBeanImpl2 implements ITestBean {...}. Save the file, build the project (using the incremental builder).
> 6. @Inject ITestBean foo; is not valid anymore because there are two beans TestBeanImpl and TestBeanImpl2 to be injected. But CDI validator doesn't re-validate @Inject ITestBean foo; We have to change/validate the file with the injection to re-validate it and have a marker on this invalid injection.
> Slava, let's add
> IInjectionPoint getInjections(String fullyQuilifeidTypeName);
> method to IBeanManager interface and its implementation. Then assign the issue to me and I will fix this bug in CDI validator.

--
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