|
@@ -151,6 +151,7 @@ public class CompilerUtils {
|
151
|
151
|
|
152
|
152
|
private static void createLambdaInterface(FunctionHeader header, String name) {
|
153
|
153
|
ClassWriter ifaceWriter = new ClassWriter(ClassWriter.COMPUTE_FRAMES);
|
|
154
|
+ ifaceWriter.visitAnnotation("java/lang/FunctionalInterface", true).visitEnd();
|
154
|
155
|
ifaceWriter.visit(Opcodes.V1_8, Opcodes.ACC_PUBLIC | Opcodes.ACC_STATIC | Opcodes.ACC_INTERFACE | Opcodes.ACC_ABSTRACT, name, null, "java/lang/Object", null);
|
155
|
156
|
|
156
|
157
|
ifaceWriter.visitMethod(Opcodes.ACC_PUBLIC | Opcodes.ACC_ABSTRACT, "accept", calcDesc(header, false), calcSign(header, false), null).visitEnd();
|