nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/Bootstrap.java
changeset 28437 b9b1042592e6
parent 27815 6ed8e97e8fb6
child 28438 f164fc2618a0
equal deleted inserted replaced
28344:722378bc599e 28437:b9b1042592e6
   187      * java.lang.FunctionalInterface
   187      * java.lang.FunctionalInterface
   188      * @param obj object to be checked
   188      * @param obj object to be checked
   189      * @return true if the obj is an instance of @FunctionalInterface interface
   189      * @return true if the obj is an instance of @FunctionalInterface interface
   190      */
   190      */
   191     public static boolean isFunctionalInterfaceObject(final Object obj) {
   191     public static boolean isFunctionalInterfaceObject(final Object obj) {
   192         return !JSType.isPrimitive(obj) && (NashornBottomLinker.getFunctionalInterfaceMethod(obj.getClass()) != null);
   192         return !JSType.isPrimitive(obj) && (NashornBeansLinker.getFunctionalInterfaceMethod(obj.getClass()) != null);
   193     }
   193     }
   194 
   194 
   195     /**
   195     /**
   196      * Create a call site and link it for Nashorn. This version of the method conforms to the invokedynamic bootstrap
   196      * Create a call site and link it for Nashorn. This version of the method conforms to the invokedynamic bootstrap
   197      * method expected signature and is referenced from Nashorn generated bytecode as the bootstrap method for all
   197      * method expected signature and is referenced from Nashorn generated bytecode as the bootstrap method for all