On Wed, 13 Sep 2023 01:12:52 GMT, Mandy Chung <mch...@openjdk.org> wrote:
> This PR improves IllegalAccessException message thrown by `Lookup::findXXX` > APIs if the method's variable arity modifier bit is set and > `asVarargsCollector` fails. It will include the exception message thrown by > asVarargsCollector`. > > The exception message looks like this: > > java.lang.IllegalAccessException: cannot make variable arity: > MyClass.m(Object[],int)void/invokeStatic does not have a trailing array > parameter This pull request has now been integrated. Changeset: 36314a90 Author: Mandy Chung <mch...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/36314a90c15e2ab2a9b32c2e471655c1b07d452c Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod 8267509: Improve IllegalAccessException message to include the cause of the exception Reviewed-by: liach, naoto ------------- PR: https://git.openjdk.org/jdk/pull/15698