diff options
author | sspitsyn <none@none> | 2015-04-08 14:02:29 -0700 |
---|---|---|
committer | sspitsyn <none@none> | 2015-04-08 14:02:29 -0700 |
commit | 45079c750674bbd069b85026f416ce21b2ebb733 (patch) | |
tree | ca10934a34f3e5a95768d27692e60bb907e3daea /test/java/lang/instrument/RedefineMethodInBacktraceTarget.java | |
parent | 6b804b9312e94203329ee14d368eba178fbe7ce3 (diff) | |
download | jdk8u_jdk-45079c750674bbd069b85026f416ce21b2ebb733.tar.gz |
8067662: "java.lang.NullPointerException: Method name is null" from StackTraceElement.<init>
Summary: update java/lang/instrument/RedefineMethodInBacktrace.sh test to cover the hotspot fix
Reviewed-by: coleenp, dcubed
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"); + } + } |