[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-9757) CDI Model in a dependent CDI receives out-of-date Java type from used project.
Viacheslav Kabanovich (JIRA)
jira-events at lists.jboss.org
Tue Sep 20 20:31:26 EDT 2011
CDI Model in a dependent CDI receives out-of-date Java type from used project.
------------------------------------------------------------------------------
Key: JBIDE-9757
URL: https://issues.jboss.org/browse/JBIDE-9757
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: CDI
Affects Versions: 3.3.0.M3
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.M4
EXECUTE: Create 2 CDI projects: Test1 depends on Test2.
EXECUTE: Create in Test2 two interfaces test.p1.I and test.p2.I
EXECUTE: Create producer in Test2
{code}
package test;
import javax.enterprise.inject.Produces;
import test.p1.I;
public class MyProducer {
@Produces I getI() {
return null;
}
}
{code}
EXECUTE: Create injection in Test2
{code}
package test;
import javax.inject.Inject;
import test.p2.I;
public class MyBean {
@Inject I i;
}
{code}
EXECUTE: Create or modify any bean in Test1 in order to activate its CDI model.
EXECUTE: Modify package in MyBean: change 'import test.p1.I' to 'import test.p2.I', save, change back, save etc.
ASSERT: Open on always correctly suggest to open producer if 'I' is imported from 'p1' and has no suggestions when 'I' is imported from 'p2'.
FAILURE: Error state of injection does not change. (If CDI in Test1 was activated when injection was correct, error marker will never appear; and if CDI in Test1 was activated when injection was incorrect, error marker will stick to it).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list