Mercurial > hg > graal-compiler
changeset 23329:3609732616e9
Include exception type in detail message for compilation failures
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 19 Jan 2016 10:57:09 -0800 |
parents | 63d8cdbb2c05 |
children | 15964d565d42 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java Tue Jan 19 10:49:37 2016 -0800 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java Tue Jan 19 10:57:09 2016 -0800 @@ -233,9 +233,10 @@ handleException(t); /* * Treat random exceptions from the compiler as indicating a problem compiling this - * method. + * method. Report the result of toString instead of getMessage to ensure that the + * exception type is included in the output in case there's no detail mesage. */ - return CompilationRequestResult.failure(t.getMessage(), false); + return CompilationRequestResult.failure(t.toString(), false); } finally { try { int compiledBytecodes = 0;