31 import java.util.HashMap; |
31 import java.util.HashMap; |
32 import java.util.Map; |
32 import java.util.Map; |
33 import java.util.logging.LogManager; |
33 import java.util.logging.LogManager; |
34 import java.util.logging.Logger; |
34 import java.util.logging.Logger; |
35 import java.util.logging.LoggingPermission; |
35 import java.util.logging.LoggingPermission; |
36 import sun.misc.JavaAWTAccess; |
36 import jdk.internal.misc.JavaAWTAccess; |
37 import sun.misc.SharedSecrets; |
37 import jdk.internal.misc.SharedSecrets; |
38 |
38 |
39 /* |
39 /* |
40 * @test |
40 * @test |
41 * @bug 8017174 8010727 8019945 |
41 * @bug 8017174 8010727 8019945 |
42 * @summary NPE when using Logger.getAnonymousLogger or |
42 * @summary NPE when using Logger.getAnonymousLogger or |
43 * LogManager.getLogManager().getLogger |
43 * LogManager.getLogManager().getLogger |
44 * |
44 * |
45 * @modules java.base/sun.misc |
45 * @modules java.base/jdk.internal.misc |
46 * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingApplet |
46 * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingApplet |
47 * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingApplet |
47 * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingApplet |
48 * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingMain |
48 * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingMain |
49 * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingMain |
49 * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingMain |
50 * @run main/othervm -Dtest.security=off TestAppletLoggerContext One |
50 * @run main/othervm -Dtest.security=off TestAppletLoggerContext One |