# HG changeset patch # User attila # Date 1406740002 25200 # Node ID ea1f7997ebb259f312a64d91012eb00c9f827357 # Parent 848259b3947201c1366ee2e6964e234be0861626 8051839: GuardedInvocation needs to clone an argument Reviewed-by: hannesw, sundar diff -r 848259b39472 -r ea1f7997ebb2 nashorn/src/jdk/internal/dynalink/linker/GuardedInvocation.java --- 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; }