修复XmlUtil.xmlToBeanoption参数无效问题(issue#4226@Github)

This commit is contained in:
Looly
2026-02-09 08:57:14 +08:00
parent 84a6132c26
commit c2abe4c9d3
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.44(2026-02-03)
# 5.8.44(2026-02-09)
### 🐣新特性
* 【core 】 `NumberUtil.parseNumber`增加支持科学计数法pr#4211@Github
* 【captcha】 `AbstractCaptcha`增加`setStroke`方法支持线条粗细issue#IDJQ15@Gitee
@@ -17,6 +17,7 @@
* 【core 】 修复`MultiResource`游标歧义问题issue#IDNAOY@Gitee
* 【core 】 修复`BufferUtil`copy歧义问题issue#IDN097@Gitee
* 【core 】 修复`JschSessionPool`回收导致的session未关闭问题issue#4223@Github
* 【core 】 修复`XmlUtil.xmlToBean`option参数无效问题issue#4226@Github
-------------------------------------------------------------------------------------------------------------
# 5.8.43(2026-01-04)

View File

@@ -1022,7 +1022,7 @@ public class XmlUtil {
final String nodeName = CollUtil.getFirst(map.keySet());
if (simpleName.equalsIgnoreCase(nodeName)) {
// 只有key和bean的名称匹配时才做单一对象转换
return BeanUtil.toBean(map.get(nodeName), bean);
return BeanUtil.toBean(map.get(nodeName), bean, copyOptions);
}
}
return BeanUtil.toBean(map, bean, copyOptions);