On Tue, 6 Sep 2022 16:59:38 GMT, Sean Mullan <mul...@openjdk.org> wrote:

>> Mark Powers has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   white space
>
> src/java.base/share/classes/sun/security/provider/PolicyParser.java line 1180:
> 
>> 1178:                 // and then in a java string, it's escaped again
>> 1179: 
>> 1180:                 out.print(name.replaceAll("\\\\", 
>> "\\\\\\\\").replaceAll("\"", "\\\\\\\""));
> 
> Why does IJ say this is the same? This appears to replace backslash-quote 
> with quote.

My understanding: In regex, there is no need to escape `"`, so `"` is the same 
as `"`.

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

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

Reply via email to