Code analyzing might be done by IDE, however I feel compilation is done by
compiler.
I know Eclpse can be configured with a compiler, and I guess IDEA can too.

I feel the compilation errors are from configured compiler, might not be an
Eclipse fault.
BTW, the complaints might be correct, and the compilers failing to report
might have a defect.

I don't have the andReturn signature. If it's
   andReturn(? extends Object)
or
   andReturn(? extends String)
I agree andReturn("bar") should be a valid call. However, if it's
   andReturn(?)
I don't think andReturn("bar") is a valid call and I think the signature can
be changed to
   andReturn(Object)
.
--

Yang ZHONG

Reply via email to