[weld-issues] [JBoss JIRA] (WELD-986) Interceptors may not declare observer methods
Martin Kouba (Updated) (JIRA)
jira-events at lists.jboss.org
Mon Oct 10 06:41:18 EDT 2011
[ https://issues.jboss.org/browse/WELD-986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Kouba updated WELD-986:
------------------------------
Description:
CDI 1.0 section 10.4.2 states:
"Interceptors and decorators may not declare observer methods. If an interceptor or decorator has a method with a paramet-
er annotated @Observes, the container automatically detects the problem and treats it as a definition error."
There is no definition error detected for interceptor with observer method. However interceptor observer methods are noop.
TCK test for this scenario (CDI 1.1 master branch):
https://github.com/jboss/cdi-tck/blob/master/impl/src/main/java/org/jboss/jsr299/tck/tests/interceptors/definition/broken/observer/InterceptorWithObserverMethodTest.java
was:
CDI 1.0 section 10.4.2 states:
Interceptors and decorators may not declare observer methods. If an interceptor or decorator has a method with a paramet-
er annotated @Observes, the container automatically detects the problem and treats it as a definition error.
However there is no definition error detected for interceptor with observer method.
TCK test for this scenario (CDI 1.1 master branch):
https://github.com/jboss/cdi-tck/blob/master/impl/src/main/java/org/jboss/jsr299/tck/tests/interceptors/definition/broken/observer/InterceptorWithObserverMethodTest.java
> Interceptors may not declare observer methods
> ---------------------------------------------
>
> Key: WELD-986
> URL: https://issues.jboss.org/browse/WELD-986
> Project: Weld
> Issue Type: Bug
> Affects Versions: 1.1.2.Final
> Environment: JBoss AS7
> Reporter: Martin Kouba
>
> CDI 1.0 section 10.4.2 states:
> "Interceptors and decorators may not declare observer methods. If an interceptor or decorator has a method with a paramet-
> er annotated @Observes, the container automatically detects the problem and treats it as a definition error."
> There is no definition error detected for interceptor with observer method. However interceptor observer methods are noop.
> TCK test for this scenario (CDI 1.1 master branch):
> https://github.com/jboss/cdi-tck/blob/master/impl/src/main/java/org/jboss/jsr299/tck/tests/interceptors/definition/broken/observer/InterceptorWithObserverMethodTest.java
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list