-
Bug
-
Resolution: Done
-
Major
-
2.2.1.Final
-
None
-
None
When a bean class A extends the raw type of a parameterized class B, canonical types of B are added into types of A (in org.jboss.weld.util.reflection.HierarchyDiscovery#discoverTypes()). That causes problems in specialization validation as the getTypes() method of the specializing bean A returns even types it does not have.
Example:
class B<T> implements Collection<T> { ... }
class A extends B { ... }
Collection<T> should not be a type of bean A.
- blocks
-
WELD-1723 Injection of parameterized types does not longer work in 2.x (starting with 2.0.0.Alpha3)
- Resolved
- is related to
-
CDITCK-416 Extend tests for BeanAttributes#getTypes() with generic scenario
- Resolved