hotspot/src/share/vm/interpreter/linkResolver.cpp
changeset 15920 b6a92b294176
parent 15430 7c35f12cf1e5
parent 15919 15a548ffc099
child 15922 86a368d3ac8c
--- a/hotspot/src/share/vm/interpreter/linkResolver.cpp	Wed Jul 05 18:40:20 2017 +0200
+++ b/hotspot/src/share/vm/interpreter/linkResolver.cpp	Tue Feb 19 21:45:09 2013 +0100
@@ -803,7 +803,7 @@
     if (!direct_calling_default_method &&
         check_access &&
         // a) check if ACC_SUPER flag is set for the current class
-        current_klass->is_super() &&
+        (current_klass->is_super() || !AllowNonVirtualCalls) &&
         // b) check if the method class is a superclass of the current class (superclass relation is not reflexive!)
         current_klass->is_subtype_of(method_klass()) &&
         current_klass() != method_klass() &&