You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2015/10/06 20:12:26 UTC

[jira] [Created] (HBASE-14560) TestNamespacesInstanceModel#testToXML fails when JDK 1.8 is used

Ted Yu created HBASE-14560:
------------------------------

             Summary: TestNamespacesInstanceModel#testToXML fails when JDK 1.8 is used
                 Key: HBASE-14560
                 URL: https://issues.apache.org/jira/browse/HBASE-14560
             Project: HBase
          Issue Type: Test
            Reporter: Ted Yu
            Priority: Minor


>From https://builds.apache.org/job/HBase-1.3/jdk=latest1.8,label=Hadoop/237/consoleFull :
{code}
org.apache.hadoop.hbase.rest.model.TestNamespacesInstanceModel
testToXML(org.apache.hadoop.hbase.rest.model.TestNamespacesInstanceModel)  Time elapsed: 0.017 sec  <<< FAILURE!
junit.framework.ComparisonFailure: expected:<...perties><entry><key>[NAME</key><value>testNamespace</value></entry><entry><key>KEY_2</key><value>VALUE_2</value></entry><entry><key>KEY_1</key><value>VALUE_1]</value></entry></pr...> but was:<...perties><entry><key>[KEY_1</key><value>VALUE_1</value></entry><entry><key>KEY_2</key><value>VALUE_2</value></entry><entry><key>NAME</key><value>testNamespace]</value></entry></pr...>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.Assert.assertEquals(Assert.java:107)
	at junit.framework.TestCase.assertEquals(TestCase.java:269)
	at org.apache.hadoop.hbase.rest.model.TestModelBase.testToXML(TestModelBase.java:115)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
{code}
The above test failure can be reproduced locally.
It was likely caused by the different behavior w.r.t. JAXBContext between JDK 1.7 and 1.8



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)