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

Usage of repeatable qualifiers contradicts several statements in the spec

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0 .Final
    • Component/s: None
    • Labels:
      None

      Description

      Using repeatable qualifier is in contradiction with 11.3.12. Observer method resolution:

      If two instances of the same qualifier type are given, an IllegalArgumentException is thrown.

      5.6.1. The Instance interface:

      If two instances of the same qualifier type are passed to select(), an IllegalArgumentException is thrown.

      10.2.3. The Event interface

      If two instances of the same qualifier type are passed to select(), an llegalArgumentException is thrown.

      11.3.6. Obtaining a Bean by type

      If two instances of the same qualifier type are given, an IllegalArgumentException is thrown.

      11.3.13. Decorator resolution

      If two instances of the same qualifier type are given, an IllegalArgumentException is thrown.

      11.3.14. Interceptor resolution

      If two instances of the same interceptor binding type are given, an IllegalArgumentException is thrown.

      Should we remove this statement or make it more explicit by saying that this is true only for non-repeatable qualifiers/annotations?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tremes Tomas Remes
                Reporter:
                tremes Tomas Remes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: