[hibernate-issues] [Hibernate-JIRA] Created: (HV-585) Order of validation messages is lost

Gunther Schmidl (JIRA) noreply at atlassian.com
Thu May 10 03:25:09 EDT 2012


Order of validation messages is lost
------------------------------------

                 Key: HV-585
                 URL: https://hibernate.onjira.com/browse/HV-585
             Project: Hibernate Validator
          Issue Type: Improvement
          Components: engine
    Affects Versions: 4.3.0.Final
         Environment: ---
            Reporter: Gunther Schmidl


When adding validation messages, they are stored in an ArrayList. Later on, they are transferred to a HashSet, and finally to a String[] array. Naturally, putting them in a HashSet screws up the order of the messages, which may be important (for example, I have a "header" error message I wish to display first). Please consider changing the HashSet to a LinkedHashSet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list