Skip to content

Commit 6921c65

Browse files
committed
[Java] Do not take version and description attributes for an encoded data type within a composite.
1 parent 5a897c4 commit 6921c65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,11 @@ private void add(final EncodedDataType type, final int offset, final Field field
375375
.signal(Signal.ENCODING)
376376
.name(type.name())
377377
.size(type.encodedLength())
378+
.description(type.description())
379+
.version(type.sinceVersion())
378380
.offset(offset);
379381

380-
if (field != null)
382+
if (field != null && !(field.type() instanceof CompositeType))
381383
{
382384
tokenBuilder.version(field.sinceVersion());
383385
tokenBuilder.description(field.description());

0 commit comments

Comments
 (0)