John Sanda created CASSANDRA-5072:
-------------------------------------
Summary: Bug in creating EnumSet in SimpleAuthorizer example
Key: CASSANDRA-5072
URL: https://issues.apache.org/jira/browse/CASSANDRA-5072
Project: Cassandra
Issue Type: Bug
Components: Core
Reporter: John Sanda
Priority: Minor
In SimpleAuthorizer around line 47 we have,
EnumSet<Permission> authorized = EnumSet.copyOf(Permission.NONE);
This results in an IllegalArgumentException since Permission.NONE is an empty
set. I think it should be changed to,
EnumSet<Permission> authorized = EnumSet.noneOf(Permission.class);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira