src/share/vm/oops/cpCache.cpp

changeset 4251
18fb7da42534
parent 4133
f6b0eb4e44cf
child 4256
a4e1bd941ded
child 4278
070d523b96a7
     1.1 --- a/src/share/vm/oops/cpCache.cpp	Thu Oct 04 14:55:57 2012 +0200
     1.2 +++ b/src/share/vm/oops/cpCache.cpp	Tue Nov 06 15:09:37 2012 -0500
     1.3 @@ -231,8 +231,8 @@
     1.4  
     1.5  
     1.6  void ConstantPoolCacheEntry::set_interface_call(methodHandle method, int index) {
     1.7 -  Klass* interf = method->method_holder();
     1.8 -  assert(InstanceKlass::cast(interf)->is_interface(), "must be an interface");
     1.9 +  InstanceKlass* interf = method->method_holder();
    1.10 +  assert(interf->is_interface(), "must be an interface");
    1.11    assert(!method->is_final_method(), "interfaces do not have final methods; cannot link to one here");
    1.12    set_f1(interf);
    1.13    set_f2(index);
    1.14 @@ -421,7 +421,7 @@
    1.15          if (!(*trace_name_printed)) {
    1.16            // RC_TRACE_MESG macro has an embedded ResourceMark
    1.17            RC_TRACE_MESG(("adjust: name=%s",
    1.18 -            Klass::cast(old_method->method_holder())->external_name()));
    1.19 +            old_method->method_holder()->external_name()));
    1.20            *trace_name_printed = true;
    1.21          }
    1.22          // RC_TRACE macro has an embedded ResourceMark
    1.23 @@ -449,7 +449,7 @@
    1.24        if (!(*trace_name_printed)) {
    1.25          // RC_TRACE_MESG macro has an embedded ResourceMark
    1.26          RC_TRACE_MESG(("adjust: name=%s",
    1.27 -          Klass::cast(old_method->method_holder())->external_name()));
    1.28 +          old_method->method_holder()->external_name()));
    1.29          *trace_name_printed = true;
    1.30        }
    1.31        // RC_TRACE macro has an embedded ResourceMark

mercurial