equal
deleted
inserted
replaced
732 /** |
732 /** |
733 * Intrinsified during LambdaForm compilation |
733 * Intrinsified during LambdaForm compilation |
734 * (see {@link InvokerBytecodeGenerator#emitGuardWithCatch emitGuardWithCatch}). |
734 * (see {@link InvokerBytecodeGenerator#emitGuardWithCatch emitGuardWithCatch}). |
735 */ |
735 */ |
736 @LambdaForm.Hidden |
736 @LambdaForm.Hidden |
737 static Object guardWithCatch(MethodHandle target, Class exType, MethodHandle catcher, |
737 static Object guardWithCatch(MethodHandle target, Class<? extends Throwable> exType, MethodHandle catcher, |
738 Object... av) throws Throwable { |
738 Object... av) throws Throwable { |
739 try { |
739 try { |
740 return target.invokeWithArguments(av); |
740 return target.invokeWithArguments(av); |
741 } catch (Throwable t) { |
741 } catch (Throwable t) { |
742 if (!exType.isInstance(t)) throw t; |
742 if (!exType.isInstance(t)) throw t; |