langtools/test/tools/javac/OverrideChecks/6199153/T6199153.java
author jjg
Thu, 27 Aug 2009 11:08:27 -0700
changeset 3766 7e2df99e9223
parent 3560 bbfccbd92afe
permissions -rw-r--r--
6875336: some tests should use /nodynamiccopyright/ Reviewed-by: darcy

/**
 * @test /nodynamiccopyright/
 * @bug 6199153
 * @summary Generic throws and overriding
 * @author  mcimadamore
 * @compile/fail/ref=T6199153.out -Xlint -Werror -XDrawDiagnostics T6199153.java
 */

import java.io.IOException;

class T6199153 {

    static class A {
        public <T extends IOException> void m() throws T {}
    }

    static class B extends A {
        public void m() throws IOException {}
    }
}