RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v3]

Brian Burkhalter bpb at openjdk.org
Fri Jan 17 20:02:38 UTC 2025


On Fri, 17 Jan 2025 18:15:17 GMT, Brian Burkhalter <bpb at 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


More information about the core-libs-dev mailing list