public void testMethod(){ Test1 t1 = new Test1(); t1.my(); } public static void main(String[] args) { Test t = new Test(); t.testMethod(); } class Test1{ public void my(){ String tag = this.getMyGrandpaStackTrace(); System.err.println(String.format("