-
Bug
-
Resolution: Done
-
Major
-
5.0.0.SP1
-
None
Recent change to AfterBeanDiscoveryImpl causes the code to throw NPE if you attempt to addBean() outside of observer notification.
This can be seen in TCK test ContainerLifeCycleEventRuntimeInvocationTest.
We need to correctly invoke checkWithinObserverNotification() before assuming we are inside lifecycle OM invocation.