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:
parent
93196c8b51
commit
d50a168ded
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user