@@ -0,0 +1,620 @@
+package reflection;%0A%0Aimport sun.reflect.Reflection;%0A%0Apublic class CallerClassTest %7B%0A    %0A    public static void main(String%5B%5D args) %7B%0A        Foo.test();%0A    %7D%0A    %0A    static class Foo %7B%0A        static void test() %7B%0A            Bar.test();%0A        %7D%0A    %7D%0A    %0A    static class Bar %7B%0A        static void test() %7B%0A            System.out.println(Reflection.getCallerClass(0).getName());%0A            System.out.println(Reflection.getCallerClass(1).getName());%0A            System.out.println(Reflection.getCallerClass(2).getName());%0A            System.out.println(Reflection.getCallerClass(3).getName());%0A        %7D%0A    %7D%0A%7D%0A

add ClassClassTest.java