Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-935

wrong result of javax.enterprise.inject.Instance in combination with alternatives

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.2.2
    • None
    • Injection and Lookup
    • None

    Description

      if the result of InjectionResolver#findByAlternatives is > 1 (for InstanceImpl#iterator) and there is one alternative-bean in the result, beans without alternative implementations aren't part of the result, because alternativeSet only contains alternative beans - see:

              if (containsAlternative)
              {
                  return alternativeSet;
              }
      
              return enableSet;
      

      Attachments

        1. OWB-935.zip
          13 kB
          Gerhard Petracek

        Activity

          People

            struberg Mark Struberg
            gpetracek Gerhard Petracek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: