# HG changeset patch # User Lukas Stadler # Date 1373896728 -7200 # Node ID d2f8addaf5049ec5844383706653fb66eff80640 # Parent 5e338844c64c3b9b991bcb1cabb74d6462505606 assertion in GraalCompiler (don't parse @Test methods) diff -r 5e338844c64c -r d2f8addaf504 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java --- 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);