소스 검색

tests for pr78707, before returning and before throwing advice

tags/V1_5_0M3
acolyer 19 년 전
부모
커밋
b2b46ce365
3개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 11
    0
      tests/bugs150/pr78707.aj
  2. 4
    0
      tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
  3. 7
    0
      tests/src/org/aspectj/systemtest/ajc150/ajc150.xml

+ 11
- 0
tests/bugs150/pr78707.aj 파일 보기

@@ -0,0 +1,11 @@
public aspect pr78707 {
before() returning : execution(* *(..)) {
// yeah, right!
}
before() throwing : execution(* *(..)) {
System.out.println("I'm not flippin' phsycic you know!");
}
}

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java 파일 보기

@@ -226,6 +226,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("before and after are valid identifiers in classes");
}
public void testNoBeforeReturningAdvice() {
runTest("before returning advice not allowed!");
}
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {

+ 7
- 0
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml 파일 보기

@@ -67,6 +67,13 @@
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="78707" title="before returning advice not allowed!">
<compile files="pr78707.aj">
<message line="3" kind="error" text="Syntax error on token &quot;returning&quot;, delete this token"/>
<message line="3" kind="error" text="Syntax error on token &quot;throwing&quot;, delete this token"/>
</compile>
</ajc-test>
<ajc-test dir="bugs150" pr="107059" title="parser crashes on call(void (@a *)(..)">
<compile files="pr107059.aj">
<message line="3" kind="error" text="Syntax error on token &quot;(&quot;, &quot;name pattern&quot; expected"/>

Loading…
취소
저장