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

[TESTBUG] Put graalJarsCP before existing classpath in GraalUnitTestLauncher

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20
    • CPU:
      generic
    • OS:
      generic

      Description

      We know that junit-4.12.jar is a dependency of jtreg graal unit test. In GraalUnitTestLauncher.java, we put this file path into graalJarsCP and concat it to current classpath. But existing classpath may contain another version of junit with which the jtreg tool is built. (According to the "Building jtreg" webpage[1], the recommended version is currently JUnit 4.10)

      In order to fix the incompatibility issue of different junit versions, the graalJarsCP should be put before when generating the new classpath string.

      [1] https://openjdk.java.net/jtreg/build.html

        Attachments

          Activity

            People

            • Assignee:
              pli Pengfei Li
              Reporter:
              pli Pengfei Li
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: