test/langtools/jdk/jshell/CompilerOptionsTest.java
changeset 48054 702043a4cdeb
parent 47216 71c04702a3d5
child 51047 860a3648c494
equal deleted inserted replaced
48053:6dcbdc9f99fc 48054:702043a4cdeb
    49     }
    49     }
    50 
    50 
    51     public void testSourceVersion() {
    51     public void testSourceVersion() {
    52         assertEval("import java.util.function.*;", added(VALID));
    52         assertEval("import java.util.function.*;", added(VALID));
    53         assertDeclareFail("Function<Integer,Integer> f = x -> x*2;",
    53         assertDeclareFail("Function<Integer,Integer> f = x -> x*2;",
    54                 new ExpectedDiagnostic("compiler.err.lambda.not.supported.in.source", 32, 32, 32, -1, -1, Diagnostic.Kind.ERROR));
    54                 new ExpectedDiagnostic("compiler.err.feature.not.supported.in.source.plural", 32, 32, 32, -1, -1, Diagnostic.Kind.ERROR));
    55     }
    55     }
    56 }
    56 }