aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/ThrowsClause.java
blob: ca919b6e6c9a499106d464a609c09dc750b023d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class C {
    public void m() throws Integer { } //ERROR Integer is not a Throwable

    public C() throws C { } //ERROR C is not a Throwable
}


class Sup {
    public void m() {}
}

class Sub extends Sup {
    public void m() throws Exception {}
}