[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16076242#comment-16076242
 ] 

Rudy De Busscher commented on DELTASPIKE-1279:
----------------------------------------------

I can add this to the source code if there are no objections.

> SimpleSecurityViolation needs equals/hashcode
> ---------------------------------------------
>
>                 Key: DELTASPIKE-1279
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1279
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Rudy De Busscher
>
> SimpleSecurityViolation can be used to add violations to the Set of 
> violations when writing a custom voter.
> Creation of the instance can be done by 
> org.apache.deltaspike.security.api.authorization.AbstractDecisionVoter#newSecurityViolation
> But since the class SimpleSecurityViolation has no equals/hashcode, adding 2 
> or more violations with the same reason results in multiple entries within 
> the Set.
> A simple equals/hashcode based on the reason String property solves this.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to