test/langtools/jdk/jshell/CompilerOptionsTest.java
changeset 48054 702043a4cdeb
parent 47216 71c04702a3d5
child 51047 860a3648c494
--- a/test/langtools/jdk/jshell/CompilerOptionsTest.java	Mon Dec 04 10:13:58 2017 +0100
+++ b/test/langtools/jdk/jshell/CompilerOptionsTest.java	Mon Dec 04 17:54:49 2017 +0000
@@ -51,6 +51,6 @@
     public void testSourceVersion() {
         assertEval("import java.util.function.*;", added(VALID));
         assertDeclareFail("Function<Integer,Integer> f = x -> x*2;",
-                new ExpectedDiagnostic("compiler.err.lambda.not.supported.in.source", 32, 32, 32, -1, -1, Diagnostic.Kind.ERROR));
+                new ExpectedDiagnostic("compiler.err.feature.not.supported.in.source.plural", 32, 32, 32, -1, -1, Diagnostic.Kind.ERROR));
     }
 }