Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 876 by anne.et...@gmail.com: FAMIX: Opposite reference between BehaviouralEntity and ImplicitVariable http://code.google.com/p/moose-technology/issues/detail?id=876
- There is a reference between ImplicitVariable and BehaviouralEntity (parentBehaviouralEntity) whose opposite reference is named localVariables. However, in BehaviouralEntity, the reference named localVariables points to LocalVariables. And there is no inheritance between ImplicitVariable and LocalVariable.
Please fill in the labels with the following information: * Type-Engineering * Component-FAMIX
Updates: Status: Fixed Owner: tu...@tudorgirba.com Labels: Milestone-4.7 Component-SmalltalkImporter Component-Famix
Comment #1 on issue 876 by tu...@tudorgirba.com: FAMIX: Opposite reference between BehaviouralEntity and ImplicitVariable http://code.google.com/p/moose-technology/issues/detail?id=876
Fixed and tested.
In the process, I also fixed and tested the import to ensure that implicit variables instances are not created unnecessarily. The problem was that when ensuring the implicit variable we got: ... at: name ifAbsentPut: (self createSpecialVariable: name forFamixMethod: aFAMIXMethod).
Instead we need:
at: name ifAbsentPut: [self createSpecialVariable: name forFamixMethod: aFAMIXMethod].
It took some 10 minutes to see the problem :)