Reflection.getCallerClass() and @CallerSensitive for a constructor? (original) (raw)

Wang Weijun weijun.wang at oracle.com
Mon Mar 24 08:41:42 UTC 2014


Calling Reflection.getCallerClass() needs the @CallerSensitive annotation, but it cannot be applied to a constructor.

--Max

On Mar 24, 2014, at 16:36, Remi Forax <forax at univ-mlv.fr> wrote:

On 03/24/2014 08:43 AM, Wang Weijun wrote:

Reflection.getCallerClass(3) seems work but the method is deprecated.

Thanks Max what is your the question ? cheers, Rémi



More information about the core-libs-dev mailing list