[jboss-jira] [JBoss JIRA] (WFLY-10076) Add a more verbose description on the IllegalStateException fix on WFLY-9821

Martin Kouba (JIRA) issues at jboss.org
Thu Mar 22 10:17:01 EDT 2018


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

Martin Kouba updated WFLY-10076:
--------------------------------
    Component/s: CDI / Weld


> Add a more verbose description on the IllegalStateException fix on WFLY-9821
> ----------------------------------------------------------------------------
>
>                 Key: WFLY-10076
>                 URL: https://issues.jboss.org/browse/WFLY-10076
>             Project: WildFly
>          Issue Type: Bug
>          Components: CDI / Weld
>            Reporter: Viral Gohel
>
> Parent issue: https://issues.jboss.org/browse/WFLY-9821
> We throw an IlegalStateException, when an attempt is made to call the CDI container before the container is actually started with the use of CDI.current().
> Although the fix clearly states its not the correct way to set the state, we throw an Exception. The deployments succeed, but a non-expert CDI user might not expect an exception, and probably it would leave them confused on what is wrong, unless they understand what they have done in their own application code. 
> My thought and wish was, if we can add some log.WARN message in the condition describing why this happens, would be nice! It provides you with hints on what is NOT to be done in your application code. 



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list