emul/mini/src/main/java/java/lang/NoSuchMethodException.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sat, 26 Jan 2013 08:47:05 +0100
changeset 592 5e13b1ac2886
parent 417 b4c7e63733e8
permissions -rw-r--r--
In order to support fields of the same name in subclasses we are now prefixing them with name of the class that defines them. To provide convenient way to access them from generated bytecode and also directly from JavaScript, there is a getter/setter function for each field. It starts with _ followed by the field name. If called with a parameter, it sets the field, with a parameter it just returns it.
jaroslav@417
     1
/*
jaroslav@417
     2
 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
jaroslav@417
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jaroslav@417
     4
 *
jaroslav@417
     5
 * This code is free software; you can redistribute it and/or modify it
jaroslav@417
     6
 * under the terms of the GNU General Public License version 2 only, as
jaroslav@417
     7
 * published by the Free Software Foundation.  Oracle designates this
jaroslav@417
     8
 * particular file as subject to the "Classpath" exception as provided
jaroslav@417
     9
 * by Oracle in the LICENSE file that accompanied this code.
jaroslav@417
    10
 *
jaroslav@417
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jaroslav@417
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jaroslav@417
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jaroslav@417
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jaroslav@417
    15
 * accompanied this code).
jaroslav@417
    16
 *
jaroslav@417
    17
 * You should have received a copy of the GNU General Public License version
jaroslav@417
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jaroslav@417
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jaroslav@417
    20
 *
jaroslav@417
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jaroslav@417
    22
 * or visit www.oracle.com if you need additional information or have any
jaroslav@417
    23
 * questions.
jaroslav@417
    24
 */
jaroslav@417
    25
jaroslav@417
    26
package java.lang;
jaroslav@417
    27
jaroslav@417
    28
/**
jaroslav@417
    29
 * Thrown when a particular method cannot be found.
jaroslav@417
    30
 *
jaroslav@417
    31
 * @author     unascribed
jaroslav@417
    32
 * @since      JDK1.0
jaroslav@417
    33
 */
jaroslav@417
    34
public
jaroslav@417
    35
class NoSuchMethodException extends ReflectiveOperationException {
jaroslav@417
    36
    private static final long serialVersionUID = 5034388446362600923L;
jaroslav@417
    37
jaroslav@417
    38
    /**
jaroslav@417
    39
     * Constructs a <code>NoSuchMethodException</code> without a detail message.
jaroslav@417
    40
     */
jaroslav@417
    41
    public NoSuchMethodException() {
jaroslav@417
    42
        super();
jaroslav@417
    43
    }
jaroslav@417
    44
jaroslav@417
    45
    /**
jaroslav@417
    46
     * Constructs a <code>NoSuchMethodException</code> with a detail message.
jaroslav@417
    47
     *
jaroslav@417
    48
     * @param      s   the detail message.
jaroslav@417
    49
     */
jaroslav@417
    50
    public NoSuchMethodException(String s) {
jaroslav@417
    51
        super(s);
jaroslav@417
    52
    }
jaroslav@417
    53
}