Debian Codegraph @

framework/tests/all-systems/Issue1520.java

raw
1 // Test case for Issue 1520
2 // https://github.com/typetools/checker-framework/issues/1520
3
4 import java.io.IOException;
5
6 public class Issue1520 {
7 void start() {
8 new Runnable() {
9 public void run() {
10 try {
11 _run();
12 } finally {
13 signal(); // Evaluating this node type as member of implicit `this` will throw
14 // NPE
15 }
16 }
17 };
18 }
19
20 void signal() {}
21
22 void _run() {}
23
24 static class Inner {}
25
26 void test2() throws IOException {
27 try {
28 throwIO();
29 } finally {
30 Inner inner = new Inner();
31 }
32 }
33
34 void throwIO() throws IOException {}
35 }