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
jhoeller
changed the title
DataClassRowMapper doesn't correctly convert generic fields
DataClassRowMapper doesn't pass generic field information to type conversion
May 28, 2021
DataClassRowMapper
doesn't pass generic field information to internal TypeConverter:spring-framework/spring-jdbc/src/main/java/org/springframework/jdbc/core/DataClassRowMapper.java
Line 94 in b595dc1
As a result any field like this
List<MyEnumType> values
will be populated withString
values (heap pollution).This problem can be solved by replacing the code above with something like this:
mappedConstructor.getParameters()
should be extracted as a field for performance reason.The text was updated successfully, but these errors were encountered: