Support invoking and returning arbitrary types from Java sync hooks

Reviewed By: mhorowitz

Differential Revision: D4409900

fbshipit-source-id: 347e33c442b32f64355d343308c218c15cf5a70f
This commit is contained in:
Pieter De Baets authored and Facebook Github Bot committed 2017-01-31 05:28:35 -08:00
1 parent cfb90284d6
commit f8c72f5441
13 files changed
+318 -52

No files matched your search

@@ -461,6 +461,7 @@ public abstract class BaseJavaModule implements NativeModule {
}
private static char returnTypeToChar(Class returnClass) {
// Keep this in sync with MethodInvoker
char tryCommon = commonTypeToChar(returnClass);
if (tryCommon != '\0') {
return tryCommon;