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

langtools/test/Makefile breaks when JT_JAVA set to a JDK 9 build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b14

      Backports

        Description

        To run JCK tests via langtools/test/Makefile, Java is invoked as follows:

        $(JT_JAVA)/bin/java -XX:MaxPermSize=256m ...

        The MaxPermSize option is unsupported in JDK 9, causing the command to crash:

        Unrecognized VM option 'MaxPermSize=256m'
        Error: Could not create the Java Virtual Machine.

        This is easily triggered from the top-level test/Makefile, when attempting to test a JDK 9 build, because it sets JT_JAVA to $(PRODUCT_HOME):

        make -C test PRODUCT_HOME="$JDK9_HOME" JCK_HOME="$JCK_HOME" langtools_jck-compiler

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dlsmith Dan Smith
                Reporter:
                dlsmith Dan Smith
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: