CallerSensitive access rights problems

Jochen Theodorou blackdrag at gmx.org
Mon Nov 18 14:59:29 UTC 2013


Hi,

java.lang.Class has multiple methods annotated with CallerSensitive (see 
http://hg.openjdk.java.net/jdk8/jdk8-gate/jdk/file/tip/src/share/classes/java/lang/Class.java). 


Now if we in Groovy here want to build our runtime structure for this 
class, and the security manager is not allowing access to sun.reflect, 
then we get into trouble. https://jira.codehaus.org/browse/GROOVY-6405 
is caused by this.

What do you suggest people with this problem, if adding 
accessClassInPackage.sun.reflect is no option?

bye Jochen



More information about the core-libs-dev mailing list