From b2f5e3a0c8c374029dc8d52c38169b14b040367e Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Thu, 19 Dec 2024 07:19:12 -0600 Subject: [PATCH] Candidate fix that appears to work, but I'm not certain it makes sense --- dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java b/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java index 841af97ac9..fb6585e944 100644 --- a/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java +++ b/dev/core/src/com/google/gwt/dev/jjs/impl/GwtAstBuilder.java @@ -1271,7 +1271,7 @@ private void pushLambdaExpressionLocalsIntoMethodScope(LambdaExpression x, if (syntheticArguments != null) { MethodScope scope = x.getScope(); for (SyntheticArgumentBinding sa : syntheticArguments) { - VariableBinding[] path = scope.getEmulationPath(sa.actualOuterLocalVariable); + VariableBinding[] path = scope.getEmulationPath(sa); assert path.length == 1 && path[0] instanceof LocalVariableBinding; JParameter param = it.next(); curMethod.locals.put((LocalVariableBinding) path[0], param);