@CallerSensitive as public API ?

Paul Benedict pbenedict at apache.org
Mon Jul 22 16:22:33 UTC 2013


I find this issue tangentially related to some open source logging
libraries. Some create a stack trace just so they can get the name of the
calling Class instance.

Example:
Logger log = Logger.createLogger(); // for the current class

Are there any thoughts to directly exposing
sun.reflect.Reflection.getCallerClass() as a public API?

-- 
Cheers,
Paul



More information about the core-libs-dev mailing list