RFR: 8298478: (fs) Path.of should allow input to include long path prefix [v3]
Brian Burkhalter
bpb at openjdk.org
Tue Feb 7 19:19:07 UTC 2023
On Tue, 7 Feb 2023 18:41:35 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> src/java.base/windows/classes/sun/nio/fs/WindowsPathParser.java line 164:
>>
>>> 162: }
>>> 163:
>>> 164: if (type != expectedType) {
>>
>> Maybe this should also have `expectedType != null` either before of after the existing check?
>
> Yes, `if (expectedType != null && type != expectedType)` would be clearer.
So changed in f9de5966fe505249fb373bcd8551183977e5e8e3.
-------------
PR: https://git.openjdk.org/jdk/pull/12423
More information about the nio-dev
mailing list