RFR 9 : 8138824 : java.lang.String: spec doesn't match impl when ignoring case (original) (raw)

RFR 9 : 8138824 : java.lang.String: spec doesn't match impl when ignoring case - equalsIgnoreCase(), regionMatches()

Naoto Sato naoto.sato at oracle.com
Thu Oct 8 15:57:27 UTC 2015


Hi Brent,

I wonder whether we should add a negative test case, in which lowercasing/uppercasing on the originals would differ but String.equalsIgnoreCase() returns true.

Naoto

On 10/7/15 4:30 PM, Brent Christian wrote:

Hi,

Please review my doc/spec change (no code) for 8138824. Bug: https://bugs.openjdk.java.net/browse/JDK-8138824 Webrev: http://cr.openjdk.java.net/~bchristi/8138824/webrev.0/ Specdiff: http://cr.openjdk.java.net/~bchristi/8138824/specdiff.0/overview-summary.html

This change addresses a longstanding mismatch between spec and implementation, clarifies comparison methods which do not account for locale, and adds references to the locale-aware java.text.Collator. Thanks, -Brent



More information about the core-libs-dev mailing list