1.1 --- a/src/share/vm/oops/klassVtable.cpp Fri Nov 16 09:59:08 2012 +0100 1.2 +++ b/src/share/vm/oops/klassVtable.cpp Fri Nov 16 09:19:12 2012 -0500 1.3 @@ -746,7 +746,7 @@ 1.4 while (target != NULL && target->is_static()) { 1.5 // continue with recursive lookup through the superclass 1.6 Klass* super = target->method_holder()->super(); 1.7 - target = (super == NULL) ? (Method*)NULL : Klass::cast(super)->uncached_lookup_method(method_name, method_signature); 1.8 + target = (super == NULL) ? (Method*)NULL : super->uncached_lookup_method(method_name, method_signature); 1.9 } 1.10 if (target == NULL || !target->is_public() || target->is_abstract()) { 1.11 // Entry do not resolve. Leave it empty 1.12 @@ -852,7 +852,7 @@ 1.13 // Handle array argument 1.14 for(int i = 0; i < transitive_intf->length(); i++) { 1.15 Klass* intf = transitive_intf->at(i); 1.16 - assert(Klass::cast(intf)->is_interface(), "sanity check"); 1.17 + assert(intf->is_interface(), "sanity check"); 1.18 1.19 // Find no. of methods excluding a <clinit> 1.20 int method_count = InstanceKlass::cast(intf)->methods()->length();