itemisCREATE / statecharts

YAKINDU Statechart Tools (http://www.statecharts.org)
Eclipse Public License 1.0
175 stars 85 forks source link

Explicitly init variables of complex types with null literal #3083

Closed tkutz closed 4 years ago

tkutz commented 4 years ago

Currently, statechart variables of a complex type, e.g. a submachine, are not initialized at all in the init method of the statechart. We should explicitly set them to null, as different target languages might treat uninitialized variables differently.

This is also the reason why some multi-statemachine tests for the C++ code generator currently fail.