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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Injection and Lookup
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: