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

Brian Burkhalter brian.burkhalter at oracle.com
Wed Sep 4 19:09:34 UTC 2019


> On Sep 4, 2019, at 11:46 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> 
>> On Sep 4, 2019, at 11:44 AM, Alan Bateman <Alan.Bateman at oracle.com <mailto: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

Here is an updated version which should address the foregoing problems:

http://cr.openjdk.java.net/~bpb/8229280/webrev.02/ <http://cr.openjdk.java.net/~bpb/8229280/webrev.02/>

Thanks,

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


More information about the nio-dev mailing list