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

Joel Borggrén-Franck joel.franck at oracle.com
Tue Feb 24 10:49:09 UTC 2015


Hi,

Here is a fix for an issue with repeating annotations when a security manager is set.

Fix is to use the Proxy invocation handler to unwrap the array containing the repeating annotations. In theory it might be possible to have instances of Annotations that are not implemented using Proxies, so the old code which  is independent of implementation is kept as a fall-back, but the user or these theoretical annotations will have to configure the security policy accordingly.

http://cr.openjdk.java.net/~jfranck/8073056/webrev.00/
https://bugs.openjdk.java.net/browse/JDK-8073056

cheers
/Joel


More information about the core-libs-dev mailing list