Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1102

ProcessInjectionPoint observer is resolved for declared injection points with parent class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2
    • 1.6.3
    • Lifecycle
    • None

    Description

      In the following test case:

      class A {}
      
      class B extends A {}
      
      class Bean {
          @Inject A a;
      }
      
      public class TestExtension implements Extension {
      
          void test(@Observes ProcessInjectionPoint<?, B> pip) {
          }
      }
      
      @RunWith(Arquillian.class)
      public class OwbTest {
      
          @Deployment
          public static Archive<?> deployment() {
              return ShrinkWrap.create(JavaArchive.class)
                  .addClasses(A.class, B.class, Bean.class)
                  .addAsServiceProvider(Extension.class, TestExtension.class)
                  .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
          }
      
          @Test
          public void test() {
          }
      }
      

      The lifecycle observer method is called.

      I cannot find a valid reason from the specification that would explain that behaviour.

      Attachments

        Activity

          People

            struberg Mark Struberg
            antonin.stefanutti Antonin Stefanutti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: