jdk/src/java.base/share/classes/sun/net/www/protocol/ftp/FtpURLConnection.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
   276             }
   276             }
   277         }
   277         }
   278 
   278 
   279         if (user == null) {
   279         if (user == null) {
   280             user = "anonymous";
   280             user = "anonymous";
   281             Properties props = GetPropertyAction.getProperties();
   281             Properties props = GetPropertyAction.privilegedGetProperties();
   282             String vers = props.getProperty("java.version");
   282             String vers = props.getProperty("java.version");
   283             password = props.getProperty("ftp.protocol.user",
   283             password = props.getProperty("ftp.protocol.user",
   284                     "Java" + vers + "@");
   284                     "Java" + vers + "@");
   285         }
   285         }
   286         try {
   286         try {