diff src/share/vm/oops/method.cpp @ 8837:0c3ee6f1fa23

8009531: Crash when redefining class with annotated method Summary: Neglected to copy the annotations in clone_with_new_data when they were moved to ConstMethod. Reviewed-by: acorn, sspitsyn, dcubed
author coleenp
date Wed, 27 Mar 2013 08:19:50 -0400
parents 1fc4d4768b90
children 0ca3dd0ffaba
line wrap: on
line diff
--- a/src/share/vm/oops/method.cpp	Tue Mar 26 15:20:05 2013 -0700
+++ b/src/share/vm/oops/method.cpp	Wed Mar 27 08:19:50 2013 -0400
@@ -1170,6 +1170,8 @@
     newm->set_stackmap_data(stackmap_data);
   }
 
+  // copy annotations over to new method
+  newcm->copy_annotations_from(cm);
   return newm;
 }