diff -r 047bdc4d771d -r 6d8e27cd2f1e jdk/src/java.base/share/classes/java/lang/invoke/LambdaMetafactory.java --- a/jdk/src/java.base/share/classes/java/lang/invoke/LambdaMetafactory.java Thu Aug 10 15:21:17 2017 -0700 +++ b/jdk/src/java.base/share/classes/java/lang/invoke/LambdaMetafactory.java Thu Aug 10 15:23:03 2017 -0700 @@ -149,24 +149,24 @@ * capture argument (corresponding to the receiver) must be non-null. * *
A type Q is considered adaptable to S as follows: - *
Q | S | Link-time checks | Invocation-time checks | ||
---|---|---|---|---|---|
Q | S | Link-time checks | Invocation-time checks | ||
Primitive | Primitive | + *Primitive | Primitive | *Q can be converted to S via a primitive widening conversion | *None | *
Primitive | Reference | + *Primitive | Reference | *S is a supertype of the Wrapper(Q) | *Cast from Wrapper(Q) to S | *
Reference | Primitive | + *Reference | Primitive | *for parameter types: Q is a primitive wrapper and Primitive(Q)
* can be widened to S
* for return types: If Q is a primitive wrapper, check that @@ -175,7 +175,7 @@ * for example Number for numeric types |
* |
Reference | Reference | + *Reference | Reference | *for parameter types: S is a supertype of Q
* for return types: none |
* Cast from Q to S |