Skip to content

fix: support deep copy in GraalVM - #4147

Open
jahnvichaudhary wants to merge 3 commits into
apache:mainfrom
jahnvichaudhary:FORY-1742
Open

jahnvichaudhary wants to merge 3 commits into
apache:mainfrom
jahnvichaudhary:FORY-1742

Conversation

@jahnvichaudhary

Copy link
Copy Markdown

Fixes #1742

What does this PR do?

Eagerly initializes the object serializer field metadata when
ObjectSerializer is constructed.

Previously, fieldInfos remained null and was built lazily during
deep copy. This can cause the field metadata to be unavailable
when running with GraalVM native-image.

The existing eagerly-built allFields metadata is now reused for
deep copy.

Testing

  • ForyCopyTest: 10 tests passed

@jahnvichaudhary jahnvichaudhary changed the title [Java] Support deep copy in GraalVM fix(java): support deep copy in GraalVM Oct 10, 2026
@jahnvichaudhary jahnvichaudhary changed the title fix(java): support deep copy in GraalVM fix: support deep copy in GraalVM Oct 10, 2026

This branch has not been deployed

No deployments
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.

[Java] Support deep copy in graalvm

1 participant