]> source.dussan.org Git - aspectj.git/commitdiff
Aha! You foul LazyTjp testcase. The fix I put in to properly support '-proceedOnErr...
authoraclement <aclement>
Mon, 18 Oct 2004 12:04:09 +0000 (12:04 +0000)
committeraclement <aclement>
Mon, 18 Oct 2004 12:04:09 +0000 (12:04 +0000)
org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PerformanceTestCase.java

index 433478de8a84fdae9a4fe6f47e61daaf49a73dec..bbbe9c58b55363c172970d14a6936851822d68e0 100644 (file)
@@ -36,7 +36,11 @@ public class PerformanceTestCase extends CommandTestCase {
        }
        
        public void testLazyTjp() throws IOException {
-               checkCompile("src1/LazyTjp.aj", new String[] {"-XlazyTjp","-Xlint:error"}, new int[] {96});
+               // Pass -Xlint:error to promote the 'can not implement lazyTjp on this 
+               //   joinpoint method-execution(int LazyTjp.doit3(int)) because around advice is used [Xlint:canNotImplementLazyTjp]'
+               // into an error so that we can use checkCompiles() ability to check errors occur.
+               // Pass -proceedOnError to ensure even though we get that message, we still get the class file on disk
+               checkCompile("src1/LazyTjp.aj", new String[] {"-XlazyTjp","-Xlint:error","-proceedOnError"}, new int[] {96});
                TestUtil.runMain("out", "LazyTjp");
        }
 }