Naming refactoring shortcoming

Consider the following code:

The call "print(b)" will call "void print(A a)".
However, if you refactor the method name "printB" to "print", the call "print(b)" will now call "void print(B b)".

Currently, IDEA issues no warnings for this.

Please sign in to leave a comment.