<i18n dev> [10] RFR JDK-8032842 and JDK-8175539: Locale.filterTags()/lookupTag() methods..., Duplicate matching tags returned...
Nishit Jain
nishit.jain at oracle.com
Tue Jul 4 07:11:17 UTC 2017
Hi,
Please review the fix for JDK-8032842 and 8175539
Bug: https://bugs.openjdk.java.net/browse/JDK-8032842,
https://bugs.openjdk.java.net/browse/JDK-8175539
Webrev: http://cr.openjdk.java.net/~nishjain/8032842_8175539/webrev.05/
CSR: https://bugs.openjdk.java.net/browse/JDK-8181073
Issue: Locale.filterTags()/lookupTag() methods were converting the case
of input language tags and returning the lowercased language tags.
Since the special range "*" matches every tag, all the input
tags were directly returned without any additional processing, which
might also contain duplicates.
Fix: Though matching process is done ignoring the case considerations,
but the matched tag is returned by preserving its case as in the given
input language tag(s).
For language range "*", additional processing is added to remove
the duplicate matching tags from the list of output tags.
Regards,
Nishit Jain
More information about the i18n-dev
mailing list