2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-06-05 10:57:10 -07:00
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 4022674
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary Compiler should detect throws-clauses' conflict.
|
2014-06-05 10:57:10 -07:00
|
|
|
* @author turnidge
|
2007-12-01 00:00:00 +00:00
|
|
|
*
|
2014-06-05 10:57:10 -07: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 {
|
|
|
|
}
|