[jbosstools-issues] [JBoss JIRA] (JBIDE-9952) CDI validator should validate resource in the context of its project

Alexey Kazakov (Created) (JIRA) jira-events at lists.jboss.org
Wed Oct 19 21:15:45 EDT 2011


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 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

--
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