Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8303983 | 20.0.1 | Brian Burkhalter | P4 | Resolved | Delivered | |
JDK-8303982 | 17.0.7-oracle | Brian Burkhalter | P4 | Resolved | Delivered | |
JDK-8303981 | 11.0.19-oracle | Brian Burkhalter | P4 | Resolved | Delivered | |
JDK-8303980 | 11.0.18.0.2-oracle | Brian Burkhalter | P4 | Resolved | Delivered |
The behavior of the method `java.io.File.listRoots()` on Microsoft Windows has changed in this release so that the returned array includes a `File` object for all available disk drives. This differs from the behavior in JDK 10 to JDK 20, where this method filtered out disk drives that were not accessible or did not have media present. This change avoids performance issues observed in the previous releases and also ensures that the method is consistent with the root directories in the iteration returned by `FileSystem.getDefault().getRootDirectories()`.
- backported by
-
JDK-8303980 Release Note: `File::listRoots` Changed to Return All Available Drives on Windows
- Resolved
-
JDK-8303981 Release Note: `File::listRoots` Changed to Return All Available Drives on Windows
- Resolved
-
JDK-8303982 Release Note: `File::listRoots` Changed to Return All Available Drives on Windows
- Resolved
-
JDK-8303983 Release Note: `File::listRoots` Changed to Return All Available Drives on Windows
- Resolved