aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ltw/callMunging/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ltw/callMunging/Main.java')
-rw-r--r--tests/ltw/callMunging/Main.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ltw/callMunging/Main.java b/tests/ltw/callMunging/Main.java
new file mode 100644
index 000000000..94e395eb9
--- /dev/null
+++ b/tests/ltw/callMunging/Main.java
@@ -0,0 +1,21 @@
+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);
+
+ Class clazzB= Class.forName("B");
+ Method clazzBMethod = clazzB.getMethod("method",null);
+ clazzBMethod.invoke(clazzB.newInstance(),null);
+ System.out.println("leave:main");
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+ }
+
+}