Skip to content

fix: JSONB shared reference in non-List collection elements unresolvable on deserialization#7641

Open
yibiner wants to merge 1 commit into
alibaba:mainfrom
yibiner:main
Open

fix: JSONB shared reference in non-List collection elements unresolvable on deserialization#7641
yibiner wants to merge 1 commit into
alibaba:mainfrom
yibiner:main

Conversation

@yibiner
Copy link
Copy Markdown

@yibiner yibiner commented May 12, 2026

What this PR does / why we need it?

反序列化时,非列表集合元素中的 JSONB 共享引用无法解析。

Summary of your change

  • ObjectWriterImplCollection.java — 对非 List 集合(如 HashSet)的元素禁用 ReferenceDetection,改为内联写入,避免生成 $.foo 这类以 Set 为根的路径在反序列化时无法解析。
  • SharedReferenceInSetTest.java — 新增回归测试。

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 12, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants