nashorn/src/jdk/internal/dynalink/linker/GuardedInvocation.java
changeset 25824 ea1f7997ebb2
parent 24778 2ff5d7041566
equal deleted inserted replaced
25823:848259b39472 25824:ea1f7997ebb2
   191      */
   191      */
   192     public GuardedInvocation(final MethodHandle invocation, final MethodHandle guard, final SwitchPoint[] switchPoints, final Class<? extends Throwable> exception) {
   192     public GuardedInvocation(final MethodHandle invocation, final MethodHandle guard, final SwitchPoint[] switchPoints, final Class<? extends Throwable> exception) {
   193         invocation.getClass(); // NPE check
   193         invocation.getClass(); // NPE check
   194         this.invocation = invocation;
   194         this.invocation = invocation;
   195         this.guard = guard;
   195         this.guard = guard;
   196         this.switchPoints = switchPoints;
   196         this.switchPoints = switchPoints == null ? null : switchPoints.clone();
   197         this.exception = exception;
   197         this.exception = exception;
   198     }
   198     }
   199 
   199 
   200     /**
   200     /**
   201      * Returns the invocation method handle.
   201      * Returns the invocation method handle.