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));
|