[ 
https://issues.apache.org/jira/browse/HADOOP-8390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Trevor Robinson updated HADOOP-8390:
------------------------------------

    Attachment: HADOOP-8390.patch

This is simply a test order-dependency bug. {{testSetupResolver()}} is declared 
as a {{@Test}}, but just performs static initialization required by most of the 
other tests ({{NetUtilsTestResolver.install()}}). The attached patch changes 
this test method to a static initializer block.

Perhaps the reason this breaks with JDK7 is that it doesn't seem to preserve 
the declaration of class members for reflection.
                
> TestFileSystemCanonicalization fails with JDK7
> ----------------------------------------------
>
>                 Key: HADOOP-8390
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8390
>             Project: Hadoop Common
>          Issue Type: Bug
>         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 02:44:56-0600)
> Maven home: /usr/local/apache-maven
> Java version: 1.7.0_04, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/jdk1.7.0_04/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux", version: "3.2.0-24-generic", arch: "amd64", family: "unix"
> Ubuntu 12.04 LTS
>            Reporter: Trevor Robinson
>         Attachments: HADOOP-8390.patch
>
>
> Failed tests:
>  testShortAuthority(org.apache.hadoop.fs.TestFileSystemCanonicalization):
> expected:<myfs://host.a.b:123> but was:<myfs://host:123>
>  testPartialAuthority(org.apache.hadoop.fs.TestFileSystemCanonicalization):
> expected:<myfs://host.a.b:123> but was:<myfs://host.a:123>
> Passes on same machine with JDK 1.6.0_32.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to