src/hotspot/share/oops/klass.cpp
changeset 50601 3fbae7b9ddb5
parent 50569 60d66a249db6
child 50735 2f2af62dfac7
--- a/src/hotspot/share/oops/klass.cpp	Sat Jun 16 07:05:09 2018 +0200
+++ b/src/hotspot/share/oops/klass.cpp	Fri Jun 15 12:25:53 2018 +0200
@@ -142,7 +142,10 @@
 
 
 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()));
 }