[ https://issues.apache.org/jira/browse/HIVE-8773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14208820#comment-14208820 ]
Brock Noland commented on HIVE-8773: ------------------------------------ Actually thinking about this more, it will probably break with Java 9. We should do something like this: {noformat} Assert.assertTrue(p.getAssertMsg(), "{\"status\":\"ok\",\"version\":\"v1\"}".equals(p.responseBody) || "{\"version\":\"v1\",\"status\":\"ok\"}".equals(p.responseBody)); {noformat} or create a utility method which turns that json map into a real map and then does the comparison. > Fix TestWebHCatE2e#getStatus for Java8 > -------------------------------------- > > Key: HIVE-8773 > URL: https://issues.apache.org/jira/browse/HIVE-8773 > Project: Hive > Issue Type: Sub-task > Components: Tests > Reporter: Mohit Sabharwal > Assignee: Mohit Sabharwal > Attachments: HIVE-8773.patch > > > [HttpMethod.getResponseBodyAsString|https://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpMethod.html#getResponseBodyAsString()] > returns response body in different order for Java8 -- This message was sent by Atlassian JIRA (v6.3.4#6332)