[
https://issues.jboss.org/browse/JBIDE-11460?page=com.atlassian.jira.plugi...
]
Jaroslav Jankovič commented on JBIDE-11460:
-------------------------------------------
Alexey, Viacheslav, so if I get it right, the validation message "Injection point
whose declared type (String is a final class) cannot be proxied by the container resolves
to a bean TestBean.getString() with a normal scope [JSR-299 §5.4.1]" is the expected
one, right?
If an injection point with unproxyable type is resolved to a producer
bean with normal type, it is a deployment error
---------------------------------------------------------------------------------------------------------------------
Key: JBIDE-11460
URL:
https://issues.jboss.org/browse/JBIDE-11460
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: CDI
Affects Versions: 3.3.0.Beta1
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 4.0.0.Alpha1
Validation is implemented for a class bean, and partially for a producer when its type is
an array or primitive.
The following case is not covered by validation.
{code}
public class TestBean {
@Inject
String s;
@Produces
@RequestScoped
String getString() {
return "x";
}
}
{code}
Implementation for class bean is not correct. It checks if injected bean type is
proxyable, but instead it should check if the type of injection point is proxyable.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira