-
Bug
-
Resolution: Done
-
Major
-
1.2.1.Final
-
None
DecoratorResolutionTest.testUnboundedTypeVariables()
DecoratorResolutionTest.testObject()
DecoratorResolutionTest.testUnboundedTypeVariablesAndObject()
all test the following specification assertion:
A raw bean type is considered assignable to a parameterized delegate type if the raw types are identical and all type parameters of the delegate type are either unbounded type variables or
java.lang.Object.
However, for example DecoratorResolutionTest.testObject() tests that a decorator with Baz<Object> delegate type is resolved for a bean type defined as Baz<T>
- delegate type (Baz<Object>) matches the assertion - 'all type parameters of the delegate type are either unbounded type variables or java.lang.Object."
- bean type (Baz<T>) does not match the assertion. The assertion talks about a raw bean type. Baz<T> is not a raw type but a parameterized type which is parameterized with a type variable. Baz.class, which is a raw type, should be used instead as a bean type. This applies to all three tests.