mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 15:22:15 +00:00
SEC-602: Retrieve true underlaying class, properly handling CGLIB enhanced versions.
This commit is contained in:
parent
e5956c2935
commit
337155f0ea
@ -17,6 +17,7 @@ package org.springframework.security.acls.objectidentity;
|
|||||||
import org.springframework.security.acls.IdentityUnavailableException;
|
import org.springframework.security.acls.IdentityUnavailableException;
|
||||||
|
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
import org.springframework.util.ClassUtils;
|
||||||
import org.springframework.util.ReflectionUtils;
|
import org.springframework.util.ReflectionUtils;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@ -75,7 +76,7 @@ public class ObjectIdentityImpl implements ObjectIdentity {
|
|||||||
public ObjectIdentityImpl(Object object) throws IdentityUnavailableException {
|
public ObjectIdentityImpl(Object object) throws IdentityUnavailableException {
|
||||||
Assert.notNull(object, "object cannot be null");
|
Assert.notNull(object, "object cannot be null");
|
||||||
|
|
||||||
this.javaType = object.getClass();
|
this.javaType = ClassUtils.getUserClass(object.getClass());
|
||||||
|
|
||||||
Object result;
|
Object result;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user