jaroslav@1649: /* jaroslav@1649: * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved. jaroslav@1649: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@1649: * jaroslav@1649: * This code is free software; you can redistribute it and/or modify it jaroslav@1649: * under the terms of the GNU General Public License version 2 only, as jaroslav@1649: * published by the Free Software Foundation. Oracle designates this jaroslav@1649: * particular file as subject to the "Classpath" exception as provided jaroslav@1649: * by Oracle in the LICENSE file that accompanied this code. jaroslav@1649: * jaroslav@1649: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@1649: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@1649: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@1649: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@1649: * accompanied this code). jaroslav@1649: * jaroslav@1649: * You should have received a copy of the GNU General Public License version jaroslav@1649: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@1649: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@1649: * jaroslav@1649: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@1649: * or visit www.oracle.com if you need additional information or have any jaroslav@1649: * questions. jaroslav@1649: */ jaroslav@1649: jaroslav@1649: package java.lang; jaroslav@1649: jaroslav@1649: /** jaroslav@1649: * Thrown if an application tries to call a specified method of a jaroslav@1649: * class (either static or instance), and that class no longer has a jaroslav@1649: * definition of that method. jaroslav@1649: *

jaroslav@1649: * Normally, this error is caught by the compiler; this error can jaroslav@1649: * only occur at run time if the definition of a class has jaroslav@1649: * incompatibly changed. jaroslav@1649: * jaroslav@1649: * @author unascribed jaroslav@1649: * @since JDK1.0 jaroslav@1649: */ jaroslav@1649: public jaroslav@1649: class NoSuchMethodError extends IncompatibleClassChangeError { jaroslav@1649: private static final long serialVersionUID = -3765521442372831335L; jaroslav@1649: jaroslav@1649: /** jaroslav@1649: * Constructs a NoSuchMethodError with no detail message. jaroslav@1649: */ jaroslav@1649: public NoSuchMethodError() { jaroslav@1649: super(); jaroslav@1649: } jaroslav@1649: jaroslav@1649: /** jaroslav@1649: * Constructs a NoSuchMethodError with the jaroslav@1649: * specified detail message. jaroslav@1649: * jaroslav@1649: * @param s the detail message. jaroslav@1649: */ jaroslav@1649: public NoSuchMethodError(String s) { jaroslav@1649: super(s); jaroslav@1649: } jaroslav@1649: }