[ 
https://issues.apache.org/jira/browse/SLIDER-790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14341076#comment-14341076
 ] 

ASF subversion and git services commented on SLIDER-790:
--------------------------------------------------------

Commit ddc7236c5ca4e8a71be863eaed5628255ac7ed98 in incubator-slider's branch 
refs/heads/develop from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-slider.git;h=ddc7236 ]

SLIDER-790 move SliderClient to Java7


> Enforce JDK7 javac for builds
> -----------------------------
>
>                 Key: SLIDER-790
>                 URL: https://issues.apache.org/jira/browse/SLIDER-790
>             Project: Slider
>          Issue Type: Task
>    Affects Versions: Slider 0.70
>            Reporter: Ted Yu
>            Assignee: Steve Loughran
>            Priority: Minor
>             Fix For: Slider 0.80
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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)

Reply via email to