SEC-1483: Change constructor to accept Collection<? extends GrantedAuthority> #1724

spring-issuemaster opened this Issue May 20, 2010 · 2 comments


None yet

1 participant


Ronan Daly (Migrated from SEC-1483) said:

Currently the User constructor takes a Collection as a parameter. If it were to take Collection<? extends GrantedAuthority> it would mean that users would not have to implement a special method just to generate the collection as that type. The change would be trivial.


Luke Taylor said:

Added to 3.0 and master branches.


Johnathon said:

It would seem that UserDetails itself got left behind in this modification, as it would seem to make sense to also allow any implementing classes of UserDetails to accept <? extends GrantedAuthority> on the getAuthorities method definition as well... Would it make sens to reopen this task, or create a separate one?

@spring-issuemaster spring-issuemaster added this to the 3.1.0.M1 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment