# HG changeset patch # User Tom Rodriguez # Date 1453229829 28800 # Node ID 3609732616e93b27584addba5ef0b7082d26a515 # Parent 63d8cdbb2c0553d5f6b01ff50e1eb5a7284f7016 Include exception type in detail message for compilation failures diff -r 63d8cdbb2c05 -r 3609732616e9 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java --- 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;