Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10076

Add a more verbose description on the IllegalStateException fix on WFLY-9821

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 14.0.0.Beta2
    • None
    • CDI / Weld
    • None

      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.

              rhn-support-ivassile Ilia Vassilev
              rhn-support-vgohel Viral Gohel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: