# HG changeset patch # User twisti # Date 1381805189 25200 # Node ID 9ad59f7fd57e871f6017f7e959f58a10eacebc11 # Parent 083e90f11c93d7a4898c18a7aeec2113476d836d ConstantNode methods should not throw InternalError diff -r 083e90f11c93 -r 9ad59f7fd57e graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ConstantNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ConstantNode.java Tue Oct 15 02:07:33 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ConstantNode.java Mon Oct 14 19:46:29 2013 -0700 @@ -199,7 +199,7 @@ case Long: return ConstantNode.forLong(value, graph); default: - throw new InternalError("Should not reach here"); + throw GraalInternalError.shouldNotReachHere("unknown kind " + kind); } } @@ -210,7 +210,7 @@ case Double: return ConstantNode.forDouble(value, graph); default: - throw new InternalError("Should not reach here"); + throw GraalInternalError.shouldNotReachHere("unknown kind " + kind); } }