Path: blob/master/test/jdk/java/util/ResourceBundle/Bug4179766Getter.java
41152 views
/*1* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/22/*23*24*25* (C) Copyright IBM Corp. 1996 - 1999 - All Rights Reserved26*27* Portions copyright (c) 2007 Sun Microsystems, Inc.28* All Rights Reserved.29*30* The original version of this source code and documentation31* is copyrighted and owned by Taligent, Inc., a wholly-owned32* subsidiary of IBM. These materials are provided under terms33* of a License Agreement between Taligent and Sun. This technology34* is protected by multiple US and International patents.35*36* This notice and attribution to Taligent may not be removed.37* Taligent is a registered trademark of Taligent, Inc.38*39* Permission to use, copy, modify, and distribute this software40* and its documentation for NON-COMMERCIAL purposes and without41* fee is hereby granted provided that this copyright notice42* appears in all copies. Please refer to the file "copyright.html"43* for further important copyright and licensing information.44*45* SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF46* THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED47* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A48* PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR49* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR50* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.51*52*/5354import java.util.ResourceBundle;5556/**57* Interface loaded by system class loader allowing58* Bug4179766Class instances to be called by59* test class. This class provides a common base class60* for classes loaded by different loaders. Both the system61* loader and the custom loader used by the TestBug417976662* class load this same interface class using the system class63* loader. The custom loader then loads a subclass that is64* then passed back to the caller. The fact that the caller65* and loader share a common base class allows the caller66* to cast the object without causing a ClassCastException.67*/68public interface Bug4179766Getter {69/** return the specified resource or null if not found */70public ResourceBundle getResourceBundle(String resource);71}727374