On Tue, 15 Mar 2022 19:46:09 GMT, Weijun Wang <wei...@openjdk.org> wrote:
>> Sibabrata Sahoo has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update HttpsCB.java > > src/java.base/share/classes/sun/net/www/protocol/https/AbstractDelegateHttpsURLConnection.java > line 338: > >> 336: return true; >> 337: } >> 338: String afterWildCard = domain.substring(1); > > `domain` could be an empty string if the property value is "domain:a,,b". I > know it's invalid but at least let's try our best to avoid a runtime > exception. In fact, why is this variable necessary? It looks like > `regionMatches` allows you to compare ...er... regions. Done. ------------- PR: https://git.openjdk.java.net/jdk/pull/7759