-
Bug
-
Resolution: Fixed
-
P4
-
21
-
The issue was confirmed for WSL running Ubuntu 22.04.
-
b02
-
generic
-
windows_10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8310269 | 20u-cpu | Ivan Bereziuk | P4 | Resolved | Fixed | master |
JDK-8310112 | 17.0.9-oracle | Ivan Bereziuk | P4 | Resolved | Fixed | b01 |
JDK-8310737 | 17.0.9 | Martin Doerr | P4 | Resolved | Fixed | b01 |
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")));
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")));
- backported by
-
JDK-8310112 function isWsl() returns false on WSL2
- Resolved
-
JDK-8310269 function isWsl() returns false on WSL2
- Resolved
-
JDK-8310737 function isWsl() returns false on WSL2
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/e0c96436
-
Commit openjdk/jdk/9b0baa10
-
Review openjdk/jdk17u-dev/1493
-
Review openjdk/jdk/14413
(2 links to)