2 * test proper behavior of getMethod when passed null.
3 * Submitted by Moses DeJong <dejong@cs.umn.edu>
5 import java.lang.reflect.*;
9 public class MethodBug {
10 public static void main(String[] argv) throws Exception {
13 m = MethodBug.class.getDeclaredMethod("m", null);
14 System.out.println("m is " + m);
15 m = MethodBug.class.getMethod("m", null);
16 System.out.println("m is " + m);
17 c = MethodBug.class.getConstructor(null);
18 System.out.println("c is " + c);
19 c = MethodBug.class.getDeclaredConstructor(null);
20 System.out.println("c is " + c);
28 m is public void MethodBug.m()
29 m is public void MethodBug.m()
30 c is public MethodBug()
31 c is public MethodBug()