You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Antonin Stefanutti (JIRA)" <ji...@apache.org> on 2016/02/17 15:32:18 UTC

[jira] [Commented] (OWB-1102) ProcessInjectionPoint observer is resolved for declared injection points with parent class

    [ https://issues.apache.org/jira/browse/OWB-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150568#comment-15150568 ] 

Antonin Stefanutti commented on OWB-1102:
-----------------------------------------

Thx!

> ProcessInjectionPoint observer is resolved for declared injection points with parent class
> ------------------------------------------------------------------------------------------
>
>                 Key: OWB-1102
>                 URL: https://issues.apache.org/jira/browse/OWB-1102
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Lifecycle
>    Affects Versions: 1.6.2
>            Reporter: Antonin Stefanutti
>            Assignee: Mark Struberg
>             Fix For: 1.6.3
>
>
> In the following test case:
> {code}
> 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() {
>     }
> }
> {code}
> The lifecycle observer method is called.
> I cannot find a valid reason from the specification that would explain that behaviour.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)