You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use this schema with the Java code generation in sbe-tool:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sbe:messageSchemaxmlns:sbe="http://fixprotocol.io/2016/sbe"package="Bug"id="8787"version="0"semanticVersion="0.1"description="Bug"byteOrder="littleEndian">
<types>
<compositename="messageHeader"description="Message identifiers and length of message root">
<typename="blockLength"primitiveType="uint16"/>
<typename="templateId"primitiveType="uint16"/>
<typename="schemaId"primitiveType="uint16"/>
<typename="version"primitiveType="uint16"/>
</composite>
<compositename="groupSizeEncoding"semanticType="NumInGroup">
<typename="blockLength"primitiveType="uint16"/>
<typename="numInGroup"primitiveType="uint16"/>
</composite>
<compositename="OrderBase">
<typename="Account"primitiveType="char"length="12"/>
</composite>
<compositename="Order">
<refname="OrderBase"type="OrderBase"/>
<typename="AccountNotMessedUp2"primitiveType="char"length="12"/>
</composite>
</types>
<sbe:messagename="NewOrderRequest"id="1"description="submit a new order on an instrument">
<fieldname="Order"id="2"type="Order"/>
</sbe:message>
</sbe:messageSchema>
I get non-compiling java files.
The issue seems to be that when the code-generator generates the code for the Account field inside the OrderBase composite type it generates a function called AccountLength() while attempting to invoke it as accountLength()
On the other hand, when the same is attempted with AccountNotMessedUp2 field in the composite type Order the generated code appears to be fine.
So if I understand this correctly, when there's a generation of a Decoder/Encode for a second level composite type, the SBE java code generator will mix up the casing of the generated code.
The text was updated successfully, but these errors were encountered:
When I use this schema with the Java code generation in sbe-tool:
I get non-compiling java files.
The issue seems to be that when the code-generator generates the code for the
Account
field inside theOrderBase
composite type it generates a function calledAccountLength()
while attempting to invoke it asaccountLength()
On the other hand, when the same is attempted with
AccountNotMessedUp2
field in the composite typeOrder
the generated code appears to be fine.So if I understand this correctly, when there's a generation of a Decoder/Encode for a second level composite type, the SBE java code generator will mix up the casing of the generated code.
The text was updated successfully, but these errors were encountered: