Reverse engineering, roundtripping, and static blocks

If you reverse engineer code that contains static blocks, IBM® Rational® Rhapsody® recognizes these blocks and adds them to the class in the model.

The roundtripping feature can handle the addition of new static blocks to your code, as well as changes to the body of a static block.

When changing code directly within a static block, keep in mind that when adding code to the body of a static block, the new code is roundtripped into the model only if you placed the code between the Rational Rhapsody annotations inside the block.

If you delete static blocks from your code, the roundtripping behavior depends upon the value of the JAVA_Roundtrip::Update::AcceptChanges property.


Feedback