JDK-8152023 : JVMCI: MethodHandleAccessProvider.resolveLinkToTarget throws NPE/IAE on null/wrong argument
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-16
  • Updated: 2016-04-21
  • Resolved: 2016-04-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b115Fixed
Description
According to javadoc MethodHandleAccessProvider.resolveLinkToTarget(JavaConstant) returns ResolvedJAvaMethod or null.
However, current implementation throws NPE in case of null argument and IllegalArgumentException in case of non-MethodHandle argument. Method or javadoc should be modified to match each other.