feat: add fastjson2-extension-vertx module#4002
Open
jujn wants to merge 9 commits intoalibaba:mainfrom
Open
Conversation
…Json2 version JsonCodec
Collaborator
Author
|
@wenshao 点击查看专业的事情需要专业的人来做,我不太懂性能优化,所以搭好了“脚手架”,希望您后续有时间可以进一步优化。 |
jujn
commented
Mar 9, 2026
Member
|
构建通不过? |
jujn
commented
Mar 9, 2026
Comment on lines
-454
to
+455
| boolean fieldBased = (writerFieldFeatures & JSONWriter.Feature.FieldBased.mask) != 0; | ||
| boolean fieldBased = ((writerFieldFeatures & JSONWriter.Feature.FieldBased.mask) != 0 && !objectClass.isInterface()) | ||
| || !beanInfo.alphabetic; |
Collaborator
Author
There was a problem hiding this comment.
这里修复 creator=reflect 时,设置 alphabetic=false(序列化对象字段的输出顺序)不生效的问题;同时调整了其它地方,与 creator=asm 保持一致
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.
What this PR does / why we need it?
功能概述:
新增对 Vert.x 5 的原生支持。基于 Vert.x JSON SPI 机制 (io.vertx.core.spi.json.JsonFactory) 提供 Fastjson2 的底层实现,允许用户平滑替换 Vert.x 默认的 Jackson 解析引擎。
整合工作:
兼容性说明
当前实现已对齐 Vert.x 的绝大部分标准行为。受限于 Fastjson2 与 Jackson 底层解析架构的固有差异,少数边界场景(如容错处理、格式化输出等)可能与默认行为存在微小差异。