You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2021/01/07 08:32:00 UTC

[jira] [Resolved] (HBASE-25472) HBASE-24260 breaks JDK7 compilation in branch-1

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

Wei-Chiu Chuang resolved HBASE-25472.
-------------------------------------
    Resolution: Duplicate

Oh yeah you're right. My local tree wasn't updated. Close this as a dup of HBASE-24620.

> HBASE-24260 breaks JDK7 compilation in branch-1
> -----------------------------------------------
>
>                 Key: HBASE-25472
>                 URL: https://issues.apache.org/jira/browse/HBASE-25472
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Wei-Chiu Chuang
>            Priority: Blocker
>
> Found in PR-2799. 
> {code}
> public static String getZKQuorum(Configuration conf) {
>     String port =
>       Integer.toString(conf.getInt(HConstants.ZOOKEEPER_CLIENT_PORT, 2181));
>     String[] serverHosts = conf.getStrings(HConstants.ZOOKEEPER_QUORUM, "localhost");
>     for (int i = 0; i < serverHosts.length; i++) {
>       serverHosts[i] = serverHosts[i] + ":" + port;
>     }
>     return String.join(",", serverHosts);
>   }
> {code}
> Fails to compile 
> {quote}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project hbase-it: Compilation failure
> [ERROR] /home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-2799/src/hbase-it/src/main/java/org/apache/hadoop/hbase/chaos/ChaosUtils.java:[46,18] cannot find symbol
> [ERROR] symbol:   method join(java.lang.String,java.lang.String[])
> [ERROR] location: class java.lang.String
> {quote}
> because String.join() is only available since JDK8.
> CC: [~lokiore] [~ndimiduk]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)