aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/NoReturnInProceed.java
blob: cd4fe8997762e46ff11dc20e2564cf26cd4e7d61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
	}
}