langtools/test/tools/javac/InterfaceObjectIncompatibility.java
author duke
Wed, 05 Jul 2017 23:01:50 +0200
changeset 44228 e46434c65a2b
parent 26529 10ec5e52bf75
permissions -rw-r--r--
Merge

/*
 * @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;

}