Java code generation has issue with mixed case and composite types (original) (raw)
When I use this schema with the Java code generation in sbe-tool:
<sbe:messageSchema xmlns:sbe="http://fixprotocol.io/2016/sbe" package="Bug" id="8787" version="0" semanticVersion="0.1" description="Bug" byteOrder="littleEndian"> <sbe:message name="NewOrderRequest" id="1" description="submit a new order on an instrument">
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.