diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/bir/codegen/methodgen/LambdaGen.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/bir/codegen/methodgen/LambdaGen.java index d013ccdf566f..c20f64b0449d 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/bir/codegen/methodgen/LambdaGen.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/bir/codegen/methodgen/LambdaGen.java @@ -363,6 +363,7 @@ private LambdaDetails populateAsyncLambdaDetails(BIRTerminator.AsyncCall asyncIn lambdaDetails.lhsType = asyncIns.lhsOp != null ? asyncIns.lhsOp.variableDcl.type : null; lambdaDetails.packageID = asyncIns.calleePkg; lambdaDetails.funcName = asyncIns.name.getValue(); + lambdaDetails.encodedFuncName = Utils.encodeFunctionIdentifier(lambdaDetails.funcName); if (!asyncIns.isVirtual) { populateLambdaFunctionDetails(lambdaDetails); }