test/langtools/tools/javac/diags/examples/MethodInvokedWithWrongNumberOfArgs.java
changeset 50250 04f9bb270ab8
parent 47216 71c04702a3d5
equal deleted inserted replaced
50249:5715962c8831 50250:04f9bb270ab8
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 // key: compiler.err.method.invoked.with.incorrect.number.arguments
    24 // key: compiler.err.bad.target.sigpoly.call
    25 // options: -Xlint:-options -source 6 -target 6
    25 // options: -Xlint:-options -source 6 -target 6
    26 
    26 
    27 class MethodInvokedWithWrongNumberOfArgs {
    27 class MethodInvokedWithWrongNumberOfArgs {
    28     static java.lang.invoke.MethodHandle getNamedMember;
    28     static java.lang.invoke.MethodHandle getNamedMember;
    29     public static Object getMember(String name, Object rec) throws Throwable {
    29     public static Object getMember(String name, Object rec) throws Throwable {