summaryrefslogtreecommitdiffstats
path: root/tests/ltw/callMunging/case3/Main.java
blob: 8466ce9531972f850d4afb0f3306232ca1544db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import java.lang.reflect.Method;

public class Main {

  public static void main(String []argv) {
	  try {
		  System.out.println("into:main");
		  Class clazzA = Class.forName("A");
		  Method clazzAMethod = clazzA.getMethod("method",null);
		  clazzAMethod.invoke(clazzA.newInstance(),null);
		  System.out.println("leave:main");
	  } catch (Throwable t) {
		  t.printStackTrace();
	  }
  }
  
}