changeset 945:99e9916ace37

8051839: GuardedInvocation needs to clone an argument Reviewed-by: hannesw, sundar
author attila
date Wed, 30 Jul 2014 10:06:42 -0700
parents 1de3a6ce3f57
children 2ce63129b64a
files src/jdk/internal/dynalink/linker/GuardedInvocation.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk/internal/dynalink/linker/GuardedInvocation.java	Wed Jul 30 16:49:02 2014 +0400
+++ b/src/jdk/internal/dynalink/linker/GuardedInvocation.java	Wed Jul 30 10:06:42 2014 -0700
@@ -193,7 +193,7 @@
         invocation.getClass(); // NPE check
         this.invocation = invocation;
         this.guard = guard;
-        this.switchPoints = switchPoints;
+        this.switchPoints = switchPoints == null ? null : switchPoints.clone();
         this.exception = exception;
     }