8267509: Improve IllegalAccessException message to include the cause of the exception
Reviewed-by: liach, naoto
This commit is contained in:
parent
ddacf92713
commit
36314a90c1
@ -1719,7 +1719,8 @@ assertEquals("[three, thee, tee]", asListFix.invoke((Object)argv).toString());
|
|||||||
try {
|
try {
|
||||||
return this.withVarargs(true);
|
return this.withVarargs(true);
|
||||||
} catch (IllegalArgumentException ex) {
|
} 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…
Reference in New Issue
Block a user