6330N/A * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 6330N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6330N/A * This code is free software; you can redistribute it and/or modify it 6330N/A * under the terms of the GNU General Public License version 2 only, as 6330N/A * published by the Free Software Foundation. 6330N/A * This code is distributed in the hope that it will be useful, but WITHOUT 6330N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 6330N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 6330N/A * version 2 for more details (a copy is included in the LICENSE file that 6330N/A * You should have received a copy of the GNU General Public License version 6330N/A * 2 along with this work; if not, write to the Free Software Foundation, 6330N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 6330N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 6330N/A * or visit www.oracle.com if you need additional information or have any 6330N/A * This class is used to ensure that a resource bundle loadable by a classloader 6394N/A * is on the caller's stack, but not on the classpath or TCCL. It tests that 6394N/A * Logger.getLogger() can load the bundle via the immediate caller's classloader 6330N/A // Make sure we can find it via the URLClassLoader 6330N/A +
" as expected. Test config problem");
6330N/A // But it shouldn't be available via the system classloader 6330N/A +
" able to. Test config problem");
6394N/A // Test getAnonymousLogger() 6394N/A // test getLogger("NestedLogger2"); followed by 6394N/A // getLogger("NestedLogger2", rbName) to see if the bundle is found 6394N/A +
" in IndirectlyLoadABundle." 6394N/A +
"testGetLoggerGetLoggerWithBundle");
6394N/A // Find out where we are running from so we can setup the URLClassLoader URLs 6394N/A // test.src and test.classes will be set if running in jtreg, but probably 6394N/A // Allow for both jtreg and standalone cases here 6394N/A // Test getLogger("foo"); getLogger("foo", "rbName"); 6394N/A // First do the getLogger() call with no bundle name 6394N/A // First make sure the test environment is setup properly and the bundle