[
https://issues.apache.org/jira/browse/WICKET-4795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619081#comment-13619081
]
Mikko Tiihonen commented on WICKET-4795:
----------------------------------------
My patch to upstream JSON was rejected. The valid reason being that
applications should not be written to rely on specific order of json fields.
Maybe we need to figure some other way than exact string comparison of rendered
markup to make the unit tests pass on Java 8.
> Wicket unit tests rely on hashmap iteration order
> -------------------------------------------------
>
> Key: WICKET-4795
> URL: https://issues.apache.org/jira/browse/WICKET-4795
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4.21, 1.5.8, 6.0.0
> Reporter: Mikko Tiihonen
> Priority: Minor
> 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