You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Reinhard Sandtner (JIRA)" <ji...@apache.org> on 2016/07/21 17:05:21 UTC
[jira] [Closed] (JOHNZON-91) MapperTest#justObjectAsModel fails
with java7
[ https://issues.apache.org/jira/browse/JOHNZON-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reinhard Sandtner closed JOHNZON-91.
------------------------------------
> MapperTest#justObjectAsModel fails with java7
> ---------------------------------------------
>
> Key: JOHNZON-91
> URL: https://issues.apache.org/jira/browse/JOHNZON-91
> Project: Johnzon
> Issue Type: Bug
> Components: Mapper
> Affects Versions: 0.9.4
> Reporter: Reinhard Sandtner
> Assignee: Reinhard Sandtner
> Fix For: 0.9.4
>
>
> this test fails because the ordering of a HashMap is undefined and an internal detail...
> with java8 the ordering is like it is expected in the test.
> if you run this test with java7, the implementation of HashMap uses HashMap$Entry for the entries and thus has another ordering algo (afaik the hashCode calculation) and so the test fails
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)