You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/02/20 00:02:11 UTC
[jira] [Commented] (SLIDER-790) Enforce JDK7 javac for builds
[ https://issues.apache.org/jira/browse/SLIDER-790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328272#comment-14328272 ]
ASF subversion and git services commented on SLIDER-790:
--------------------------------------------------------
Commit df9d5adb94f303f2852eee21b387df2ce4292c29 in incubator-slider's branch refs/heads/develop from [~tedyu]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-slider.git;h=df9d5ad ]
SLIDER-790 Enforce JDK7 javac for builds
> Enforce JDK7 javac for builds
> -----------------------------
>
> Key: SLIDER-790
> URL: https://issues.apache.org/jira/browse/SLIDER-790
> Project: Slider
> Issue Type: Task
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Minor
>
> Java 7 is needed to build develop branch.
> With Java 6, you would get:
> {code}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project slider-core: Compilation failure: Compilation failure:
> [ERROR] /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java:[177,8] 1. ERROR in /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java (at line 177)
> [ERROR] import java.nio.file.Files;
> [ERROR] ^^^^^^^^^^^^^
> [ERROR] The import java.nio.file cannot be resolved
> [ERROR]
> [ERROR] /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java:[916,18] 2. ERROR in /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java (at line 916)
> [ERROR] byte[] encoded = Files.readAllBytes(clientInfo.clientConfig.toPath());
> [ERROR] ^^^^^
> [ERROR] Files cannot be resolved
> [ERROR]
> [ERROR] /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java:[916,61] 3. ERROR in /home/jenkins/jenkins-slave/workspace/Slider-develop/slider-core/src/main/java/org/apache/slider/client/SliderClient.java (at line 916)
> [ERROR] byte[] encoded = Files.readAllBytes(clientInfo.clientConfig.toPath());
> [ERROR] ^^^^^^
> [ERROR] The method toPath() is undefined for the type File
> {code}
> Enforce JDK7 as minimum JDK version.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)