SEC-267: Bug when working with CGLIB-generated classes.

This commit is contained in:
Ben Alex 2006-05-23 10:42:01 +00:00
parent a5d74ca2e1
commit 501eaadd09
1 changed files with 4 additions and 4 deletions

View File

@ -62,10 +62,10 @@ public class NamedEntityObjectIdentity implements AclObjectIdentity {
Assert.notNull(object, "object cannot be null");
this.classname = (getPackageName(object.getClass().getName()) == null)
? ClassUtils.getShortName(object.getClass())
: getPackageName(object.getClass().getName() + "."
+ ClassUtils.getShortName(object.getClass()));
? ClassUtils.getShortName(object.getClass())
: getPackageName(object.getClass().getName()) + "."
+ ClassUtils.getShortName(object.getClass());
Class clazz = object.getClass();
try {