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

Interceptor bindings defined at method level should override those at the class level

    Details

      Description

      Gavin said:

      "We certainly intended for method-level interceptor bindings to override bindings declared at the class level, but whether we actually wrote that down is another story. It certainly doesn't look like that behavior is properly defined in the latest version of the spec."

      In section 9.5.2 of the spec:

      If the set of interceptor bindings of a bean or interceptor, including bindings inherited from stereotypes and other interceptor bindings, has two instances of a certain interceptor binding type and the instances have different values of some annotation member, the container automatically detects the problem and treats it as a definition error.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  marius.bogoevici Marius Bogoevici
                  Reporter:
                  pmuir Pete Muir
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: