[JBoss JIRA] (JBIDE-9988) Legal types of default bean producer without @DefaultBean annotation should be restricted by its member type
by Viacheslav Kabanovich (Created) (JIRA)
Legal types of default bean producer without @DefaultBean annotation should be restricted by its member type
------------------------------------------------------------------------------------------------------------
Key: JBIDE-9988
URL: https://issues.jboss.org/browse/JBIDE-9988
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: CDI extensions
Affects Versions: 3.3.0.M3, 3.3.0.M4
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.Beta1
EXECUTE: Create in a CDI solder project these three classes:
{code}
@DefaultBean(Test1.class)
public class Test1 {
@Inject
TypeB b;
@Inject
TypeA a;
@Produces
TypeB pb;
@Produces
TypeA pa;
}
public class TypeA {
TypeA(String s) {}
}
public class TypeB extends TypeA {
TypeB(String s) {
super(s);
}
}
{code}
ASSERT: Injection point 'a' is resolved to producer 'pa', and injection point 'b' is resolved to producer 'pb'.
FAILURE: Injection point 'a' is resolved to the both producers 'pa' and 'pb', which can be seen by marker 'Multiple beans are eligible...' and in 'Assignable Beans' dialog
--
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
14 years, 6 months
[JBoss JIRA] (JBIDE-9952) CDI validator should validate resource in the context of its project
by Alexey Kazakov (Created) (JIRA)
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
14 years, 6 months