# HG changeset patch # User Thomas Wuerthinger # Date 1424438286 -3600 # Node ID 0c113733e33900e2fed62e59f3a70f613361b989 # Parent c38f37298c10517c0731292e12bb9d1f5e20e7ed Simplification in GraphUtil. diff -r c38f37298c10 -r 0c113733e339 graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java Fri Feb 20 13:59:11 2015 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java Fri Feb 20 14:18:06 2015 +0100 @@ -275,16 +275,7 @@ */ public static RuntimeException approxSourceException(Node node, Throwable cause) { final StackTraceElement[] elements = approxSourceStackTraceElement(node); - @SuppressWarnings("serial") - BailoutException exception = new BailoutException((cause == null) ? null : cause.getMessage(), cause) { - - @Override - public final synchronized Throwable fillInStackTrace() { - setStackTrace(elements); - return this; - } - }; - return exception; + return createBailoutException(cause == null ? null : cause.getMessage(), cause, elements); } /**