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) {
if (function instanceof Class) {
function = ((Class)function).getGenericInterfaces()[0];
}
return new FunctionType(function);
}

View File

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