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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • infrastructure
    • None
    • b14

        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

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

                Created:
                Updated:
                Resolved: