mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8204943: Improve message of ArrayStoreException
Reviewed-by: lfoltan, hseigel
This commit is contained in:
parent
3a98bd1f53
commit
4a24d95917
6 changed files with 303 additions and 12 deletions
|
@ -142,7 +142,10 @@ void Klass::check_valid_for_instantiation(bool throwError, TRAPS) {
|
|||
|
||||
|
||||
void Klass::copy_array(arrayOop s, int src_pos, arrayOop d, int dst_pos, int length, TRAPS) {
|
||||
THROW(vmSymbols::java_lang_ArrayStoreException());
|
||||
ResourceMark rm(THREAD);
|
||||
assert(s != NULL, "Throw NPE!");
|
||||
THROW_MSG(vmSymbols::java_lang_ArrayStoreException(),
|
||||
err_msg("arraycopy: source type %s is not an array", s->klass()->external_name()));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue