fix(deps): update dependency com.alibaba:fastjson to v2.0.61#102
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
fix(deps): update dependency com.alibaba:fastjson to v2.0.61#102renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
f6e5e74 to
016bfde
Compare
016bfde to
1db58e4
Compare
1db58e4 to
495770d
Compare
7a09576 to
03ed548
Compare
03ed548 to
49ad423
Compare
49ad423 to
1b62ee8
Compare
1b62ee8 to
2f0a32b
Compare
2f0a32b to
b48de37
Compare
2e4d824 to
366ed88
Compare
366ed88 to
7d8d493
Compare
7d8d493 to
4cbeebb
Compare
4cbeebb to
bc9ae36
Compare
bc9ae36 to
27b3c66
Compare
eadb209 to
a6ea5a9
Compare
a6ea5a9 to
beea3b7
Compare
beea3b7 to
afae83b
Compare
afae83b to
392924e
Compare
392924e to
78466e6
Compare
78466e6 to
79c5189
Compare
79c5189 to
2467ddf
Compare
2467ddf to
5a7243d
Compare
5a7243d to
be60e5e
Compare
be60e5e to
3fa22fc
Compare
3fa22fc to
866ced1
Compare
866ced1 to
9fdeac0
Compare
9fdeac0 to
31922fe
Compare
31922fe to
9575857
Compare
9575857 to
bcf9b13
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.25→2.0.61Release Notes
alibaba/fastjson2 (com.alibaba:fastjson)
v2.0.61: fastjson 2.0.61版本发布Compare Source
FASTJSON 2.0.61 Release Notes
Release Date: 07 Feb 2026
Tag: 2.0.61 (
170f71f)Overview
This is a regularly scheduled maintenance release with feature enhancements, performance improvements, and bug fixes. Users should upgrade as needed.
Changes & Bug Fixes
@JsonPropertyon methods was being ignored in record types #3893ArrayIndexOutOfBoundsExceptionissues inJSONReaderUTF8,JSONReaderASCII, andJSONReader#3883@JSONFieldformat #3864TypeUtils.castToTimestampcompatibility issues when upgrading from 1.2.83 #3906 #3907getStringand othergetXXXmethods #3880TypeUtils.castwith Long global converter #3932TimeModulesupport including improvedYearMonthsupport #3934 #3935org.w3c.dom.Node#3960Listsubclasses during deserialization #3926parse(InputStream)overload with default context #3946DirectByteBufferUnsupportedOperationExceptionforjava.nio.ByteBuffer#array#3894PropertyFilter,PropertyPreFilter, etc.) #3877BigIntegerasDoublereadStringperformance inJSONReaderUTF8/JSONReaderUTF16WriteNulls,ErrorOnNullForPrimitives,NotWriteDefaultValue, and other features-Dfastjson2.creator=reflect#1563Maven Dependency Configuration
Standard Version
Android 5 Optimized Version
Android 8 Optimized Version (supports java.time and Optional)
1.x Compatible Version
Spring 5 Extension
Spring 6 Extension
JAX-RS Extension
JAX-RS Jakarta Extension
Related Links
FASTJSON 2.0.61 发布说明
发布日期: 2026年2月7日
标签: 2.0.61 (
170f71f)概述
这是定期维护版本,包含功能增强、性能改进和问题修复。建议用户根据需要升级。
变更与问题修复
@JsonProperty注解在 record 类型的方法上被忽略的问题 #3893JSONReaderUTF8、JSONReaderASCII和JSONReader中的多个ArrayIndexOutOfBoundsException问题 #3883@JSONFieldformat 格式的冲突问题 #3864TypeUtils.castToTimestamp的兼容性问题 #3906 #3907getString等getXXX方法新增默认值参数支持 #3880TypeUtils.cast出现双引号的问题 #3932TimeModule支持,包括改进的YearMonth支持 #3934 #3935org.w3c.dom.Node的序列化支持 #3960List子类在反序列化时无法自动推断泛型类型的问题 #3926parse(InputStream)重载方法 #3946DirectByteBuffer调用java.nio.ByteBuffer#array时的UnsupportedOperationException#3894PropertyFilter、PropertyPreFilter等)#3877BigInteger解析为Double时溢出检查不正确的问题JSONReaderUTF8/JSONReaderUTF16的readString性能WriteNulls、ErrorOnNullForPrimitives、NotWriteDefaultValue等特性的多个问题-Dfastjson2.creator=reflect时的类型转换错误 #1563Maven 依赖配置
标准版本
Android 5 优化版本
Android 8 优化版本(支持 java.time 和 Optional)
1.x 兼容版本
Spring 5 扩展
Spring 6 扩展
JAX-RS 扩展
JAX-RS Jakarta 扩展
相关链接
v2.0.60: fastjson 2.0.60发布Compare Source
这又是一个定期维护的功能增强BUG FIX版本,大家按需升级。
Issues
@ JsonProperties之后结果错误的问题 #3799java.util.Collections#EMPTY_LIST报错的问题 #3828MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.59: fastjson 2.0.59发布Compare Source
这又是一个定期维护的功能增强BUG FIX版本,大家按需升级。
Issues
MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.58: Fastjson 2.0.58版本发布Compare Source
这又是一个定期维护的功能增强BUG FIX版本,大家按需升级。
@JSONField(defaultValue="")和fastjson 1.x不兼容的问题MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.57: Fastjson 2.0.57版本发布Compare Source
这又是一个定期维护的功能增强BUG FIX版本,大家按需升级。
Issues
MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.56: fastjson 2.0.56版本发布,性能进一步提升Compare Source
这个版本进一步提升了性能,并且修复了2.0.54发布以来用户反馈的BUG。
Issues
@type且位置不在json串开始位置时和fastjson 1.x行为不一致的问题 #3284MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.55Compare Source
v2.0.54: fastjson 2.0.54版本发布,性能进一步提升Compare Source
这又是一个性能优化Bug修复的版本更新版本,大家按需升级。
1. 性能优化
这个版本的性能优化包括:
1.1 使用SWAR(SIMD Within A Register)技巧来优化序列化字符串的性能
序列化时,写字符串检测是否存在特别字符是一个性能关键点,这个版本使用SWAR(SIMD Within A Register)的技巧来做快速检测。如下
https://github.com/alibaba/fastjson2/blob/2.0.54/core/src/main/java/com/alibaba/fastjson2/JSONWriterUTF8.java#L484
1.2 优化在JDK 16+的readString性能
在JDK 16+的版本下,使用StringLatin1.indexOfChar方法加速扫描特殊字符,优化readString的性能。这个算法来自 wycst 的贡献。
https://github.com/alibaba/fastjson2/blob/2.0.54/core/src/main/java/com/alibaba/fastjson2/JSONReaderASCII.java#L1445
1.3 int/long/float/double的读取写性能
优化的技巧是一次性读取两个数字,如下:
https://github.com/alibaba/fastjson2/blob/2.0.54/core/src/main/java/com/alibaba/fastjson2/JSONReaderUTF8.java#L3506
这个优化最初灵感源泉来自 https://github.com/wycst/wast 的 io.github.wycst.wast.json.JSONTypeDeserializer.NumberImpl#deserializeInteger所采用的算法,然后做了进一步的改进。
2. Issues
{不报错的问题 #2592fastjson2缺省是能识别Gson的Annotation的,这个可以通过接口或者JVM启动参数关闭
也支持通过JVM启动参数关闭
MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.53: fastjson 2.0.53版本发布Compare Source
这又是一个月度更新版本,大家按需升级。
Issues
2. MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.52: fastjson 2.0.52发布Compare Source
这又是一个月度例行发布的BUG FIX版本版本,大家按需升级。
Issues
@JSONType同时指定WriteClassName与NotWriteRootClassName依然输出根类名问题 #2662@符号 #2671@JSONField对boolean属性支持 #27952. MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.51: fastjson 2.0.51发布Compare Source
这又是一个例行发布的BUG FIX版本版本,修复最近一个月用户反馈的问题,大家按需升级。
Issues
@type字段的问题 #2581 #26232. MAVEN依赖配置
这个版本支持java.time和Optional
3. 相关链接
v2.0.50: fastjson 2.0.50发布Compare Source
这又是一个例行月度更新的BUG FIX版本,大家按需升级。这个版本继续优化了JIT生成的代码,性能有提升,并且支持配置全局配置在JIT时去掉不必要功能的代码生成,提升性能。
注意已知问题
Issues
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.