We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Having the following enum definition
<enum name="Enum1" encodingType="uint8"> <validValue name="Val1">0</validValue> <validValue name="Val2">1</validValue> <validValue name="Val3">2</validValue> </enum>
and the following message:
<message name="Msg1" id="1" description="TestMessage"> <field name="field1" id="20" type="Enum1" presence="constant" valueRef="Enum1.Val2"/> </message>
Generates right constant value for "field1" (which is expected)
Enum1::Value field1() const SBE_NOEXCEPT { return Enum1::Value::Val2; }
But wrong block length (expected to be 0)
static SBE_CONSTEXPR std::uint16_t sbeBlockLength() SBE_NOEXCEPT { return (std::uint16_t)1; }
Reproduced with v1.7.4
The text was updated successfully, but these errors were encountered:
[Java] Validate the type is correct when using a valueRef for a enum …
e4641f1
…constant. Issue #528.
[Java] Factor in constant fields when computing block length. Issue #528
a699b4c
.
@arobenko Thanks for the reports. Can you test the last commits I've pushed?
Sorry, something went wrong.
I will in a couple of days, but I think you should put it in your unittests, and close the ticket if you think it's fixed.
No branches or pull requests
Having the following enum definition
and the following message:
Generates right constant value for "field1" (which is expected)
But wrong block length (expected to be 0)
Reproduced with v1.7.4
The text was updated successfully, but these errors were encountered: