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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • 16
    • 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();

            ccheung Calvin Cheung
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: