< prev index next >
src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java
Print this page
rev 13078 : 8143142: AssertionError in MethodHandleImpl
Reviewed-by: psandoz, vlivanov
@@ -1603,23 +1603,19 @@
NF_throwException,
NF_profileBoolean;
static {
try {
- NamedFunction nfs[] = {
NF_checkSpreadArgument = new NamedFunction(MethodHandleImpl.class
- .getDeclaredMethod("checkSpreadArgument", Object.class, int.class)),
+ .getDeclaredMethod("checkSpreadArgument", Object.class, int.class));
NF_guardWithCatch = new NamedFunction(MethodHandleImpl.class
.getDeclaredMethod("guardWithCatch", MethodHandle.class, Class.class,
- MethodHandle.class, Object[].class)),
+ MethodHandle.class, Object[].class));
NF_throwException = new NamedFunction(MethodHandleImpl.class
- .getDeclaredMethod("throwException", Throwable.class)),
+ .getDeclaredMethod("throwException", Throwable.class));
NF_profileBoolean = new NamedFunction(MethodHandleImpl.class
- .getDeclaredMethod("profileBoolean", boolean.class, int[].class))
- };
- // Each nf must be statically invocable or we get tied up in our bootstraps.
- assert(InvokerBytecodeGenerator.isStaticallyInvocable(nfs));
+ .getDeclaredMethod("profileBoolean", boolean.class, int[].class));
} catch (ReflectiveOperationException ex) {
throw newInternalError(ex);
}
}
< prev index next >