-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
None
The implementation of java.lang.SecurityManager.checkMemberAccess(java.lang.Class,int) relies on an assumption that the caller is at a stack depth of 4, which is not something that can be enforced, making the code error-prone.
When
a Java class uses java.lang.SecurityManager.checkMemberAccess(java.lang.Class,int)
Perform
add a hint to replace the call with java.lang.SecurityManager.checkPermission(new RuntimePermission("accessDeclaredMembers"))