Bug4168625Class.java revision 2362
1568N/A/*
1568N/A * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
1568N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2362N/A *
1568N/A * This code is free software; you can redistribute it and/or modify it
1568N/A * under the terms of the GNU General Public License version 2 only, as
1568N/A * published by the Free Software Foundation.
1568N/A *
1568N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1568N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1568N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1568N/A * version 2 for more details (a copy is included in the LICENSE file that
1568N/A * accompanied this code).
1568N/A *
1568N/A * You should have received a copy of the GNU General Public License version
1568N/A * 2 along with this work; if not, write to the Free Software Foundation,
1568N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1568N/A *
1568N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1568N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
2362N/A */
2362N/A/*
1568N/A *
1568N/A *
1568N/A * (C) Copyright IBM Corp. 1999 - All Rights Reserved
5853N/A *
1568N/A * The original version of this source code and documentation is
1568N/A * copyrighted and owned by IBM. These materials are provided
1568N/A * under terms of a License Agreement between IBM and Sun.
1568N/A * This technology is protected by multiple US and International
1568N/A * patents. This notice and attribution to IBM may not be removed.
1568N/A *
1568N/A */
1568N/Aimport java.util.ResourceBundle;
1568N/Aimport java.util.MissingResourceException;
1568N/Aimport java.util.Locale;
1568N/A
1568N/A/**
1568N/A * Class loaded by custom class loader to load resources.
1568N/A * This call is called through the ResourceGetter interface
1568N/A * by the test. The ResourceGetter interface is loaded
1568N/A * by the system loader to avoid ClassCastsExceptions.
1568N/A */
1568N/Apublic class Bug4168625Class implements Bug4168625Getter {
1568N/A /** return the specified resource or null if not found */
1568N/A public ResourceBundle getResourceBundle(String resource, Locale locale) {
1568N/A try {
1568N/A return ResourceBundle.getBundle(resource, locale);
1568N/A } catch (MissingResourceException e) {
1568N/A return null;
1568N/A }
1568N/A }
1568N/A}
1568N/A