зеркало из
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
![jhugunin](/assets/img/avatar_default.png)
java.lang.VerifyError in generated code Bug was that a portion of ReferencePointcut.concretize was not behaving functionally but was mutating state.
25 строки
546 B
Java
25 строки
546 B
Java
public class AdviceInteraction {
|
|
public static void main(String [] args) {
|
|
new C().m1();
|
|
}
|
|
}
|
|
|
|
class C {
|
|
public void m1() {}
|
|
public void m2() {}
|
|
}
|
|
|
|
aspect A {
|
|
pointcut exec1(C c): this(c) && execution(void m1());
|
|
pointcut execs(C c): exec1(c);
|
|
|
|
before (): execs(*) {}
|
|
before (C c): execs(c) {}
|
|
|
|
// This ordering works correctly
|
|
pointcut exec2(C c): this(c) && execution(void m2());
|
|
pointcut execs2(C c): exec2(c);
|
|
|
|
before (C c): execs2(c) {}
|
|
before (): execs2(*) {}
|
|
} |