You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a property has nested ParameterizedType instances, a ClassCastException is thrown:
java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
This happens for example with this construction:
public List<List<String>> names;
The reason for this happening is that the single generic in the list of generics in the ParameterizedType contains another ParameterizedType. This instance cannot be cast to a class, but must have its rawType extracted to see its Class.
The text was updated successfully, but these errors were encountered:
When a type is a nested generic (eg, List<List<String>>) it threw a
ClassCastException, even if no mapping took place. Fixed by checking
the Type in ```AbstractBeanPropertyClass``` and calling for rawType
if it concerns a ParameterizedType.
When a property has nested ParameterizedType instances, a ClassCastException is thrown:
This happens for example with this construction:
The reason for this happening is that the single generic in the list of generics in the ParameterizedType contains another ParameterizedType. This instance cannot be cast to a class, but must have its
rawType
extracted to see its Class.The text was updated successfully, but these errors were encountered: