mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8267509: Improve IllegalAccessException message to include the cause of the exception
Reviewed-by: liach, naoto
This commit is contained in:
parent
ddacf92713
commit
36314a90c1
1 changed files with 2 additions and 1 deletions
|
@ -1719,7 +1719,8 @@ assertEquals("[three, thee, tee]", asListFix.invoke((Object)argv).toString());
|
|||
try {
|
||||
return this.withVarargs(true);
|
||||
} catch (IllegalArgumentException ex) {
|
||||
throw member.makeAccessException("cannot make variable arity", null);
|
||||
throw new IllegalAccessException("cannot make variable arity: " + member +
|
||||
" does not have a trailing array parameter");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue