• 2024-08-14Reflection.getCallerClass()
    最近在看jdbc源码时,在DriverManager中的getConnection方法中见到了Reflection.getCallerClass()方法,尝试看了看源码。源代码如下/**Returnstheclassofthecallerofthemethodcallingthismethod,ignoringframesassociatedwithjava.lang.reflect.Method.i