Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.8.3
-
None
Description
The ConvertUtils uses ConvertUtils.register(userConverter , User.class) to register a converter.
And use converters.get(clazz) in Converter.lookup() to find proper converter.
It won't work for javassist modified object .
for example , the User.class runtime becomes User_$$_javassist_0.class , and Converter is unable to find the corresponding converter.
So , I suggest the future version can loop the converters map , and use User.class.isAssignableFrom(clazz_in_map) to find corresponding converter.