[issue#3200]fix ClassCastException

This commit is contained in:
wuyiliang 2023-05-16 19:46:23 +08:00
parent d56db467e0
commit aef84b97f1

View File

@ -564,6 +564,7 @@ public class ClassUtils {
FieldCacheKey(Class<?> clazz, ConfigurationHolder configurationHolder) {
this.clazz = clazz;
if (configurationHolder instanceof WriteHolder) {
WriteHolder writeHolder = (WriteHolder)configurationHolder;
this.excludeColumnFieldNames = writeHolder.excludeColumnFieldNames();
this.excludeColumnIndexes = writeHolder.excludeColumnIndexes();
@ -571,6 +572,7 @@ public class ClassUtils {
this.includeColumnIndexes = writeHolder.includeColumnIndexes();
}
}
}
public static void removeThreadLocalCache() {
FIELD_THREAD_LOCAL.remove();