[JBoss JIRA] Created: (JBIDE-6924) Wrong error description for Qualifier with wrong/no @Target
by Lukas Jungmann (JIRA)
Wrong error description for Qualifier with wrong/no @Target
-----------------------------------------------------------
Key: JBIDE-6924
URL: https://jira.jboss.org/browse/JBIDE-6924
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.0.M2
Reporter: Lukas Jungmann
Assignee: Alexey Kazakov
-have following Qualifier:
@Qualifier
@Target({ METHOD, FIELD })
@Retention(RUNTIME)
public @interface Q {
}
-open it in the editor
=> error appears on the line with @Target saying: "Qualifier annotation type must be annotated with @Target({TYPE, METHOD, FIELD, PARAMETER}) or @Target({METHOD, FIELD}) [JSR-299 §2.3.2, §10.1]" which is what I already have.
JSR-299, §10.1 says that '@Target({FIELD, PARAMETER})' is allowed instead of '@Target({METHOD, FIELD})'
--
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
15 years, 6 months
[JBoss JIRA] Created: (JBIDE-6977) Event parameter of an observer method is not an injection point.
by Alexey Kazakov (JIRA)
Event parameter of an observer method is not an injection point.
----------------------------------------------------------------
Key: JBIDE-6977
URL: https://jira.jboss.org/browse/JBIDE-6977
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.0.M2
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.0.Beta
According to JSR-299 event parameter of an observer method is not an injection point.
But the other parameters of the method are injection points.
For example:
public void observeObject(@Observes SomeEventType event, SomeBeanType bean) {
...
}
@Observes SomeEventType event - is an event parameter (not an injection point)
SomeBeanType bean - is an injection point.
See 10. Events.
Steps to reproduce.
1. Create some observer:
class EventTypeFamilyObserver {
...
public void observeObject(@Observes Object event, Object foo) {
...
}
}
2. Ctrl+Click on event parameter. The should NOT be "Open Injected Bean" option.
3. Ctrl+Click on foo parameter. The should be "Open Injected Bean" option.
--
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
15 years, 6 months