diff options
Diffstat (limited to 'test/java/lang/instrument/RedefineMethodInBacktraceTarget.java')
-rw-r--r-- | test/java/lang/instrument/RedefineMethodInBacktraceTarget.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/java/lang/instrument/RedefineMethodInBacktraceTarget.java b/test/java/lang/instrument/RedefineMethodInBacktraceTarget.java index fad881137c..87e817a72c 100644 --- a/test/java/lang/instrument/RedefineMethodInBacktraceTarget.java +++ b/test/java/lang/instrument/RedefineMethodInBacktraceTarget.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,4 +29,13 @@ public class RedefineMethodInBacktraceTarget { 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"); + } + } |