[ 
https://issues.apache.org/jira/browse/WICKET-4795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikko Tiihonen updated WICKET-4795:
-----------------------------------

    Attachment: fix-WICKET-4795.patch

The patch does the following:

1) Make JSONObject sort the generated output if "wicket.json.sort" system 
property is "true".

2) Set the property in WicketTestCase which is used to compare generated 
content with expected reference data.

3) Generate new expected data
                
> Wicket unit tests rely on hashmap iteration order
> -------------------------------------------------
>
>                 Key: WICKET-4795
>                 URL: https://issues.apache.org/jira/browse/WICKET-4795
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.21, 1.5.8, 6.0.0
>            Reporter: Mikko Tiihonen
>         Attachments: fix-WICKET-4795.patch
>
>
> Starting from version 7u5 java has supported randomizing the hashmap String 
> key order (enabling this will fix CVE-2012-2739). It is also a good way to 
> test the code if it is relying on hashmap order.
> More details: 
> http://docs.oracle.com/javase/7/docs/technotes/guides/collections/changes7.html
> In the latest Java 8 (b58) the randomized hashmap is enabled by default 
> causing some wicket unit tests to fail randomly.

--
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

Reply via email to