< prev index next >

test/jdk/java/util/logging/TestAppletLoggerContext.java

Print this page
rev 51958 : 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn

*** 1,7 **** /* ! * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 31,50 **** import java.util.HashMap; import java.util.Map; import java.util.logging.LogManager; import java.util.logging.Logger; import java.util.logging.LoggingPermission; ! import jdk.internal.misc.JavaAWTAccess; ! import jdk.internal.misc.SharedSecrets; /* * @test * @bug 8017174 8010727 8019945 * @summary NPE when using Logger.getAnonymousLogger or * LogManager.getLogManager().getLogger * ! * @modules java.base/jdk.internal.misc * java.logging * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingApplet * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingApplet * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingMain * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingMain --- 31,50 ---- import java.util.HashMap; import java.util.Map; import java.util.logging.LogManager; import java.util.logging.Logger; import java.util.logging.LoggingPermission; ! import jdk.internal.access.JavaAWTAccess; ! import jdk.internal.access.SharedSecrets; /* * @test * @bug 8017174 8010727 8019945 * @summary NPE when using Logger.getAnonymousLogger or * LogManager.getLogManager().getLogger * ! * @modules java.base/jdk.internal.access * java.logging * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingApplet * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingApplet * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingMain * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingMain
< prev index next >