Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2721

AfterBeanDiscovery doesn't correctly guard against invocation outside of observer notification

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.SP2
    • 5.0.0.SP1
    • Extensions
    • 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.

            manovotn Matěj Novotný
            manovotn Matěj Novotný
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: