Skip to content

[Java] fix jdk compatible serialization for inheritance#1030

Merged
chaokunyang merged 1 commit intoapache:mainfrom
chaokunyang:fix_replace_resolve_jdk_serialization
Oct 28, 2023
Merged

[Java] fix jdk compatible serialization for inheritance#1030
chaokunyang merged 1 commit intoapache:mainfrom
chaokunyang:fix_replace_resolve_jdk_serialization

Conversation

@chaokunyang
Copy link
Collaborator

What do these changes do?

fix jdk compatible serialization for inheritance: when a class implements JDK writeReplace/readResolve, and it implements writeObject/readObject in parent class, current implementation will ignore such method contract, and the serialization may fail. For example, if a field is marked as transient, the deserialization will raise NullPointerException.

Related issue number

Closes #1029

Check code requirements

  • tests added / passed (if needed)
  • Ensure all linting tests pass, see here for how to run them

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.

Fury Java: fails to decode a scala.collection.BitSet (NPE)

1 participant