-
Bug
-
Resolution: Fixed
-
P4
-
11, 14, 15, 16
-
b06
-
generic
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8250561 | 15.0.2 | Vladimir Kozlov | P4 | Resolved | Fixed | b01 |
JDK-8250673 | 15.0.1 | Vladimir Kozlov | P4 | Resolved | Fixed | b03 |
JDK-8260047 | 13.0.7 | Ekaterina Vergizova | P4 | Resolved | Fixed | b01 |
JDK-8261047 | 13.0.6 | Ekaterina Vergizova | P4 | Resolved | Fixed | b01 |
JDK-8250265 | 11.0.10-oracle | Vladimir Kozlov | P4 | Resolved | Fixed | b01 |
JDK-8250672 | 11.0.9-oracle | Vladimir Kozlov | P4 | Resolved | Fixed | b03 |
JDK-8251236 | 11.0.9 | Vladimir Kozlov | P4 | Resolved | Fixed | b03 |
I encountered this on JDK11.08, but this issue exists in the latest release.
The reason is as follows:
1. Consider this:
https://hg.openjdk.java.net/jdk-updates/jdk11u/file/030bc020dc04/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Linker.java#l203
The logic tries to get the environment variable as follows:
String programFilesX86 = System.getenv("ProgramFiles(x86)”);
And Linker.java will keel over if “ProgramFiles(x86)” is not present.
2. The next failure is here:
https://hg.openjdk.java.net/jdk-updates/jdk11u/file/030bc020dc04/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/Linker.java#l226
vswhere.exe will return an empty output when the environment variable “ProgramData” is not defined, essentially vswhere.exe fails silently.
The above logic seems to fail-fast, if the environment variable “programFilesX86” does not exist, and even if it did and not having ProgramData will cause vswhere.exe will fail silently in which case Linker.java will never find older versions of VisualStudio as enumerated by VSVERSIONS.
- backported by
-
JDK-8250265 AOT's Linker.java seems to eagerly fail-fast on Windows.
- Resolved
-
JDK-8250561 AOT's Linker.java seems to eagerly fail-fast on Windows.
- Resolved
-
JDK-8250672 AOT's Linker.java seems to eagerly fail-fast on Windows.
- Resolved
-
JDK-8250673 AOT's Linker.java seems to eagerly fail-fast on Windows.
- Resolved
-
JDK-8251236 AOT's Linker.java seems to eagerly fail-fast on Windows.
- Resolved
-
JDK-8260047 AOT's Linker.java seems to eagerly fail-fast on Windows.
- Resolved
-
JDK-8261047 AOT's Linker.java seems to eagerly fail-fast on Windows.
- Resolved
- relates to
-
CODETOOLS-7902719 jtreg does not expose some critical environment variables on Windows
- Closed