mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Gustavsson" <nik...@protocol7.com>
Subject Re: The User.getAuthorities(Class<Authority> clazz) method has a flaw
Date Fri, 30 May 2008 14:42:25 GMT
On Wed, May 28, 2008 at 8:42 PM, Nicklas Nordborg <nicklas@compunet.se> wrote:
> I think this method has a flaw in it's signature. It is impossible to call
> this method with any other class object than the Authority.class. For
> example if I try:
>
>  Authority[] auth = user.getAuthorities(WritePermission.class);

Yeah, that makes that method pretty useless :-)

I just commited a fix for this, thanks for reporting!

/niklas

Mime
View raw message