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

It's not possible to lookup injectable reference for an InjectionPoint from inside a custom dependent bean's create() method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta4
    • 2.0.0.Beta2
    • None
    • None

      The problem occurs during validation of the created IP.

      BeanManagerImpl.validateInjectionPoint() invokes Validator.validateInjectionPointForDefinitionErrors() with null bean param and thus validation results in INJECTION_INTO_NON_BEAN.

      See also TCK test:
      org.jboss.cdi.tck.tests.extensions.afterBeanDiscovery.AfterBeanDiscoveryTest

              rhn-engineering-jharting Jozef Hartinger
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: