changeset 10764:d2f8addaf504

assertion in GraalCompiler (don't parse @Test methods)
author Lukas Stadler <lukas.stadler@jku.at>
date Mon, 15 Jul 2013 15:58:48 +0200
parents 5e338844c64c
children ae3d070ab223
files graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java	Mon Jul 15 15:58:13 2013 +0200
+++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java	Mon Jul 15 15:58:48 2013 +0200
@@ -507,6 +507,7 @@
     }
 
     private StructuredGraph parse0(Method m, GraphBuilderConfiguration conf) {
+        assert m.getAnnotation(Test.class) == null : "shouldn't parse method with @Test annotation: " + m;
         ResolvedJavaMethod javaMethod = runtime.lookupJavaMethod(m);
         StructuredGraph graph = new StructuredGraph(javaMethod);
         new GraphBuilderPhase(runtime, conf, OptimisticOptimizations.ALL).apply(graph);