[jbosstools-issues] [JBoss JIRA] (JBIDE-9801) CDI Searcher doesn't look for beans in dependent projects

Jaroslav Jankovič (Commented) (JIRA) jira-events at lists.jboss.org
Mon Dec 12 10:02:09 EST 2011


    [ https://issues.jboss.org/browse/JBIDE-9801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650033#comment-12650033 ] 

Jaroslav Jankovič commented on JBIDE-9801:
------------------------------------------

Only way I can get the expected injection point found is select some name in TestBean ("TestBean", "foo", "@Named"). Press Ctrl-Shift-G. Open CDIBeanTest, select class name, press Ctrl-Shift-G. After these steps, expected injection point is found. Or am I something missing?
                
> CDI Searcher doesn't look for beans in dependent projects
> ---------------------------------------------------------
>
>                 Key: JBIDE-9801
>                 URL: https://issues.jboss.org/browse/JBIDE-9801
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI
>    Affects Versions: 3.3.0.M4
>            Reporter: Alexey Kazakov
>            Assignee: Daniel Azarov
>             Fix For: 3.3.0.M5
>
>
> EXECUTE: Create two CDI projects: ProjectA and ProjectB. ProjectB depends on ProjectA.
> EXECUTE: Create a bean in ProjectA:
> {code}
> @Named("cdiBean")
> public class CDIBeanTest {
> }
> {code}
> EXECUTE: Create another bean in ProjectB:
> {code}
> public class TestBean {
>     @Inject @Named("cdiBean") Object foo;
> }
> {code}
> EXECUTE: Select CDIBeanTest class name in CDIBeanTest.java and press Ctrl+Shift+G
> ASSERT: TestBean.foo should be found as an injection point which gets the wanted bean. Now it's working only if you have both beans in the same project.

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