Browse Source

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

kindlich 5 years ago
parent
commit
82eb1d61eb
No known key found for this signature in database

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

594
 		for (int i = 0; i < javaParameters.length; i++)
594
 		for (int i = 0; i < javaParameters.length; i++)
595
 			mapping.put(context.get(javaParameters[i]), loadType(loadContext, parameters[i], false, false));
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
 		return registry.getFunction(header).stored(tag);
606
 		return registry.getFunction(header).stored(tag);
599
 	}
607
 	}
600
 	
608
 	

Loading…
Cancel
Save