You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2015/02/27 20:19:04 UTC

[jira] [Reopened] (SLIDER-790) Enforce JDK7 javac for builds

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

Steve Loughran reopened SLIDER-790:
-----------------------------------
      Assignee: Steve Loughran  (was: Ted Yu)

> 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: Steve Loughran
>            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)