test/jdk/java/util/logging/TestAppletLoggerContext.java
changeset 52427 3c6aa484536c
parent 47216 71c04702a3d5
child 55462 6dfdcd31463d
equal deleted inserted replaced
52426:38bf0c9c4e64 52427:3c6aa484536c
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    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 jdk.internal.misc.JavaAWTAccess;
    36 import jdk.internal.access.JavaAWTAccess;
    37 import jdk.internal.misc.SharedSecrets;
    37 import jdk.internal.access.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/jdk.internal.misc
    45  * @modules java.base/jdk.internal.access
    46  *          java.logging
    46  *          java.logging
    47  * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingApplet
    47  * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingApplet
    48  * @run main/othervm -Dtest.security=on TestAppletLoggerContext  LoadingApplet
    48  * @run main/othervm -Dtest.security=on TestAppletLoggerContext  LoadingApplet
    49  * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingMain
    49  * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingMain
    50  * @run main/othervm -Dtest.security=on TestAppletLoggerContext  LoadingMain
    50  * @run main/othervm -Dtest.security=on TestAppletLoggerContext  LoadingMain