src/hotspot/share/oops/cpCache.cpp
changeset 48463 474cec233fb2
parent 47890 2219a502fd45
child 48608 1dab70e20292
child 48784 899b522ed65c
--- a/src/hotspot/share/oops/cpCache.cpp	Fri Dec 15 16:51:13 2017 +0100
+++ b/src/hotspot/share/oops/cpCache.cpp	Fri Dec 15 11:23:50 2017 -0500
@@ -177,6 +177,7 @@
       // instruction somehow links to a non-interface method (in Object).
       // In that case, the method has no itable index and must be invoked as a virtual.
       // Set a flag to keep track of this corner case.
+      assert(method->is_public(), "Calling non-public method in Object with invokeinterface");
       change_to_virtual = true;
 
       // ...and fall through as if we were handling invokevirtual: