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

SE Weld.getInstanceByType() ignores bindings argument

XMLWordPrintable

      In testing the SE Weld bootstrap I came across the protected Weld.getInstanceByType(BeanManager manager, Class<T> type, Annotation... bindings) in the org.jboss.weld.environment.se.Weld class. This method fails to pass the bindings argument onto the BeanManager.getBeans call:

      final Bean<?> bean = manager.resolve(manager.getBeans(type));

      this should be:

      final Bean<?> bean = manager.resolve(manager.getBeans(type, bindings));

              marko.luksa@gmail.com Marko Luksa (Inactive)
              starksm64 Scott Stark (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: