RFR: 8274122: java/io/File/createTempFile/SpecialTempFile.java fails in Windows 11 [v3]

Brian Burkhalter bpb at openjdk.org
Tue Oct 24 23:02:29 UTC 2023


On Tue, 24 Oct 2023 22:57:59 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Windows 11 does not reserve as many names as prior versions of Windows so do not expect exceptions for COM7 and LPT1.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8274122: Use internal OperatingSystem and OSVersion

To allow creation of files with reserved names, it appears that the OS must be Windows 11, or some future variant with a kernel version > 10. Windows 10 and 11, and Server 2019 and 2022 all appear to have kernel version 10, but from what I've seen only Windows 11 allows creation of these files. This test will probably break again in the future, but commit 7d3b243 passed 102 repeats.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15460#issuecomment-1778186915


More information about the core-libs-dev mailing list