]
Mark Struberg commented on CDI-517:
-----------------------------------
wrote a small sample app to demonstrate the difference in behaviour with old and new
containers.
assignability to parameterized required type
--------------------------------------------
Key: CDI-517
URL:
https://issues.jboss.org/browse/CDI-517
Project: CDI Specification Issues
Issue Type: Bug
Components: Resolution
Affects Versions: 1.1.PFD, 1.2.Final
Reporter: Mark Struberg
2 days before the CDI-1.1 spec went PDF the following backward-incomatible change was
made:
{quote}
-A raw bean type is considered assignable to a parameterized required type if the raw
types are identical.
+ A raw bean type is considered assignable to a parameterized required type if the raw
types are identical and all type parameters of the bean type are either unbounded type
variables or java.lang.Object.
{quote}
This breaks a lot of projects and also is also not compatible with the JavaEE6 RI and the
CDI-1.0 RI where this was explicitly allowed.
This is a follow up to CDI-304.