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

Improve CDSPluginTest.java

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      CDSPluginTest.java was introduced as part of the fix for JDK-8264322.

      In the test, the os.name was hard-coded as follows:
      79: String[] cmd = {jlinkPath, "--add-modules", "java.base,java.logging",
      80: "-J-Dos.name=windows", "--generate-cds-archive",

      A better approach maybe overriding ModuleTarget attribute in module-info.class of java.base to be a different platform.

        Attachments

          Activity

            People

            Assignee:
            ccheung Calvin Cheung
            Reporter:
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: