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

function isWsl() returns false on WSL2

    XMLWordPrintable

Details

    • b02
    • generic
    • windows_10

    Backports

      Description

        function isWsl() in file make/conf/jib-profiles.js returns false when building JDK on WSL2.

        Instead, in such a case, the function should return true.

        This can be resolved by making string-checking, performed in the function budy case insensitive.

        @@ -1517,9 +1517,11 @@ var getVersionNumbers = function () {
        ...
        - && java.lang.System.getProperty("os.version").contains("Microsoft")));
        + && java.lang.System.getProperty("os.version").toLowerCase().contains("microsoft")));

        Attachments

          Issue Links

            Activity

              People

                ibereziuk Ivan Bereziuk
                ibereziuk Ivan Bereziuk
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: