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 04:25:23 UTC
[jira] [Created] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Jimmy Xiang created HBASE-6183:
----------------------------------
Summary: 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
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
[jira] [Commented] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "Anoop Sam John (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291166#comment-13291166 ]
Anoop Sam John commented on HBASE-6183:
---------------------------------------
@Jimmy
Will these below links help us?
http://lists.jboss.org/pipermail/jboss-jira/2011-September/195653.html
https://issues.jboss.org/browse/LOGTOOL-23?_sscc=t
Some thing similar came while searched. [Not gone into details]
> 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
[jira] [Commented] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290800#comment-13290800 ]
stack commented on HBASE-6183:
------------------------------
This is interesting Jimmy. I took a quick look around and didn't turn up anything that'd help here. I did not find conclusive evidence Unsafe access is disallowed in jdk7 (I looked in sun bug database but their search sucks).
> 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
>
> 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
[jira] [Commented] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "Jimmy Xiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291287#comment-13291287 ]
Jimmy Xiang commented on HBASE-6183:
------------------------------------
@Stack, just got your message. :)
> 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
[jira] [Assigned] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "Jimmy Xiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jimmy Xiang reassigned HBASE-6183:
----------------------------------
Assignee: Jimmy Xiang
> 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
[jira] [Commented] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "Jimmy Xiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291278#comment-13291278 ]
Jimmy Xiang commented on HBASE-6183:
------------------------------------
I figured it out. It is a cross compiler issue:
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html#crosscomp-example
I can make mvn ignore such warnings. But it is not good.
Should we add some option to build for jdk1.7, like we did for different hadoop version?
> 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
[jira] [Commented] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "Jimmy Xiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291115#comment-13291115 ]
Jimmy Xiang commented on HBASE-6183:
------------------------------------
I think this is a generic message which is not related to Unsafe specifically. I will take a look and make sure mvn can move ahead.
> 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
>
> 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
[jira] [Commented] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291283#comment-13291283 ]
stack commented on HBASE-6183:
------------------------------
Can you just do -DcompileSource=1.7 when you invoke mvn?
> 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
[jira] [Commented] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "Jimmy Xiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291174#comment-13291174 ]
Jimmy Xiang commented on HBASE-6183:
------------------------------------
Cool, thanks. I will take a look soon.
> 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
[jira] [Resolved] (HBASE-6183) hbase-common doesn't compile with
jdk1.7
Posted by "Jimmy Xiang (JIRA)" <ji...@apache.org>.
[ 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