22 lines
379 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
* @bug 4022674
2007-12-01 00:00:00 +00:00
* @summary Compiler should detect throws-clauses' conflict.
* @author turnidge
2007-12-01 00:00:00 +00:00
*
* @compile/fail/ref=ThrowsConflict.out -XDrawDiagnostics ThrowsConflict.java
2007-12-01 00:00:00 +00:00
*/
interface I {
void method();
}
class A {
public void method() throws Exception {
}
}
public
class ThrowsConflict extends A implements I {
}