mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复BeanToMapCopier获取类型数组越界问题
This commit is contained in:
@@ -70,7 +70,7 @@ public class BeanToMapCopier extends AbsCopier<Object, Map> {
|
||||
|
||||
// 获取目标值真实类型并转换源值
|
||||
final Type[] typeArguments = TypeUtil.getTypeArguments(this.targetType);
|
||||
if(null != typeArguments){
|
||||
if(null != typeArguments && typeArguments.length > 1){
|
||||
//sValue = Convert.convertWithCheck(typeArguments[1], sValue, null, this.copyOptions.ignoreError);
|
||||
sValue = this.copyOptions.convertField(typeArguments[1], sValue);
|
||||
sValue = copyOptions.editFieldValue(sFieldName, sValue);
|
||||
|
Reference in New Issue
Block a user