JDK-8156485 : MethodHandles.varHandleExactInvoker should perform exact checks
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-05-07
  • Updated: 2016-08-16
  • Resolved: 2016-05-17
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 b120Fixed
Related Reports
Duplicate :  
Description
The fix for JDK-8155258 introduced a regression whereby the erased call site method type and the erased target method type are checked for equality. The exact method types should be checked.

The lambda form shapes for the generic and exact invokers should be the same, and should switch on the appropriate checkVarHandle*Type method that returns a method handle.
Comments
http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8156486-varHandleExactInvoker/webrev/
07-05-2016