JDK-8224138 : Update invocation tests with nestmate invokeinterface behavior changes
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 14
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-05-17
  • Updated: 2019-06-27
  • Resolved: 2019-06-27
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
In JDK 11 we added nestmates (JEP 181), the JVMS was changed to allow invoking private methods via invokeinterface and invokevirtual. As part of that support, some of the restrictions for invokeinterface that used to throw an IllegalAccessException now succeed or throw AbstractMethodError.

The tests need to be modified so that if you are running a jdk >= 11,
that the invokeinterface expected behaviors are different - including for older class file versions.

It is ok to fix the tests before or after colocating them, that should not be a blocker.
Comments
The tests were ported to jtreg in JDK-8224137 and the invokeinterface invocation tests were fixed to run with JDK-7 and later. So, closing this bug as a duplicate of JDK-8224137.
27-06-2019

Note that we had the same problem with the SelectionResolution tests. However, all we did was stop executing the tests that failed with the nestmate changes. Trying to actually adapt the tests for those changes was not deemed viable given the lack of knowledge about how the tests had been written - see JDK-8194857.
20-05-2019

Added a .pdf that summarizes the Invokeinterface Selection Table changes. Given that this was distributed during the JVMS reviews - please check with the latest JVMS as the master for the actual changes.
17-05-2019

Attachment <Nestmates Invocation Changes - Java Platform Group - wiki.se.pdf> anti-virus scan found a possible virus. The system has removed attachment. Please check the file before attempting to upload it again
17-05-2019