langtools/test/tools/javac/InterfaceObjectIncompatibility.java
author hannesw
Tue, 22 Mar 2016 14:23:16 +0100
changeset 36690 06b714373aa4
parent 26529 10ec5e52bf75
permissions -rw-r--r--
8151810: for-in iteration does not provide per-iteration scope Reviewed-by: attila, lagergren

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

}