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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:

      Description

      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",

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: