1.1 --- a/src/share/vm/c1/c1_Instruction.cpp Thu Nov 17 16:06:56 2016 +0000 1.2 +++ b/src/share/vm/c1/c1_Instruction.cpp Mon Nov 21 05:29:59 2016 +0000 1.3 @@ -360,7 +360,8 @@ 1.4 } 1.5 1.6 ciType* Invoke::declared_type() const { 1.7 - ciType *t = _target->signature()->return_type(); 1.8 + ciSignature* declared_signature = state()->scope()->method()->get_declared_signature_at_bci(state()->bci()); 1.9 + ciType *t = declared_signature->return_type(); 1.10 assert(t->basic_type() != T_VOID, "need return value of void method?"); 1.11 return t; 1.12 }