A fix is available
APAR status
Closed as program error.
Error description
The _gen function is used in MicroC as an optimized version of the GEN macro. If a class realizes an interface AND is a composite part of a reactive class a _gen function is created. This would be fine. However, removing the realization relation between the class and interface causes the _gen function to be removed. The interface realization should have no effect on whether the _gen is generated or not. STEPS TO REPRODUCE: 1) Create a new MicroC project 2) Add a class called xDerived 3) Add a class called yReactive 4) Add an interface called zInterface 5) Add a realization from xDerived to zInterface 6) Add a composition from xDerived to yReactive so that xDerived is a part of the yReactive class. 7) Generate the code and observe the xDerived_gen function in xDerived.h. EXPECTED. 8) Remove the realization and the xDerived_gen function is removed from xDerived.h. NOT EXPECTED.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * * Rhapsody * **************************************************************** * PROBLEM DESCRIPTION: * * MicroC generates redundant _gen function for non-reactive * * interface. * **************************************************************** * RECOMMENDATION: * ****************************************************************
Problem conclusion
Redundant xxx_gen function generation is avoided.
Temporary fix
Comments
APAR Information
APAR number
PI78250
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
814
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2017-03-15
Closed date
2017-06-12
Last modified date
2017-06-12
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
R814 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":"8.1.4","Line of Business":{"code":"LOB02","label":"AI Applications"}}]
Document Information
Modified date:
18 October 2021