dlmarion commented on PR #5961:
URL: https://github.com/apache/accumulo/pull/5961#issuecomment-3618158637

   > @dlmarion The issue is that the build fails with NonDex with something 
like:
   > 
   > ```
   >     1) ObjectMapper mapper = new ObjectMapper();
   > 
   >     2) JsonNode node1 = mapper.readTree("{\"foo\":1,\"bar\":2}");
   >     3) JsonNode node2 = mapper.readTree("{\"bar\":2,\"foo\":1}");
   > 
   >     4) assertEquals(node1, node2);
   > ```
   > 
   > at line 4. In this test, we are not comparing Strings but JsonNode objects 
which can be compared directly.
   
   Line 4 fails because `JsonNode.equals`, specifically `ObjectNode.equals`, 
uses a `LinkedHashMap` for the children. Jackson's JsonNode is enforcing order 
at this point. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to