--- a/jdk/src/java.base/share/classes/sun/net/smtp/SmtpClient.java Tue May 03 11:45:56 2016 +0100
+++ b/jdk/src/java.base/share/classes/sun/net/smtp/SmtpClient.java Tue May 03 15:50:54 2016 +0200
@@ -157,7 +157,7 @@
}
try {
String s;
- mailhost = GetPropertyAction.getProperty("mail.host");
+ mailhost = GetPropertyAction.privilegedGetProperty("mail.host");
if (mailhost != null) {
openServer(mailhost);
return;
@@ -183,7 +183,7 @@
setConnectTimeout(to);
try {
String s;
- mailhost = GetPropertyAction.getProperty("mail.host");
+ mailhost = GetPropertyAction.privilegedGetProperty("mail.host");
if (mailhost != null) {
openServer(mailhost);
return;