RFR: 8346972: Test java/nio/channels/FileChannel/LoopingTruncate.java fails sometimes with IOException: There is not enough space on the disk [v2]
Volkan Yazıcı
duke at openjdk.org
Fri Jan 10 09:04:20 UTC 2025
On Thu, 9 Jan 2025 15:56:52 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> test/jdk/java/nio/channels/FileChannel/LoopingTruncate.java line 53:
>>
>>> 51:
>>> 52: public static void main(String[] args) throws Throwable {
>>> 53: Path dir = Path.of(StaticProperty.userDir());
>>
>> If you change this to Path.of(".") then it would avoid using a JDK internal class, Path.of(System.getProperty("user.dir")) will work too.
>
> If that approach is taken, then line 27 `@modules ...` can be removed.
Switch to `Path.of(System.getProperty("user.dir"))` and documented the rationale in 8fc22379f774331be9a0dfea9a067483707c48df.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23011#discussion_r1910022593
More information about the nio-dev
mailing list