mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
7065228: To interpret case-insensitive string locale independently
Reviewed-by: dfuchs, naoto, djelinski, jpai, michaelm
This commit is contained in:
parent
a9705196ce
commit
05e99db466
20 changed files with 74 additions and 60 deletions
|
@ -38,6 +38,7 @@ import java.util.ServiceConfigurationError;
|
|||
import java.util.ServiceLoader;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.Collections;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import java.security.Permission;
|
||||
|
@ -1454,7 +1455,7 @@ public abstract class URLConnection {
|
|||
*/
|
||||
private String typeToPackageName(String contentType) {
|
||||
// make sure we canonicalize the class name: all lower case
|
||||
contentType = contentType.toLowerCase();
|
||||
contentType = contentType.toLowerCase(Locale.ROOT);
|
||||
int len = contentType.length();
|
||||
char nm[] = new char[len];
|
||||
contentType.getChars(0, len, nm, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue