RFR Passing 'null' value to lookup param of ConstantBootstraps.invoke does not throw NullPointerException
mandy chung
mandy.chung at oracle.com
Wed Feb 21 05:42:30 UTC 2018
On 2/20/18 2:47 PM, Paul Sandoz wrote:
> Hi,
>
> Correction to the specification of ConstantBootstraps.invoke [1], the lookup parameter is not used:
>
> diff -r b75c9e2e3b1f src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java
> --- a/src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java Tue Feb 20 21:47:54 2018 +0100
> +++ b/src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java Tue Feb 20 14:38:56 2018 -0800
> @@ -209,8 +209,7 @@
> * Returns the result of invoking a method handle with the provided
> * arguments.
> *
> - * @param lookup the lookup context describing the class performing the
> - * operation (normally stacked by the JVM)
> + * @param lookup unused
> * @param name unused
> * @param type the type of the value to be returned, which must be
> * compatible with the return type of the method handle
+1
>
> CSR is here:
>
> https://bugs.openjdk.java.net/browse/JDK-8198469
Reviewed.
Mandy
More information about the core-libs-dev
mailing list