[
https://issues.apache.org/jira/browse/WICKET-4795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468478#comment-13468478
]
Martin Grigorov commented on WICKET-4795:
-----------------------------------------
Thanks for the patch!
I suggest to postpone its applying for a while because it is experimental for
now.
It is not effective in JDK7 unless you set the special system property. JDK8 is
still in development.
Additionally JSONObject is not really our source code. It is borrowed from
https://github.com/douglascrockford/JSON-java. We'll have to send a pull
request to this project when we decide to apply the improvement.
> 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