Skip to content

Commit

Permalink
fixed catch of stackoverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 22, 2024
1 parent e91d068 commit 5004ced
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/org/rascalmpl/semantics/dynamic/Statement.java
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,9 @@ private static boolean isCatchStackOverflow(org.rascalmpl.ast.Expression pattern
}
else if (pattern.isCallOrTree()) {
var called = pattern.getExpression();
if (called.hasName()) {
return pattern.getArguments().isEmpty() && "StackOverflow".equals(Names.name(called.getName()));
if (called.isQualifiedName()) {
var qname = called.getQualifiedName();
return pattern.getArguments().isEmpty() && "StackOverflow".equals(Names.consName(qname));
}
}

Expand Down

0 comments on commit 5004ced

Please sign in to comment.