diff options
Diffstat (limited to 'tests/ltw/callMunging/case2/Main.java')
-rw-r--r-- | tests/ltw/callMunging/case2/Main.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ltw/callMunging/case2/Main.java b/tests/ltw/callMunging/case2/Main.java new file mode 100644 index 000000000..8466ce953 --- /dev/null +++ b/tests/ltw/callMunging/case2/Main.java @@ -0,0 +1,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(); + } + } + +} |