дзеркало
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-07-24 05:44:46 +02:00
24 рядки
510 B
Java
24 рядки
510 B
Java
import org.aspectj.testing.Tester;
|
|
|
|
// PR#280 return statement not present in around with returns
|
|
|
|
public aspect NoReturnStatement {
|
|
public static void main(String[] args) { test(); }
|
|
|
|
public static void test() {
|
|
Tester.check(true, "passed");
|
|
}
|
|
|
|
public int m() { return 1; }
|
|
|
|
int around(C t): target(t) && call(int m()) {
|
|
int x = proceed(t);
|
|
// uncomment this to make code compile:
|
|
// return x;
|
|
}
|
|
}
|
|
|
|
class C {
|
|
public int m() { return 1; }
|
|
}
|