소스 검색

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.

tags/V1_2_1
aclement 19 년 전
부모
커밋
cd39b13b69
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/PerformanceTestCase.java

+ 5
- 1
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");
}
}

Loading…
취소
저장