You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Bing Zou (JIRA)" <ib...@incubator.apache.org> on 2008/07/24 17:17:31 UTC
[jira] Created: (IBATIS-525) ClassInfo.canAccessPrivateMethods()
incorrect implementation?
ClassInfo.canAccessPrivateMethods() incorrect implementation?
-------------------------------------------------------------
Key: IBATIS-525
URL: https://issues.apache.org/jira/browse/IBATIS-525
Project: iBatis for Java
Issue Type: Bug
Affects Versions: 2.3.3
Reporter: Bing Zou
Priority: Minor
This used to throw a NPE in 2.3.0 and it is fixed in 2.3.3
{code}
private static boolean canAccessPrivateMethods() {
try {
SecurityManager securityManager = System.getSecurityManager();
if (null != securityManager) {
securityManager.checkPermission(new ReflectPermission("suppressAccessChecks"));
}
} catch (SecurityException e) {
return false;
}
return true;
}
{code}
But looking at the logic, I don't think it should return true if security manager is null. So just raise this up.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.