RFR: 8308678: (fs) UnixPath::toRealPath needs additional permissions when running with SM (macOS) [v3]

Brian Burkhalter bpb at openjdk.org
Fri May 26 16:28:56 UTC 2023


On Fri, 26 May 2023 08:09:32 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8308678: Convert test to JUnit 5
>
> src/java.base/unix/classes/sun/nio/fs/UnixPath.java line 785:
> 
>> 783:     }
>> 784: 
>> 785:     private static boolean canRead(UnixPath path) {
> 
> You could change this to be an instance method so it's consistent with the checkXXX methods that follow it, then the use site would check it path.canRead().

So changed in c91d7189053a57fa813c9f89e1289335dc88da1e.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14157#discussion_r1207038388


More information about the nio-dev mailing list