Sfoglia il codice sorgente

Merge remote-tracking branch 'Stan/development' into WIP/functionalInterfaces

kindlich 5 anni fa
parent
commit
82eb1d61eb
Non sono state trovate chiavi note per questa firma nel database

+ 9
- 1
JavaIntegration/src/main/java/org/openzen/zencode/java/JavaNativeModule.java Vedi File

@@ -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
 	

Loading…
Annulla
Salva