APAR status
Closed as Permanent restriction.
Error description
A customer modified the ?siteJava.prp? file to customize the con figuration. He set the ?JAVA_CG:Class:ReactiveThreadSettingPolic y? property to ?UserDefined?. This results in a missing initRela tions() call within in the generated constructor. Attached there is a sample model containing two classes. ?CompositionClass? ha s a 1:1 composition to ?CompositeClass?. The code looks like this: Code with default settings: public CompositionClass() { initRelations(); } Code with modified settings: public CompositionClass() { } Rhapsody in Java version 7.5.0 is used. Please find a sample mod el and the customized ?siteJava.prp? file attached. To reproduce replace your ?siteJava.prp? file with the attached one, open th e sample model and generate code. (also see Escalation:RATLC01530591)
Local fix
Problem summary
When user set the value of the property JAVA_CG::Class::ReactiveThreadSettingPolicy to UserDefined, the generated constructor was missing an initRelations() call.
Problem conclusion
Modifying the value of the property ReactiveThreadSettingPolicy means that the part may not have the same context as the owner. The method initRelations includes an active context parameter. This means that the user must add the initRelations call to the constructor, specifying the appropriate parameter.
Temporary fix
Comments
APAR Information
APAR number
PM13081
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
750
Status
CLOSED PRS
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-04-26
Closed date
2010-05-31
Last modified date
2010-05-31
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
31 May 2010