--- a/hotspot/src/share/vm/ci/ciMethod.cpp Thu Nov 26 19:16:37 2015 +0100
+++ b/hotspot/src/share/vm/ci/ciMethod.cpp Fri Nov 27 18:35:43 2015 +0100
@@ -786,7 +786,8 @@
Symbol* h_name = name()->get_symbol();
Symbol* h_signature = signature()->get_symbol();
- LinkInfo link_info(h_resolved, h_name, h_signature, caller_klass, check_access);
+ LinkInfo link_info(h_resolved, h_name, h_signature, caller_klass,
+ check_access ? LinkInfo::needs_access_check : LinkInfo::skip_access_check);
methodHandle m;
// Only do exact lookup if receiver klass has been linked. Otherwise,
// the vtable has not been setup, and the LinkResolver will fail.