mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8267509: Improve IllegalAccessException message to include the cause of the exception
Backport-of: 36314a90c1
This commit is contained in:
committed by
Vitaly Provodin
parent
382c027f3b
commit
40dd000216
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user