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

Ron Šmeral (JIRA) jira-events at lists.jboss.org
Thu Sep 12 11:26:03 EDT 2013


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

Ron Šmeral updated WFLY-2054:
-----------------------------

    Attachment: cdi-ext-missing-dependency-reproducer.jar


The attached reproducer shows the first case. For the second, see the reproducer in https://bugzilla.redhat.com/show_bug.cgi?id=961470.
                
> 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
>            Reporter: Ron Šmeral
>            Assignee: Stuart Douglas
>         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