[weld-issues] [JBoss JIRA] Updated: (WELD-699) CDI API regression: Observes.notifyObserver has been changed to Observes.receive

Sahoo Sahoo (JIRA) jira-events at lists.jboss.org
Wed Oct 27 09:13:55 EDT 2010


     [ https://jira.jboss.org/browse/WELD-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sahoo Sahoo updated WELD-699:
-----------------------------

    Attachment: WELD-699-cdi-api-change.diff


CDI API change to revert change to notifyObserver to be compliant with the specification.

> CDI API regression: Observes.notifyObserver has been changed to Observes.receive
> --------------------------------------------------------------------------------
>
>                 Key: WELD-699
>                 URL: https://jira.jboss.org/browse/WELD-699
>             Project: Weld
>          Issue Type: Bug
>          Components: CDI API
>    Affects Versions: 1.1.0.Beta1
>            Reporter: Sivakumar Thyagarajan
>            Priority: Critical
>             Fix For: 1.1.0.Beta2
>
>         Attachments: WELD-699-cdi-api-change.diff
>
>
> In the Weld 1.1 Beta 1 release, the @Observes API has an annotation element changed. This is an incompatible API change and would break existing clients.
> -- The original API for @Observes --
> public interface javax.enterprise.event.Observes extends java.lang.annotation.Annotation{
>     public abstract javax.enterprise.event.Reception notifyObserver();
>     public abstract javax.enterprise.event.TransactionPhase during();
> }
> -- The original API for @Observes --
> and now it is:
> -- The new API for @Observes --
> public interface javax.enterprise.event.Observes extends java.lang.annotation.Annotation{
>     public abstract javax.enterprise.event.Reception receive();
>     public abstract javax.enterprise.event.TransactionPhase during();
> }
> -- The new API for @Observes --
> Notice the renaming of "notifyObserver" to "receive". The original name for the annotation element "notifyObserver" has been published earlier as part of Java EE 6 javadoc [1]. However in the JSR 299 specification, the annotation element is referred to as "receives" (See Section 10.4.3) and hence I think this have been renamed as part of WELD-455 [2]. 
> Please revert this change in API.
> [1] http://download.oracle.com/javaee/6/api/javax/enterprise/event/Observes.html#notifyObserver()
> [2] https://jira.jboss.org/browse/WELD-455 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list