8050052: Small cleanups in java.lang.invoke code

Reviewed-by: vlivanov, psandoz
This commit is contained in:
John Rose 2014-09-10 19:19:47 +04:00 committed by Vladimir Ivanov
parent 0898161932
commit da56d3f6d1
14 changed files with 308 additions and 324 deletions

View file

@ -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)