RFR: 8289689: (fs) Re-examine the need for normalization to Unicode Normalization Format D (macOS) [v2]

Andrey Turbanov aturbanov at openjdk.org
Sat Oct 29 12:08:24 UTC 2022


On Sat, 29 Oct 2022 11:25:49 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> src/java.base/macosx/classes/sun/nio/fs/MacOSXFileSystem.java line 46:
>> 
>>> 44:     static {
>>> 45:         final String name = PROPERTY_ENABLE_FILE_NAME_ENCODING;
>>> 46:         String value = GetPropertyAction.privilegedGetProperty(name);
>> 
>> Can we use `sun.security.action.GetBooleanAction#privilegedGetProperty` instead?
>
>> Can we use `sun.security.action.GetBooleanAction#privilegedGetProperty` instead?
> 
> That is problematic for the case that a value is empty, as in `-Djdk.nio.path.useNormalizationFormD`.

I'm not sure I understand. What the problem with empty value exactly?

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

PR: https://git.openjdk.org/jdk/pull/10885


More information about the nio-dev mailing list