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

It's not possible to use CDI.current().select() for beans with custom qualifiers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0.Beta1
    • 2.0.0.Alpha3
    • None
    • None

    Description

      E.g.:

      @Bar
      class Foo {
      }
      
      class Locator {
       Foo lookupFoo() {
        return CDI.current().select(Foo.class, BarLiteral.INSTANCE).get();
       }
      }
      

      The lookupFoo() method results in UnsatisfiedResolutionException because of the underlying Instance has three qualifiers: @Default, @Any, @Bar.

      See also org.jboss.weld.manager.BeanManagerImpl.InstanceInjectionPoint.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: