< prev index next >
test/langtools/tools/javac/lambda/SourceLevelTest.java
Print this page
*** 1,11 ****
/*
* @test /nodynamiccopyright/
* @bug 8003280
* @summary Add lambda tests
* check that lambda features are not enabled with source < 8
! * @compile/fail/ref=SourceLevelTest.out -XDrawDiagnostics -source 7 SourceLevelTest.java
*/
class SourceLevelTest {
interface I {
default void m() { SourceLevelTest.impl(this); }
--- 1,11 ----
/*
* @test /nodynamiccopyright/
* @bug 8003280
* @summary Add lambda tests
* check that lambda features are not enabled with source < 8
! * @compile/fail/ref=SourceLevelTest.out -XDrawDiagnostics -source 7 -Xlint:-options SourceLevelTest.java
*/
class SourceLevelTest {
interface I {
default void m() { SourceLevelTest.impl(this); }
< prev index next >