Mercurial > hg > truffle
diff graal/com.oracle.graal.graphbuilderconf/src/com/oracle/graal/graphbuilderconf/MethodSubstitutionPlugin.java @ 21543:93c50cefb9e8
moved GraalInternalError to com.oracle.jvmci.common and renamed it to JVMCIError (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 25 May 2015 23:30:34 +0200 |
parents | 09d9141cf7d8 |
children | f4b3a6dadb44 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.graphbuilderconf/src/com/oracle/graal/graphbuilderconf/MethodSubstitutionPlugin.java Mon May 25 22:30:44 2015 +0200 +++ b/graal/com.oracle.graal.graphbuilderconf/src/com/oracle/graal/graphbuilderconf/MethodSubstitutionPlugin.java Mon May 25 23:30:34 2015 +0200 @@ -29,9 +29,9 @@ import sun.misc.*; import com.oracle.graal.api.meta.*; -import com.oracle.graal.compiler.common.*; import com.oracle.graal.graphbuilderconf.MethodIdMap.Receiver; import com.oracle.graal.nodes.*; +import com.oracle.jvmci.common.*; /** * An {@link InvocationPlugin} for a method where the implementation of the method is provided by a @@ -107,14 +107,14 @@ /** * Gets the reflection API version of the substitution method. */ - Method getJavaSubstitute() throws GraalInternalError { + Method getJavaSubstitute() throws JVMCIError { Method substituteMethod = lookupSubstitute(); int modifiers = substituteMethod.getModifiers(); if (Modifier.isAbstract(modifiers) || Modifier.isNative(modifiers)) { - throw new GraalInternalError("Substitution method must not be abstract or native: " + substituteMethod); + throw new JVMCIError("Substitution method must not be abstract or native: " + substituteMethod); } if (!Modifier.isStatic(modifiers)) { - throw new GraalInternalError("Substitution method must be static: " + substituteMethod); + throw new JVMCIError("Substitution method must be static: " + substituteMethod); } return substituteMethod; } @@ -153,7 +153,7 @@ return m; } } - throw new GraalInternalError("No method found specified by %s", this); + throw new JVMCIError("No method found specified by %s", this); } /** @@ -173,7 +173,7 @@ if (optional) { return null; } - throw new GraalInternalError("Could not resolve type " + className); + throw new JVMCIError("Could not resolve type " + className); } } @@ -194,7 +194,7 @@ return metaAccess.lookupJavaMethod(m).asStackTraceElement(0); } } - throw new GraalInternalError("could not find method named \"execute\" in " + c.getName()); + throw new JVMCIError("could not find method named \"execute\" in " + c.getName()); } @Override