jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 4479164
4* @summary Throws clauses incompatible with Object methods allowed in interfaces
5* @author gafter
6*
7* @compile/fail/ref=InterfaceObjectIncompatibility.out -XDrawDiagnostics InterfaceObjectIncompatibility.java
8*/
9
10interface InterfaceObjectIncompatibility {
11
12String toString() throws java.io.IOException;
13int hashCode() throws Exception;
14
15}
16