--- old/src/java.base/share/classes/sun/security/ssl/Debug.java Mon Sep 11 23:18:32 2017 +++ new/src/java.base/share/classes/sun/security/ssl/Debug.java Mon Sep 11 23:18:31 2017 @@ -201,6 +201,24 @@ } } + /** + * Return the value of the integer System property propName. + * + * Note use of doPrivileged(). Do make accessible to applications. + */ + static int getIntegerProperty(String propName, int defaultValue) { + String i = GetPropertyAction.privilegedGetProperty(propName); + if (i != null) { + try { + return Integer.parseInt(i); + } catch(NumberFormatException e) { + throw new RuntimeException("Value of " + propName + + " must be a valid integer"); + } + } + return defaultValue; + } + static String toString(byte[] b) { return sun.security.util.Debug.toString(b); }