# HG changeset patch # User Andreas Woess # Date 1380206315 -7200 # Node ID 4937347fa343de3d93408862f1b16c690007e643 # Parent ec90fc830e451bba2f3601754d098101cd08ceb4 Truffle: approximate source location for "illegal recursive call". diff -r ec90fc830e45 -r 4937347fa343 graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCache.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCache.java Thu Sep 26 13:48:19 2013 +0200 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/TruffleCache.java Thu Sep 26 16:38:35 2013 +0200 @@ -192,7 +192,8 @@ } if (inlineGraph == this.markerGraph) { // Can happen for recursive calls. - throw new IllegalStateException("Found illegal recursive call to " + methodCallTargetNode.targetMethod() + ", must annotate such calls with @CompilerDirectives.Slowpath!"); + throw GraphUtil.approxSourceException(methodCallTargetNode, new IllegalStateException("Found illegal recursive call to " + methodCallTargetNode.targetMethod() + + ", must annotate such calls with @CompilerDirectives.SlowPath!")); } Invoke invoke = methodCallTargetNode.invoke(); InliningUtil.inline(invoke, inlineGraph, true);