8155163: JVMCI: MethodHandleAccessProvider.resolveInvokeBasicTarget implementation doesn't match javadoc
authordpochepk
Mon, 02 May 2016 03:24:02 +0300
changeset 38227 2ad0ebc407ab
parent 38226 dfaf4a09b643
child 38228 6dbbdb9ee00e
child 38229 7d3bad8f8ec8
child 38231 38b7e4a90f6a
8155163: JVMCI: MethodHandleAccessProvider.resolveInvokeBasicTarget implementation doesn't match javadoc Reviewed-by: twisti
hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMethodHandleAccessProvider.java
--- a/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMethodHandleAccessProvider.java	Mon May 02 03:20:23 2016 +0300
+++ b/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMethodHandleAccessProvider.java	Mon May 02 03:24:02 2016 +0300
@@ -130,7 +130,7 @@
 
         /* Load non-public field: LambdaForm MethodHandle.form */
         JavaConstant lambdaForm = constantReflection.readFieldValue(LazyInitialization.methodHandleFormField, methodHandle);
-        if (lambdaForm.isNull()) {
+        if (lambdaForm == null || lambdaForm.isNull()) {
             return null;
         }