You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Trevor Robinson (JIRA)" <ji...@apache.org> on 2012/08/14 00:18:38 UTC

[jira] [Commented] (HADOOP-8390) TestFileSystemCanonicalization fails with JDK7

    [ https://issues.apache.org/jira/browse/HADOOP-8390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433650#comment-13433650 ] 

Trevor Robinson commented on HADOOP-8390:
-----------------------------------------

Err, JDK7 doesn't seem to preserve the declaration *order* of class members for reflection.

The reflection methods warn about order being undefined, but JDK6 seemed to preserve it. {{testSetupResolver()}} was declared first, so Junit with JDK6 ran it first.
                
> 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
>            Assignee: 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