langtools/test/tools/javac/missingSuperRecovery/MissingInterfaceTest.java
author duke
Wed, 05 Jul 2017 20:10:53 +0200
changeset 27979 cc2cf80c2f39
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
}