ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bing Zou (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Created: (IBATIS-525) ClassInfo.canAccessPrivateMethods() incorrect implementation?
Date Thu, 24 Jul 2008 15:17:31 GMT
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
  private static boolean canAccessPrivateMethods() {
    try {
      SecurityManager securityManager = System.getSecurityManager();
      if (null != securityManager) {
        securityManager.checkPermission(new ReflectPermission("suppressAccessChecks"));
    } catch (SecurityException e) {
      return false;
    return true;

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.

View raw message