Defined SUPPORT_CONST_ASTORE and SUPPORT_ONLY_ZERO_ASTORE.
[cacao.git] / tests / kaffe / MethodBug.java
1 /**
2  * test proper behavior of getMethod when passed null.
3  * Submitted by Moses DeJong <dejong@cs.umn.edu>
4  */
5 import java.lang.reflect.*;
6 import java.util.*;
7  
8  
9 public class MethodBug {
10     public static void main(String[] argv) throws Exception {
11         Method m;
12         Constructor c;
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);
21     }
22  
23     public void m() {}
24     public MethodBug() {}
25 }
26
27 /* Expected Output:
28 m is public void MethodBug.m()
29 m is public void MethodBug.m()
30 c is public MethodBug()
31 c is public MethodBug()
32 */