From 4586183f174230bb251b2917c70bff5173bc66cc Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Sun, 16 Mar 2008 04:51:33 +0000 Subject: [PATCH] SEC-717: Resolve UserDetails.getAuthorities() sort logic issue. --- .../authz/AuthorizeTagCustomGrantedAuthorityTests.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/taglibs/src/test/java/org/springframework/security/taglibs/authz/AuthorizeTagCustomGrantedAuthorityTests.java b/taglibs/src/test/java/org/springframework/security/taglibs/authz/AuthorizeTagCustomGrantedAuthorityTests.java index abacd7c74c..a2ab003d1f 100644 --- a/taglibs/src/test/java/org/springframework/security/taglibs/authz/AuthorizeTagCustomGrantedAuthorityTests.java +++ b/taglibs/src/test/java/org/springframework/security/taglibs/authz/AuthorizeTagCustomGrantedAuthorityTests.java @@ -80,7 +80,11 @@ public class AuthorizeTagCustomGrantedAuthorityTests extends TestCase { private static class CustomGrantedAuthority implements GrantedAuthority { private final String authority; - public CustomGrantedAuthority(String authority) { + public int compareTo(Object o) { + return 0; + } + + public CustomGrantedAuthority(String authority) { this.authority = authority; }