Mercurial > hg > graal-compiler
changeset 19526:0c113733e339
Simplification in GraphUtil.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 20 Feb 2015 14:18:06 +0100 |
parents | c38f37298c10 |
children | d56b51bbdd98 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/util/GraphUtil.java |
diffstat | 1 files changed, 1 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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); } /**