fury icon indicating copy to clipboard operation
fury copied to clipboard

feat(java): implement FinalFieldReplaceResolveSerializer for final fields with writeReplace/readResolve methods.

Open mchernyakov opened this issue 1 month ago • 0 comments

Why?

Based on the discussion https://github.com/apache/fory/discussions/2786. We can optimize the payload in cases where we have final fields in some Object.

What does this PR do?

Introduce FinalFieldReplaceResolver which does not write the classname into the payload.

Related issues

Does this PR introduce any user-facing change?

  • [x] Does this PR introduce any public API change?
  • [x] Does this PR introduce any binary protocol compatibility change?

Benchmark

mchernyakov avatar Nov 06 '25 23:11 mchernyakov