test/langtools/tools/javac/lambda/SourceLevelTest.java
changeset 51047 860a3648c494
parent 47216 71c04702a3d5
equal deleted inserted replaced
51046:69634e97740c 51047:860a3648c494
     1 /*
     1 /*
     2  * @test /nodynamiccopyright/
     2  * @test /nodynamiccopyright/
     3  * @bug 8003280
     3  * @bug 8003280
     4  * @summary Add lambda tests
     4  * @summary Add lambda tests
     5  *  check that lambda features are not enabled with source < 8
     5  *  check that lambda features are not enabled with source < 8
     6  * @compile/fail/ref=SourceLevelTest.out -XDrawDiagnostics -source 7 SourceLevelTest.java
     6  * @compile/fail/ref=SourceLevelTest.out -XDrawDiagnostics -source 7 -Xlint:-options SourceLevelTest.java
     7  */
     7  */
     8 
     8 
     9 class SourceLevelTest {
     9 class SourceLevelTest {
    10     interface I {
    10     interface I {
    11         default void m() { SourceLevelTest.impl(this); }
    11         default void m() { SourceLevelTest.impl(this); }