< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java

Print this page

        

@@ -364,12 +364,12 @@
      * NOTE: This method currently returns false, since pulling is not currently
      * exposed to a BSM. When pull mode is supported the method block will be
      * replaced with currently commented out code.
      */
     static boolean isPullModeBSM(MethodHandle bsm) {
-        return false;
-//        return bsm.type().parameterCount() == 2 && !bsm.isVarargsCollector();
+        return bsm.type().parameterCount() == 2 && !bsm.isVarargsCollector()
+               && BootstrapCallInfo.class.isAssignableFrom(bsm.type().parameterType(1));
     }
 
     /**
      * The JVM wants a pointer to a MethodType.  Oblige it by finding or creating one.
      */
< prev index next >