src/hotspot/share/prims/jvmtiRedefineClasses.cpp
changeset 58479 35ce0ad5870a
parent 58358 d658f4379c63
child 58679 9c3209ff7550
child 58722 cba8afa5cfed
--- a/src/hotspot/share/prims/jvmtiRedefineClasses.cpp	Mon Oct 07 15:58:04 2019 +0200
+++ b/src/hotspot/share/prims/jvmtiRedefineClasses.cpp	Mon Oct 07 10:04:01 2019 -0400
@@ -3528,15 +3528,6 @@
              "should be replaced");
     }
   }
-  // Update deleted jmethodID
-  for (int j = 0; j < _deleted_methods_length; ++j) {
-    Method* old_method = _deleted_methods[j];
-    jmethodID jmid = old_method->find_jmethod_id_or_null();
-    if (jmid != NULL) {
-      // Change the jmethodID to point to NSME.
-      Method::change_method_associated_with_jmethod_id(jmid, Universe::throw_no_such_method_error());
-    }
-  }
 }
 
 int VM_RedefineClasses::check_methods_and_mark_as_obsolete() {