langtools/test/tools/javac/missingSuperRecovery/MissingInterfaceTest.java
author sogoel
Thu, 05 Jun 2014 10:57:10 -0700
changeset 24797 850ebd4d80a7
parent 23399 a7f649f8e860
permissions -rw-r--r--
8044072: Group 2: create .out files for OverrideChecks tests in tools/javac dir Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23399
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     1
/*
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     3
 * @bug 8036007
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     4
 * @summary javac crashes when encountering an unresolvable interface
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     5
 * @build MissingInterfaceTestDep
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     6
 * @clean Closeable
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     7
 * @compile/fail/ref=MissingInterfaceTest.out -XDrawDiagnostics MissingInterfaceTest.java
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     8
 */
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
     9
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
    10
public class MissingInterfaceTest {
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
    11
    void test(MissingInterfaceTestDep s) {
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
    12
        s.call();
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
    13
        s.another();
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
    14
    }
a7f649f8e860 8036007: javac crashes when encountering an unresolvable interface
vromero
parents:
diff changeset
    15
}