You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An OperationRequiredRole in Pcm creates, among other things, an assignment statement in the constructor of the associated component. When renaming an OperationRequiredRole, the old statement is not removed but a new assignment statement is added. The same behavior probably also occurs on other changes to OperationRequiredRole.
public class TestBasicComponentImpl {
public TestBasicComponentImpl(testRepository.contracts.TestInterface newName) {
this.oldName = oldName; // not removed assignment
this.newName = newName;
}
private testRepository.contracts.TestInterface newName;
}
To fix this the correspondence model of OperationRequiredRoles has to be changed. Currently, a part of the correspondences is not resolved via the correspondence model but via the entity name.
#243 adds a unit test which tests this behavior, that is currently disabled (OperationRequiredRoleMappingTransformationTest.testChangeOfOperationRequiredRole)
The text was updated successfully, but these errors were encountered:
JanWittler
added
Java
Related to Java Applications or Java Domain
PCM
Related to PCM Applications or PCM Domain
labels
Nov 4, 2022
An OperationRequiredRole in Pcm creates, among other things, an assignment statement in the constructor of the associated component. When renaming an OperationRequiredRole, the old statement is not removed but a new assignment statement is added. The same behavior probably also occurs on other changes to OperationRequiredRole.
To fix this the correspondence model of OperationRequiredRoles has to be changed. Currently, a part of the correspondences is not resolved via the correspondence model but via the entity name.
#243 adds a unit test which tests this behavior, that is currently disabled (OperationRequiredRoleMappingTransformationTest.testChangeOfOperationRequiredRole)
The text was updated successfully, but these errors were encountered: