[jbosstools-issues] [JBoss JIRA] (JBIDE-9952) CDI validator should validate resource in the context of its project
Alexey Kazakov (Updated) (JIRA)
jira-events at lists.jboss.org
Wed Oct 26 20:03:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov updated JBIDE-9952:
----------------------------------
Description:
EXECUTE: Create two dependent CDI projects: ProjectA and ProjectB. Project A is included in the class path of project B.
EXECUTE: Add Seam REST jars into ProjectA.
EXECUTE: Create the following bean in of ProjectA:
{code}
public class TestBean {
@Inject @RestClient("http://example.com")
String taskService;
}
{code}
FAILURE: There is a problem marker on the injection. It will disappear only if you add Seam REST jars in ProjectB too.
was:
EXECUTE: Create two dependent CDI projects: ProjectA and ProjectB. Project A is included in the class path of project B.
EXECUTE: Add seam solder jars into ProjectA.
EXECUTE: a qualifier Mapper in ProjectA:
{code}
@Qualifier
@Target({ TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
public @interface Mapper {
}
{code}
EXECUTE: Create two producers in ProjectA:
{code}
...
@Produces
@Mapper
@DefaultBean(String.class)
String produceFunctionMapper() {
return null;
}
@Produces
@Mapper
@DefaultBean(String.class)
String produceFunctionMapper2() {
return null;
}
...
{code}
FAILURE: There is no error marker on duplicated default beans. It will work only if you add seam solder jars in ProjectB too
> CDI validator should validate resource in the context of its project
> --------------------------------------------------------------------
>
> Key: JBIDE-9952
> URL: https://issues.jboss.org/browse/JBIDE-9952
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: CDI
> Affects Versions: 3.3.0.M4
> Reporter: Alexey Kazakov
> Assignee: Alexey Kazakov
> Fix For: 3.3.0.Beta1
>
>
> EXECUTE: Create two dependent CDI projects: ProjectA and ProjectB. Project A is included in the class path of project B.
> EXECUTE: Add Seam REST jars into ProjectA.
> EXECUTE: Create the following bean in of ProjectA:
> {code}
> public class TestBean {
> @Inject @RestClient("http://example.com")
> String taskService;
> }
> {code}
> FAILURE: There is a problem marker on the injection. It will disappear only if you add Seam REST jars in ProjectB too.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list