nashorn/src/jdk/internal/dynalink/linker/GuardedInvocation.java
changeset 25824 ea1f7997ebb2
parent 24778 2ff5d7041566
--- a/nashorn/src/jdk/internal/dynalink/linker/GuardedInvocation.java	Wed Jul 30 16:49:02 2014 +0400
+++ b/nashorn/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;
     }