7049415: Failure of resolution of sym.reference to the c.s.s. should be wrapped in BootstrapMethodError

Wrap invokedynamic linkage errors in BootstrapMethodError, as needed.

Reviewed-by: never
This commit is contained in:
John R Rose 2011-06-01 23:56:43 -07:00
parent 93196c8b51
commit d50a168ded

View File

@ -359,6 +359,12 @@ class MethodHandleNatives {
required = Object[].class; // should have been an array
code = 192; // checkcast
break;
case 191: // athrow
// JVM is asking us to wrap an exception which happened during resolving
if (required == BootstrapMethodError.class) {
throw new BootstrapMethodError((Throwable) actual);
}
break;
}
// disregard the identity of the actual object, if it is not a class:
if (message == null) {