< prev index next >

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

Print this page

        

@@ -198,10 +198,21 @@
      */
     abstract CallSite buildCallSite()
             throws LambdaConversionException;
 
     /**
+     * Builds an instance of the functional interface directly.
+     *
+     * @return an instance of the functional interface
+     * @throws ReflectiveOperationException
+     * @throws LambdaConversionException If properly formed functional interface
+     * is not found or if creating the functional interface requires parameters
+     */
+    abstract Object buildFunctionalInterfaceInstance()
+            throws LambdaConversionException;
+
+    /**
      * Check the meta-factory arguments for errors
      * @throws LambdaConversionException if there are improper conversions
      */
     void validateMetafactoryArgs() throws LambdaConversionException {
         // Check arity: captured + SAM == impl
< prev index next >