[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
[JBoss JIRA] Created: (JBIDE-7027) InjectionPointQueryParticipant throws NullPointerException if user searches references for class from jar file
by Daniel Azarov (JIRA)
InjectionPointQueryParticipant throws NullPointerException if user searches references for class from jar file
--------------------------------------------------------------------------------------------------------------
Key: JBIDE-7027
URL: https://jira.jboss.org/browse/JBIDE-7027
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.0.M2
Reporter: Daniel Azarov
Assignee: Daniel Azarov
Fix For: 3.2.0.Beta
Test case:
1. Start studio
2. Create Java project, make it CDI project
3. Expand in Package Explorer any folder with jars
4. Expand any jar file
5. Expand any class file
6. Right click on any method
7. Select "References->Workspace" menu item
8. Check Error log
FAIL:
Exception:
java.lang.NullPointerException
at org.jboss.tools.cdi.ui.search.InjectionPointQueryParticipant.search(InjectionPointQueryParticipant.java:65)
at org.eclipse.jdt.internal.ui.search.JavaSearchQuery$2.run(JavaSearchQuery.java:164)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:170)
at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:91)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
--
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-7091) cdi test failures
by Alexey Kazakov (JIRA)
cdi test failures
-----------------
Key: JBIDE-7091
URL: https://jira.jboss.org/browse/JBIDE-7091
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.0.Beta
Reporter: Alexey Kazakov
Assignee: Alexey Kazakov
Fix For: 3.2.0.Beta
Failed tests:
testBeansXML(org.jboss.tools.cdi.core.test.BeansXMLTest)
testWeldBeansXML(org.jboss.tools.cdi.core.test.BeansXMLTest)
testSelectedAlternativeManagedBean(org.jboss.tools.cdi.core.test.tck.SelectedAlternativeTest)
testSelectedAlternativeStereotype(org.jboss.tools.cdi.core.test.tck.SelectedAlternativeTest)
testSelectedAlternativeProducer(org.jboss.tools.cdi.core.test.tck.SelectedAlternativeTest)
--
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