[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:40:03 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803953#comment-12803953 ] 

Ron Šmeral commented on WFLY-2054:
----------------------------------

I tried it on current WF master.
I linked the issue because the reproducer in bz961470 shows the second case. Also in bz961470, the WildFly PR which fixed the second case is linked.
                
> 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