4.6. Generated Code (Java)

4.6.1. [Critical] Java subscriber may not have preserved union discriminator value, when discriminator was enum

A Java subscriber did not preserve the discriminator value when the discriminator was an enumerator and the following was true:

  • The discriminator value did not point to a known branch in the union, nor in the DataReader or DataWriter.

  • The data representation was XCDR (not XCDR2).

  • The type was appendable.

The subscriber also did not reject, by default, a discriminator value that pointed to a branch in the DataWriter instead of the DataReader when the data representation was XCDR2.

Now the union behavior is as expected.

[RTI Issue ID CODEGENII-1979]