mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
修复BeanToMapCopier获取类型数组越界问题
This commit is contained in:
parent
97577d7dd2
commit
cb093e067d
@ -2,7 +2,7 @@
|
|||||||
# 🚀Changelog
|
# 🚀Changelog
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.26(2024-01-19)
|
# 5.8.26(2024-01-22)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【db 】 RedisDS增加user支持(issue#I8XEQ4@Gitee)
|
* 【db 】 RedisDS增加user支持(issue#I8XEQ4@Gitee)
|
||||||
@ -10,6 +10,7 @@
|
|||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【crypto】 修复BouncyCastleProvider导致graalvm应用报错UnsupportedFeatureError(pr#3464@Github)
|
* 【crypto】 修复BouncyCastleProvider导致graalvm应用报错UnsupportedFeatureError(pr#3464@Github)
|
||||||
* 【http 】 修复UserAgentUtil对QQ浏览器识别问题(issue#I8X5XQ@Gitee)
|
* 【http 】 修复UserAgentUtil对QQ浏览器识别问题(issue#I8X5XQ@Gitee)
|
||||||
|
* 【core 】 修复BeanToMapCopier获取类型数组越界问题(issue#3468@Github)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.25(2024-01-11)
|
# 5.8.25(2024-01-11)
|
||||||
|
@ -70,7 +70,7 @@ public class BeanToMapCopier extends AbsCopier<Object, Map> {
|
|||||||
|
|
||||||
// 获取目标值真实类型并转换源值
|
// 获取目标值真实类型并转换源值
|
||||||
final Type[] typeArguments = TypeUtil.getTypeArguments(this.targetType);
|
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 = Convert.convertWithCheck(typeArguments[1], sValue, null, this.copyOptions.ignoreError);
|
||||||
sValue = this.copyOptions.convertField(typeArguments[1], sValue);
|
sValue = this.copyOptions.convertField(typeArguments[1], sValue);
|
||||||
sValue = copyOptions.editFieldValue(sFieldName, sValue);
|
sValue = copyOptions.editFieldValue(sFieldName, sValue);
|
||||||
|
Loading…
Reference in New Issue
Block a user