网站首页
编程语言
数据库
系统相关
其他分享
编程问答
getCallerClass
2024-08-14
Reflection.getCallerClass()
最近在看jdbc源码时,在DriverManager中的getConnection方法中见到了Reflection.getCallerClass()方法,尝试看了看源码。源代码如下/**Returnstheclassofthecallerofthemethodcallingthismethod,ignoringframesassociatedwithjava.lang.reflect.Method.i