[jboss-jira] [JBoss JIRA] (WFLY-2054) CDI portable extensions with missing dependencies in fields fail to deploy

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Mon Sep 16 07:31:04 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Hartinger reassigned WFLY-2054:
-------------------------------------

    Assignee: Martin Kouba  (was: Stuart Douglas)

    
> CDI portable extensions with missing dependencies in fields fail to deploy
> --------------------------------------------------------------------------
>
>                 Key: WFLY-2054
>                 URL: https://issues.jboss.org/browse/WFLY-2054
>             Project: WildFly
>          Issue Type: Bug
>          Components: CDI / Weld
>    Affects Versions: 8.0.0.Alpha4
>            Reporter: Ron Šmeral
>            Assignee: Martin Kouba
>         Attachments: cdi-ext-missing-dependency-reproducer.jar
>
>
> The following CDI extension *fails to deploy* if Foo is not on classpath:
> {code}
> public class BrokenExtension implements Extension {
>     private Foo foo;
> }
> {code}
> However, if the missing dependency is not a field but a parent class as in the following, the extension is disregarded by the container, but the archive *deploys successfully*:
> {code}
> public class BrokenExtension extends Foo implements Extension {
> }
> {code}
> It would be more consistent if the behaviour from the second case applied in both cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list