-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
IR encoding omits deprecated
#1050
Comments
I agree that I'm not sure if it belongs on Why not just change diff --git a/sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/IrEncoder.java b/sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/IrEncoder.java
index 82ad99d7..13e311eb 100644
--- a/sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/IrEncoder.java
+++ b/sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/IrEncoder.java
@@ -192,7 +192,8 @@ public class IrEncoder implements AutoCloseable
.signal(mapSignal(token.signal()))
.primitiveType(mapPrimitiveType(type))
.byteOrder(mapByteOrder(encoding.byteOrder()))
- .presence(mapPresence(encoding.presence()));
+ .presence(mapPresence(encoding.presence()))
+ .deprecated(token.deprecated()); |
I did it for consistency, thinking that |
Merged. Thank you, @klittlepage. |
The SBE IR schema sbe-ir.xml defines a field deprecated
simple-binary-encoding/sbe-tool/src/main/resources/sbe-ir.xml
Line 87 in 0da03ae
Currently, the Encoding and IrEncoder classes don't correctly handle this field, resulting in uninitialized/invalid values in the serialized IR. This patch sets deprecated and produces serialized IR with deprecated set.
The text was updated successfully, but these errors were encountered: