Skip to content
Snippets Groups Projects
Commit 84ad2a2b authored by Emmanouil (Manos) Koukoutos's avatar Emmanouil (Manos) Koukoutos Committed by Etienne Kneuss
Browse files

CodeGenEvaluator catches underlying StackOverflowError

parent 0e06d5ac
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ class CodeGenEvaluator(ctx : LeonContext, val unit : CompilationUnit) extends Ev
case e : java.lang.ExceptionInInitializerError =>
EvaluationResults.RuntimeError(e.getException.getMessage)
case so : java.lang.StackOverflowError =>
EvaluationResults.RuntimeError("Stack overflow")
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment