< prev index next >

src/share/vm/interpreter/linkResolver.cpp

Print this page

        

@@ -610,11 +610,11 @@
     }
   }
 
   if (code == Bytecodes::_invokeinterface) {
     return resolve_interface_method(link_info, true, THREAD);
-  } else if (code == Bytecodes::_invokevirtual) {
+  } else if (code == Bytecodes::_invokevirtual || code == Bytecodes::_invokedirect) {
     return resolve_method(link_info, /*require_methodref*/true, THREAD);
   } else if (!resolved_klass->is_interface()) {
     return resolve_method(link_info, /*require_methodref*/false, THREAD);
   } else {
     bool nostatics = (code == Bytecodes::_invokestatic) ? false : true;
< prev index next >