Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(java): subclass without fields will encode superclass #1626

Merged
merged 5 commits into from
May 13, 2024

Conversation

MrChang0
Copy link
Contributor

What does this PR do?

when subclass without fields. org.apache.fury.meta.ClassDefEncoder#getClassFields will skip subclass so className will be superclass. however we should save class even fields is empty.

Related issues

Does this PR introduce any user-facing change?

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

Benchmark

@chaokunyang
Copy link
Collaborator

Thanks for this fix. Could we also add a test in MetaSharedCompatibleTest?

@MrChang0
Copy link
Contributor Author

Thanks for this fix. Could we also add a test in MetaSharedCompatibleTest?

fine

Copy link
Collaborator

@chaokunyang chaokunyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks

@chaokunyang chaokunyang merged commit 7c1b9f7 into apache:main May 13, 2024
32 checks passed
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