Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8092733

[Android] dalvik.gradle contains an hardcoded path to rt.jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8u20
    • javafx

      The patch for RT-37410 [Android] Add option to build to use retrolambda to remove lambdas added am hardcoded path to rt.jar.

      The following patch fixes it:
      diff --git a/buildSrc/dalvik.gradle b/buildSrc/dalvik.gradle
      --- a/buildSrc/dalvik.gradle
      +++ b/buildSrc/dalvik.gradle
      @@ -236,7 +236,7 @@
                           classpath = configurations.retroconfig
                           main = 'net.orfjackal.retrolambda.Main'
                           jvmArgs = [
      - "-Xbootclasspath:/opt/java/jre/lib/rt.jar",
      + "-Xbootclasspath:$JDK_HOME/jre/lib/rt.jar",
                                       "-Dretrolambda.inputDir=$inputdir",
                                       "-Dretrolambda.classpath=$basecp",
                                       "-Dretrolambda.bytecodeVersion=51",

            ddhill David Hill (Inactive)
            sfuchsjfx Stefan Fuchs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: