Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8177152

Several methods in java.lang.invoke don't specify treatment of nulls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • 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.

            vtheeyarath Vivek Theeyarath (Inactive)
            slukyanov Stanislav Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: