< prev index next >

src/hotspot/share/prims/jvm.cpp

Print this page

        

@@ -651,10 +651,11 @@
   // All arrays are considered to be cloneable (See JLS 20.1.5)
   if (!klass->is_cloneable()) {
     ResourceMark rm(THREAD);
     THROW_MSG_0(vmSymbols::java_lang_CloneNotSupportedException(), klass->external_name());
   }
+  assert(!obj->klass_is_value_type(), "Disallowed on value type");
 
   // Make shallow object copy
   const int size = obj->size();
   oop new_obj_oop = NULL;
   if (obj->is_array()) {
< prev index next >