I'd like to propose a patch to the MethodDefinitionMap. With the actual
source code, you can't secure inherited methods. This patch will fix the
problem. It's really simple and straightforward.
I needed it see the inherited methods so I could secure my generic service
layer interfaces.
Could the patch be applied fast, if possible ?
--
_____________________________
Luc Boudreau
### Eclipse Workspace Patch 1.0
#P acegisecurity
Index:
core/src/main/java/org/acegisecurity/intercept/method/MethodDefinitionMap.java
===================================================================
RCS file:
/cvsroot/acegisecurity/acegisecurity/core/src/main/java/org/acegisecurity/intercept/method/MethodDefinitionMap.java,v
retrieving revision 1.6
diff -u -r1.6 MethodDefinitionMap.java
---
core/src/main/java/org/acegisecurity/intercept/method/MethodDefinitionMap.java
17 Nov 2005 00:56:09 -0000 1.6
+++
core/src/main/java/org/acegisecurity/intercept/method/MethodDefinitionMap.java
9 Jan 2007 14:45:34 -0000
@@ -165,7 +165,7 @@
+ "] with attributes [" + attr + "]");
}
- Method[] methods = clazz.getDeclaredMethods();
+ Method[] methods = clazz.getMethods();
List matchingMethods = new ArrayList();
for (int i = 0; i < methods.length; i++) {
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer