Skip to content

Commit ae69ca2

Browse files
committed
Fixes an issue associated with issue #543.
Previously `_actingVersion` was not initialized upon a call to `WrapForEncode(...)`. This meant that access to properties on the group that allow the items to be encoded fails. Now we initialize it to the current schema version.
1 parent 720f5c7 commit ae69ca2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/csharp/CSharpGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ private void generateGroupClassHeader(
210210
indent + INDENT + INDENT + "_index = -1;\n" +
211211
indent + INDENT + INDENT + "_count = count;\n" +
212212
indent + INDENT + INDENT + "_blockLength = %3$d;\n" +
213+
indent + INDENT + INDENT + "_actingVersion = SchemaVersion;\n" +
213214
indent + INDENT + INDENT + "parentMessage.Limit = parentMessage.Limit + SbeHeaderSize;\n" +
214215
indent + INDENT + "}\n",
215216
parentMessageClassName,

0 commit comments

Comments
 (0)