Skip to content

Commit

Permalink
hack to make it work, better to put this on an exclusive JavaIntegrat…
Browse files Browse the repository at this point in the history
…ionLinker
  • Loading branch information
qmx committed Apr 10, 2012
1 parent b409ff0 commit d8d6022
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ private MethodType methodTypeForArguments(CallSiteDescriptor descriptor, Object[
if (originalReturnType != Object.class) {
targetMethodType = targetMethodType.changeReturnType(originalReturnType);
} else {
targetMethodType = targetMethodType.changeReturnType(receiverClass);
if (arguments.length > 1 && originalReturnType != Class.class) {
targetMethodType = targetMethodType.changeReturnType(receiverClass);
}
}
for (int i = 0; i < arguments.length; i++) {
Object argument = arguments[i];
Expand Down

0 comments on commit d8d6022

Please sign in to comment.