src/hotspot/share/classfile/dictionary.hpp
changeset 58756 b7aa58d7f5aa
parent 53962 2653e078b057
equal deleted inserted replaced
58754:f67f4674b466 58756:b7aa58d7f5aa
   154   void set_pd_set(ProtectionDomainEntry* new_head) {  _pd_set = new_head; }
   154   void set_pd_set(ProtectionDomainEntry* new_head) {  _pd_set = new_head; }
   155 
   155 
   156   // Tells whether the initiating class' protection domain can access the klass in this entry
   156   // Tells whether the initiating class' protection domain can access the klass in this entry
   157   bool is_valid_protection_domain(Handle protection_domain) {
   157   bool is_valid_protection_domain(Handle protection_domain) {
   158     if (!ProtectionDomainVerification) return true;
   158     if (!ProtectionDomainVerification) return true;
   159     if (!SystemDictionary::has_checkPackageAccess()) return true;
       
   160 
   159 
   161     return protection_domain() == NULL
   160     return protection_domain() == NULL
   162          ? true
   161          ? true
   163          : contains_protection_domain(protection_domain());
   162          : contains_protection_domain(protection_domain());
   164   }
   163   }