Code generation changes in 7.5.2

This topic describes the changes you will encounter when using version 7.5.2 of IBM® Rational® Rhapsody® to generate code for models created with previous versions of the product.

Generation of import statements in Java code

Before version 7.5.2, the code generated for all Java models included import statements that were not always required. This behavior was changed in the current version of Rational Rhapsody, and now these import statements are included only when necessary. To preserve the old code generation behavior for models created with versions prior to 7.5.2, the property JAVA_CG::General::RemoveUnusedImports was added to the CGCompatibilityPre752Java profile with the value False. If you would like Rational Rhapsody to use the new code generation behavior even for older Java models, set the value of this property to True.

MicroC

When using the memory segmentation feature, the attributes defined for a class in your model may end up scattered among different memory segment structs in the generated code. Therefore, Rational Rhapsody provides macros for accessing this data without having to specify the memory segment it is assigned to. In version 7.5.2, macros have been added for associations as well. As a result, you may see changes when you generate code with version 7.5.2.


Feedback