I have an idl file that defines a char[] in a struct as follows:
struct baseDataHdr_S {
octet paramId[16];
short miscHdrBytes;
};
The autogenerated Java code looks correct, but when sending the Topic I get an error:
java.lang.ArrayIndexOutOfBoundsException: 8
at ...baseDataHdr_STypeSupport.serialize
Looking in the java code the char[] is correctly defined as a char[16], so I'm stumped why indexing char[8] during serialization would cause this exception.