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

SE Weld.getInstanceByType() ignores bindings argument

    Details

      Description

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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                luksa Marko Luksa
                Reporter:
                starksm64 Scott Stark
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: