Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-790

Enforce JDK7 javac for builds

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Slider 0.70
    • Slider 0.80
    • None
    • None
    • Slider Feb #1

    Description

      Java 7 is needed to build develop branch.
      With Java 6, you would get:

      [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
      

      Enforce JDK7 as minimum JDK version.

      Attachments

        Issue Links

          Activity

            People

              stevel@apache.org Steve Loughran
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified