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