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

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Nov 16 11:44:21 EST 2012


    [ https://issues.jboss.org/browse/CDI-281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734957#comment-12734957 ] 

Pete Muir commented on CDI-281:
-------------------------------

We propose to remove this feature, and do the work in the programming model as per CDI-271
                
> 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
>            Priority: Blocker
>             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.:
> {code:JAVA}
> public interface CuriousObserverMethod<T> extends ObservetMethod<T> {
>    void notify(T event, Set<Annotation> qualifiers);
> }
> {code}

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