mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
21 lines
469 B
Java
21 lines
469 B
Java
![]() |
// for Bug#: 32428
|
||
|
import org.aspectj.testing.Tester;
|
||
|
|
||
|
|
||
|
public class InnerPointcut {
|
||
|
public static void main(String[] args) {
|
||
|
Tester.checkEqual(TrackTestCase.note, "ran");
|
||
|
}
|
||
|
|
||
|
pointcut testcutOuter(): within(InnerPointcut);
|
||
|
|
||
|
static aspect TrackTestCase {
|
||
|
static String note = "not run yet";
|
||
|
pointcut testcut() : execution(public void mai*(..));
|
||
|
before() : testcut() && testcutOuter() {
|
||
|
note = "ran";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|