mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-04 04:19:09 +00:00
SEC-106: Use getMethod() instead of getDeclaredMethod() so that methods defined in principal Object superclasses are accessible.
This commit is contained in:
parent
9ccaf05cc7
commit
27f47673ad
@ -17,6 +17,7 @@ package org.acegisecurity.taglibs.authz;
|
|||||||
|
|
||||||
import org.acegisecurity.Authentication;
|
import org.acegisecurity.Authentication;
|
||||||
import org.acegisecurity.UserDetails;
|
import org.acegisecurity.UserDetails;
|
||||||
|
|
||||||
import org.acegisecurity.context.SecurityContext;
|
import org.acegisecurity.context.SecurityContext;
|
||||||
import org.acegisecurity.context.SecurityContextHolder;
|
import org.acegisecurity.context.SecurityContextHolder;
|
||||||
|
|
||||||
@ -121,7 +122,7 @@ public class AuthenticationTag extends TagSupport {
|
|||||||
Method method = null;
|
Method method = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
method = clazz.getDeclaredMethod(methodName.toString(), (Class[]) null);
|
method = clazz.getMethod(methodName.toString(), (Class[]) null);
|
||||||
} catch (SecurityException se) {
|
} catch (SecurityException se) {
|
||||||
throw new JspException(se);
|
throw new JspException(se);
|
||||||
} catch (NoSuchMethodException nsme) {
|
} catch (NoSuchMethodException nsme) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user