5 Replies Latest reply on Nov 11, 2015 2:53 AM by Martin Kouba

    Exceptions during @PostConstruct are quietly ignored, but lead to failures later

    lstreepy Newbie

      I am seeing a problem with Weld 3.0.0 Alpha10 where if a runtime exception is thrown from within an @PostConstruct method on an @ApplicationScope bean, the exception is never reported and the bean instance fails to be added to the Application context.  This leads to strange behavior later (w.r.t. event delivery since a new, second, instance is created in order to deliver the event).


      Is this expected behavior?  I would think not and the Weld core should report the exception (which it obviously caught in some manner).