equal
deleted
inserted
replaced
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 } |