8229280: Test failures on several linux hosts after JDK-8181493

Brian Burkhalter brian.burkhalter at oracle.com
Wed Sep 4 18:46:15 UTC 2019


> On Sep 4, 2019, at 11:44 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
>> java/nio/file/attribute/BasicFileAttributeView/SetTimesNanos.java:45: error: UnixNativeDispatcher is not public in sun.nio.fs; cannot be accessed from outside package
>>             sun.nio.fs.UnixNativeDispatcher.class.getDeclaredMethod("futimensSupported");
>>                       ^
>> 1 error
> It looks like you've changed it from Class.forName to a static reference. I didn't suggest that, instead I was pointing out that you need the +open to ensure that sun.nio.fs is open to the test for deep reflective purposes.

That’s right. The test however worked with and without the +open.

>> 
>> Sure. These types at least would work: apfs, ext4, xfs, zfs. That would get rid of ugly truncation checking.
>> 
> That would be good as it would limit the test to scenarios where it is expected to pass.

OK

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190904/0936b6f4/attachment.html>


More information about the nio-dev mailing list