< prev index next >
src/share/vm/classfile/verificationType.cpp
Print this page
@@ -139,35 +139,10 @@
// Met an invalid type signature, e.g. [X
return VerificationType::bogus_type();
}
}
-bool VerificationType::is_nestmate_of(InstanceKlass* cur, TRAPS) const {
- // cur is the current class being verified
- // 'this' represents the target class for the bytecode e.g. invokespecial
- if (is_object()) {
- // target class may not have been loaded so we have to be prepared to do
- // that here and allow for possible exceptions
- Klass* target =
- SystemDictionary::resolve_or_fail(name(),
- Handle(THREAD, cur->class_loader()),
- Handle(THREAD, cur->protection_domain()),
- true,
- CHECK_false);
- if (log_is_enabled(Info, class, resolve)) {
- Verifier::trace_class_resolution(target, cur);
- }
- assert(target->is_instance_klass(), "is_object() but not instance class??");
- //ResourceMark rm(THREAD);
- // tty->print_cr(" Verification: checking %s->%s", cur->name()->as_C_string(), target->name()->as_C_string());
- bool res = cur->has_nestmate_access_to(InstanceKlass::cast(target), THREAD);
- //tty->print_cr(" - result: %s", res ? "true" : "false");
- return res;
- }
- return false;
-}
-
void VerificationType::print_on(outputStream* st) const {
switch (_u._data) {
case Bogus: st->print("top"); break;
case Category1: st->print("category1"); break;
case Category2: st->print("category2"); break;
< prev index next >