mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
21 lines
391 B
Java
21 lines
391 B
Java
|
|
class BaseApp {
|
|
int i;
|
|
int get() { return i; }
|
|
}
|
|
|
|
/** @testStatement If there is no return in around returning a result, javac catches error */
|
|
public class NoReturnInProceed {
|
|
public static void main(String[] args) {
|
|
BaseApp target = new BaseApp();
|
|
target.get();
|
|
}
|
|
}
|
|
|
|
aspect Aspect {
|
|
int around() : get(int BaseApp.i) {
|
|
proceed();
|
|
// return proceed();
|
|
}
|
|
}
|