Why does OpenJDK place private methods into vtable?
问题 It seems that openJDK 8 places private methods which are not final nor static into vtable. Why is it so when dynamic binding is not used for private methods (since they're invoked with invokespecial) or is it used? 回答1: This is done to handle some rare situations when an overridable method with the same name and signature exists in a superclass. Though there is definitely a place for improvement, may be, targeted for JDK 9. See https://bugs.openjdk.java.net/browse/JDK-8024368 Private methods