github chinabugotech/hutool 5.8.42

7 hours ago

5.8.42(2025-11-28)

🐣新特性

  • 【core 】 ListUtil增加zip方法(pr#4052@Github)
  • 【http 】 增加JakartaSoapClient(issue#4103@Github)
  • 【ai 】 增加代理支持(pr#4107@Github)
  • 【core 】 CharSequenceUtil增加builder方法重载(pr#4107@Github)
  • 【core 】 CombinationArrangement 重构避免数组频繁拷贝,并避免溢出(pr#4144@Github)
  • 【core 】 优化EscapeUtil,兼容不规范的转义(pr#4150@Github)
  • 【core 】 优化ObjectUtil.containsString改为CharSequence(pr#4154@Github)
  • 【poi 】 Word07Writer增加addText重载,支持字体颜色(pr#1388@Gitee)
  • 【core 】 增强HexUtil自动去除0x#前缀(pr#4163@Github)

🐞Bug修复

  • 【jwt 】 修复verify方法在定义alg为none时验证失效问题(issue#4105@Github)
  • 【extra 】 修复JschSessionPool.remove逻辑错误问题(issue#ID4XZ7@gitee)
  • 【db 】 修复Dialect.psForCount未传入Wrapper导致大小写问题(issue#ID39G9@Gitee)
  • 【core 】 修复PasswdStrength.checkindexOf逻辑问题(pr#4114@Github)
  • 【http 】 修复HttpConnection.reflectSetMethod反射在JDK9+权限问题(issue#4109@Github)
  • 【http 】 修复JsonUtil.toJsonStr对Boolean和Number返回错误问题(issue#4109@Github)
  • 【core 】 修复FileUtil.listFileNames相对路径index混乱问题(issue#4121@Github)
  • 【core 】 修复NumberWithFormat没有实现Comparable接口导致的JSON排序报错问题(issue#ID61QR@Gitee)
  • 【core 】 修复ImgUtil.write没有释放BufferedImage可能导致内存泄露(issue#ID6VNJ@Gitee)
  • 【core 】 修复VersionUtil.matchEl如果输入的版本范围表达式右边界为空时,会抛出数组越界访问错误的问题(pr#4130@Github)
  • 【core 】 修复Validator.isBetween在高精度Number类型下存在精度丢失问题(pr#4136@Github)
  • 【core 】 修复FileNameUtil.extName在特殊后缀判断逻辑过于宽松导致误判问题(pr#4142@Github)
  • 【core 】 修复TypeUtil.getClass无法识别GenericArrayType问题(pr#4138@Github)
  • 【core 】 修复CreditCodeUtil.randomCreditCode部分字母未使用问题(pr#4149@Github)
  • 【core 】 修复CacheableAnnotationAttribute可能并发问题(pr#4149@Github)
  • 【core 】 修复URLUtil.url未断开连接问题(pr#4149@Github)
  • 【core 】 修复Bimap.put重复put问题(pr#4150@Github)
  • 【core 】 修复StrUtil.str(ByteBuffer, Charset) 方法修改入参 ByteBufferposition,导致入参变化 (pr#4153@Github)
  • 【core 】 修复ReflectUtil.newInstanceIfPossible传入Object逻辑错误(pr#4160@Github)
  • 【core 】 修复DateModifier处理AM和PM的ceiling和round问题(pr#4161@Github)
  • 【poi 】 修复Word07Writerrun.setColor()的颜色十六进制转换逻辑(pr#4164@Github)
  • 【core 】 修复Arrangement.iterate(int m)方法的排列迭代器实现逻辑问题(pr#4166@Github)
  • 【core 】 修复HexUtil.format在处理长度小于2的字符串会抛异常,在处理长度为奇数的字符串时最后一个字符会被忽略的问题(pr#4168@Github)
  • 【core 】 修复SplitIter.computeNext递归调用可能导致栈溢出风险(pr#4168@Github)

Don't miss a new hutool release

NewReleases is sending notifications on new releases.