mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8174270: Consolidate ICU sources in one location
Reviewed-by: srl, joehw
This commit is contained in:
parent
91bb1d3700
commit
1b24cf800f
57 changed files with 251 additions and 178 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -29,9 +29,9 @@ import java.io.IOException;
|
|||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
|
||||
import sun.net.idn.StringPrep;
|
||||
import sun.net.idn.Punycode;
|
||||
import sun.text.normalizer.UCharacterIterator;
|
||||
import jdk.internal.icu.impl.Punycode;
|
||||
import jdk.internal.icu.text.StringPrep;
|
||||
import jdk.internal.icu.text.UCharacterIterator;
|
||||
|
||||
/**
|
||||
* Provides methods to convert internationalized domain names (IDNs) between
|
||||
|
@ -226,7 +226,7 @@ public final class IDN {
|
|||
InputStream stream = null;
|
||||
|
||||
try {
|
||||
final String IDN_PROFILE = "uidna.spp";
|
||||
final String IDN_PROFILE = "/sun/net/idn/uidna.spp";
|
||||
if (System.getSecurityManager() != null) {
|
||||
stream = AccessController.doPrivileged(new PrivilegedAction<>() {
|
||||
public InputStream run() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue