Browse Source

256458: test and fix: better message for if() pointcut anno style problems

tags/V1_6_3rc1
aclement 15 years ago
parent
commit
368883bf84
2 changed files with 17 additions and 0 deletions
  1. 7
    0
      tests/bugs163/pr256458/Code.java
  2. 10
    0
      tests/bugs163/pr256458/Code2.java

+ 7
- 0
tests/bugs163/pr256458/Code.java View File

@@ -0,0 +1,7 @@
import org.aspectj.lang.annotation.*;

@Aspect
public class Code {
@Before("if(37!=42)")
public void runme() {}
}

+ 10
- 0
tests/bugs163/pr256458/Code2.java View File

@@ -0,0 +1,10 @@
import org.aspectj.lang.annotation.*;

@Aspect
public class Code2 {

@Around("execution(* Code.*(..)) && if(java.lang.System.currentTimeMillis() > 1)")
public void foo() {
}

}

Loading…
Cancel
Save