Temporary fix to FunctionType to properly determine the actual parameterized types

This commit is contained in:
Oleg Zhurakousky
2019-07-02 15:02:27 +02:00
parent febf0e06ba
commit 13b1aee8f1
2 changed files with 4 additions and 1 deletions

View File

@@ -105,6 +105,9 @@ public class FunctionType {
} }
public static FunctionType of(Type function) { public static FunctionType of(Type function) {
if (function instanceof Class) {
function = ((Class)function).getGenericInterfaces()[0];
}
return new FunctionType(function); return new FunctionType(function);
} }

View File

@@ -78,7 +78,7 @@ public class LazyFunctionRegistryMultiInOutTests {
@SuppressWarnings("unused") @SuppressWarnings("unused")
@Test @Test
@Ignore // @Ignore
public void testMultiInputBiFunction() { public void testMultiInputBiFunction() {
FunctionCatalog catalog = this.configureCatalog(); FunctionCatalog catalog = this.configureCatalog();
BiFunction<Flux<String>, Flux<Integer>, Flux<String>> multiInputFunction = BiFunction<Flux<String>, Flux<Integer>, Flux<String>> multiInputFunction =