You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jimmy Xiang (JIRA)" <ji...@apache.org> on 2012/06/07 22:42:24 UTC

[jira] [Resolved] (HBASE-6183) hbase-common doesn't compile with jdk1.7

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

Jimmy Xiang resolved HBASE-6183.
--------------------------------

    Resolution: Later

Close it as Later, maybe we can have a better solution later.

For now, to compile it with jdk1.7, we need to set compileSource to 1.7 like below:

mvn clean test -DcompileSource=1.7

Which works fine to me!
                
> hbase-common doesn't compile with jdk1.7
> ----------------------------------------
>
>                 Key: HBASE-6183
>                 URL: https://issues.apache.org/jira/browse/HBASE-6183
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Jimmy Xiang
>            Assignee: Jimmy Xiang
>
> With jdk1.7, mvn clean test give me this error:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project hbase-common: Compilation failure: Compilation failure:
> [ERROR] could not parse error message: warning: [options] bootstrap class path not set in conjunction with -source 1.6
> [ERROR] /home/jxiang/git-repos/apache/tmp/t2/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java:44: warning: Unsafe is internal proprietary API and may be removed in a future release
> [ERROR] import sun.misc.Unsafe;
> [ERROR] ^
> [ERROR] 
> [ERROR] /home/jxiang/git-repos/apache/tmp/t2/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java:[1040,19] Unsafe is internal proprietary API and may be removed in a future release
> [ERROR] 
> [ERROR] /home/jxiang/git-repos/apache/tmp/t2/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java:[1046,21] Unsafe is internal proprietary API and may be removed in a future release
> [ERROR] 
> [ERROR] /home/jxiang/git-repos/apache/tmp/t2/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java:[1051,28] Unsafe is internal proprietary API and may be removed in a future releas

--
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