force base class to use its own method and not overrided method
问题 here is my scenario: class SomeBaseClass { public void foo(String str) { ....... } public void foo(String strs[]) { ....... } } class MyClass extends SomeBaseClass { public void foo(String str) { super.foo(str); } public void foo(String strs[]) { throw new RuntimeException("only one input please!"); } } The logic is pretty simple. "SomeBaseClass" is 3rd party tool that i cannot modify. I want to limit its functionality and don't want to allow foo(String strs[]). the problem is that inside