RFR 8073056: Repeating annotations throws java.security.AccessControlException with a SecurityManager

Peter Levart peter.levart at gmail.com
Thu Feb 26 21:35:36 UTC 2015


On 02/26/2015 10:27 PM, Peter Levart wrote:
> The m.setAccessible(true) for the methods is needed to access methods 
> of non-public annotations, right? This call could be moved to 
> AnnotationType constructor as there it will be performed only once per 
> Method object.

...which will have the added benefit in that it will guarantee that only 
one MethodAccessor object per Method will ever be constructed instead of 
two...

Peter

>
> Regards, Peter




More information about the core-libs-dev mailing list