[cdi-dev] [JBoss JIRA] (CDI-694) Make an observer that uses both @Observes and @ObservesAsync forbidden

Martin Kouba (JIRA) issues at jboss.org
Tue Mar 7 05:18:00 EST 2017

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

Martin Kouba commented on CDI-694:

It's always better to say what happens if a rule is violated.

> Make an observer that uses both @Observes and @ObservesAsync forbidden
> ----------------------------------------------------------------------
>                 Key: CDI-694
>                 URL: https://issues.jboss.org/browse/CDI-694
>             Project: CDI Specification Issues
>          Issue Type: Bug
>            Reporter: John Ament
>             Fix For: 2.0 .Final
> Not explicitly called out in the spec text, we should make an observer that has both annotations forbidden.
> RI presently throws a DefinitionException.

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list