Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9484

CDI beans created by extensions are not loaded by child projects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M3
    • 3.3.0.M3
    • cdi-extensions
    • None
    • Hide

      EXECUTE: Import the following projects as existing projects:
      https://svn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/Seam3DependentPersistenceTest
      https://svn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/Seam3PersistenceTest
      EXECUTE: Build the projects.
      EXECUTE: Open /Seam3PersistenceTest/src/test/EntityManagerTest.java
      ASSERT: There is no ambiguous dependency for the following injection point:

      	@Inject
      	@MyQualifier 
      	EntityManager manager;
      

      EXECUTE: Ctrl+Click on the injection
      ASSERT: It opens EntityManagerTest.managerFactory
      EXECUTE: Open /Seam3DependentPersistenceTest/src/test/EntityManager2Test.java

      ASSERT: There is no ambiguous dependency for the following injection point:

      	@Inject
      	@MyQualifier 
      	EntityManager manager;
      

      EXECUTE: Ctrl+Click on the injection
      ASSERT: It opens EntityManagerTest.managerFactory

      Show
      EXECUTE: Import the following projects as existing projects: https://svn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/Seam3DependentPersistenceTest https://svn.jboss.org/repos/jbosstools/trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/Seam3PersistenceTest EXECUTE: Build the projects. EXECUTE: Open /Seam3PersistenceTest/src/test/EntityManagerTest.java ASSERT: There is no ambiguous dependency for the following injection point: @Inject @MyQualifier EntityManager manager; EXECUTE: Ctrl+Click on the injection ASSERT: It opens EntityManagerTest.managerFactory EXECUTE: Open /Seam3DependentPersistenceTest/src/test/EntityManager2Test.java ASSERT: There is no ambiguous dependency for the following injection point: @Inject @MyQualifier EntityManager manager; EXECUTE: Ctrl+Click on the injection ASSERT: It opens EntityManagerTest.managerFactory

      Suppose we have two projects: A and B. A is included in B's class path.
      If some CDI extensions dynamically creates beans for project A then those beans are not available for project B. This is a bug.

              scabanovich Viacheslav Kabanovich (Inactive)
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: