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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • 5.0.0.SP1
    • 5.0.0.SP2
    • Extensions
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: