mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8050052: Small cleanups in java.lang.invoke code
Reviewed-by: vlivanov, psandoz
This commit is contained in:
parent
0898161932
commit
da56d3f6d1
14 changed files with 308 additions and 324 deletions
|
@ -319,7 +319,7 @@ public class CallSite {
|
|||
throw new ClassCastException("bootstrap method failed to produce a CallSite");
|
||||
}
|
||||
if (!site.getTarget().type().equals(type))
|
||||
throw new WrongMethodTypeException("wrong type: "+site.getTarget());
|
||||
throw wrongTargetType(site.getTarget(), type);
|
||||
} catch (Throwable ex) {
|
||||
BootstrapMethodError bex;
|
||||
if (ex instanceof BootstrapMethodError)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue