langtools/test/tools/javac/OverrideChecks/6199153/T6199153.java
author peterz
Fri, 28 May 2010 13:32:40 +0400
changeset 5594 3db39773da2e
parent 3766 7e2df99e9223
permissions -rw-r--r--
6954231: SynthTextPaneUI.installUI() doesn't set component to opaque even if prop was not set by client progr Reviewed-by: alexp
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3560
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
     1
/**
3766
7e2df99e9223 6875336: some tests should use /nodynamiccopyright/
jjg
parents: 3560
diff changeset
     2
 * @test /nodynamiccopyright/
3560
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
     3
 * @bug 6199153
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
     4
 * @summary Generic throws and overriding
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
     5
 * @author  mcimadamore
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
     6
 * @compile/fail/ref=T6199153.out -Xlint -Werror -XDrawDiagnostics T6199153.java
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
     7
 */
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
     8
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
     9
import java.io.IOException;
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    10
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    11
class T6199153 {
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    12
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    13
    static class A {
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    14
        public <T extends IOException> void m() throws T {}
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    15
    }
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    16
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    17
    static class B extends A {
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    18
        public void m() throws IOException {}
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    19
    }
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    20
}
bbfccbd92afe 6199153: Generic throws and overriding
mcimadamore
parents:
diff changeset
    21