[jbosstools-issues] [JBoss JIRA] (JBIDE-10330) CDI model doesn't load beans from indirectly dependent projects

Viacheslav Kabanovich (Commented) (JIRA) jira-events at lists.jboss.org
Tue Dec 13 18:11:09 EST 2011


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

Viacheslav Kabanovich commented on JBIDE-10330:
-----------------------------------------------

There is one more case that involves validation.

EXECUTE: Create all objects listed in the description.
EXECUTE: Close all editors and restart Eclipse.
EXECUTE: Open a Java source file in Project3.
EXECUTE: Add field to it {code}String f = "#{bean1.xxxxx}";{code} and save. Important note: Do not use content assist!
FAILURE: Reference 'xxxxx' is not marked as an error.
ASSERT: Reference 'xxxxx' is marked as an error.

Solution to this problem is to request for loading of all related CDI projects at validation and perform loading without invoking Eclipse build framework.
                
> CDI model doesn't load beans from indirectly dependent projects
> ---------------------------------------------------------------
>
>                 Key: JBIDE-10330
>                 URL: https://issues.jboss.org/browse/JBIDE-10330
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI
>    Affects Versions: 3.3.0.M5
>            Reporter: Alexey Kazakov
>            Assignee: Alexey Kazakov
>             Fix For: 3.3.0.Beta1
>
>
> EXECUTE: Create three CDI projects:
> Project1
> Project2 (depends on/exports Project1)
> Project3 (depends on Project2)
> EXECUTE: Create a @Named bean in Project1: @Named("bean1").
> EXECUTE: Create a @Named bean in Project2: @Named("bean2").
> EXECUTE: Create a @Named bean in Project3: @Named("bean3").
> EXECUTE: Perform full build for all the projects.
> EXECUTE: Try Ctrl+Space in a EL like #{bean|} in any page of Project1.
> ASSERT: There is the only bean "bean1" available. It's good.
> EXECUTE: Try Ctrl+Space in a EL like #{bean|} in any page of Project2.
> ASSERT: There are bean "bean1" and "bean2" available. It's good too.
> EXECUTE: Try Ctrl+Space in a EL like #{bean|} in any page of Project3.
> ASSERT: There are bean "bean1" and "bean2" and "bean3" available. Everything is fine so far.
> EXECUTE: Restart your Eclipse.
> EXECUTE: Try Ctrl+Space in a EL like #{bean|} in any page of Project3.
> {color:red}FAILURE: There is the only bean "bean3" available! It's a bug.{color}
> EXECUTE: Try Ctrl+Space in a EL like #{bean|} in any page of Project2.
> ASSERT: There are bean "bean1" and "bean2" available. Ok.
> EXECUTE: Try Ctrl+Space in a EL like #{bean|} in any page of Project3.
> ASSERT: There are bean "bean1" and "bean2" and "bean3" available again. So it's working now!

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