mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix bug in LambdaMetafactory
This commit is contained in:
parent
fc4425d7f4
commit
2fb6ca7001
|
@ -87,9 +87,9 @@ public class LambdaMetafactorySubstitutor implements BootstrapMethodSubstitutor
|
|||
}
|
||||
|
||||
ValueEmitter result = invoke(pe, implMethod, passedArguments);
|
||||
if (result != null) {
|
||||
ValueType expectedResult = instantiatedMethodType[instantiatedMethodType.length - 1];
|
||||
if (result != null && expectedResult != ValueType.VOID) {
|
||||
ValueType actualResult = implementorSignature[implementorSignature.length - 1];
|
||||
ValueType expectedResult = instantiatedMethodType[instantiatedMethodType.length - 1];
|
||||
tryConvertArgument(result, actualResult, expectedResult).returnValue();
|
||||
} else {
|
||||
pe.exit();
|
||||
|
|
Loading…
Reference in New Issue
Block a user