(String[] args)
| 28 | |
| 29 | public class InnerImplementation { |
| 30 | public static void |
| 31 | main(String[] args) throws Exception { |
| 32 | A a = InnerA.makeA(); |
| 33 | a.f(); |
| 34 | System.out.println(a.getClass().getName()); |
| 35 | // Reflection still gets into the private class: |
| 36 | HiddenImplementation.callHiddenMethod(a, "g"); |
| 37 | HiddenImplementation.callHiddenMethod(a, "u"); |
| 38 | HiddenImplementation.callHiddenMethod(a, "v"); |
| 39 | HiddenImplementation.callHiddenMethod(a, "w"); |
| 40 | } |
| 41 | } |
| 42 | /* Output: |
| 43 | public C.f() |
nothing calls this directly
no test coverage detected