miroir de
https://github.com/eclipse-aspectj/aspectj.git
synchronisé 2024-07-25 22:34:45 +02:00
20 lignes
427 B
Java
20 lignes
427 B
Java
![]() |
import org.aspectj.testing.Tester;
|
||
|
|
||
|
/** @testcase Bugzilla Bug 29691
|
||
|
Static inner aspects cannot reference user defined pointcuts
|
||
|
|
||
|
*/
|
||
|
public class PcdLookup {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
}
|
||
|
|
||
|
public static aspect Referencer {
|
||
|
pointcut mainCall() : call(void main(..));
|
||
|
pointcut myMainCall() : mainCall() && outer();
|
||
|
}
|
||
|
|
||
|
pointcut outer(): within(PcdLookup);
|
||
|
}
|
||
|
|