jdk/src/java.base/share/classes/java/net/URLConnection.java
changeset 37593 824750ada3d6
parent 34886 f3ee5206aa01
child 37781 71ed5645f17c
equal deleted inserted replaced
37592:c80f098887f4 37593:824750ada3d6
    41 import java.util.List;
    41 import java.util.List;
    42 import java.security.Permission;
    42 import java.security.Permission;
    43 import java.security.AccessController;
    43 import java.security.AccessController;
    44 import sun.security.util.SecurityConstants;
    44 import sun.security.util.SecurityConstants;
    45 import sun.net.www.MessageHeader;
    45 import sun.net.www.MessageHeader;
       
    46 import sun.security.action.GetPropertyAction;
    46 
    47 
    47 /**
    48 /**
    48  * The abstract class {@code URLConnection} is the superclass
    49  * The abstract class {@code URLConnection} is the superclass
    49  * of all classes that represent a communications link between the
    50  * of all classes that represent a communications link between the
    50  * application and a URL. Instances of this class can be used both to
    51  * application and a URL. Instances of this class can be used both to
  1393      * to use as a set of package prefixes to search.  Whether or not
  1394      * to use as a set of package prefixes to search.  Whether or not
  1394      * that property has been defined, the {@value #contentClassPrefix}
  1395      * that property has been defined, the {@value #contentClassPrefix}
  1395      * is always the last one on the returned package list.
  1396      * is always the last one on the returned package list.
  1396      */
  1397      */
  1397     private String getContentHandlerPkgPrefixes() {
  1398     private String getContentHandlerPkgPrefixes() {
  1398         String packagePrefixList = AccessController.doPrivileged(
  1399         String packagePrefixList =
  1399             new sun.security.action.GetPropertyAction(contentPathProp, ""));
  1400                 GetPropertyAction.getProperty(contentPathProp, "");
  1400 
  1401 
  1401         if (packagePrefixList != "") {
  1402         if (packagePrefixList != "") {
  1402             packagePrefixList += "|";
  1403             packagePrefixList += "|";
  1403         }
  1404         }
  1404 
  1405