[
https://jira.jboss.org/jira/browse/JBIDE-6196?page=com.atlassian.jira.plu...
]
Viacheslav Kabanovich resolved JBIDE-6196.
------------------------------------------
Resolution: Done
JDT model does not have interface for parameter, IMethod does not give access to parameter
annotations. This feature is not implemented even in Eclipse 3.6, so for at least one year
we cannot use JDT in that part of CDI model. I considered using AST as it was done in
Seam, and decided against it, because it will make loading much slower. Instead, I have
implemented simple parsing of method parameters (which involve just a few tokens) and that
also resulted in that some methods which are supposed to return IAnnotation remain
unimplemented, and replaced by methods that return ITextSourceReference. That must be
sufficient for getting all necessary information on method and its parameters.
CDI model doesn't load observer methods.
----------------------------------------
Key: JBIDE-6196
URL:
https://jira.jboss.org/jira/browse/JBIDE-6196
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.next
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.next
For example:
class Spider {
public void observe(@Observes Event foo) {
}
}
destorySpider is a observer method since it has a parameter is anootated @Observers.
org.jboss.tools.cdi.core.test.tck.ValidationTest.testProducerMethodWithParameterAnnotatedObserves()
must pass.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira