summaryrefslogtreecommitdiffstats
path: root/tests/errors/UndeclaredThrows.java
blob: 352341cf80042be723b1f6a6d62bbcd85df8a15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.io.*;

public class UndeclaredThrows {

}

class C {
    public void m() throws Exception {
    }

    public void m1() {
        m();
    }

    public void m2() {
        try {
            m1();
        } catch (IOException ioe) { }
    }
}