CDS tests should use CDSTestUtils.getOutputDir instead of System.getProperty("user.dir")

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 16
    • Affects Version/s: 16
    • Component/s: hotspot
    • b28

      JDK-8251213 introduces a new CDSTestUtils.getOutputDir() method. For consistence, existing CDS tests with the following pattern

          String s = System.getProperty("user.dir");
          File dir = new File(System.getProperty("user.dir"));

      should be changed to

          String s = CDSTestUtils.getOutputDir();
          File dir = CDSTestUtils.getOutputDirAsFile();

            Assignee:
            Calvin Cheung (Inactive)
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: