langtools/test/tools/javac/InterfaceObjectIncompatibility.java
author lana
Tue, 25 Apr 2017 07:38:50 +0000
changeset 44909 b53c770dc04f
parent 26529 10ec5e52bf75
permissions -rw-r--r--
Added tag jdk-10+1 for changeset 3a409afd3f86

/*
 * @test  /nodynamiccopyright/
 * @bug 4479164
 * @summary Throws clauses incompatible with Object methods allowed in interfaces
 * @author gafter
 *
 * @compile/fail/ref=InterfaceObjectIncompatibility.out -XDrawDiagnostics  InterfaceObjectIncompatibility.java
 */

interface InterfaceObjectIncompatibility {

    String toString() throws java.io.IOException;
    int hashCode() throws Exception;

}