(String name)
| 8 | } |
| 9 | |
| 10 | static void invokeOneArg(String name) throws Exception { |
| 11 | Method[] methods = J.class.getMethods(); |
| 12 | for (Method m : methods) { |
| 13 | if (m.getName().equals(name)) { |
| 14 | J j = new J(); |
| 15 | m.invoke(j, j); // <I: void bar(I)>, <J: void foo(J)> |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | class I { |
no test coverage detected