mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-23 23:04:50 -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);
|
ValueEmitter result = invoke(pe, implMethod, passedArguments);
|
||||||
if (result != null) {
|
|
||||||
ValueType actualResult = implementorSignature[implementorSignature.length - 1];
|
|
||||||
ValueType expectedResult = instantiatedMethodType[instantiatedMethodType.length - 1];
|
ValueType expectedResult = instantiatedMethodType[instantiatedMethodType.length - 1];
|
||||||
|
if (result != null && expectedResult != ValueType.VOID) {
|
||||||
|
ValueType actualResult = implementorSignature[implementorSignature.length - 1];
|
||||||
tryConvertArgument(result, actualResult, expectedResult).returnValue();
|
tryConvertArgument(result, actualResult, expectedResult).returnValue();
|
||||||
} else {
|
} else {
|
||||||
pe.exit();
|
pe.exit();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user