jdk-24/test/langtools/tools/javac/InterfaceObjectIncompatibility.java

16 lines
403 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4479164
* @summary Throws clauses incompatible with Object methods allowed in interfaces
* @author gafter
*
* @compile/fail/ref=InterfaceObjectIncompatibility.out -XDrawDiagnostics InterfaceObjectIncompatibility.java
2007-12-01 00:00:00 +00:00
*/
interface InterfaceObjectIncompatibility {
String toString() throws java.io.IOException;
int hashCode() throws Exception;
}