8155163: JVMCI: MethodHandleAccessProvider.resolveInvokeBasicTarget implementation doesn't match javadoc

Reviewed-by: twisti
This commit is contained in:
Dmitrij Pochepko 2016-05-02 03:24:02 +03:00
parent 7982dafac2
commit 73db8859bf

View File

@ -130,7 +130,7 @@ public class HotSpotMethodHandleAccessProvider implements MethodHandleAccessProv
/* Load non-public field: LambdaForm MethodHandle.form */
JavaConstant lambdaForm = constantReflection.readFieldValue(LazyInitialization.methodHandleFormField, methodHandle);
if (lambdaForm.isNull()) {
if (lambdaForm == null || lambdaForm.isNull()) {
return null;
}