RFR(S) 8153115: Move private interface check to linktime
igor.veresov at oracle.com
Fri Apr 1 18:28:35 UTC 2016
When invoking private interface methods with invokeinterface we throw ICCE. The check for that happens in the runtime part of the resolution, however, doing it at linktime seems like a better place, since the check doesn't depend on the receiver type. It also allows compiler interfaces that rely on linktime resolution to detect inconsistencies during parsing (see ciEnv::lookup_method() (CI) and ConstantPool.lookupMethod() (JVMCI) that are affected).
More information about the hotspot-compiler-dev