[weld-issues] [JBoss JIRA] (WELD-987) Misleading definition error for decorator with observer method
Jozef Hartinger (JIRA)
jira-events at lists.jboss.org
Tue May 15 11:30:18 EDT 2012
[ https://issues.jboss.org/browse/WELD-987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jozef Hartinger resolved WELD-987.
----------------------------------
Assignee: Jozef Hartinger
Fix Version/s: (was: 2.0.0.Alpha3)
Resolution: Cannot Reproduce Bug
I cannot reproduce this in the 2.0 branch. I am getting: WELD-001446 A decorator cannot have observer methods, but at least one was found on Decorator
> Misleading definition error for decorator with observer method
> --------------------------------------------------------------
>
> Key: WELD-987
> URL: https://issues.jboss.org/browse/WELD-987
> Project: Weld
> Issue Type: Bug
> Affects Versions: 1.1.2.Final
> Environment: JBoss AS7
> Reporter: Martin Kouba
> Assignee: Jozef Hartinger
> Priority: Minor
>
> 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."
> Following definition error is detected for decorator with observer method: *WELD-001419 - DECORATOR_CLASS_NOT_BEAN_CLASS_OF_DECORATOR*
> New definition error like *DECORATORS_CANNOT_HAVE_OBSERVER_METHODS* would be more appropriate.
> 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/decorators/definition/broken/observer/DecoratorWithObserverMethodTest.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