-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 9
-
Component/s: core-libs
Several methods in java.lang.invoke don't specify treatment of null arguments (most throw NPEs).
The following methods throw unspecified NPEs:
MethodHandles.invoker(MethodType)
MethodHandles.exactInvoker(MethodType)
LambdaMetafactory.metafactory(...)
LambdaMetafactory.altMetafactory(...)
MethodHandle.invokeWithArguments(Object... arguments) doesn't throw any exceptions if arguments is null, although the List-accepting version throws NPE.
The following methods throw unspecified NPEs:
MethodHandles.invoker(MethodType)
MethodHandles.exactInvoker(MethodType)
LambdaMetafactory.metafactory(...)
LambdaMetafactory.altMetafactory(...)
MethodHandle.invokeWithArguments(Object... arguments) doesn't throw any exceptions if arguments is null, although the List-accepting version throws NPE.