src/hotspot/share/classfile/dictionary.hpp
changeset 58756 b7aa58d7f5aa
parent 53962 2653e078b057
--- a/src/hotspot/share/classfile/dictionary.hpp	Wed Oct 23 05:48:17 2019 -0700
+++ b/src/hotspot/share/classfile/dictionary.hpp	Wed Oct 23 15:48:11 2019 +0200
@@ -156,7 +156,6 @@
   // Tells whether the initiating class' protection domain can access the klass in this entry
   bool is_valid_protection_domain(Handle protection_domain) {
     if (!ProtectionDomainVerification) return true;
-    if (!SystemDictionary::has_checkPackageAccess()) return true;
 
     return protection_domain() == NULL
          ? true