Summary
Disable "best-fit" mapping on Java launcher's command line arguments from "JDK_JAVA_OPTIONS" environment variable on Windows
Problem
The CSR JDK-8337509 demonstrates the potential issues with command line arguments. Since the Java launcher can take additional command line arguments if "JDK_JAVA_OPTIONS" environment variable is defined, the same fix needs to be applied for those additional arguments.
Solution
Apply the same treatment as with JDK-8337506, ie, use Windows "W" API (_wgetenv()
) to retrieve environment variable, then convert it back to code page based multi byte string without "best-fit" mapping.
Specification
N/A (behavioral change only)
- csr of
-
JDK-8349254 Disable "best-fit" mapping on Windows environment variables
-
- Resolved
-
- relates to
-
JDK-8337509 Disable "best-fit" mapping on Windows command line
-
- Closed
-