--- a/jdk/test/java/lang/instrument/RedefineMethodInBacktraceTarget.java Thu Mar 19 09:01:44 2015 +0100
+++ b/jdk/test/java/lang/instrument/RedefineMethodInBacktraceTarget.java Fri Mar 20 01:59:08 2015 -0700
@@ -29,4 +29,13 @@
public static void methodToRedefine() {
throw new RuntimeException("Test exception");
}
+
+ public static void callMethodToDelete() {
+ methodToDelete();
+ }
+
+ private static void methodToDelete() {
+ throw new RuntimeException("Test exception in methodToDelete");
+ }
+
}