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

feat(java): Implement classId related logic #1661

Closed
wants to merge 1 commit into from

Conversation

LiangliangSui
Copy link
Contributor

What does this PR do?

Implementing xlang_spec typeId.

Related issues

#1413

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

@LiangliangSui
Copy link
Contributor Author

Hi @chaokunyang , could you help me check if there is any problem with the implementation logic? If there is no problem, I will handle CI related errors.

@@ -160,45 +160,45 @@ public class ClassResolver {
// bit 0 unset indicates class is written as an id.
public static final byte USE_CLASS_VALUE_FLAG = 0b1;
// preserve 0 as flag for class id not set in ClassInfo`
public static final short NO_CLASS_ID = (short) 0;
public static final short LAMBDA_STUB_ID = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Different languages have different type systems. The type id for java native serialization and xlang serialization may be different.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I see, so we need to define a new set of TypeId in java for xlang spec?

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