Mercurial > hg > graal-compiler
changeset 23159:9248b33b07be
change assert to guarantee to more reliably detect outcome of Eclipse (non)annotation processing
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 11 Dec 2015 23:33:50 +0100 |
parents | 78a5a1867579 |
children | c01c5942b880 |
files | graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/ReplacementsImpl.java |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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";