diff options
author | aclement <aclement> | 2004-10-18 12:04:09 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-10-18 12:04:09 +0000 |
commit | cd39b13b695be9b8536fee22e6f6cba9e16aa014 (patch) | |
tree | 132c0d689489bb4315e56699104e3e92139a3d72 /org.aspectj.ajdt.core/testsrc | |
parent | b0aed7288020a070eba54dedb7810ec68f5055d6 (diff) | |
download | aspectj-cd39b13b695be9b8536fee22e6f6cba9e16aa014.tar.gz aspectj-cd39b13b695be9b8536fee22e6f6cba9e16aa014.zip |
Aha! You foul LazyTjp testcase. The fix I put in to properly support '-proceedOnError' highlighted a problem in this testcase which (until recently) was producing a compile time error *and* still writing the .class file out to disk.
Diffstat (limited to 'org.aspectj.ajdt.core/testsrc')
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PerformanceTestCase.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PerformanceTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PerformanceTestCase.java index 433478de8..bbbe9c58b 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PerformanceTestCase.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PerformanceTestCase.java @@ -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"); } } |