fixed incorrect constructor method reference

This commit is contained in:
Egor.Ushakov
2017-04-26 13:26:10 +03:00
parent 7575bb57de
commit 8c440e281c
5 changed files with 43 additions and 2 deletions

View File

@@ -98,8 +98,8 @@ public class ClassWriter {
buffer.append(ExprProcessor.getCastTypeName(new VarType(node.lambdaInformation.content_class_name, true)));
}
buffer.append("::");
buffer.append(node.lambdaInformation.content_method_name);
buffer.append("::")
.append(CodeConstants.INIT_NAME.equals(node.lambdaInformation.content_method_name) ? "new" : node.lambdaInformation.content_method_name);
}
else {
// lambda method