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): fix polymorphic array serialization #1324

Merged

Conversation

chaokunyang
Copy link
Collaborator

Object[] can be assigned from String[] and other arrays, we take it as a final type before, so we skip writing classinfo for such types and lost object type too.

This PR fix this polymorphic array serialization bug by checking array type polymorphism by component type.

Closes #1323

@chaokunyang chaokunyang merged commit 18527e3 into apache:main Jan 10, 2024
18 checks passed
@chaokunyang chaokunyang deleted the fix_polymorphic_array_serialization branch April 1, 2024 06:29
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] Component types on generic arrays are lost during (de-)serialization
3 participants