[
https://jira.jboss.org/browse/JBIDE-6935?page=com.atlassian.jira.plugin.s...
]
Alexey Kazakov commented on JBIDE-6935:
---------------------------------------
Ok. In your example the stereotype is an interceptor binding! But JSR-299 spec. as well as
weld spec. describes the case when a stereotype declares an interceptor binding (is not
annotated @InterceptorBinding but declares some interceptor bindings like @Transactional).
But since there are not any restrictions of having @Stereotype and @InterceptorBinding it
seems that we can use the same annotation for declaring a stereotype and interceptor
binding. Then it's a bug of JBT CDI validator.
Incorrect validation message for @Interceptor - binding not
recognized
----------------------------------------------------------------------
Key: JBIDE-6935
URL:
https://jira.jboss.org/browse/JBIDE-6935
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.0.M1
Environment: Version: Helios Release, Build id: 20100617-1415, Ubuntu 10.04 / 64
Reporter: Jan Groth
Assignee: Alexey Kazakov
Priority: Minor
Fix For: 3.2.0.M2
If an interceptor binding is declared as part of a stereotype definition
(
http://docs.jboss.org/weld/reference/1.0.1-Final/en-US/html/stereotypes.h...),
it's not recognized by JBoss-Tools, and the following validation message is rendered:
"Interceptor declared using @Interceptor should specify at least one interceptor
binding [JSR-299 ยง9.2]"
--
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