[cdi-dev] [JBoss JIRA] (CDI-281) ObserverMethod.notify() breaks backwards compatibility

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Wed Oct 24 05:55:01 EDT 2012

Jozef Hartinger created CDI-281:

             Summary: ObserverMethod.notify() breaks backwards compatibility
                 Key: CDI-281
                 URL: https://issues.jboss.org/browse/CDI-281
             Project: CDI Specification Issues
          Issue Type: Bug
          Components: Events
    Affects Versions: 1.1.EDR
            Reporter: Jozef Hartinger
            Assignee: Jozef Hartinger
             Fix For: 1.1 (Proposed)

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);


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the cdi-dev mailing list