<html>
    <head>
      <base href="http://icedtea.classpath.org/bugzilla/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [IcedTea7] CACAO lacks JVM_FindClassFromCaller introduced by security patch in 2.5.3"
   href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2032#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [IcedTea7] CACAO lacks JVM_FindClassFromCaller introduced by security patch in 2.5.3"
   href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2032">bug 2032</a>
              from <span class="vcard"><a class="email" href="mailto:gnu.andrew@redhat.com" title="Andrew John Hughes <gnu.andrew@redhat.com>"> <span class="fn">Andrew John Hughes</span></a>
</span></b>
        <pre>  // Tells whether the initiating class' protection can access the this _klass  
  bool is_valid_protection_domain(Handle protection_domain) {
    if (!ProtectionDomainVerification) return true;
    if (!SystemDictionary::has_checkPackageAccess()) return true;

    return protection_domain() == NULL
         ? true
         : contains_protection_domain(protection_domain());
  }

bool DictionaryEntry::contains_protection_domain(oop protection_domain) const {
  if (protection_domain == instanceKlass::cast(klass())->protection_domain()) {
    // Succeeds trivially                                                       
    return true;
  }

  for (ProtectionDomainEntry* current = _pd_set;
                              current != NULL;
                              current = current->next()) {
    if (current->protection_domain() == protection_domain) return true;
  }
  return false;
}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>