A fix is available
APAR status
Closed as program error.
Error description
Headline: Generating code of a specific class in Rational Rhapsody in Ada results in java.lang.ClassCastException. Abstract: Attempts to generate code of a particular class in Ada results in: Evaluation of RiA_CG_Project Generating C:\Documents and Settings\mcmahon\My Documents\Tools\Rhapsody\Installation_Tests\Tests_for_8_0_5\DDS_ class\Pr oject_DDS_Class\DefaultComponent\DefaultConfig\readme.txt Done. Error during Generation. Error Description: 1] Open the attached model in Rhapsody in Ada. 2] Generate code for the class DDS_Topic_Instance_Reader. 2. Rational Rhapsody will generate code with error. java.lang.ClassCastException: com.sodius.mdw.metamodel.rhapsody.proxy.impl.PackageImpl incompatible with com.sodius.mdw.metamodel.rhapsody.Classifier It is a regression and was working in Rhapsody 8.0.1. WORKAROUND: The workaround is to define the package Interface_Template_Pkg in a static class rather than in a package; or to define the types of this package inside a class.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** In a specific use case, CG raises a class cast execption and stop generation
Problem conclusion
The code generator is fixed in order parse the model correctely in this particular use case.
Temporary fix
Comments
APAR Information
APAR number
PI12080
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
805
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2014-02-19
Closed date
2014-06-02
Last modified date
2014-06-02
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
R805 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.0.5","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
14 October 2021