1/* 2 * @test /nodynamiccopyright/ 3 * @bug 4022674 4 * @summary Compiler should detect throws-clauses' conflict. 5 * @author turnidge 6 * 7 * @compile/fail/ref=ThrowsConflict.out -XDrawDiagnostics ThrowsConflict.java 8 */ 9 10interface I { 11 void method(); 12} 13 14class A { 15 public void method() throws Exception { 16 } 17} 18 19public 20class ThrowsConflict extends A implements I { 21} 22