public class SomeSubClass2 extends SomeBaseClass2 { // this method matches correctly public void tag_someMethod() { System.out.println("some sub method2"); } }