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

ObserverMethod.notify() breaks backwards compatibility

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 1.1.EDR
    • Fix Version/s: 1.1.PFD
    • Component/s: Events
    • Labels:
      None
    • Affects:
      Release Notes

      Description

      ObserverMethod.notify(T event, Set<Annotation> qualifiers) has been added post CDI 1.0 as part of CDI-36.

      The added method breaks backwards compatibility (an existing 1.0 Extension may be registering an ObserverMethod implementation that would not implement that method, since it is not part of the 1.0 API).

      We should probably isolate that method into a subinterface e.g.:

      public interface CuriousObserverMethod<T> extends ObservetMethod<T> {
      
         void notify(T event, Set<Annotation> qualifiers);
      
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  jharting Jozef Hartinger
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: