[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-9757) CDI Model in a dependent CDI receives out-of-date Java type from used project.
Denis Golovin (JIRA)
jira-events at lists.jboss.org
Wed Sep 21 14:48:26 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Golovin updated JBIDE-9757:
---------------------------------
Description: Now it fails on step 7. 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). (was: 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).)
Steps to Reproduce:
# 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'.
> 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
>
>
> Now it fails on step 7. 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