test/langtools/tools/javac/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java
author vromero
Tue, 03 Apr 2018 23:58:52 -0400
changeset 49518 d0ff431a596e
parent 47216 71c04702a3d5
permissions -rw-r--r--
8198314: javac hidden options violate standard syntax for options Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21716
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
     1
/*
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
     3
 * @bug 8026963
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
     4
 * @summary type annotations code crashes for lambdas with void argument
49518
d0ff431a596e 8198314: javac hidden options violate standard syntax for options
vromero
parents: 47216
diff changeset
     5
 * @compile/fail/ref=TypeAnnotationsCrashWithErroneousTreeTest.out -XDrawDiagnostics --should-stop=at=FLOW TypeAnnotationsCrashWithErroneousTreeTest.java
21716
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
     6
 */
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
     7
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
     8
public class TypeAnnotationsCrashWithErroneousTreeTest {
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
     9
    private void t(this) {}
fdb441b50289 8026963: type annotations code crashes for code with erroneous trees
vromero
parents:
diff changeset
    10
}