4. What’s Fixed in 4.7.0

This section describes what’s fixed in Code Generator 4.7.0 (Connext 7.7.0) compared to release 4.6.0 (Connext 7.6.0), described in Previous Releases.

Connext 7.7.0 is the first production release in the 7.7 long-term support (LTS) series. It is built upon and combines all of the features in releases 7.4.0, 7.5.0, and 7.6.0. See the Connext Versions and Lifecycle page for more information on RTI’s software release model.

[Critical]: System-stopping issue, such as a crash or data loss.
[Major]: Significant issue with no easy workaround.
[Minor]: Issue that usually has a workaround.
[Trivial]: Small issue, such as a typo in a log.

4.1. [Major] Minimal example in Modern C++11 did not have default QoS *

The USER_QOS_PROFILES.xml generated for Modern C++ was incorrect when the minimal example was used. The generated QoS configuration did not contain any default profile.

[RTI Issue ID CODEGENII-2323]

4.2. [Major] try_construct annotation caused code generation errors for sequences

Defining try_construct inside of a sequence caused an unexpected error during code generation. For example, this code failed: sequence<@try_construct(USE_DEFAULT) Foo, 15>.

This example will now generate code and throw a warning, since @try_construct is not supported.

[RTI Issue ID CODEGENII-2308]

4.3. [Major] Could not use a struct derived from an alias as the type of a member of another type

rtiddsgen would fail unexpectedly, and terminate with an exception, when trying to process a struct or union type with a member whose type was a struct derived from an aliased struct. The exception could happen regardless of the representation format used.

For example, the following IDL types would trigger the error because DerivedAliasFoo is used as the type of Bar::problematicMember:

struct Foo {
  long m1;
};

typedef Foo AliasFoo;

struct DerivedAliasFoo: AliasFoo {
  long m2;
};

struct Bar {
  // The following reference to DerivedAliasFoo causes the error:
  DerivedAliasFoo problematicMember;
};

Note that DerivedAliasFoo could always be used as a top-level type for a Topic. The issue was triggered only if the type derived from an alias was used to define a member of another type.

rtiddsgen will now process these type definitions correctly.

[RTI Issue ID CODEGENII-2336]

4.4. [Major] Using //@resolve-name false did not avoid resolution when a constant was used as a size for an array, sequence bound, string bound, or wstring bound

When a type is annotated with @resolve-name=false, identifiers within that type—including array bounds—should not be resolved or validated during code generation.

However, Code Generator attempted to validate whether the array bound expression was an integer literal, even when resolution was explicitly disabled. This could lead to unnecessary validation errors and potential code generation failures.

For example:

struct MyType {
    octet data[MY_SIZE_CONST]; //@resolve-name false
};

[RTI Issue ID CODEGENII-2334]

4.5. [Major] Alias of wstring collections may not have allocated enough memory if //@resolve-name false was present

During code generation, wstring aliases defined with @resolve-name false may not have properly set the type and the methods required to allocate and access memory. This may have led to possible errors or even crashes at runtime. This issue affected C, traditional C++, modern C++, Java, and C# languages.

Only first-level aliases are fixed. An alias of an alias of a wstring may still cause undefined behavior. We cannot fix that possibility because @resolve-name false means that Code Generator will not resolve the type.

[RTI Issue ID CODEGENII-2344]

4.6. [Minor] Incorrect generated code for interfaces with anonymous sequences

This issue was fixed in release 4.5.0, but not documented at that time.

The generated code was not correct when you generated code for an IDL that had an interface with an attribute whose type was an anonymous sequence like the following:

@service("DDS")
interface InterfaceService {
    attribute sequence<long> m1;
};

The generated code was also not correct for an IDL whose interface had an operation with an anonymous sequence type as a parameter, or the operation’s return value was an anonymous sequence:

@service("DDS")
interface InterfaceService {
    sequence<long> operation(sequence<long> attr);
};

[RTI Issue ID CODEGENII-2190]

4.7. [Minor] rtiddsgen showed a false positive error in Modern C++ and RPC

This issue was fixed in release 4.4.0, but not documented at that time.

Code Generator (rtiddsgen) may have shown a false positive error on utils.vm[line 122, column 12] when code was generated for Modern C++ and Remote Procedure Calls (RPC). Even if the error was shown, rtiddsgen finished correctly and the generated code was correct.

[RTI Issue ID CODEGENII-2261]

4.8. [Minor] serialVersionUID not generated for some Java classes

This issue was fixed in release 4.1.0, but not documented at that time.

Before release 4.1.0, Code Generator did not generate serialVersionUID for some Java classes, which may have affected inherited properties for serialization. This issue was fixed in 4.1.0 in the generated code; there is no longer a warning in the generated code.

[RTI Issue ID CODEGENII-2289]

4.9. [Minor] Code Generator did not detect incompatible IDL file generated from .proto file

Protocol Buffers .proto files support some features such as recursive types and a member ID higher than that supported by the Protocol Buffers mapping generated by Code Generator.

Code Generator now detects those issues after converting the .proto file to IDL and throws an error instead of generating code that will not work.

See the Protocol Buffers Extension User’s Manual for more information.

[RTI Issue ID CODEGENII-2348]

4.10. [Trivial] rtiddsgen -help showed wrong information for unbounded support in Ada

The command rtiddsgen -help showed wrong information about support of unbounded sequences in Ada.

[RTI Issue ID CODEGENII-2196]



* This bug does not affect you if you are upgrading from 7.3.x or earlier.