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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b28

      Description

      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();

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: