changeset 20167:6b119b6362de

more robust error handling
author Doug Simon <doug.simon@oracle.com>
date Sat, 04 Apr 2015 22:59:19 +0200
parents 28a85fa57b27
children f0f725496f2a
files graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRInstructionClass.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRInstructionClass.java	Sat Apr 04 21:57:19 2015 +0200
+++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/LIRInstructionClass.java	Sat Apr 04 22:59:19 2015 +0200
@@ -189,7 +189,7 @@
             return opcodeConstant;
         }
         assert opcodeIndex != -1;
-        return data.getObject(obj, opcodeIndex).toString();
+        return String.valueOf(data.getObject(obj, opcodeIndex));
     }
 
     final boolean hasOperands() {