On 24/03/16 18:56, Daniel Fuchs wrote:
getSimpleFormat should probably check the given key argument is either
DEFAULT_FORMAT_PROP_KEY or JUL_FORMAT_PROP_KEY; otherwise throws IAE.
Otherwise, this method would pass if key is unexpected key if security
manager is absent but fails if security manager is present.
Oh - right - good idea. Replace the limited doPrivileged with
explicit argument checking :-) Let's do that.
Here is the new webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8150840/webrev.03/index.html
Only changes are in SimpleConsoleLogger.Formatting::getSimpleFormat.
best regards,
-- daniel