On Fri, 17 Jan 2025 18:15:17 GMT, Brian Burkhalter <b...@openjdk.org> wrote:
>> we don't care if there's an exception or not. It's not part of the spec. > > Yes, I think I'll rework this. Thanks. The build number could be obtained from the value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber but it seems not to be worth the trouble. In 51336af I instead changed the test of reserved names on Windows to ignore any `IOException` thrown by `File.createTempFile`. The change was verified on the aforementioned Windows variants and on Linux and macOS. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/23117#discussion_r1920681659