Ver código fonte

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

tags/V1_6_3rc1
aclement 15 anos atrás
pai
commit
368883bf84
2 arquivos alterados com 17 adições e 0 exclusões
  1. 7
    0
      tests/bugs163/pr256458/Code.java
  2. 10
    0
      tests/bugs163/pr256458/Code2.java

+ 7
- 0
tests/bugs163/pr256458/Code.java Ver arquivo

@@ -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 Ver arquivo

@@ -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() {
}

}

Carregando…
Cancelar
Salvar