diff options
Diffstat (limited to 'tests/pureJava/NestedFinally.java')
-rw-r--r-- | tests/pureJava/NestedFinally.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/pureJava/NestedFinally.java b/tests/pureJava/NestedFinally.java new file mode 100644 index 000000000..b67ea771e --- /dev/null +++ b/tests/pureJava/NestedFinally.java @@ -0,0 +1,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++; + } + } +} |