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

Brian Burkhalter bpb at openjdk.org
Thu May 25 20:42:22 UTC 2023


On Thu, 25 May 2023 20:14:24 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> test/jdk/java/nio/file/Path/MacToRealPathWithSM.java line 29:
>> 
>>> 27:  * @summary Verify UnixPath::toRealPath falls back if no perms on macOS
>>> 28:  * @run main/othervm -Djava.security.manager=allow MacToRealPathWithSM MacToRealPath.policy
>>> 29:  */
>> 
>> Any thought given to specifying the policy on the command line and running the test with and without the SecurityManager enabled?
>
> I was following the pattern of how the SM is used in at least some of the other `java.nio` tests. That does not preclude however running with an without.

Running with and without added in 8b45bc8980d44eef1d24c45348daea3bd5e80897.

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

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


More information about the nio-dev mailing list