< prev index next >

src/share/vm/classfile/dictionary.cpp

Print this page

        

@@ -89,11 +89,11 @@
 }
 
 
 bool DictionaryEntry::contains_protection_domain(oop protection_domain) const {
 #ifdef ASSERT
-  if (protection_domain == InstanceKlass::cast(klass())->protection_domain()) {
+  if (protection_domain == klass()->protection_domain()) {
     // Ensure this doesn't show up in the pd_set (invariant)
     bool in_pd_set = false;
     for (ProtectionDomainEntry* current = _pd_set;
                                 current != NULL;
                                 current = current->next()) {

@@ -107,11 +107,11 @@
                     "in its sys. dict. PD set");
     }
   }
 #endif /* ASSERT */
 
-  if (protection_domain == InstanceKlass::cast(klass())->protection_domain()) {
+  if (protection_domain == klass()->protection_domain()) {
     // Succeeds trivially
     return true;
   }
 
   for (ProtectionDomainEntry* current = _pd_set;

@@ -762,6 +762,5 @@
             "Verify of system dictionary failed");
   debug_only(verify_lookup_length((double)number_of_entries() / table_size()));
 
   _pd_cache_table->verify();
 }
-
< prev index next >