aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/NestedFinally.java
blob: b67ea771ee18d2c926b3ed1f28f54aef516e20b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class NestedFinally {
    public static void main(String[] args) {
	m(3);
    }
    public static Object m(int key) {
	try {
	    int x = 3;
	    int y = 4; 
	    int i = 5;
	    try {
		return null;
	    } finally {
		i++;
	    }
	} finally {
	    Object x = null;
	    Object y = null;
	    Object i = null;
	    key++;
	}
    }
}