Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-231

Clarify if Alternatives are filtered in BeanManager#getBeans() or #resolve()

    XMLWordPrintable

    Details

    • Type: Clarification
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0, 1.1.EDR
    • Fix Version/s: 1.1.PRD
    • Component/s: Resolution
    • Labels:
      None

      Description

      The spec and javadoc are not really clear if the @Alternative filter defined in "5.2.1. Unsatisfied and ambiguous dependencies" is already performed in BeanManager#getBeans() or only later in BeanManager#resolve().

      Back in 2009 I did a blind test with an old Weld version which only returned @Alternatives in getBeans() and all other beans got filtered out. This seems to have changed now (since quite some time).

      Can we make this more clear what should happen in getBeans() and what should happen in resolve()?

        Attachments

          Activity

            People

            Assignee:
            pmuiratbleepbleep Pete Muir
            Reporter:
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: