src/share/vm/classfile/verifier.cpp

changeset 4251
18fb7da42534
parent 4245
4735d2c84362
child 4601
3a531d40ad93
     1.1 --- a/src/share/vm/classfile/verifier.cpp	Thu Oct 04 14:55:57 2012 +0200
     1.2 +++ b/src/share/vm/classfile/verifier.cpp	Tue Nov 06 15:09:37 2012 -0500
     1.3 @@ -446,7 +446,7 @@
     1.4            bytecode_name = "<illegal>";
     1.5        }
     1.6      }
     1.7 -    InstanceKlass* ik = InstanceKlass::cast(method->method_holder());
     1.8 +    InstanceKlass* ik = method->method_holder();
     1.9      ss->indent().print_cr("Location:");
    1.10      streamIndentor si2(ss);
    1.11      ss->indent().print_cr("%s.%s%s @%d: %s",
    1.12 @@ -1850,7 +1850,7 @@
    1.13    if ((index <= 0) || (index >= nconstants)) {
    1.14      verify_error(ErrorContext::bad_cp_index(bci, index),
    1.15          "Illegal constant pool index %d in class %s",
    1.16 -        index, InstanceKlass::cast(cp->pool_holder())->external_name());
    1.17 +        index, cp->pool_holder()->external_name());
    1.18      return;
    1.19    }
    1.20  }
    1.21 @@ -1869,7 +1869,7 @@
    1.22    if ((types & (1 << tag)) == 0) {
    1.23      verify_error(ErrorContext::bad_cp_index(bci, index),
    1.24        "Illegal type at constant pool entry %d in class %s",
    1.25 -      index, InstanceKlass::cast(cp->pool_holder())->external_name());
    1.26 +      index, cp->pool_holder()->external_name());
    1.27      return;
    1.28    }
    1.29  }
    1.30 @@ -1881,7 +1881,7 @@
    1.31    if (!tag.is_klass() && !tag.is_unresolved_klass()) {
    1.32      verify_error(ErrorContext::bad_cp_index(bci, index),
    1.33          "Illegal type at constant pool entry %d in class %s",
    1.34 -        index, InstanceKlass::cast(cp->pool_holder())->external_name());
    1.35 +        index, cp->pool_holder()->external_name());
    1.36      return;
    1.37    }
    1.38  }

mercurial