The Java Security Manager method checkMemberAccess() had a parameter that contained the class that Reflection was being called on. This method was deprecated, with a description saying to use checkPermission() instead. There are no parameters in checkPermission() that are similar to those in checkMemberAccess().
In a Security Manager, how do I get the Reflection target class without the checkMemberAccess() method?
i.e. if Class A performs reflection on Class B, I want to know that the target was Class B.