changeset 7290:83d2ed4895b1

Spec tweaks for alt metafactory
author briangoetz
date Thu, 07 Feb 2013 09:36:41 -0500
parents b8ce179b70fb
children 2628d8ec8d82
files src/share/classes/java/lang/invoke/LambdaMetafactory.java
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/invoke/LambdaMetafactory.java	Thu Feb 07 12:51:52 2013 +0000
+++ b/src/share/classes/java/lang/invoke/LambdaMetafactory.java	Thu Feb 07 09:36:41 2013 -0500
@@ -210,7 +210,9 @@
      *                          MethodHandle implMethod,
      *                          MethodType instantiatedMethodType,
      *                          int flags,
-     *                          Class... markerInterfaces)
+     *                          int markerInterfaceCount, // IF flags has MARKERS set
+     *                          Class... markerInterfaces // IF flags has MARKERS set
+     *                          )
      *
      *
      * @param caller Stacked automatically by VM; represents a lookup context with the accessibility privileges
@@ -229,9 +231,11 @@
      * @param instantiatedMethodType The signature of the SAM method from the functional interface's perspective
      * @param flags A bitmask containing flags that may influence the translation of this lambda expression.  Defined
      *              fields include FLAG_SERIALIZABLE and FLAG_MARKERS.
-     * @param markerInterfaces If the FLAG_MARKERS flag is set, this consists of an integer count followed by
-     *                         that number of Class objects identifying additional marker interfaces which the
-     *                         lambda object should implement
+     * @param markerInterfaceCount If the FLAG_MARKERS flag is set, this is a count of the number of additional
+     *                             marker interfaces
+     * @param markerInterfaces If the FLAG_MARKERS flag is set, this consists of Class objects identifying additional
+     *                         marker interfaces which the lambda object should implement, whose count equals
+     *                         markerInterfaceCount
      * @return a CallSite, which, when invoked, will return an instance of the functional interface
      * @throws ReflectiveOperationException
      * @throws LambdaConversionException If any of the meta-factory protocol invariants are violated