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