6.4.7. Fixes Related to Dynamic Data
6.4.7.1. [Major] DynamicData DataWriters incorrectly serialized optional empty sequences as null
In previous 6.0.0 releases and above, a DynamicData DataWriter incorrectly serialized an optional empty sequence as null. When a DataReader received the sample, it deserialized the wrong value.
For example, assume the following type:
struct AuditLogEntry {
long long Nanoseconds;
@optional sequence<long long, 100> Details;
};
If the publishing application set Details to an empty sequence with zero elements, the serialized value was incorrectly set to null. When a DataReader received the sample, it incorrectly set Details to null instead of the empty sequence with zero elements.
This problem has been fixed.
[RTI Issue ID CORE-12866]