|
@@ -594,7 +594,15 @@ public class JavaNativeModule {
|
594
|
594
|
for (int i = 0; i < javaParameters.length; i++)
|
595
|
595
|
mapping.put(context.get(javaParameters[i]), loadType(loadContext, parameters[i], false, false));
|
596
|
596
|
|
597
|
|
- StorageTag tag = new JavaFunctionalInterfaceStorageTag(functionalInterfaceMethod);
|
|
597
|
+ JavaMethod method = new JavaMethod(
|
|
598
|
+ JavaClass.fromInternalName(cls.getName().replace('.', '/'), JavaClass.Kind.INTERFACE),
|
|
599
|
+ JavaMethod.Kind.INTERFACE,
|
|
600
|
+ functionalInterfaceMethod.getName(),
|
|
601
|
+ false,
|
|
602
|
+ getMethodDescriptor(functionalInterfaceMethod),
|
|
603
|
+ Modifiers.PUBLIC | Modifiers.ABSTRACT,
|
|
604
|
+ header.getReturnType().type.isGeneric());
|
|
605
|
+ StorageTag tag = new JavaFunctionalInterfaceStorageTag(functionalInterfaceMethod, method);
|
598
|
606
|
return registry.getFunction(header).stored(tag);
|
599
|
607
|
}
|
600
|
608
|
|