Skip to content

Commit db3d589

Browse files
committed
fix: Loading of model with datatypes crashes
- Changed invalid cast from MClass to MClassifier
1 parent d8c1280 commit db3d589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

use-core/src/main/java/org/tzi/use/analysis/coverage/AbstractCoverageVisitor.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
package org.tzi.use.analysis.coverage;
2121

22-
import java.util.Stack;
23-
2422
import org.tzi.use.uml.mm.*;
2523
import org.tzi.use.uml.ocl.expr.*;
2624

25+
import java.util.Stack;
26+
2727
/**
2828
* Abstract visitor implementation.
2929
*
@@ -78,7 +78,7 @@ public void visitAsType(ExpAsType exp) {
7878
@Override
7979
public void visitAttrOp(ExpAttrOp exp) {
8080
exp.objExp().processWithVisitor(this);
81-
addAttributeCoverage((MClass) exp.objExp().type(), exp.attr());
81+
addAttributeCoverage((MClassifier) exp.objExp().type(), exp.attr());
8282
}
8383

8484
@Override

0 commit comments

Comments
 (0)