[jdk21u-dev] Integrated: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive
Taizo Kurashige
duke at openjdk.org
Thu Apr 3 14:22:56 UTC 2025
On Tue, 4 Mar 2025 09:07:51 GMT, Taizo Kurashige <duke at openjdk.org> wrote:
> Hi all,
>
> This is a backport of JDK-8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive
>
> Original patch does not apply cleanly.
> GetXSpace.java in jdk21 includes tests when the SecurityManager is enabled.
> When testing using class DenyFSA, the df command executed in getCDDriveSpace occurs java.security.AccessControlException. To prevent this, I modified testVolumes() to change the timing of the SecurityManager set.
>
> Testing: java/io/File/GetXSpace.java on Windows Server 2019 where drive C is a normal local disk, drive D is an unmounted iso CD-ROM drive, and drive F is an iso mounted CD-ROM drive
>
> Thanks.
This pull request has now been integrated.
Changeset: 983307e4
Author: Taizo Kurashige <taizousum11 at gmail.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk21u-dev/commit/983307e45f14f082fb17f318a2814680cbe99a93
Stats: 94 lines in 2 files changed: 78 ins; 4 del; 12 mod
8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive
Reviewed-by: phh
Backport-of: 40f0a398fa9b1b39a43640973eaffb041bb7b63d
-------------
PR: https://git.openjdk.org/jdk21u-dev/pull/1445
More information about the jdk-updates-dev
mailing list