2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-02 19:04:04 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4053998
|
|
|
|
* @summary Compiler used to not notice the uncaught checked exception.
|
|
|
|
* @author turnidge
|
|
|
|
*
|
2014-07-02 19:04:04 +00:00
|
|
|
* @compile/fail/ref=UncaughtException.out -XDrawDiagnostics UncaughtException.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
interface I {
|
|
|
|
void throwCheckedException ();
|
|
|
|
}
|
|
|
|
|
|
|
|
class A {
|
|
|
|
public void throwCheckedException () throws Throwable {
|
|
|
|
throw new Throwable();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class B extends A implements I {
|
|
|
|
}
|
|
|
|
|
|
|
|
public class UncaughtException {
|
|
|
|
}
|