# HG changeset patch # User Doug Simon # Date 1449873230 -3600 # Node ID 9248b33b07be3dc8ec429a5da4906f7d17e16adf # Parent 78a5a186757913e822d3a122dab02082c77acddd change assert to guarantee to more reliably detect outcome of Eclipse (non)annotation processing diff -r 78a5a1867579 -r 9248b33b07be graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ReplacementsImpl.java --- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ReplacementsImpl.java Fri Dec 11 14:45:57 2015 +0100 +++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ReplacementsImpl.java Fri Dec 11 23:33:50 2015 +0100 @@ -149,8 +149,12 @@ return null; } if (b.parsingIntrinsic()) { - assert !hasGeneratedInvocationPluginAnnotation(method) : format("%s should have been handled by a %s", method.format("%H.%n(%p)"), GeneratedInvocationPlugin.class.getSimpleName()); - assert !hasGenericInvocationPluginAnnotation(method) : format("%s should have been handled by %s", method.format("%H.%n(%p)"), WordOperationPlugin.class.getSimpleName()); + if (hasGeneratedInvocationPluginAnnotation(method)) { + throw new JVMCIError("%s should have been handled by a %s", method.format("%H.%n(%p)"), GeneratedInvocationPlugin.class.getSimpleName()); + } + if (hasGenericInvocationPluginAnnotation(method)) { + throw new JVMCIError("%s should have been handled by %s", method.format("%H.%n(%p)"), WordOperationPlugin.class.getSimpleName()); + } assert b.getDepth() < MAX_GRAPH_INLINING_DEPTH : "inlining limit exceeded";