Skip to content

feat(java): support multi-dimensional array field serialization in xlang meta shared mode #2314

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

Merged
merged 9 commits into from
Jun 9, 2025

Conversation

OmCheeLin
Copy link
Contributor

What does this PR do?

support multi-dimensional array field serialization in xlang meta shared mode

Related issues

#2277

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

@OmCheeLin OmCheeLin requested a review from chaokunyang as a code owner June 8, 2025 14:58
@@ -466,6 +466,10 @@ private ClassInfo buildClassInfo(Class<?> cls) {
return info;
}

private boolean handleArray(Class<?> cls) {
return !TypeUtils.getArrayComponent(cls).isPrimitive() || !cls.getComponentType().isPrimitive();
Copy link
Collaborator

@chaokunyang chaokunyang Jun 9, 2025

Choose a reason for hiding this comment

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

Seems this can be simplified into:

Suggested change
return !TypeUtils.getArrayComponent(cls).isPrimitive() || !cls.getComponentType().isPrimitive();
return !cls.getComponentType().isPrimitive();

Copy link
Collaborator

Choose a reason for hiding this comment

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

And I prefer inline it into the caller, instead of creating a new method

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.

LGTM

@chaokunyang chaokunyang merged commit 7c94519 into apache:main Jun 9, 2025
50 checks passed
chaokunyang added a commit to chaokunyang/fury that referenced this pull request Jun 9, 2025
…ang meta shared mode (apache#2314)

## What does this PR do?
support multi-dimensional array field serialization in xlang meta shared
mode

## Related issues

apache#2277

## 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

---------

Co-authored-by: Shawn Yang <[email protected]>
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