Skip to content

Commit 1bbf878

Browse files
committed
ST6RI-857 Added owned cross feature type before default subsetting.
1 parent 48738d8 commit 1bbf878

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

kerml/src/examples/Simple Tests/Associations.kerml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
package Associations {
1+
package Associations {
2+
datatype X;
3+
class Y;
4+
25
assoc A {
3-
end x;
4-
end [1..*] feature y;
6+
end x_cross [1..1] feature x : X;
7+
end y_cross [1..*] feature y : Y;
58
}
69

710
assoc B specializes A {

org.omg.sysml/src/org/omg/sysml/adapter/FeatureAdapter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,14 @@ protected Feature getBoundValueResult() {
228228
*/
229229
@Override
230230
public void addDefaultGeneralType() {
231+
// Note: This must happen before call to super, because default supertype depends on ownedTyping.
232+
addOwnedCrossFeatureSpecialization();
233+
231234
super.addDefaultGeneralType();
232235

233236
addBoundValueSubsetting();
234237
addParticipantSubsetting();
235238
addCrossingSpecialization();
236-
addOwnedCrossFeatureSpecialization();
237239
}
238240

239241

0 commit comments

Comments
 (0)