wenshao
478a39b16b
fixed bug for issue #3702
2025-09-21 13:04:25 +08:00
wenshao
32556bd7f8
remove nextIfList
2025-09-21 10:27:24 +08:00
jujn
cd03de449f
fix bug for issue #3724 ( #3729 )
...
* fix bug for issue #3724
* update
2025-09-21 08:14:40 +08:00
mayuming
1a2a67eb29
fixed bug for issue #3755 ( #3760 )
...
* fixed bug for issue #3702
* fixed bug for issue #3755
* fixed bug for issue #3755
* Update core/src/main/java/com/alibaba/fastjson2/util/BeanUtils.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Revert "Update core/src/main/java/com/alibaba/fastjson2/util/BeanUtils.java"
This reverts commit 1f9fa1ea6f .
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-21 07:51:36 +08:00
wenshao
4edd37e519
to #3789 , toJavaObject IgnoreSetNullValue
2025-09-20 14:57:16 +08:00
wenshao
ce0eb76f15
to #3738 , kotlin support SupportSmartMatch
2025-09-20 14:38:40 +08:00
wenshao
afd64aaf3e
to #3789 , toJavaObject IgnoreSetNullValue
2025-09-20 13:23:36 +08:00
wenshao
73228b145d
fix:修复Date类型在特定格式下的兼容性问题 ( #3758 ) 当format为yyyy-MM-dd但输入包含时间部分时,应忽略时间部分以保持与fastjson1的兼容性 当format为HH:mm或HH:mm:ss等时间格式时,应使用LocalDate.EPOCH而不是LocalDate.MIN作为日期基础
2025-09-20 13:08:11 +08:00
wenshao
b8a136caba
refactor(Issue3759Test): 重命名测试类并调整包结构
...
此提交将测试类 `Issue3759Test` 重命名为 `Issue3759` 并调整其所在的包结构。
Co-developed-by: Aone Copilot <noreply@alibaba-inc.com>
2025-09-16 17:50:03 +08:00
wenshao
cb8c721e6a
to #3759 fix WriteNullBooleanAsFalse
2025-09-16 11:44:02 +08:00
dependabot[bot]
b9bb68ccf6
Bump org.moditect:moditect-maven-plugin from 1.2.2.Final to 1.3.0.Final
...
Bumps [org.moditect:moditect-maven-plugin](https://github.com/moditect/moditect ) from 1.2.2.Final to 1.3.0.Final.
- [Release notes](https://github.com/moditect/moditect/releases )
- [Commits](https://github.com/moditect/moditect/compare/1.2.2.Final...1.3.0.Final )
---
updated-dependencies:
- dependency-name: org.moditect:moditect-maven-plugin
dependency-version: 1.3.0.Final
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 09:02:28 +08:00
zhou yong kang
c60fbc4f77
feat: Enhanced get direct conversion type ( #3778 )
...
* feat:Enhanced get direct conversion type
* fix:TypeUtils class adds Data conversion
2025-09-14 23:33:21 +08:00
wenshao
824bcfe02d
bug fix for skipNumber, for issue #3761
2025-09-14 20:25:56 +08:00
wenshao
f40e7d9ef6
config .gitattributes
2025-09-14 20:25:56 +08:00
jujn
3ddd47736b
fix bug for issue #3771
2025-09-14 19:41:08 +08:00
CodePlayer
e99c4ad2b2
refactor(extension): 重构 FastJsonHttpMessageConverter 以提高性能 ( #3754 )
...
* refactor(extension): 重构 FastJsonHttpMessageConverter 以提高性能
- 新增 fastRead 方法,用于高效读取请求体
- 优化内存分配,避免不必要的数组拷贝
- 使用 JSONReader.Context 和 JSONWriter.Context 缓存避免重复构造 Context 的性能开销
- 增加对大数组长度的处理逻辑,防止内存溢出
* style(extension): 删除 FastJsonConfig 类中的冗余空行
* refactor(extension-spring5): 调整请求体初始化容量的变量命名和访问修饰符,避免非预期的修改
* refactor(extension-spring5): 调整部分内部方法为 private,限制外部访问,加强封装性
* 调整:JSON 请求主体数据初始容量为 8KB
2025-09-14 19:32:21 +08:00
jujn
007746de07
fix global field sorting not taking effect during serialization, for issue #2448
2025-09-12 09:24:44 +08:00
wenshao
1f5964a5ee
ignore worktrees
2025-08-22 11:13:03 +08:00
高铁
3ee9cfbb3a
QWEN.md
2025-08-22 00:37:23 +08:00
dependabot[bot]
4b8ca14f0b
Bump org.apache.flink:flink-json from 2.0-preview1 to 2.1.0
...
Bumps org.apache.flink:flink-json from 2.0-preview1 to 2.1.0.
---
updated-dependencies:
- dependency-name: org.apache.flink:flink-json
dependency-version: 2.1.0
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 00:28:04 +08:00
dependabot[bot]
d330e9e0a1
Bump solon.version from 3.4.2 to 3.4.3
...
Bumps `solon.version` from 3.4.2 to 3.4.3.
Updates `org.noear:solon-parent` from 3.4.2 to 3.4.3
- [Release notes](https://github.com/opensolon/solon/releases )
- [Commits](https://github.com/opensolon/solon/compare/v3.4.2...v3.4.3 )
Updates `org.noear:solon-logging-simple` from 3.4.2 to 3.4.3
Updates `org.noear:solon-test` from 3.4.2 to 3.4.3
Updates `org.noear:solon-maven-plugin` from 3.4.2 to 3.4.3
Updates `org.noear:solon-serialization` from 3.4.2 to 3.4.3
---
updated-dependencies:
- dependency-name: org.noear:solon-parent
dependency-version: 3.4.3
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.noear:solon-logging-simple
dependency-version: 3.4.3
dependency-type: direct:development
update-type: version-update:semver-patch
- dependency-name: org.noear:solon-test
dependency-version: 3.4.3
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.noear:solon-maven-plugin
dependency-version: 3.4.3
dependency-type: direct:production
update-type: version-update:semver-patch
- dependency-name: org.noear:solon-serialization
dependency-version: 3.4.3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 00:27:54 +08:00
dependabot[bot]
45d47714e6
Bump com.fasterxml.jackson:jackson-bom from 2.18.3 to 2.19.2
...
Bumps [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom ) from 2.18.3 to 2.19.2.
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.18.3...jackson-bom-2.19.2 )
---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
dependency-version: 2.19.2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 00:27:43 +08:00
业余布道师
bce0fd4e45
Merge pull request #3745 from alibaba/feature/issue-3690-default-charset-utf8
...
Feature/issue 3690 default charset utf8
2025-08-21 20:37:14 +08:00
高铁
b23a2b8b46
refactor: use StandardCharsets.UTF_8 instead of Charset.forName("UTF-8") in tests
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-21 20:06:32 +08:00
高铁
e9594b9d72
fix: set default charset to UTF-8 for FastJsonHttpMessageConverter
...
- Set defaultCharset to UTF-8 in FastJsonHttpMessageConverter constructors for Spring5, Spring6 and Fastjson1-compatible versions
- Update documentation to reflect that manual setting of defaultCharset is no longer required from version 2.0.59
- Add tests to verify defaultCharset is correctly set to UTF-8
Fixes #3690
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-21 20:03:52 +08:00
wenshao
a5639e2583
Fix proxy detection for Spring RefreshScope and add comprehensive tests
2025-08-21 17:42:00 +08:00
wenshao
99423be6b0
Update checkstyle configuration file
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-21 17:27:15 +08:00
Shaojin Wen
a80a1deb56
Fix base64 prefix issue 3681 ( #3741 )
...
* Fix BASE64 prefix compatibility issue in ObjectReaderImplInt8ValueArray (#3681 )\n\n- Enhanced BASE64 prefix handling to support not only JPEG but also PNG and other image formats\n- Added generic prefix detection for better compatibility with various data:image/* formats\n- Fixed issue where only data:image/jpeg;base64, prefix was supported\n\nFixes #3681
* Fix BASE64 prefix compatibility issue for ObjectReaderImplInt8ValueArray\n\n- Enhanced the readObject method to handle generic BASE64 data URI prefixes\n- Added comprehensive tests for various BASE64 prefixes (jpeg, png, gif, webp, bmp, text)\n- Fixes issue #3681\n\nThis change ensures that ObjectReaderImplInt8ValueArray can properly handle\nBASE64 encoded data with various data URI prefixes, not just jpeg and png.\nThe implementation now looks for the ';base64,' substring to extract the\nactual BASE64 data, making it compatible with any data URI format.
2025-08-20 19:13:13 +08:00
jujn
04a717548c
fix bug for issue #3739
2025-08-20 16:14:16 +08:00
wenshao
82319f21c3
revert
2025-08-20 15:26:38 +08:00
wenshao
38a5f4241c
修复Javadoc引用错误,修正JSONReader和JSONWriter中的链接引用
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-20 15:23:24 +08:00
wenshao
4967702130
revert
2025-08-20 11:52:55 +08:00
wenshao
f4537def9b
完善features文档,添加使用示例和最佳实践建议,并更新相关文档引用
2025-08-20 11:32:58 +08:00
wenshao
928930ddd2
Update code style documentation and remove unused presto-checks.xml
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-20 11:23:41 +08:00
wenshao
74018e4f19
java doc
2025-08-20 11:17:41 +08:00
wenshao
559ba1d777
fix java doc
2025-08-18 15:08:29 +08:00
wenshao
fc86418805
Fix trailing whitespace in IOUtils#writeDecimal method comments to pass checkstyle validation
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-18 14:22:25 +08:00
wenshao
cfb3fd069f
Fix IOUtils.isNumber() edge cases and add tests
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-08-18 14:16:20 +08:00
wenshao
a551e7f645
Fix bug in JSONWriterUTF8.writeString with offset parameter
...
Fixed incorrect loop condition in writeString(char[], int, int, boolean) method where 'i < len' was used instead of 'i < end'. This bug caused incorrect string processing when offset parameter was non-zero.
Added test case to verify the fix works correctly with offset values.
2025-08-18 13:06:04 +08:00
wenshao
5858859330
Fix bug in JSONWriterUTF16.writeString with incorrect loop condition
...
The loop condition in writeString(char[], int, int, boolean) was incorrectly using 'i < len' instead of 'i < offset + len', causing wrong character range to be processed. Fixed by changing the loop condition to properly handle offset and length parameters.
Added comprehensive test cases to verify the fix works correctly for various scenarios including edge cases and out-of-bounds conditions.
2025-08-18 12:01:50 +08:00
wenshao
b23c365896
Fix bug in Path.toString() method with Unicode surrogate pairs handling\n\nFixed an issue where the wrong loop variable 'i' was used instead of 'j' when processing Unicode surrogate pairs in JSON field names. This caused ArrayIndexOutOfBoundsException or incorrect results when serializing JSON with emoji keys or other Unicode characters represented by surrogate pairs.\n\nAdded test cases to verify the fix works correctly with various Unicode characters including emojis.
2025-08-18 11:35:44 +08:00
wenshao
c0f1125166
Fix missing break statement in setDateFormat method for 'yyyyMMddHHmmssSSSZ' case
2025-08-18 09:49:03 +08:00
dependabot[bot]
d9ca7d29ac
Bump commons-io:commons-io from 2.19.0 to 2.20.0
...
Bumps [commons-io:commons-io](https://github.com/apache/commons-io ) from 2.19.0 to 2.20.0.
- [Changelog](https://github.com/apache/commons-io/blob/master/RELEASE-NOTES.txt )
- [Commits](https://github.com/apache/commons-io/compare/rel/commons-io-2.19.0...rel/commons-io-2.20.0 )
---
updated-dependencies:
- dependency-name: commons-io:commons-io
dependency-version: 2.20.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-17 20:21:19 +08:00
dependabot[bot]
4b771e1e2c
Bump com.opencsv:opencsv from 5.10 to 5.12.0
...
Bumps com.opencsv:opencsv from 5.10 to 5.12.0.
---
updated-dependencies:
- dependency-name: com.opencsv:opencsv
dependency-version: 5.12.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-17 20:21:06 +08:00
dependabot[bot]
4e4af4da6c
Bump io.projectreactor:reactor-test from 3.1.0.RELEASE to 3.7.9
...
Bumps [io.projectreactor:reactor-test](https://github.com/reactor/reactor-core ) from 3.1.0.RELEASE to 3.7.9.
- [Release notes](https://github.com/reactor/reactor-core/releases )
- [Commits](https://github.com/reactor/reactor-core/compare/v3.1.0.RELEASE...v3.7.9 )
---
updated-dependencies:
- dependency-name: io.projectreactor:reactor-test
dependency-version: 3.7.9
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-17 20:20:54 +08:00
dependabot[bot]
b7e2a91017
Bump org.apache.commons:commons-collections4 from 4.4 to 4.5.0
...
Bumps org.apache.commons:commons-collections4 from 4.4 to 4.5.0.
---
updated-dependencies:
- dependency-name: org.apache.commons:commons-collections4
dependency-version: 4.5.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-17 20:20:42 +08:00
rowstop
0fbc32480d
Update the docs to include Fastjson2 integration with Spring WebFlux.
2025-08-17 20:20:22 +08:00
mymde
d66d0cf537
fixed bug for issue #3702
2025-08-17 20:20:01 +08:00
jujn
92bd063907
fix bug for issue #3719 ( #3721 )
2025-08-17 20:18:06 +08:00
jiangguilong
08c2f3089d
docs(JSONB): 更新 JSONB 解析配置示例
...
将 JSONB 解析配置示例中的 JSONReader.Feature 从 SupportBeanArrayMapping 修改为 SupportArrayToBean,以反映正确的配置选项。
2025-08-17 20:16:59 +08:00