< prev index next >

src/hotspot/share/prims/jvmtiRedefineClasses.cpp

Print this page
@@ -345,10 +345,13 @@
  
    // Cannot redefine or retransform a hidden class.
    if (InstanceKlass::cast(k)->is_hidden()) {
      return false;
    }
+   if (InstanceKlass::cast(k) == vmClasses::Object_klass()) {
+     return false;
+   }
    if (InstanceKlass::cast(k) == vmClasses::Continuation_klass()) {
      // Don't redefine Continuation class. See 8302779.
      return false;
    }
    return true;
< prev index next >