--- a/hotspot/src/share/vm/c1/c1_GraphBuilder.cpp Sun Mar 25 18:08:52 2012 -0400
+++ b/hotspot/src/share/vm/c1/c1_GraphBuilder.cpp Thu Mar 29 22:18:56 2012 -0400
@@ -1694,7 +1694,9 @@
// they are roughly equivalent to Object.
ciInstanceKlass* singleton = NULL;
if (target->holder()->nof_implementors() == 1) {
- singleton = target->holder()->implementor(0);
+ singleton = target->holder()->implementor();
+ assert(singleton != NULL && singleton != target->holder(),
+ "just checking");
assert(holder->is_interface(), "invokeinterface to non interface?");
ciInstanceKlass* decl_interface = (ciInstanceKlass*)holder;