Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.0.4
-
Fix Version/s: 5.2.1
-
Component/s: content2bean
-
Labels:
-
Patch included:Yes
-
Testcase included:Yes
-
Epic Link:
Description
TypeMappingImpl.getPropertyTypeDescriptor is able to process classes with properties that do not contain wildcard types, but if the class has any properties with wildcards, e.g. Set<? extends Number> the code throws the following exception:
java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.WildcardTypeImpl cannot be cast to java.lang.Class at info.magnolia.jcr.node2bean.impl.TypeMappingImpl.inferGenericTypes(TypeMappingImpl.java:151) at info.magnolia.jcr.node2bean.impl.TypeMappingImpl.getPropertyTypeDescriptor(TypeMappingImpl.java:109)