changeset 48278:1fcd08a0743a lvti

Fix: build is broken after latest merge
author mcimadamore
date Wed, 06 Dec 2017 11:24:05 +0000
parents cda699d0e6fa
children 085ab216acae
files src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java	Tue Dec 05 23:05:28 2017 +0100
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java	Wed Dec 06 11:24:05 2017 +0000
@@ -3849,7 +3849,7 @@
             setErrorEndPos(token.pos);
             reportSyntaxError(S.prevToken().endPos, "expected3", COMMA, RPAREN, LBRACKET);
         }
-        if (lambdaParameters && allowLocalVariableTypeInference) {
+        if (lambdaParameters && Feature.LOCAL_VARIABLE_TYPE_INFERENCE.allowedInSource(source)) {
             List<JCVariableDecl> implicitParams = params.stream()
                     .filter(p -> p.vartype == null)
                     .collect(List.collector());