JDK-8278513 : Evaluate potential regression test gap for JDK-8277964
  • Type: Task
  • Component: core-libs
  • Priority: P3
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2021-12-09
  • Updated: 2021-12-14
Related Reports
Relates :  
Description
A regression test demonstrating the problem would be helpful
Comments
https://github.com/openjdk/jdk/blob/master/test/jdk/java/lang/reflect/MethodHandleAccessorsTest.java covers the test cases when an argument of an invalid type is passed to Method::invoke or Constructor::newInstance. This regression test does not uncover the issue from JDK-8277964 because the issue has to involve specific methods for example sun.invoke.util.ValueConversions to get JIT compiled and omit the stack trace in exception thrown. -Xcomp does not reproduce the issue by itself.
14-12-2021