mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
05dabd1821
proceed used as method name in around advice
13 lines
434 B
Plaintext
13 lines
434 B
Plaintext
import org.aspectj.testing.Tester;
|
|
|
|
public class Proceeding2 {
|
|
public static void main(String[] args) {
|
|
Tester.checkFailed("Proceed with a receiver should be treated as a method call, not the special form");
|
|
}
|
|
static aspect A {
|
|
void around() : execution(void main(String[])) {
|
|
Proceeding2.proceed(null); // BUG: treated as proceed(Object);
|
|
}
|
|
}
|
|
static void proceed(Object o) {}
|
|
} |