--- a/hotspot/src/share/vm/opto/doCall.cpp Wed Sep 17 08:29:17 2008 -0700
+++ b/hotspot/src/share/vm/opto/doCall.cpp Wed Sep 17 12:59:52 2008 -0700
@@ -795,7 +795,7 @@
ciInstanceKlass *ikl = receiver_type->klass()->as_instance_klass();
if (ikl->is_loaded() && ikl->is_initialized() && !ikl->is_interface() &&
- (ikl == actual_receiver || ikl->is_subclass_of(actual_receiver))) {
+ (ikl == actual_receiver || ikl->is_subtype_of(actual_receiver))) {
// ikl is a same or better type than the original actual_receiver,
// e.g. static receiver from bytecodes.
actual_receiver = ikl;