]
Viacheslav Kabanovich resolved JBIDE-6474.
------------------------------------------
Resolution: Done
Injection points with a parameterized type should resolve to
corresponding beans according to CDI spec.
-------------------------------------------------------------------------------------------------------
Key: JBIDE-6474
URL:
https://jira.jboss.org/browse/JBIDE-6474
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.0.M1
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.2.0.M2
See the spec.:
5.2.3. Assignability of raw and parameterized types.
A parameterized bean type is considered assignable to a parameterized required type if
they have identical raw type and for each parameter:
• the required type parameter and the bean type parameter are actual types with identical
raw type, and, if the type is parameterized, the bean type parameter is assignable to the
required type parameter according to these rules, or
• the required type parameter is a wildcard, the bean type parameter is an actual type
and the actual type is assignable to the upper bound, if any, of the wildcard and
assignable from the lower bound, if any, of the wildcard, or
• the required type parameter is a wildcard, the bean type parameter is a type variable
and the upper bound of the type variable is assignable to or assignable from the upper
bound, if any, of the wildcard and assignable from the lower bound, if any, of the
wildcard, or
• the required type parameter is an actual type, the bean type parameter is a type
variable and the actual type is assignable to the upper bound, if any, of the type
variable, or
• the required type parameter and the bean type parameter are both type variables and the
upper bound of the required type parameter is assignable to the upper bound, if any, of
the bean type parameter.
All the tests in
org.jboss.tools.cdi.core.test.tck.AssignabilityOfRawAndParameterizedTypesTest should pass.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: