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

[Java] Schema version was not propagated to groups #141

Merged
merged 1 commit into from
May 20, 2014
Merged

[Java] Schema version was not propagated to groups #141

merged 1 commit into from
May 20, 2014

Conversation

Colin-b
Copy link
Contributor

@Colin-b Colin-b commented May 15, 2014

version was always set to 0 when encoding. Preventing to retrieve field values while encoding (to set values within Object field for instance)

version was always set to 0 when encoding. Preventing to retrieve field values while encoding (to set values within Object field for instance)
@@ -241,6 +241,7 @@ private void generateGroupClassHeader(final StringBuilder sb,
indent + " {\n" +
indent + " this.parentMessage = parentMessage;\n" +
indent + " this.buffer = buffer;\n" +
indent + " actingVersion = SCHEMA_VERSION;\n" +
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see no reason why parent version would differ from SCHEMA_VERSION in such a case. This is why I did not retrieve parentMessage.actingVersion. One might also want to create a group without a properly initialized parent.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks this is a good catch.

mjpt777 added a commit that referenced this pull request May 20, 2014
[Java] Schema version was not propagated to groups
@mjpt777 mjpt777 merged commit d520409 into aeron-io:master May 20, 2014
@mjpt777
Copy link
Contributor

mjpt777 commented May 20, 2014

Useful for symmetry but the actingVersion is not encoded within the repeating group so should make no noticeable difference.

@Colin-b Colin-b deleted the patch-2 branch June 4, 2014 12:14
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