langtools/test/tools/javac/missingSuperRecovery/MissingInterfaceTest.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 23399 a7f649f8e860
permissions -rw-r--r--
Merge
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
}