--- old/src/share/classes/java/lang/invoke/LambdaForm.java 2014-07-14 19:53:27.000000000 +0400 +++ new/src/share/classes/java/lang/invoke/LambdaForm.java 2014-07-14 19:53:27.000000000 +0400 @@ -459,6 +459,11 @@ return arity; } + /** Report the number of expressions (non-parameter names). */ + int expressionCount() { + return names.length - arity; + } + /** Return the method type corresponding to my basic type signature. */ MethodType methodType() { return signatureType(basicTypeSignature());