Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-15451

Spark PR builder should fail if code doesn't compile against JDK 7

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Build
    • Labels:
      None

      Description

      We need to compile certain parts of the build using jdk8, so that we test things like lambdas. But when possible, we should either compile using jdk7, or provide jdk7's rt.jar to javac. Otherwise it's way too easy to slip in jdk8-specific library calls.

      I'll take a look at fixing the maven / sbt files, but I'm not sure how to update the PR builders since this will most probably require at least a new env variable (to say where jdk7 is).

        Attachments

          Activity

            People

            • Assignee:
              vanzin Marcelo Vanzin
              Reporter:
              vanzin Marcelo Vanzin
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: