JDK-8198719 : MethodHandleHelper.linkToStatic should drop MH arg
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9,10,11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-02-26
  • Updated: 2019-09-13
  • Resolved: 2018-06-19
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 11
11 b19Fixed
Related Reports
Relates :  
Description
MethodHandleHelper.linkToStatic() is a helper method used by the compiler/jsr292/InvokerSignatureMismatch.java test.  It incorrectly passes the "mh" arg along to MethodHandle.linkToStatic instead of dropping it.  The test does not detect this problem, so it may seem harmless, but I feel it should be fixed.
Comments
http://cr.openjdk.java.net/~dchuyko/8198719/webrev.00/
15-06-2018

[~dchuyko], are you working on this one? JDK 11 RDP1 is not far away from now.
05-06-2018

ILW = wrong arguments to helper method, one test; seems harmless, no failure; No workaround = MLH = P4
27-02-2018

[~vlivanov] Would you mind taking a look at this?
26-02-2018