A fix is available
APAR status
Closed as program error.
Error description
Headline: Bug in Code generation when the classes do not inherit a statechart APAR Error Description: Attempts to generate code results in faulty generation of uncompilable components Problem: Version: 7.6.1.2 Edition: Rhapsody Architect for Software Engineers The package PkgHW_Can contains different implementations of a CAN driver. In this case one for the simulation on a PC (HO_Can_simPC) and one for actual HW (HO_Can). The simulated one needs and has a statechart, the other one doesn't. Also there are target and PC components which just select the matching one singleton object inside the PkgHW_Can package. The generated main file off course calls the necessary initializations in their ..._Init functions. For the PC simulation the generated file MainPC.c is fine and PkgHW_Can_startBehavior() is called from it.But for the Target_RL component the main file's _Init() also calls PkgHW_Can_startBehavior(), however this does not exist. Hence, this component is not compilable. Additional Info: It is OK for both the main files (MainTarget_RL.c and MainPC.c) to contain the 'PkgHW_Can_startBehavior()' call. But when Target_RL is the active component the generated MainTarget_RL.c file can not be compiled because the generated files PkgHW_Can.c/h do not declare and implement the function PkgHW_Can_startBehavior(). In Rhapsody, it should be possible to have a package in scope which has multiple classes or objects in it which are not all part of the current component's scope. Still it should be compilable, no matter if some of the classes have a statechart and others haven't. Local fix: No known WA available Attachments: 15869,SGC,724.zip contains the sample model
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** Generated code contains call to an xx_startBehavior() operation that does not exist.
Problem conclusion
Fixed in version 7.6.1.3 - the function call is no longer generated.
Temporary fix
Comments
APAR Information
APAR number
PM72114
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
761
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-09-04
Closed date
2012-12-13
Last modified date
2012-12-13
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
TLOGIC RHAPSODY
Fixed component ID
5724V74RP
Applicable component levels
R761 PSN
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.6.1","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
29 October 2021