equal
deleted
inserted
replaced
94 } |
94 } |
95 } |
95 } |
96 |
96 |
97 public boolean containsProtectionDomain(Oop protectionDomain) { |
97 public boolean containsProtectionDomain(Oop protectionDomain) { |
98 InstanceKlass ik = (InstanceKlass) klass(); |
98 InstanceKlass ik = (InstanceKlass) klass(); |
99 if (protectionDomain.equals(ik.getProtectionDomain())) { |
99 // Currently unimplemented and not used. |
100 return true; // Succeeds trivially |
100 // if (protectionDomain.equals(ik.getJavaMirror().getProtectionDomain())) { |
101 } |
101 // return true; // Succeeds trivially |
|
102 // } |
102 for (ProtectionDomainEntry current = pdSet(); current != null; |
103 for (ProtectionDomainEntry current = pdSet(); current != null; |
103 current = current.next()) { |
104 current = current.next()) { |
104 if (protectionDomain.equals(current.protectionDomain())) { |
105 if (protectionDomain.equals(current.protectionDomain())) { |
105 return true; |
106 return true; |
106 } |
107 } |