RFR: 8372851: Modify java/io/File/GetXSpace.java to print path on failure of native call

Naoto Sato naoto at openjdk.org
Tue Dec 2 01:41:47 UTC 2025


On Tue, 2 Dec 2025 00:49:12 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Change the test to print the pathname if `getSpace0` fails with a `RuntimeException`.

Looks fine

test/jdk/java/io/File/GetXSpace.java line 418:

> 416:         try {
> 417:             return getSpace0(root, space);
> 418:         } catch (RuntimeException e) {

Would it also be helpful to print the exception itself?

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

PR Review: https://git.openjdk.org/jdk/pull/28592#pullrequestreview-3527774866
PR Review Comment: https://git.openjdk.org/jdk/pull/28592#discussion_r2579278479


More information about the core-libs-dev mailing list