Skip to content

Commit 0131d0e

Browse files
committed
[Java] Validate maxValue on numInGroup against type to support range limits in RC4.
1 parent cf43f47 commit 0131d0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/CompositeType.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ else if (numInGroupType.primitiveType() != UINT8 && numInGroupType.primitiveType
173173
{
174174
XmlSchemaParser.handleWarning(node, "\"numInGroup\" should be UINT8 or UINT16");
175175
}
176+
else
177+
{
178+
validateMaxValue(node, numInGroupType.primitiveType(), numInGroupType.maxValue());
179+
}
176180
}
177181

178182
/**

0 commit comments

Comments
 (0)