equal
deleted
inserted
replaced
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); } |