Spring Security
  1. Spring Security
  2. SEC-1128

Use ClassUtils.forName to load javaType for ObjectIdentityImpl

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 3.0.0 M1
    • Component/s: ACLs
    • Labels:
      None

      Description

      org.springframework.security.acls.objectidentity.ObjectIdentityImpl currently uses Class.forName to resolve the requested javaType. Using ClassUtils.forName will invoke the Spring default ClassLoader which, for example, allows Spring Security to be used in a shared parent context: http://blog.springsource.com/2007/06/11/using-a-shared-parent-application-context-in-a-multi-war-spring-application/

      I'm attaching the modified ObjectIdenityImpl.java here (taken from 2.0.4) - apologies if this is the wrong way to submit a patch

        Activity

        Hide
        Luke Taylor added a comment -

        I've modified the constructor to use ClassUtils.forName() instead of Class.forName();

        Show
        Luke Taylor added a comment - I've modified the constructor to use ClassUtils.forName() instead of Class.forName();

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Dan Dormont
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: